//The load form functions is called when a user selects an option from the drop-down box on
//the Contact page.  Based on the selection, it load the appropriate form annd sets the height.
//By Joe Capaul
function LoadForm()
{
	switch(Choice.selectedIndex){//get drop down selection number
	case 0: Form.src="";Form.style.height="0px";break;//please choose
	case 1: Form.src="http://www.jotform.com/form/10292427220";Form.style.height="500px";break;//general
	case 2: Form.src="http://www.jotform.com/form/10235339277";Form.style.height="500px";break;//web problem
	case 3: Form.src="http://www.jotform.com/form/10290653271";Form.style.height="1050px";break;//puppy update
	case 4: Form.src="http://www.jotform.com/form/10295941268";Form.style.height="1600px";break;//problem!
	case 5: Form.src="http://www.jotform.com/form/10292740306";Form.style.height="700px";break;//store contact
	}
}
/*
Floating Menu script- Roy Whittle (http://www.javascript-fx.com/)
Script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use
*/
var verticalpos="fromtop"
function JSFX_FloatTopDiv()
{
var startX = 3,
startY = 120;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function()
{
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();
//
//
//The OpenHiRes function builds the html picture page and opens it.  
//"picname" is the name of the dog passed by the onclick event, i.e, "sparky"
//cnt = the count of hi res picturs to post, also sent by the onclick event
//pictures should be named sparkyhr1, sparkyhr2, etc.
//Make sure all hires pics are 400 in width
var ohr="' alt='Loading...'/>";
function OpenHiRes(picname,cnt){
	//build the page
	hrout="<html>\n<head>\n<meta http-equiv='refresh' content='1600;url=?refresh=1'>\n<style type='text/css'>\n#hires{text-align:center;}\n</style>\n<title>Heritage Puppies</title>\n</head>\n";
	if(picname=="SS"){
		hrout+="<p id='hires'><br /></p>";//page title
		hrout+="<p><img src='graphics/SShr1.jpg' alt='Loading...'/></p>";
	}
	else{
	hrout+="<p id='hires'>"+picname+"<br /></p>";//page title
	//then add each image
	for(i=1;i<=cnt;i++){
		hrout+="<p><img src='graphics/updates/"+picname.toLowerCase()+"hr"+i+".jpg' alt='Loading...'/></p>";
	}
	}
	hrout+="\n</body>\n</html>\n";//and finish the page
	//now open the window
	hireswin=window.open("","hireswin","width=430,height=550,toolbar=0,titlebar=0,menubar=0,scrollbars=1"); //open new window
	hireswin.document.open(); //open stream to hireswin
	hireswin.document.write(hrout); //send build info
	hireswin.document.close(); // close the stream
	hireswin.focus(); //refesh just in case to keep on top
}//end function
