// *************** START ROLLOVER ******************* //


function rollon(imgName) {
  if (document.images)
    document.images['pic'].src = eval(imgName + ".src");
}

function rolloff(imgName) {
  if (document.images)
    document.images['pic'].src = eval(imgName + ".src");
}

// ********** END ROLLOVER ************* //



//       **********************
// POPUP script that passes the image url to the popup.htm page.

function popwin(url,w,h){
	window.open(url,'popup','resizable=1,top=150,left=150,width='+w+',height='+h);
}

function popwin2(url,w,h){
	window.open(url,'popup','scrollbars=1,resizable=1,top=150,left=150,width='+w+',height='+h);
}

function popup(sPicURL) {
	window.open("http://architecturallimestone.com/popup.htm?"+sPicURL, "pop", "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,height=475,width=356");
}

   var arrTemp=self.location.href.split("?");
   var picUrl = (arrTemp.length>0)?arrTemp[1]:"";
   var NS = (navigator.appName=="Netscape")?true:false;

     function fitpic() {
       iWidth = (NS)?window.innerWidth:document.body.clientWidth;
       iHeight = (NS)?window.innerHeight:document.body.clientHeight;
       iWidth = document.images[0].width - iWidth;
       iHeight = document.images[0].height - iHeight;
       window.resizeBy(iWidth, iHeight);
	    window.moveTo((screen.width/4),(screen.height/4));

       self.focus();
     };
