// JavaScript Document

<!--

// For Show/Hide Specification Tables
function toggleList(e){
	element = document.getElementById(e).style;
	element.display == 'none' ? element.display = 'block' : 
	element.display='none';
}

// For Popup without Pic Page, Auto Resize to fit window
function popImage(imageURL,imageTitle){
	
PositionX = 100;
PositionY = 100;
defaultWidth  = 600;
defaultHeight = 600;
var AutoClose = false;
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=400,height=400,left='+PositionX+',top='+PositionY;	
	
	
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Please wait...</title><link rel="stylesheet" type="text/css" href="/style.css">');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(600,600);');
writeln('width=600-(document.body.clientWidth-document.images[0].width);');
writeln('height=600-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width+20,height+20);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["ProductPic"].width+20;');writeln('window.innerHeight=document.images["ProductPic"].height+20;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="ProductPic" src='+imageURL+' style="display:block"></body></html>');
close();		
}}


// For Pic Page Popup 
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

// For URL Page Popup 
function PopupURL(sURL, w, h) {
    window.open(sURL, "", "resizable=1,height=" + h + ",width=" + w + ", left=25, top=25,scrollbars=yes");
  }




//-->

