var preloadFlag = false;
var ver = ( parseFloat( navigator.appVersion ) >= 4 );
var msie = ( navigator.appVersion.indexOf( "MSIE" ) != -1 );

if(ver)
{
 if(msie) document.write("<link rel='stylesheet' type='text/css' href='js_css/s1ie.css'>");
 else document.write("<link rel='stylesheet' type='text/css' href='js_css/s1nn.css'>");
}
else document.write("<link rel='stylesheet' type='text/css' href='js_css/s1ie3.css'>");

function openPic(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
  if(typeof(posLeft)=='undefined') posLeft = ( screen.width - imageWidth ) >> 1;
  if(typeof(posTop)=='undefined') posTop = ( screen.height - imageHeight ) >> 1;
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<a href="javascript:close()"><img border=0 src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); 
	newWindow.document.write('</a></body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function newImage(arg){if(document.images){rslt=new Image();rslt.src=arg;return rslt;}}

function chgImg(){if (document.images && (preloadFlag == true)){for(var i=0;i<chgImg.arguments.length;i+=2){document[chgImg.arguments[i]].src=chgImg.arguments[i+1];}}}

function preloadImages() {
  if (document.images) {

    n01 = newImage("images/n02o.gif");
    n02 = newImage("images/n02o.gif");
    n03 = newImage("images/n03o.gif");
    n04 = newImage("images/n04o.gif");
    n05 = newImage("images/n05o.gif");
    n06 = newImage("images/n06o.gif");
    n07 = newImage("images/n07o.gif");

    preloadFlag = true;
  }
}

