<!--
//---------------------------------------------------------------
function datedescr(){
  var str;
  var d = new Date();
  //  var MonthName=["January", "February", "March", "April", "May", "June","July", 	"August", "September", "October", "November", "December"];
//var WeekDayName=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];	
  
  switch (d.getDay()+1){
	case 1 :
	 str="Sunday, "
	 break;
	case 2 :
	 str="Monday, "
	 break;
	case 3 :
	 str="Tuesday, "
	 break;
	case 4 :
	 str="Wednesday, "
	 break;
	case 5 :
	 str="Thursday, "
	 break;
	case 6 :
	 str="Friday, "
	 break;
	case 7 :
	 str="Saturday, "
	 break;
  }
  
  
  switch (d.getMonth()+1) {
	case 1 :
	 str= str + " January"
	 break;
	case 2 :
	 str= str + " February"
	 break;
	case 3 :
	 str= str + " March"
	 break;
	case 4 :
	 str= str + " April"
	 break;
	case 5 :
	 str= str + " May"
	 break;
	case 6 :
	 str= str + " June"
	 break;
	case 7 :
	 str= str + " July"
	 break;
	case 8 :
	 str= str + " August"
	 break;
	case 9 :
	 str= str + " September"
	 break;
	case 10 :
	 str= str + " October"
	 break;
	case 11 :
	 str= str + " November"
	 break;
	case 12 :
	 str= str + " December"
	 break;
  }
  str=str +" " +d.getDate() 

  str= str + ", " + d.getYear()
  return str
}
//---------------------------------------------------------------
// =======================A========================
// Set the horizontal and vertical position for the popup

PositionX = 100;
PositionY = 100;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 700;
defaultHeight = 500;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

//var AutoClose = true;
var AutoClose = false;

// Do not edit below this line...
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function ZoomImg(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=110-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["Chris"].width;');writeln('window.innerHeight=document.images["Chris"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=FFFFFF scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=FFFFFF scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<div align="center"><img name="Chris" src='+imageURL+' style="display:block"></div></body></html>');
close();		
}}
// =======================A Telos========================
//********************************B***************************************  
	function ZoomImg1(xImage,Caption){
		var xImg = new Image();xImg.src=xImage;
		
		
		var xWidth=xImg.width+10; xHeight=xImg.height+140;
		var popup=window.open('about:blank',"","width="+xWidth+", height="+xHeight)
		popup.resizeTo(xWidth,xHeight);
		popup.moveTo((screen.width-xWidth)/2,(screen.height-xHeight)/2)
		d=popup.document;
		// these lines set the foreground & background color.
		d.bgcolor="#FFFFFF"
		d.fgcolor="#000000"
		d.write('<title>'+Caption+'</title>');
		d.write('<Body background="#000000"><center><form>');	//this line sets the image as background
		// the image tag.
		d.write('<img name="img" src="Img/Layout/a.gif" alt="" border=0 ><br><br>');
		d.write('<input type="button" value="Print" onClick="self.print()" style="color:background">')
		d.write('<input type="button" value="Close" onClick="self.close()" style="color:background">')
		d.write('</form></center>')
		// these lines displays the image.
		d.images["img"].src=xImage
		d.images["img"].title=Caption
		d.images["img"].alt=Caption
		d.close();
	}
//********************************B***************************************  
//********************************B***************************************  
	function ZoomImg22(xImage,Caption){
		var xImg = new Image();xImg.src=xImage;
		var xWidth=xImg.width+10; xHeight=xImg.height+140;
		var popup=window.open("","","width="+xWidth+", height="+xHeight)
		popup.resizeTo(xWidth,xHeight);
		popup.moveTo((screen.width-xWidth)/2,(screen.height-xHeight)/2)
		d=popup.document;
		// these lines set the foreground & background color.
		d.bgcolor="#FFFFFF"
		d.fgcolor="#000000"
		d.write('<title>'+Caption+'</title>');
		d.write('<Body background="#000000"><center><form>');	//this line sets the image as background
		// the image tag.
		d.write('<img name="img" src="Img/Layout/a.gif" alt="" border=0 ><br><br>');
		d.write('<input type="button" value="Print" onClick="self.print()" style="color:background">')
		d.write('<input type="button" value="Close" onClick="self.close()" style="color:background">')
		d.write('</form></center>')
		// these lines displays the image.
		d.images["img"].src=xImage
		d.images["img"].title=Caption
		d.images["img"].alt=Caption
		d.close();
	}
//********************************B***************************************  
//+++++++++++++++++++++++C++++++++++++++++++++++++++++++++
var popbackground="lightskyblue" //specify backcolor or background image for pop window
var windowtitle="Image Window"  //pop window title

function detectexist(obj){
return (typeof obj !="undefined")
}

function jkpopimage(imgpath, popwidth, popheight, textdescription){

function getpos(){
leftpos=(detectexist(window.screenLeft))? screenLeft+document.body.clientWidth/2-popwidth/2 : detectexist(window.screenX)? screenX+innerWidth/2-popwidth/2 : 0
toppos=(detectexist(window.screenTop))? screenTop+document.body.clientHeight/2-popheight/2 : detectexist(window.screenY)? screenY+innerHeight/2-popheight/2 : 0
if (window.opera){
leftpos-=screenLeft
toppos-=screenTop
}
}

getpos()
var winattributes='width='+popwidth+',height='+popheight+',resizable=yes,left='+leftpos+',top='+toppos
var bodyattribute=(popbackground.indexOf(".")!=-1)? 'background="'+popbackground+'"' : 'bgcolor="'+popbackground+'"'
if (typeof jkpopwin=="undefined" || jkpopwin.closed)
jkpopwin=window.open("","",winattributes)
else{
//getpos() //uncomment these 2 lines if you wish subsequent popups to be centered too
//jkpopwin.moveTo(leftpos, toppos)
jkpopwin.resizeTo(popwidth, popheight+30)
}
jkpopwin.document.open()
jkpopwin.document.write('<html><title>'+windowtitle+'</title><body '+bodyattribute+'><img src="'+imgpath+'" style="margin-bottom: 0.5em"><br>'+textdescription+'</body></html>')
jkpopwin.document.close()
jkpopwin.focus()
}
