
<!-- Begin function for resizing enlargement screens - arg 1 is required width, arg 2 is required height

// **************************************************************
// AUTHOR: Andrew Green (copyright 2004)
// URL: http://www.andrewgreen.biz
// Feel free to use this script - just leave this message intact.
// **************************************************************

function ResizeScreen(Width,Height,flag)
{
if (navigator.appName != "Microsoft Internet Explorer") return; 
window.moveTo(0,0);
var PageWidth = Width;	
if (Height == null) 
	{PageHeight = screen.availHeight}
else
	{PageHeight = Height} 	
if (screen.availHeight > 768)
	{PageHeight = 768}
else	
	{if (screen.availHeight < Height) 
		{PageHeight = screen.availHeight}} 	 	
if (screen.availWidth > 1024)
	{PageWidth = 1024}
else
	{if (screen.availWidth < Width) 
		{PageWidth = screen.availWidth}};
window.resizeTo(PageWidth,PageHeight);
}

// End -->

<!-- Begin function for generating text email link 

// **************************************************************
// AUTHOR: Andrew Green (copyright 2004)
// URL: http://www.andrewgreen.biz
// Feel free to use this script - just leave this message intact.
// **************************************************************

function GenerateEmailLink(domain,emailrecipient,linktype,linktext,styleclass,atagtitle,emailsubject,emailbody,atagid)
{
var atsign = '@';
if ((atagid == '') || (arguments.length < 9)) 
	{idattribute=''} 
else 
	{idattribute = 'id="' + atagid + '" '}
if ((emailbody == '') || (arguments.length < 8))  
	{emailbodysubattribute=''} 
else
	{emailbodysubattribute = '&body=' + emailbody};
atagcode = '<a class="' 
	+ styleclass + '" ' 
	+ idattribute
	+ 'href="mailto:'
	+ emailrecipient
	+ atsign
	+ domain
	+ '?subject='
	+ emailsubject 
	+ emailbodysubattribute
	+ '" title="'
	+ atagtitle
	+ '">';
(linktype == 'text')? 
	linkcode = linktext + '</a>' : 
	linkcode = emailrecipient + '@' + domain + '</a>';
document.write (atagcode);
document.write (linkcode);
}

// End -->

<!-- Begin function for generating email anchor tag 

// **************************************************************
// AUTHOR: Andrew Green (copyright 2004)
// URL: http://www.andrewgreen.biz
// Feel free to use this script - just leave this message intact.
// **************************************************************

function GenerateEmailAnchor(domain,emailrecipient,atagtitle,emailsubject,emailbody)
{
var atsign = '@';
if ((emailbody == '') || (arguments.length < 5))  
	{emailbodysubattribute=''} 
else 
	{emailbodysubattribute = '&body="' + emailbody};
atagcode = '<a class="' 
	+ '" href="mailto:'
	+ emailrecipient
	+ atsign
	+ domain
	+ '?subject='
	+ emailsubject 
	+ emailbodysubattribute
	+ '" title="'
	+ atagtitle
	+ '">';
document.write (atagcode);
}

// End -->

<!-- Begin function for setting the style for an image (ImageId is the 'id' of the image, TransNo is the transition number) to be shown with a transition

function SetImageStyle(ImageId,TransNo)
{
var StyleFilter ="revealTrans(Duration=2.0, Transition=";
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4))    
	{ 
	ImageId.style.filter = StyleFilter += TransNo += ")";	
	ImageId.style.visibility = "hidden";
   	}
else
    	{ 
	ImageId.style.visibility = "visible";
    	}
}
// End -->

<!-- Begin function for applying a transition to a particular image id (oImg)

function applyTransition (oImg)
{
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4))    
    {	oImg.filters[0].Apply();
    	oImg.style.visibility = "visible";
    	oImg.filters[0].Play();
    }
else
    { 
	oImg.style.visibility = "visible";
    }
}

// End -->

<!-- Begin function for add favorites/bookmark reminder link

