
//********************************************************************************************
//Include this script file in any page using the following reference.
//--------------------------------------------------------------------------------------------
//<script language="JavaScript" src="javascript.js"></script>
//	>> This is placed in the head of the sharing page.
//********************************************************************************************
//--------------------------------------------------------------------------------------------
//********************************************************************************************
//****************				Developer: Jason MacDougall 				  ****************
//****************				    GenX PC Solutions 				          ****************
//********************************************************************************************
//'***** -------------------------------------------------------------------------------------------------------- *****
//'***** EULA - All code written by GenX PC Solutions remains intellectual property of GenX PC Solutions. Sale of *****
//'***** this or any other code and/or modifications provided by GenX PC Solutions without expressed written      *****
//'***** consent by Jason MacDougall of GenX PC Solutions is strictly prohibited. Entitlement of useage for web   *****
//'***** site sapulpapool.com is granted through the provision of this document and all code within. Signed		  *****
//'***** Jason MacDougall, GenX PC Solutions.																	  *****
//'***** -------------------------------------------------------------------------------------------------------- *****
//Each Image must contain the following in order to compile properly.
//--------------------------------------------------------------------------------------------
//<A HREF="Images/cars/2002Mustang1.jpg" 
//            onClick="return(loadPosterImage('Images/cars/2002Mustang1.jpg'))">
//        <IMG SRC="Images/cars/2002Mustang1.jpg"
//                ALT="Foo" BORDER=0 ALIGN=TOP 
//                WIDTH=60 HEIGHT=40></A>
//--------------------------------------------------------------------------------------------
//The viewer is represented by the following and this code must be included on the page where 
//viewer is to appear (in the location on that page)
//--------------------------------------------------------------------------------------------
//<IMG SRC="Images/cars/2002Mustang1.jpg" NAME="imagePoster"
//				 ALT="Naiad" ALIGN=TOP WIDTH=225 HEIGHT=300>
//********************************************************************************************

//--------------------------------------------------------------
//we must first see if the users broswer can manipulate images / 
//is JS compatible.
//--------------------------------------------------------------

<!--
function canManipulateImages() {
	if (document.images)
		return true;
	else
		return false;
}

//--------------------------------------------------------------
//True magic lies in this routine.
//--------------------------------------------------------------

function loadPosterImage(imageURL) {
	if (gImageCapableBrowser) {
		document.imagePoster.src = imageURL;
		return false;
	}
	else {
		return true;
	}
}
// gImageCapableBrowser - is this browser hip to images? Set up
// a global variable so that we don't have to keep calling a function
// (useful if the function becomes costly to compute).

gImageCapableBrowser = canManipulateImages();


function ImgNewWindow(image_loc,img)
{
  HTML = "<html><style>body{margin:0px 0px 0px 0px}</style><body onBlur='top.close()'><img src='" + image_loc + "' border=0 name=load_image onLoad='window.resizeTo(document.load_image.width+10,document.load_image.height+30)'></body></html>";
  popupImage = window.open('','_blank','toolbar=no,scrollbars=no');
  popupImage.document.open();
  popupImage.document.write(HTML);
  popupImage.document.close();
  //obj_img = document.getElementById(img);
  //obj_img.src = obj_img.src;
}

//--------------------------------------------------------------
//The following script pertains to the Nav system.
//--------------------------------------------------------------

var submenu=new Array()

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
 
submenu[0]='<font class=VertNavBars><b><a href="http://www.javascriptkit.com/cutpastejava.shtml">Chevrolet</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.javascriptkit.com/javaindex.shtml">Ford</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.javascriptkit.com/javatutors/index.shtml">Mercury</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.javascriptkit.com/java/">GMC</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.javascriptkit.com/howto/">AMC</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.javascriptkit.com/howto/">Pontiac</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.javascriptkit.com/howto/">Oldsmobile</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.javascriptkit.com/howto/">Lincoln</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.javascriptkit.com/howto/">Buick</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.javascriptkit.com/howto/">Dodge</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.javascriptkit.com/howto/">Plymouth</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.javascriptkit.com/howto/">Chrysler</a></b></font>'

submenu[1]='<font class=VertNavBars><b><a href="http://freewarejava.com/applets/index.shtml">Applets</a> | <a href="http://freewarejava.com/tutorials/index.shtml">Tutorials</a> | <a href="http://freewarejava.com/javasites/index.shtml">Sites and Zines</a> | <a href="http://freewarejava.com/jsp/index.shtml">JSP</a></b></font>'

//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=1000

/////No need to edit beyond here

var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}

function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
// -->