var a=new Image; 	
		a.src="/server/img/blur";
var a1=new Image; 	
		a1.src="/server/img/select.gif";
var a2=new Image; 	
		a1.src="/server/img/podrobnee_out.gif";
var a3=new Image; 	
		a1.src="/server/img/podrobnee_over.gif";
var a4=new Image; 	
		a1.src="/server/img/back_over.gif";
var a5=new Image; 	
		a1.src="/server/img/back_out.gif";

function over_header(i,j){
i.style.backgroundColor="#99CCFF";
document.anchors[j].style.fontWeight = "bold";
}

function out_header(i,j){
i.style.background="#CCCCCC";
document.anchors[j].style.fontWeight = "normal";
}

function over_menu(i,j){
i.style.backgroundColor="#99CCFF";
document.images[j].src="/server/img/select.gif";
}

function out_menu(i,j){
i.style.background="#f0f0f0";
document.images[j].src="/server/img/blur.gif";
}

function over_menu_active(i,j){
i.style.backgroundColor="#CCCCCC";
}

function out_menu_active(i,j){
i.style.background="#99CCFF";
}


//OVER-функция подменю
//изменяет background-color и color
function over_podmenu(i,j){
i.style.backgroundColor="#ffffff";
i.style.color = "#990000";
}
//OUT-функция подменю
//возвращает исходный background-color и color
function out_podmenu(i,j){
i.style.backgroundColor="#f0f0f0";
i.style.color = "#000000";
}

function delete_order(str){
	if(confirm("Вы действительно хотите удалить из корзины Ваших заказов\n\nтовар «" + str + "»?"))
		return true;
return false;
}

function img_over_out(i,s){
document.images[i].src=s;
}

function clk(path){window.location.href = path;}

function openW(src,name,w,h){
c='width=' + w +',height=' + h + ',toolbar=0,alwaysRaised=1,menubar=0,scrollbars=1,resizable=1,location=0,status=0';
w = window.open(src, name,c);
w.focus();
}

function over_button(i){
i.style.backgroundColor="#990000";
i.style.color = "#ffffff";
}

function out_button(i){
i.style.backgroundColor="#CCCCCC";
i.style.color = "#000000";
}

//Принимает id строки таблицы, которую нужно обработать
//display="" - это значит сделать отображение по умолчанию. 
//если был блок - станет блок, был инлайн - будет инлайн. 
//была ячейка таблички - будет ячейкой и пр.
function display(i){
	if(document.all)	lnk = document.all[i];
	else	lnk = document.getElementById(i);
	
	//Если это IE, то ststus = block
	if((document.all || document.getElementById) && navigator.appName=="Microsoft Internet Explorer")
		var status = "block";
	else status = "";
	
	if(lnk.style.display=="none"){
		lnk.style.display=status;
		}
	else if(lnk.style.display==status){
		lnk.style.display="none";
		}
}
//Принимает ссылку на тег li и одно из значений элемента 'list-style-type' 
function lsf(i,j){
	i.style.listStyleType=j;
}