function setLargeImage(imagename) {
	document.getElementById('lilink').href = "images/" + imagename + ".jpg";
}

function setLgImg(imagename) {
	document.getElementById('lilink').href = imagename;
}

function viewLargeImage(whichone) {
	window.open.location.href = whichone;
}


function popThis(divx,divy)
{
// get the size of the browser window
var winW = 100, winH = 100;
if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winW = window.innerWidth;
  winH = window.innerHeight;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  winW = document.body.offsetWidth;
  winH = document.body.offsetHeight;
 }

// get the scrolling offset (the distance a user has scrolled down from the top of the page)
var scrOfX = 0, scrOfY = 0;
if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }
}

// properties for semi-transparent div
document.getElementById('popupbg').style.visibility = "visible"; 
document.getElementById('popupbg').style.width = (winW - 16) + "px";
document.getElementById('popupbg').style.height = (winH + scrOfY) + "px";

// properties for iframe fix
document.getElementById('hideme').style.visibility = "visible"; 
document.getElementById('hideme').style.left = ((winW/2)-410) + "px";
document.getElementById('hideme').style.top = (((winH/2)-400) + scrOfY) + "px";

// properties for warning div
document.getElementById('uswarn').style.visibility = "visible"; 
document.getElementById('uswarn').style.width = divx + "px"; 
document.getElementById('uswarn').style.height = divy + "px"; 
document.getElementById('uswarn').style.left = ((winW/2)-200) + "px";
document.getElementById('uswarn').style.top = (((winH/2)-100) + scrOfY) + "px";

}


function clearpopThis()
{
document.getElementById('popupbg').style.visibility = "hidden";
document.getElementById('hideme').style.visibility = "hidden";
document.getElementById('uswarn').style.visibility = "hidden";
}

