function openSend(){
/*	alert(document.getElementById("dv_send").style.top);
	switch(browsername)	{
		case "MSIE": document.body.scrollTop = 400; break;
		case "NS": window.scrollY = 400; break;
		default: document.body.scrollTop = 400; break;
	}
*/	document.getElementById("dv_send").style.display = "block";
}
function closePopupSend(){
	document.getElementById("dv_send").style.display = "none";
	document.getElementById("validate_send").style.display = "none";
}
function checkEmail(to_check) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,5})+$/.test(to_check)){
	return (true)}
}

function checkNumeric(to_check) {
	if (/\d/.test(to_check)){
	return (true)}
}

function validate_form(){
	Goon = "0";
	var msg = "";
	if(document.forms.form_send.name.value == ""){ Goon = "1"; msg = msg + "Your Name<br>"; }
	if(!checkEmail(document.forms.form_send.email.value)){ Goon = "1"; msg = msg + "Your Email<br>";	}
	if(document.forms.form_send.friendname.value == ""){ Goon = "1";	msg = msg + "Friend's Name<br>"; }
	if(!checkEmail(document.forms.form_send.friendemail.value)){	Goon = "1";	msg = msg + "Friend's Email<br>"; }
	if(Goon == "0")	{
		document.forms.form_send.method="post";
		document.forms.form_send.action = "send.asp";
		document.forms.form_send.submit();	
	}else{
		document.getElementById("validate_send").style.display = "block";
	}
}






function openSlideshow(){
	switch(browsername)	{
		case "MSIE": ypos = document.body.scrollTop; break;
		case "NS": ypos = window.scrollY; break;
		default: ypos = document.body.scrollTop; break;
	}	
	  var myWidth = 0, myHeight = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
			myWidth = window.innerWidth;
			myHeight = window.innerHeight;
	  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
	  }
	if(siteversion != "html" && allow_trans == "1"){
		document.getElementById("slideshow").style.top = ypos + (myHeight/2) -200;
		document.getElementById("slideshow").style.display = "block";
		document.getElementById("slideshow").innerHTML = "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='580' height='400' id='flash_slideshow'><PARAM NAME=movie VALUE='flash/slideshow.swf'><PARAM NAME=loop VALUE=false><PARAM NAME=menu VALUE=false><PARAM NAME=quality VALUE=best><PARAM NAME=scale VALUE=noscale><PARAM NAME=wmode VALUE=transparent><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src='flash/slideshow.swf' loop=false menu=false quality=best scale=noscale wmode=transparent bgcolor=#FFFFFF  width='580' height='400' name='flash_slideshow' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED></OBJECT>";
	}else{
		window.open('gallery.asp?type=thumbnails&amp;gallery_id=2','','height=475,width=575,scrollbars=yes,resize=no');
	}
}

function closeSlideShow() {
	document.getElementById("slideshow").style.display = "none";
}


function openDirections(){
	switch(browsername)	{
		case "MSIE": ypos = document.body.scrollTop; break;
		case "NS": ypos = window.scrollY; break;
		default: ypos = document.body.scrollTop; break;
	}	
	  var myWidth = 0, myHeight = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
			myWidth = window.innerWidth;
			myHeight = window.innerHeight;
	  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
	  }
	if(siteversion != "html" && allow_trans == "1"){
		document.getElementById("slideshow").style.top = ypos + (myHeight/2) -300;
		document.getElementById("slideshow").style.display = "block";
		document.getElementById("slideshow").innerHTML = "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='580' height='600' id='flash_directions'><PARAM NAME=movie VALUE='flash/directions.swf'><PARAM NAME=loop VALUE=false><PARAM NAME=menu VALUE=false><PARAM NAME=quality VALUE=best><PARAM NAME=scale VALUE=noscale><PARAM NAME=wmode VALUE=transparent><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src='flash/directions.swf' loop=false menu=false quality=best scale=noscale wmode=transparent bgcolor=#FFFFFF  width='580' height='600' name='flash_directions' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED></OBJECT>";
	}else{
		location.href= "08_02_directions.asp"
	}
}