<!--

function getStyleObj(objId)
{
	if(document.getElementById && document.getElementById(objId)){
		return document.getElementById(objId); // W3C DOM
	}
	else if(document.all && document.all(objId))
		return document.all(objId); // MSIE 4+
	else if (document.layers && document.layers[objId])
		return document.layers[objId]; // NN 4+
	else
		return false;		
}

displayedMenu = "";
function showMenu(elm,xPos)
{
	if(displayedMenu && displayedMenu!=elm)
	{
		hideMenu(displayedMenu)
	}
	var obyek = getStyleObj(elm);
	obyek.style.position = "relative";
	obyek.style.left = xPos;
	obyek.style.visibility = "visible";
	displayedMenu = elm;
}

function hideMenu(elm)
{
	if(!displayedMenu) return;
	if(elm == "") elm = displayedMenu;
	var obyek = getStyleObj(elm);
	obyek.style.position = "absolute";
	obyek.style.visibility = "hidden"
}

posX = 10;
posY = 10;
if (parseInt(navigator.appVersion.charAt(0))>=4){
	var isNN=(navigator.appName=="Netscape")?1:0;
	var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;
}

function popImg(imgURL,imgTitle,smallWidth,smallHeight){
defaultWidth  = smallWidth + 20;
defaultHeight = smallHeight + 20;
var optNN='scrollbars=yes,width='+defaultWidth+',height='+defaultHeight+',left='+posX+',top='+posY;
var optIE='scrollbars=yes,width=150,height=100,left='+posX+',top='+posY;
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
	writeln('<html>\n<head>\n\t<title>Loading...</title>\n\t<style>body{margin:0px;}</style>');
	writeln('\t<style type="text/css">\n\t<!--');
	writeln('\t\tbody{background:#99ccff;margin:0px}');
	writeln('\t// -->\n\t</style>');
	writeln('\t<sc'+'ript language="JavaScript">\n\t<!--');
	writeln('\tvar isNN,isIE;');
	writeln('\tif(parseInt(navigator.appVersion.charAt(0))>=4){');
	writeln('\t\tisNN=(navigator.appName=="Netscape")?1:0;');
	writeln('\t\tisIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;\n\t}');
	writeln('\tfunction reSizeToImage(){');
	writeln('\t\tif(isIE){');
	writeln('\t\t\twindow.resizeTo(150,150);');
	writeln('\t\t\twidth=150-(document.body.clientWidth-document.images[0].width);');
	writeln('\t\t\theight=150-(document.body.clientHeight-document.images[0].height);');
	writeln('\t\t\twindow.resizeTo(width,height);\n\t\t}');
	writeln('\t\tif(isNN){');       
	writeln('\t\t\twindow.innerWidth=document.images["itemProduct"].width;');
	writeln('\t\t\twindow.innerHeight=document.images["itemProduct"].height;\n\t\t}\n\t}');
	writeln('\tfunction doTitle(){document.title="GetAmped - '+imgTitle+'";}');
	writeln('\t// -->\n\t</sc'+'ript>');
	writeln('</head>');
	writeln('\n<body scroll="no" onload="javascript: reSizeToImage();doTitle();self.focus()">');
	writeln('\n<img name="itemProduct" src="'+imgURL+'" style="display:block" alt="'+imgTitle+' image">\n\n</body>\n</html>');
	close();		
}
}

// -->