var IE=(navigator.appName.indexOf("Microsoft Internet Explorer")!=-1);
var NS=(navigator.appName.indexOf("Netscape")!=-1);
fullLoad=false;
start();
function start() {
if(fullLoad) {
getdim();
}
else {
setTimeout ('start()',50);
}
}
function getdim() {
if(NS) {
w=window.innerWidth;
h=window.innerHeight;
}
if(IE) {
w=document.body.clientWidth;
h=document.body.clientHeight;
}
w=parseInt(w/2)*2;
marge=parseInt((w-720)/4)*2;
chkload();
}
function chkload() {
if (menuok && fullLoad) {
centerMenu();
centering();
}
else setTimeout ('chkload()',50);
}
function centerMenu() {
document.getElementById("homeMenu").style.left=(marge)+"px";
document.getElementById("mainMenu").style.left=(marge)+"px";
document.getElementById("subMen1").style.left=(marge/10)+"em";
document.getElementById("subMen2").style.left=(marge/10+49)+"em";
document.getElementById("subMen4").style.left=(marge/10+13)+"em";
document.getElementById("homeMenu").style.visibility="visible";
document.getElementById("mainMenu").style.visibility="visible";
}
function centering() {
document.getElementById("block").style.left=(marge)+"px";
document.getElementById("block").style.visibility="visible";
}
var viewWin=null;
var makewin=true;
var prop="resizable=no,width=380,height=568,screenX=20,left=20,screenY=0,top=0,";
function popwin(imgUrl,sizx,sizy,item,specs) {
viewWin=window.open("","viewWin",prop);
viewWin.document.open();
viewWin.document.write('<BODY style="background-color:#111111;font-family:Arial,Helvetica;color:#E1E1D4;margin:0;">');
viewWin.document.write('<DIV style="width:380px;height:360px;"><IMG src="'+imgUrl+'" width='+sizx+' height='+sizy+' style="position:absolute;left:'+((380-sizx)/2)+'px;top:20px;border:#FFFFFF 1px solid;"></DIV>');
viewWin.document.write('<DIV style="position:absolute;bottom:48px;left:20px;font-size:11px;letter-spacing:1px;">');
lines=specs.split("|");
for(i=0;i<lines.length;i++) {
viewWin.document.write('<SPAN style="color:#FFFFFF;line-height:16px;">'+lines[i]+'</SPAN><BR>');
}
viewWin.document.write('</DIV>');
viewWin.document.write('<DIV style="position:absolute;bottom:26px;right:20px;font-size:16px;font-weight:bold;text-align:right;">'+item+' ::::</DIV>');
viewWin.document.write('</BODY>');
viewWin.document.close();
viewWin.focus();
makewin=false;
}
function closewin() {
if(viewWin!=null && !viewWin.closed)
viewWin.close();
}