
<!-- Begin
function popupImage(url, imageHeight, imageWidth) {
	var newImageHeight = (parseInt(imageHeight) + 40);
	var yPos = ((screen.height / 2) - (parseInt(newImageHeight) / 2));
	var xPos = ((screen.width / 2) - (parseInt(imageWidth) / 2));
	
	imageWindow = window.open(url,'popupImages','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=' + imageWidth + ',height=' + newImageHeight + ',screenY=' + yPos + ',screenX=' + xPos + ',top=' + yPos + ',left=' + xPos);

	imageWindow.moveTo(xPos, yPos);
	imageWindow.resizeTo(parseInt(imageWidth), parseInt(newImageHeight));
	
	if (window.focus) {
		imageWindow.focus();
	}
}

function right(e) {
	if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
		return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && 
			(event.button == 2 || event.button == 3)) {
		alert("Not supported");
		return false;
	}
	return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;

// Typical application to Zoom onClick
//    <img src="../../StdImages/One.gif" width="75"  height="56" border="0"
//     onmouseover="javascript:izClick(this,'*LargeImage*',*Width,*Height*,*Speed*);"  />
// Typical application to Zoom onMouseOver/onMouseOut
//    <img src="../../StdImages/One.gif" width="75"  height="56" border="0"
//     onmouseover="javascript:izZoom(this,'*LargeImage*',*Width,*Height*,*Speed*);"
//     onmouseout="javascript:izZoom(this);"
//  />
// where
// *LargeImage* = The large image to zoom   (string)
// *Width*      = the maximum zoom width    (digits)
// *Height*     = the maximum zoom height   (digits)
// *Speed*     = the zoom speed (optional)  (digits)


// Customising Variables
var izLoading='Loading.gif'; // the image to display as large images are loading
var izZIndex=0;              // the base Z-Index for the images

// No Need to Change
// Set Arrays and Initial Conditions for izLk & ThisPhoto
var izObjAry=new Array()
var izObjNu=0;
var izLk=0;
var izInc,izAdd;
var izCursor='pointer';
if (document.all){ izCursor='hand'; }

//PreLoad Loading Image
var Loading = new Image();
 Loading.src=izLoading;

function izClick(izobj,izphoto,izmw,izmh,izspd){
  izobj.style.cursor='hand';
  if (!izobj.getAttribute('title')){
   izobj.title='Click to Zoom In/Click to Zoom Out';
  }
// Set izspd to 1 if izspd is not set in Zoom function call
 if (izspd==null){ izobj.izspd=1;}
 izobj.onclick=function(){ izZoom(izobj,izphoto,izmw,izmh,izspd); }
}


function izZoom(izobj,izphoto,izmw,izmh,izspd){
 if (izLk){ return; }
// prevents re-Zoom while Zooming
 izLk=1;
// Convert Local Variables to Global
 izObj=izobj;
 if (izspd==null){ izObj.izspd=1;}
// izspd of Zoom
// Check izObjAry for izObj and add if required
 izAdd=1;
 for (var iz0=0;iz0<izObjAry.length;iz0++){
  if (izObjAry[iz0]==izObj){
   izObj.src=izObj.large.src;
   izAdd=0;
  }
 }
 if (izAdd){
  izObj.clone=izObj.cloneNode(true);
  if (!izObj.izspd){ izObj.izspd=izspd; }
  izObj.izt=izPos(izObj)[1];
  izObj.izl=izPos(izObj)[0];
  izObjAry[izObjNu]=izObj;
  izObj.style.position='absolute';
  izObj.style.zIndex=izZIndex*1+1;
  izObj.style.top=izObj.izt+'px';
  izObj.style.left=izObj.izl+'px';
  izObj.minw=izObj.offsetWidth;
  izObj.minh=izObj.offsetHeight;
  izObj.maxh=izmh;
  izObj.maxw=izmw;
  izObj.thumb=izObj.src;
  izObj.src=Loading.src; // change Thumb Image to 'Loading' Large Image
  izObj.zoom='In';
  izObj.large=new Image();
  izObj.large.obj=izObj;
  izObj.large.onload=function(){ izObj.large.obj.src=this.src; }
  izObj.large.src=izphoto;
  izObj.parentNode.insertBefore(izObj.clone,izObj);
  izObjNu++;
 }

// izspd of Zoom
 izInc=((izObj.maxw-izObj.minw)/100);   // Account for Zoom In size
 izInc=izInc*izObj.izspd;           // Speed specified in Local variable
 // Calculate Ratios
 izRatio=(izObj.maxh/izObj.maxw);

// Establish Photo and Zoom
 if (izObj.zoom=='Out'){
  izZoomOut();
  izObj.zoom='In';
 }
 else {
  izObj.style.zIndex=izZIndex*1+2;
  izZoomIn();
  izObj.zoom='Out';
 }
}

function izZoomIn(){
 izObj.width=izObj.offsetWidth+izInc;
 izObj.height=izObj.offsetWidth*izRatio;
 izObj.style.top=(izObj.izt-(izObj.offsetHeight-izObj.minh)/2)+'px';
 izObj.style.left=(izObj.izl-(izObj.offsetWidth-izObj.minw)/2)+'px';

 if (izObj.offsetWidth<izObj.maxw){ setTimeout('izZoomIn();',10); }
 else {
  izLk=0;
  izObj.width=izObj.maxw;
  izObj.height=izObj.maxh;
 }
}

function izZoomOut(){
 izObj.width=izObj.offsetWidth-izInc;
 izObj.height=izObj.offsetWidth*izRatio;
 izObj.style.top=((izObj.izt+izObj.minh/2)-(izObj.offsetHeight/2))+'px';
 izObj.style.left=((izObj.izl+izObj.minw/2)-(izObj.offsetWidth/2))+'px';
 if (izObj.offsetWidth>izObj.minw){ setTimeout('izZoomOut()',10); }
  else {
   izLk=0;
   izObj.width=izObj.minw;
   izObj.height=izObj.minh;
   izObj.style.zIndex=izZIndex;
   izObj.style.top=(izObj.izt)+'px';
   izObj.style.left=(izObj.izl)+'px';
   izObj.src=izObj.thumb;
  }
}

function izPos(iz){
 izObjLeft = iz.offsetLeft;
 izObjTop = iz.offsetTop;
 while(iz.offsetParent!=null){
  izObjParent=iz.offsetParent;
  izObjLeft+=izObjParent.offsetLeft;
  izObjTop+=izObjParent.offsetTop;
  iz=izObjParent;
 }
 return [izObjLeft,izObjTop];
}

// docwrite.js
function embedFlash(ls_filename,ls_objectid,ln_width,ln_height) {
  document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+ln_width+'" HEIGHT="'+ln_height+'" id="'+ls_objectid+'" ALIGN="">');
  document.write('<PARAM NAME="movie" VALUE="'+ls_filename+'"> <PARAM NAME="quality" VALUE="high"> <PARAM NAME="bgcolor" VALUE="#FFFFFF">');
  document.write('<EMBED src="'+ls_filename+'" quality="high" bgcolor="#FFFFFF" WIDTH="'+ln_width+'" HEIGHT="'+ln_height+'" NAME="'+ls_objectid+'" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
  document.write('</OBJECT>');
}
//  End -->
