<!--

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function LangPopup(rurl)
{
	var iht = "<div align=center style='margin: 5 5 5 5;font-size:12px;'><input onclick='CloseLangPopup();' type=button value='Close window' style='background-color:#C7E19E;'></div><iframe src=../asp/langpop.asp?"+rurl+" frameborder=0 width=260 height=170></iframe>"
	document.getElementById("languagepopup").style.visibility="visible";
	document.getElementById("languagepopup").style.display="block";
	var ttop = 0; //(document.body.scrollTop) ? document.body.scrollTop + (document.body.clientHeight/3) : document.documentElement.scrollTop + (document.documentElement.clientHeight/3);
	if(ttop==0)
		ttop = 200;
	document.getElementById("languagepopup").style.top=ttop;
	document.getElementById("ifid").innerHTML=iht;
}
function CloseLangPopup()
{
	document.getElementById("languagepopup").style.visibility="hidden";
	document.getElementById("languagepopup").style.display="none";
}

function b_menu()
{
	document.getElementById("briefingdiv").style.visibility="visible";
	document.getElementById("briefingdiv").style.display="block";
}
function hide_b_menu()
{
	document.getElementById("briefingdiv").style.visibility="hidden";
	document.getElementById("briefingdiv").style.display="none";
}

function onLoad() {
	if (document.layers) {
	loadMenus();
	}
}
function loadMenus() { //helpMain.writeMenus();
}
  
  DD_PG_MenuWidth = 50;
  DD_PG_FontFamily = "Verdana,Arial,sans-serif";
  DD_PG_FontSize = 7;
  DD_PG_FontBold = 0;
  DD_PG_FontItalic = 0;
  DD_PG_FontColor = "#000000";
  DD_PG_FontColorOver = "#000000";
  DD_PG_BGColor = "#FFFFFF";
  DD_PG_BGColorOver = "#C7E19E";
  DD_PG_ItemPadding = 3;
  
  DD_PG_BorderWidth = 1;
  DD_PG_BorderColor = "#C7E19E";
  DD_PG_BorderStyle = "solid";
  DD_PG_SeparatorSize = 1;
  DD_PG_SeparatorColor = "#C7E19E";
  DD_PG_ImageSrc = "menu/right.gif";
  DD_PG_ImageSrcOver = "menu/right.gif";
  DD_PG_ImageSrcLeft = "menu/left.gif";
  DD_PG_ImageSrcLeftOver = "menu/left.gif";
  
  DD_PG_ImageSize = 16;
  DD_PG_ImageHorizSpace = 1;
  DD_PG_ImageVertSpace = 2;
  
  DD_PG_KeepHilite = true;
  DD_PG_ClickStart = 0;
  DD_PG_ClickKill = false;
  DD_PG_ChildOverlap = 5;
  DD_PG_ChildOffset = 0;
  DD_PG_ChildPerCentOver = null;
  DD_PG_TopSecondsVisible = .5;
  DD_PG_StatusDisplayBuild =1;
  DD_PG_StatusDisplayLink = 0;
  DD_PG_UponDisplay = null;
  DD_PG_UponHide = null;
  DD_PG_RightToLeft = true;
  
  DD_PG_CreateTopOnly = 1;
  DD_PG_ShowLinkCursor = 1;
  DD_PG_NSFontOver = true;


function getHTTPObject() 
	{
		if (typeof XMLHttpRequest != 'undefined') {
		    return new XMLHttpRequest();
		}
		try {
		    return new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
		    try {
		        return new ActiveXObject("Microsoft.XMLHTTP");
		    } catch (e) {}
		}
		return false;
	}
function KWSearch(instr)
{
		//alert(pageurl);
		if(String(instr).length>1)
		{
		var http = getHTTPObject();
		http.open("GET", "search_div.asp?q="+instr+"&rnd="+Math.random(), true);
		http.onreadystatechange = function() {
			if (http.readyState == 4) {
				ShowKWResults(http.responseText);
			}
		}
		http.send(null);
		}
}
function ShowKWResults(istr)
{
	document.getElementById("kwres").innerHTML = istr;
	document.getElementById("kwres").style.display="block";
	document.getElementById("kwres").style.visibility="visible";
}
function HideKWResults()
{
	document.getElementById("kwres").innerHTML = "";
	document.getElementById("kwres").style.display="none";
	document.getElementById("kwres").style.visibility="hidden";
}

function ShowEx(sq)
	{
		document.getElementById("ex"+sq).style.visibility="visible";
	}
	function HideEx(sq)
	{
		document.getElementById("ex"+sq).style.visibility="hidden";
	}
function BasketPopup(rurl)
{
	var iht = "<iframe src=../asp/ajaxorder.asp?a="+rurl+" frameborder=0 width=260 height=180></iframe>"
	if(document.body.scrollTop)
		ttop = document.body.scrollTop + (document.body.clientHeight/3);
	else
	 	ttop = document.documentElement.scrollTop + (document.documentElement.clientHeight/3);
	if(document.body.scrollTop==0&&ttop>1000)
		ttop=document.body.clientHeight/3;
	if(ttop==0)
		ttop=200;
	document.getElementById("languagepopup").style.top=ttop;
	document.getElementById("languagepopup").style.visibility="visible";
	document.getElementById("languagepopup").style.display="block";
	document.getElementById("ifid").innerHTML=iht;
}
function AB(unr)
	{
	try {
		var http = getHTTPObject();
		var ustr = "ajaxorder.asp?ajaxadd=true&q="+unr+"&r="+Math.random();
		http.open("GET", ustr, true);
		http.onreadystatechange = function() {
			if (http.readyState == 4) {
				if(http.responseText=="basket_full"||http.responseText=="15")
				{
					//document.getElementById("basketimage").src = "../images/pm_basket15.gif";
					if(http.responseText=="15") {
						var iid = "b_id_"+String(unr);
						document.getElementById(iid).src="../images/res_basket_in.gif";
						}
					BasketPopup("1")
					
				}
				else
				{
					//document.getElementById("basketimage").src = "../images/pm_basket"+http.responseText+".gif";
					var iid = "b_id_"+String(unr);
					//document.getElementById(iid).src="../images/res_basket_in.gif";
                    document.getElementById(iid).className="image_add_cart_in";
				}
				
			}
		}
		http.send(null);
		return false;
		}
		catch (e) {
		return true;
		}
	}
function hoverBasket(inobj, way)
	{
		var cn = new Image();
		var cur_image = String(inobj.src);
		var this_image = cur_image.substr(cur_image.length-14,14);
		if(this_image=="res_basket.gif"&&way==1)
			cur_image = "../images/res_basket_on.gif";
		if(this_image=="_basket_on.gif"&&way==2)
			cur_image = "../images/res_basket.gif";
		if(this_image=="_basket_in.gif"&&way==1)
			cur_image = "../images/res_basket_in_on.gif";
		if(this_image=="sket_in_on.gif"&&way==2)
			cur_image = "../images/res_basket_in.gif";
		cn.src = cur_image;
		inobj.src = cur_image;
	}
//-->
