function makewindow(url,name,wi,hi,scroll) {  
if (!scroll) { scroll = 0; }
mywin = window.open(url,name,'width=' + wi + ',height=' + hi + ',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=' + scroll); }


function showhide(obj,path) {
var whichdiv = obj + "div";

if (document.all || document.getElementById) {
	var theobj = document.all ? document.all[whichdiv] : document.getElementById(whichdiv);

		if (theobj.style.display == "block") { 
		theobj.style.display = "none";
		document[obj + "_img"].src = path + obj + '.gif';
 		}
		else { 
		theobj.style.display = "block";
		document[obj + "_img"].src = path + obj + '_h.gif';
		}
}

}






versionButton = 1     
browserVer = parseInt(navigator.appVersion); 
if (browserVer >= 3) versionButton = "3";

   function img_act(imgName,Num) {
     if (versionButton == "3") {
        imgOn = eval(imgName + "on.src");
        document [imgName].src = imgOn;
	if (Num == "1") {
	var numon = imgName + '2.jpg';
	document ['allbig'].src = '/images/hp/mainpromos/' + numon;
	} 
     }
   }

   function img_inact(imgName,Num) {
     if (versionButton == "3") {
        imgOff = eval(imgName + "off.src");
        document [imgName].src = imgOff;
	if (Num == "1") {
	document ['allbig'].src = '/images/hp/mainpromos/allinone.jpg';
	} 
     }

   }








function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

function makewindow(url,name,wi,hi,scroll) {  
if (!scroll) { scroll = 0; }
mywin = window.open(url,name,'width=' + wi + ',height=' + hi + ',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=' + scroll); }



