
var popupWindow=null;
function popup(mypage,myname,w,h,pos,infocus){
if(pos=='random'){
LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=='center'){
LeftPosition=(screen.width)?(screen.width-w)/2:100;
TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!='random') || pos==null){LeftPosition=10;TopPosition=10;}settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
popupWindow=window.open('',myname,settings);
if(infocus=='front'){popupWindow.focus();popupWindow.location=mypage;}
}






 
        if ((navigator.userAgent.indexOf("Mac") != -1))  
                        document.write("<link rel='stylesheet' href='css/mac_ie.css'>")  
if ((navigator.userAgent.indexOf("Linux") != -1))  
                        document.write("<link rel='stylesheet' href='css/pc.css'>")     
if (navigator.userAgent.indexOf('Win') != -1){  
                        if (navigator.appName.indexOf('Netscape') != -1) { 
                                document.write("<link rel='stylesheet' href='css/pc.css'>") 
                                } 
                                else {  
                                        document.write("<link rel='stylesheet' href='css/pc_ie.css'>") 
                                } 
                        } 