function FavPrompt (PageUrl,PageTitle)
{

if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) 
	{
	var msg = '<A class="limebluebold12" HREF="javascript:window.external.AddFavorite(';
	msg += "'";
  	msg += PageUrl;
	msg += "'";
	msg += ',';
	msg += "'";
	msg += PageTitle;
	msg += "'";
	msg += ')">';
	document.write(msg);
  	document.write('Click here</a>');
  	document.write(' to add this page to your Favorites!');
	}

else 
	{
  	var msg = "Don't forget to bookmark this page!";
  	if(navigator.appName == "Netscape") 
  		{  
    		msg += "  (CTRL+SHIFT+D)";
    		document.write(msg);
  		}
  	else
  		{
    		var msg = "Don't forget to add this page to your favorites!";
    		document.write(msg);
		}
	}
}
// End -->

function JustSoPicWindow(imageUrl,imageWidth,imageHeight,imageName,bgcolor,hugger,hugMargin) 
{
// by E Michael Brandt of ValleyWebDesigns.com - Please leave these comments intact.
// version 3.0.4 
// modified by Andrew Green - www.andrewgreen.biz - to remove automatic close and include stylesheet in html source 

	if (bgcolor=="") {
		bgcolor="#FFFFFF";
	}
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

	if(w<740){
	  var lift=0.90;
	}
	if(w>=740 & w<835){
	  var lift=0.91;
	}
	if(w>=835){
	  var lift=0.93;
	}
	if (imageWidth>w){	
	  byFactor = w / imageWidth;			
	  imageWidth = w;
	  imageHeight = imageHeight * byFactor;
	}
	if ((imageHeight)>h-adj){
	  byFactor = h / imageHeight;
	  imageWidth = (imageWidth * byFactor);
	  imageHeight = h; 
	}
	   
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;

	if ((imageHeight)>scrHeight){
  	  imageHeight=imageHeight*lift;
	  imageWidth=imageWidth*lift;
	}

	var posLeft=0;
	var posTop=0;

	if (hugger == "hug image"){
	  if (hugMargin == ""){
	    hugMargin = 0;
	  }
	  var scrHeightTemp = imageHeight - 0 + 2*hugMargin;
	  if (scrHeightTemp < scrHeight) {
		scrHeight = scrHeightTemp;
	  } 
	  var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
	  if (scrWidthTemp < scrWidth) {
		scrWidth = scrWidthTemp;
	  }
	  
	  if (scrHeight<100){scrHeight=100;}
	  if (scrWidth<100){scrWidth=100;}

	  posTop =  ((h-(scrHeight/lift)-adj)/2);
	  posLeft = ((w-(scrWidth)-adj)/2);
 	}

	if (imageHeight > (h*lift)-adj || imageWidth > w-adj){
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}
	posTop = parseInt(posTop);
	posLeft = parseInt(posLeft);		
	scrWidth = parseInt(scrWidth); 
	scrHeight = parseInt(scrHeight);
	
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1){
	  var args= new Array();
	  args[0]='parent';
	  args[1]=imageName;
	  var i ; document.MM_returnValue = false;
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	} else {
	newWindow = window.open("enlargement.html","newWindow","width="+scrWidth+",height="+(scrHeight+30)+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+imageName+'</title><link rel="stylesheet" type="text/css" href="style.css"><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+'>');  
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td>');
	newWindow.document.write('<img src="'+imageUrl+'" width='+imageWidth+' height='+imageHeight+' alt="' +imageName+ '" title="' +imageName+ '">');
	newWindow.document.write('</td></tr></table><center><a href="javascript:self.close()" title="click here to close this window">close</a></center></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}
//-->

<!-- Begin function for getting correct object prefix, according to how browser treats document elements-->

function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

<!-- End -->

<!-- Begin function for handling mouseover and out style changes on gift type navi links-->

function NaviStyleChange(type,overandout)
{
  var TextId = type + 'text';
  var TextObjectName = new getObj(TextId);
  if (overandout == 'over')
  {
	TextObjectName.style.color='#DCDCDC'	
  }
  else
  {
	TextObjectName.style.color='white'	
  }  
}

<!-- End -->