function mailthis()
{
mail_str = "mailto:?subject=Hypnotist The Incredible BORIS"
mail_str += "&body=Hypnotist The Incredible BORIS -- Unforgettable Event Entertainment -- For Booking Call 905-882-7707"
mail_str += " -- Visit http://www.comedywood.com/ and watch show videos."
location.href = mail_str;
}
function needahug()
{
mail_str = "mailto:?subject=I thought you could use a big hug"
mail_str += "&body=Click on the link to get your hug "
mail_str += " -- http://www.comedywood.com/need-a-hug.php "
location.href = mail_str;
}

/* ================================================================ 
This copyright notice must be kept untouched in the stylesheet at 
all times.

The original version of this script and the associated (x)html
is available at http://www.stunicholls.com/menu/skeleton.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This script and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */

navs = function() {
	var cssRule;
	var newSelector;
	for (var i = 0; i < document.styleSheets.length; i++)
		for (var x = 0; x < document.styleSheets[i].rules.length ; x++)
			{
			cssRule = document.styleSheets[i].rules[x];
			if (cssRule.selectorText.indexOf("LI:hover") != -1)
			{
				newSelector = cssRule.selectorText.replace(/LI:hover/gi, "LI.iehover");
				document.styleSheets[i].addRule(newSelector , cssRule.style.cssText);
			}
		}
	var getElm = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<getElm.length; i++) {
		getElm[i].onmouseover=function() {
			this.className+=" iehover";
		}
		getElm[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}

/* ================================================================ 
swap images js
=================================================================== */
if (window.attachEvent) window.attachEvent("onload", navs);

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
function checkit(f) 
{var x=0; var y=0; var e=f.elements[0]; var i=0;if (e.value.length==0 || e.value.charAt(0)=='') 
	{ alert("You may not leave any fields Blank"); return false; }
for (var i=0; i < e.value.length && e.value.charAt(i) != ''; i++)
	{
	if (e.value.charAt(i) == '@')
	{ x++; }
	if (e.value.charAt(i) == '.')
	{ y++; }
	}
if (x != 1 || y == 0)
	{alert("This is not a valid email address."); return false; }
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

