<!--

function submitSendFrm() {
	document.sendfrm.submit();
}

function submitBuy() {
	document.buyfrm.submit();
}

function change_picture(cO,kerY){
	if (document.images){
		document.images[cO].src = eval("ouRimages.img" + kerY + ".src");
	}
}

function openW(urlW, width_w, height_w, scroll_bar){
	center_x = Math.round((window.screen.availWidth - width_w) / 2);
	center_y = Math.round((window.screen.availHeight - height_w) / 2);
	
	window.open(urlW,'_blank','top=' + center_y + ',left=' + center_x + ',width=' + width_w + ',height=' + height_w + ',status=no,titlebar=no,toolbar=no,menubar=no,location=no,resizable=no,directories=no,scrollbars=' + scroll_bar);
}


////////////////////// MENU SCRIPTS

var loaded = 0;
var gotlayers = 0;
var menutimer = 0;
	
ns4 = (document.layers)? true:false;
ie4 = (document.all) ? 1 : 0;

if (ns4) {
	gotlayers = (document.layers.length == 3) ? 1 : 0;
}
if (ie4) {
	gotlayers = 1;
}

function get_width(n) {
	if (ns4) {
		return screenWidth = window.innerWidth - n ;
	} else {
		return screenWidth = document.body.clientWidth - n;
	}
}

// show menu and all selected submenu
function menush(sm1,sm2,sm3) {

	clearTimeout(menutimer);
	if (gotlayers) {
		movelayers();
		if (ns4) {
			for (x = 0; x < a_menu.length; x++) {
				if ((sm1 == a_menu[x]["name"]) || (sm2 == a_menu[x]["name"]) || (sm3 == a_menu[x]["name"]))  { 
					document.layers[a_menu[x]["name"]].visibility = "show";
				} else {
					document.layers[a_menu[x]["name"]].visibility = "hide"; 
				}
			}	
		} else {
			for (x = 0; x < a_menu.length; x++) {
				if ((sm1 == a_menu[x]["name"]) || (sm2 == a_menu[x]["name"]) || (sm3 == a_menu[x]["name"]))  { 
					document.all[a_menu[x]["name"]].style.visibility = "visible";
				} else {
					document.all[a_menu[x]["name"]].style.visibility = "hidden";
				}
			}	

		}
	}

}

function movelayers() {
	if (gotlayers) {
		if (ns4) {
			
			/*leftoffset = Math.round(get_width(788) / 2);
			if (leftoffset < 0){
				leftoffset = 0;
			}*/
			
			for (x = 0; x < a_menu.length; x++) {
				document.layers[a_menu[x]["name"]].left = a_menu[x]["left"];// + leftoffset;
				document.layers[a_menu[x]["name"]].top = a_menu[x]["top"];
			}
	} else {
		
			/*leftoffset = Math.round(get_width(769) / 2);
			if (leftoffset < 0){
				leftoffset = 0;
			}*/
			
			for (x = 0; x < a_menu.length; x++) {
				document.all[a_menu[x]["name"]].style.pixelLeft = a_menu[x]["left"];// + leftoffset;
				document.all[a_menu[x]["name"]].style.pixelTop = a_menu[x]["top"];
			}
		}
	}
}

// close all submenu 
function menu_close(){
		for (x=0; x<a_menu.length; x++) {
			if (ns4)  { 
				document.layers[a_menu[x]["name"]].visibility = "hide"; 
			} else {
				document.all[a_menu[x]["name"]].style.visibility = "hidden";
			}	

		}
}

// timer
function menuoff() {

	
	menutimer = setTimeout("menu_close()",1000);

	
}

//-->