// JavaScript Document

function printIt(theDiv)
{
	var a = window.open('','','width=400,height=300');
	a.document.open("text/html");
	a.document.write(document.getElementById(theDiv).innerHTML);
	a.document.close();
	a.print();
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


function toggleTheLayers(ShowIndex, MaxIndex)
{
    var el;
    var elName;

    for (var i=1;i<=MaxIndex;i++)
    {
        elName = 'Item'+i;
       el = document.getElementById?document.getElementById(elName ):document.all[elName ];   
        if (el)
          el.style.display = (i==ShowIndex?'':'none');
    }
}

function checkEmail(theEmail) 
{ 
	var error = false
	var sEmail = "" + theEmail.value;

	if (sEmail.length != 0)
	{
		if (sEmail.indexOf('@') == -1) error = true; 
		if (sEmail.indexOf('.') == -1) error = true; 
		if (sEmail.indexOf('@') < 2) error = true;
	}
	
	if (error)
	{
		alert("You must enter a valid email address.");
		theEmail.value = "";
		theEmail.focus();
		return false;
	}
	return true;
}


function toggleTheLayers2(ItemName, ShowIndex, MaxIndex)
{
    var el;
    var elName;

    for (var i=1;i<=MaxIndex;i++)
    {
      //  elName = 'Item'+i;
	  elName = ItemName+i;
	  //alert(elName);
       el = document.getElementById?document.getElementById(elName ):document.all[elName ];   
        if (el)
          el.style.display = (i==ShowIndex?'':'none');
    }
}

function toggleLayer(whichLayer)
{
	if (document.getElementById)
	{
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.display? "":"block";
	}
	else if (document.all)
	{
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		style2.display = style2.display? "":"block";
	}
	else if (document.layers)
	{
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = style2.display? "":"block";
	}
}

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];}
	}
}

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) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

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 popup(url,xx,yy) {
 	   window.open(url,"popup","width="+xx+",height="+yy+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,copyhistory=0,left=30,top=50")
	    }
		
function delreview(id) {
 	   if (processTransaction = confirm("Are you sure you wish to delete this entry?")){
			document.location= 'MemberReviews.asp?act=1&id='+id;
			return true;		
			}
	    }		

var thisPath = window.location.href;
	//var sPage = sPath.substring(sPath.lastIndexOf('\\') + 1);
	var thisPath = thisPath.substring(thisPath.lastIndexOf('/') + 1);
	thisPath = thisPath + '&show=1';
	//alert(thisPath);
	
	
MM_preloadImages('../images/nav_new2/Home_f2.jpg','../images/nav_new2/About_f2.jpg','../images/nav_new2/Celebrities_f2.jpg','../images/nav_new2/Reviews_f2.jpg','../images/nav_new2/Videos_f2.jpg','../images/nav_new2/Contact_f2.jpg','../images/nav_new2/Join_f2.jpg')	