var MainMenu  = new Array(2);
    OverStyle = new Array(2);
    OverCell  = new Array(2);
 
     

MainMenu[0]="color: #FFFF99; text-decoration: none; cursor: hand";
MainMenu[1]="color: #FFFFFF; text-decoration: none; cursor: hand";

OverStyle[0]="font-family: Tahoma; font-size: 9pt; font-weight: none; font-style: none; color: #FFFFFF; background-color: #5193C8; cursor: hand";

OverStyle[1]="font-family: Tahoma; font-size: 9pt; font-weight: bold; font-style: none; color: #FFFF99; background-color: #3472A5; cursor: hand;";


//OverCell[0]="background-color:  #E1F4FF; text-decoration: none; cursor: hand;";
//OverCell[1]="background-color:  #FDFEFF; text-decoration: none; cursor: hand;"

OverCell[0]="font-family: Tahoma; font-size: 8pt; font-weight: none; font-style: none; color: #00000; background-color: #E1F4FF; cursor: hand ";

OverCell[1]="font-family: Tahoma; font-size: 8pt; font-weight: none; font-style: none; color: #000000; background-color: #FFFFFF; cursor: hand ";

function MainMenuOver() {
    event.srcElement.style.cssText=MainMenu[0];

}


function MainMenuOut() {
    event.srcElement.style.cssText=MainMenu[1];

}


function SetOverStyle() {
    event.srcElement.style.cssText=OverStyle[0]; 

}


function SetOutStyle() {
    event.srcElement.style.cssText=OverStyle[1]; 

}


function SetOverCell() {
    
event.srcElement.style.cssText=OverCell[0]; 

}

	function dsHoverSel(mode, imgName) {
		var mc = event.srcElement;
		var img = new Image;
		var imgRsc = new Image;
		
		with(mc) {
			if(mode) {
				style.cssText = OverCell[0];
				if(imgName!=''){imgRsc = eval(imgName+"Off");}
			} else {
				style.cssText =  OverCell[1];
				if(imgName!=''){imgRsc = eval(imgName+"On");}
			}
		}
		if(imgName!='') {
			img = eval("document.images."+imgName);
			img.src = imgRsc.src;
		}
	}



function SetOutCell() {
    event.srcElement.style.cssText=OverCell[1]; 

}


function Torba(g) {
alert(document.layers[g].name);

}

function NSHoverSel(g, c, mode, n, bcolor, w, h) {
		cNSCmd = document.layers[g].layers[c];

		if(document.layers[g].name!=LastMenu && (LastNSCmd!=cNSCmd))
			Hide(LastMenu);

		if(mode)
			var LayerHTM = OverStyle[n];
		else
			var LayerHTM =OverStyle[n+1];

		if(LastNSCmd!=cNSCmd || mode) {
			cNSCmd.document.open();
			cNSCmd.document.write(LayerHTM);
			cNSCmd.document.close();
			if(!mode)
				cNSCmd.bgColor = bcolor;
			else
				if(document.layers[g].background.src!="")
					cNSCmd.bgColor = null;
				else
					cNSCmd.bgColor = bcolor;
			cNSCmd.resizeTo(w,h);
		}

		if(LastNSCmd!=cNSCmd)
			LastNSCmd=cNSCmd;
	}
