/*This is the javascript to show dynamic popups for the images in the featured websites.*/
<!--

if (document.images) {
//if images are supported by the browser, create an array
//of images and preload them
//array for large images
		big = new Array();
		
		big[0] = "images/big/tamoras.gif";
		big[1] = "images/big/andreV.gif";
		big[2] = "images/big/jer.gif";
		big[3] = "images/big/andre.gif";
		big[4] = "images/big/davem.gif";
		big[5] = "images/big/ericm.gif";
		big[6] = "images/big/mazza.jpg";
		big[7] = "images/big/ackshadow.jpg";


}

//Site Description Array

	var siteDesc = new Array();
	siteDesc[0] = "- previous version of tamoras.com. this site is quite heavy on the bandwith, it's mostly Flash and Javascript based.";
	siteDesc[1] = " - andre feriante's vocal site; designed using flash javascript,and html.";
	siteDesc[2] = " - music site for jason eric rubin; designed using flash javascript, php, css, and xhtml compliant code.";
	siteDesc[3] = " - andre feriante's classical guitar site; designed using flash, javascript, and html.";
	siteDesc[4] = " - graphic design and fine art website for david mitchell designs. very simple site using standard html.";
	siteDesc[5] = " - fine art online gallery fore eric montoya. very simple design using javascript and html templates for ease of updating";
	siteDesc[6] = " - flash intro for financial group. very simple, exactly as they wished, flash";
	siteDesc[7] = " - flash intro for the ackerley group's website, flash leading to an asp/flash/framed site.";
		
	



//defines Names of pictures Array

	var siteNames = new Array();
	siteNames[0]="Tamora Schoeneberg - Web Designer/Developer";
	siteNames[1]="Andre Feriante - Singer/Songwriter";
	siteNames[2]="Jason Eric Rubin - Singer/Songwriter";
	siteNames[3]="Andre Feriante - Classical Guitarist";
	siteNames[4]="David Mitchell Design - Artist, Graphic Designer";
	siteNames[5]="Eric Montoya - Fine Artist";
	siteNames[6]="Mazza Financial Group - Intro";
	siteNames[7]="The Ackerley Group - Intro";


//Site Linking  Array

	var popLinkies = new Array();
	popLinkies[0]="http://www.tamoras.com/previous.htm";
	popLinkies[1]="http://www.andreferiante.com/vocalsite/vocal.htm";
	popLinkies[2]="http://www.jasonericrubin.com";
	popLinkies[3]="http://www.andreferiante.com";
	popLinkies[4]="http://www.davidmitchelldesign.com";
	popLinkies[5]="http://www.ericmontoya.com";
	popLinkies[6]="http://www.tamoras.com/othersites/Mazza/IntroFinal.html";
	popLinkies[7]="http://www.tamoras.com/othersites/Ackerley/AckerleyShadow.htm";
	
	//image width Array

	imageWidth = new Array();
	imageWidth[0]="544";
	imageWidth[1]="435";
	imageWidth[2]="600";
	imageWidth[3]="600";
	imageWidth[4]="539";
	imageWidth[5]="539";
	imageWidth[6]="500";
	imageWidth[7]="550";
	
//image height Array

 imageHeight  = new Array();
	imageHeight[0]="350";
	imageHeight[1]="300";
	imageHeight[2]="400";
	imageHeight[3]="380";
	imageHeight[4]="369";
	imageHeight[5]="332";
	imageHeight[6]="337";
	imageHeight[7]="314";

var myWin = "";


	function myClose()

	{

	myWin.close(); // then close the window

	
} // end function

//checks to see if a browser window is open, if it is, it is closed and another is re-opened with the right stuff.
function myOpen()

{

/* note that if we defined the variable inside the function, it would get reinitialized each time, therefore it would not have a value, we want to use a script-level variable so the window's definition and assignment lingers through multiple calls to the function*/

if (myWin) // if the window exists

	{

	myWin.close(); // then close the window

	}
} // end function

//re-sizes and moves window into location on monitor
function myLoad()
{
self.resizeTo(screen.availWidth*.9,screen.availHeight*.9,screenx=20,screeny=20,top=20,left=20);
}

function myPreview(x)
{
w=imageWidth[x];
z=w*1.3;
a=imageHeight[x];
b=a*1.1;
// write html and title to new window 
myWin=window.open("blank.htm","","menubar=no,width="+z+",height="+a+",toolbar=no,location=no,personalbar=no,scrollbars=no,dependent=yes,resizable=no,status=no,screenx=20,screeny=20,top=20,left=20");
myWin.window.focus();
myWin.document.write("<html><head>");
myWin.document.write("<title>");
myWin.document.write(siteNames[x]);
myWin.document.write("</title></head>\"<link href=\'code/popups.css\' rel=\'stylesheet\' type=\'text/css\'></style>");
myWin.document.write("<body><div><table class=\"bigtable\" height=\"");
myWin.document.write(a);
myWin.document.write("\"width=\"");
myWin.document.write(z);
myWin.document.write("\" cellpadding=\"0\" cellspacing=\"0\"><tr><td><img src=\'");
myWin.document.write(big[x]);
myWin.document.write("\' id=\"pic\" alt=\'");
myWin.document.write(siteNames[x]);
myWin.document.write("\'width=\'");
myWin.document.write(imageWidth[x]);
myWin.document.write("\' height=\'");
myWin.document.write(imageHeight[x]);
myWin.document.write("\' border=\'0\'></td>");
myWin.document.write("<td><p>");
myWin.document.write(siteDesc[x]);
myWin.document.write("<br /><br /><br /><a href =\"");
myWin.document.write(popLinkies[x]);
myWin.document.write("\"target=\"blank\">Click here to visit <b>");
myWin.document.write(siteNames[x]);
myWin.document.write("</b></a></p><br /><br /><h3>");
myWin.document.write("<a href =\"#\"onClick = \"opener.myClose()\">close window</a>");
myWin.document.write("</h3></td></tr></table></div</body></html>");

} // end function

//-->
