//DECLARE VARIABLES

//Set expiration date for cookeies

var expdate = new Date();
expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000)); //24 hours from now

//Top page code
var vCodeSeg1 = "<HTML><HEAD><META http-equiv='content-type' content='text/html;charset=ISO-8859-1'><TITLE>Walt Seng Photography</TITLE><STYLE type='text/css'><!--\n.basic   {	color: #938f8c;font-size: 12px;line-height: 15px;font-family: 'ITC Officina Serif Book', Courier;text-decoration: none}\n.ws	 { color: #ff1900; font-weight: bold; font-size: 12px }\nA	 {text-decoration: none}\n--></STYLE></HEAD><BODY bgcolor='black' link='#938f8c' text='#938f8c' vlink='#938f8c' alink='#ff1900'>"
//Opening table code
var vCodeSeg2 = "<TABLE border='0' cellpadding='0' cellspacing='0' width='643' borderColor='black'><TR><TD width='154' valign='top'><img width='155' height='1' src='../media/spacer.gif'><p class='basic'><span class='ws'>Walt Seng Photography</span></p><p class='basic'>1220 West 6th Street<br>Suite 608<br>	Cleveland, OH 44113<br>FX 216&#149;861&#149;5140<br>PH 216&#149;861&#149;3456</p><P class='basic'><img width='1' height='1' src='../media/spacer.gif'></P><P class='basic'><a href='http://www.sengphoto.com/index.html'>Home</a></P><p class='basic'><a href='#' onclick=\"self.close()\">Thumbnails</a></p><p class='basic'><a href='http://www.sengphoto.com/stock_uc.html'>Select New Category</a></p></TD><TD valign='top' align='left'><table border='0' cellpadding='3' cellspacing='2' width='475'><tr><td width='4'><IMG src='../media/spacer.gif' width='1' height='1'></td><td width='297'><IMG src='../media/spacer.gif' width='297' height='5'></td><td width='148'><IMG src='../media/spacer.gif' width='149' height='5'></td></tr><tr><td valign='middle' align='center' width='4'><IMG src='../media/spacer.gif' width='1' height='35'></td><td rowspan='5' bgcolor='#30302f' valign='middle' align='center' width='297'><img src='"
//put first variable here. Image path
var vCodeSeg3 = "' border='0' width='295'><br><span class='basic'>&copy;Walt Seng</span></td><td bgcolor='#30302f' width='148'><span class='basic'>"
//vImageName here
var vCodeSeg4 = "</span></td></tr><tr><td width='4'><IMG src='../media/spacer.gif' width='1' height='35'></td><td width='148' bgcolor='#30302f'><span class='basic'>"
//Description here. We'll work on the variations bit as well as the RFQ later.
var vCodeSeg5 = "</span></td></tr><tr><td width='4'><IMG src='../media/spacer.gif' width='1' height='35'></td><td width='148' bgcolor='#30302f'><span class='basic'></span></td></tr><tr><td width='4'><IMG src='../media/spacer.gif' width='1' height='35'></td><td width='148' bgcolor='#30302f' rowspan='2'><form name='FormName' action='#' method='get'><span class='basic'>Variations?"
//Variations part
var vCodeSeg6= "</span><p><input type='button' name='getEstimate' value='Estimate use for this image' onClick=\"location='stockQuote01.html'\"></p></form></td></tr><tr><td width='4'></td></tr><tr><td width='4'></td><td width='297'></td><td width='148'></td></tr></table></TD></TR></TABLE></BODY></HTML>"

//DECLARE FUNCTIONS


// function to open a new window to display full size image as well as pertinent information

function fImageWindow(vPath,vImageName,vDescript,vVariation){
	SetCookie("cImageName", vImageName,expdate,"/");
	SetCookie("cVariation", vVariation,expdate,"/");
	SetCookie("cDescript",vDescript,expdate,"/");
	SetCookie("cPath",vPath,expdate,"/");
	popwin = open("","ImageWindow","status=1,menubar=1,scrollbars=1,resizable=0,width=675,height=500");
	popwin.document.writeln( vCodeSeg1 + vCodeSeg2 );
	popwin.document.writeln( vPath );
	popwin.document.writeln( vCodeSeg3 );
	popwin.document.writeln( vImageName );
	popwin.document.writeln( vCodeSeg4 );
	popwin.document.writeln( vDescript );
	popwin.document.writeln( vCodeSeg5 );
	popwin.document.writeln( vVariation );
	popwin.document.writeln( vCodeSeg6 );
	
}

//to activate the window include the following onClick function on EACH thumbnail
// <a href="#"><img src="(!thumb nail path here)" width="70" height="55" border="0" alt="(Descriptive name--optional)" onClick="fImageWindow('../media/stock/(Larger screen image path)','(Image Name)','(Description)','(Yes/No if variations are available)')"></a>