// JavaScript Document
/*-------main menu-------*/
function sel(but, name, over, nxt_sel, nxt, sel){
	if (over==1){
		if (sel && sel!=nxt){
			but.src="images/"+name+"_sel_"+sel+"_sel.gif";
		}else{
			but.src="images/"+name+"_sel.gif";
		}
		if (nxt_sel!=""){
			if (sel==nxt){	
				nxt_sel.src="images/"+nxt+"_sel_"+name+"_sel.gif";	
			}else{
				nxt_sel.src="images/"+nxt+"_"+name+"_sel.gif";	
			}
		}
	}else{
		if (sel && sel!=nxt){
			but.src="images/"+name+"_"+sel+"_sel.gif";
		}else{
			but.src="images/"+name+".gif";
		}
		
		if (nxt_sel!=""){
			if (sel==nxt){	
				nxt_sel.src="images/"+nxt+"_sel.gif";	
			}else{
				nxt_sel.src="images/"+nxt+".gif";	
			}
		}
	}
}
function OpenWindow(url) {
		var x = window.open(url, "address", "width=800, height=490, menubar=no, scrollbars=auto, resizable=0, toolbar=0");
	}
function OpenInvoice(url) {
		var x = window.open(url, "invoice", "width=650, height=600, menubar=yes, scrollbars=1, ,resizable=1, toolbar=0");
	}
/*-------product sub menu-------*/	
function sel_sub(but, name, over, selected){
	if (over==1){
		if (selected){
			but.src="images/menu_"+name+"_normal.gif";
		}else{
			but.src="images/menu_"+name+"_selected.gif";
		}
	}else{
		if (selected){
			but.src="images/menu_"+name+"_selected.gif";
		}else{
			but.src="images/menu_"+name+"_normal.gif";
		}
	}
}
