// (C) 2003 CodeLifter.com
// Source: CodeLifter.com
// Do not remove this header

// Set the message for the alert box
am = "This function is disabled! Please contact All Stars Photography for more information.";

// do not edit below this line
// ===========================
bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {
   if (bNS && e.which > 1){
      alert(am)
      return false
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;


/* setPic('FILE_NAME','placeholder',this); */
function setPic(link_href,PlaceID,WhatThumb) {
	var ActiveAlert = "activeThumb";
	for (i=0;i<document.getElementsByTagName('a').length; i++) {
		if (document.getElementsByTagName('a').item(i).className == ActiveAlert) {
			document.getElementsByTagName('a').item(i).className = "";
		}
	}
	WhatThumb.className = ActiveAlert;
	
	var imgPreloader = new Image();
	imgPreloader.onload = function(){
		document.getElementById(PlaceID).src = link_href;
		document.getElementById(PlaceID).width = imgPreloader.width;
		document.getElementById(PlaceID).height = imgPreloader.height;
	};
	imgPreloader.src = link_href;
}