function DisplayMySpaceVideo(id)
{
    document.write('<object type="application/x-shockwave-flash" data="http://lads.myspace.com/videos/vplayer.swf" width="380" height="340">\n');
    document.write('<param name="movie" value="http://lads.myspace.com/videos/vplayer.swf" />\n');
    document.write('<param name="wmode" value="transparent" />\n');
    document.write('<param name="flashvars" value="m='+id+'&v=2&type=video" />\n');
    document.write('</object>\n');
}

function LoadDontSay()
{
    document.write('<object type="application/x-shockwave-flash" data="http://193.23.115.213/mhw/erasure.swf" width="900" height="564">\n');
    document.write('<param name="movie" value="http://193.23.115.213/mhw/erasure.swf" />\n');
    document.write('<param name="wmode" value="transparent" />\n');
    document.write('</object>\n');
}


function LoadSnappyDresser()
{
    document.write('<object type="application/x-shockwave-flash" data="snappydresser/snappy_dresser_v3.swf" width="900" height="577">\n');
    document.write('<param name="movie" value="snappydresser/snappy_dresser_v3.swf" />\n');
    document.write('<param name="wmode" value="transparent" />\n');
    document.write('</object>\n');
}

function showPic (whichpic) {
	if (document.getElementById) {
		document.getElementById('galleryplaceholder').src = whichpic.href;
		
		if (whichpic.title) { document.getElementById('gallerydesc').childNodes[0].nodeValue = whichpic.title; } 
		
		else { document.getElementById('gallerydesc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; }
		
		return false; } 
	
	else { return true; }
}

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 validEmail(Email) {
 invalidChars="/:,;"
 if (Email=="") { return false }
for (i=0; i<invalidChars.length;i++) 
{ badChar=invalidChars.charAt(i)
if (Email.indexOf(badChar,0)>-1) { return false }
}
atPos=Email.indexOf("@",1)
if (atPos==-1) { return false }
if (Email.indexOf("@",atPos+1)>-1) { return false }
periodPos=Email.indexOf(".",atPos)
if (periodPos==-1) { return false }
if (periodPos+3>Email.length) {return false}
return true
}

function submitIt(MemberForm) {
if (!validEmail(MemberForm.EmailAddress.value)) {
alert("You have not entered a valid email address")
MemberForm.EmailAddress.focus()
MemberForm.EmailAddress.select()
return false
}
return true 
}

/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Konstantin Jagello | http://javascript-array.com/ */
var TimeOut         = 300;
var currentLayer    = null;
var currentitem     = null;
var currentLayerNum = 0;
var noClose         = 0;
var closeTimer      = null;

function mopen(n) {
  var l  = document.getElementById("menu"+n);
  var mm = document.getElementById("mmenu"+n);
	
  if(l) {
    mcancelclosetime();
    l.style.visibility='visible';
    if(currentLayer && (currentLayerNum != n))
      currentLayer.style.visibility='hidden';
    currentLayer = l;
    currentitem = mm;
    currentLayerNum = n;			
  } else if(currentLayer) {
    currentLayer.style.visibility='hidden';
    currentLayerNum = 0;
    currentitem = null;
    currentLayer = null;
 	}
}

function mclosetime() {
  closeTimer = window.setTimeout(mclose, TimeOut);
}

function mcancelclosetime() {
  if(closeTimer) {
    window.clearTimeout(closeTimer);
    closeTimer = null;
  }
}

function mclose() {
  if(currentLayer && noClose!=1)   {
    currentLayer.style.visibility='hidden';
    currentLayerNum = 0;
    currentLayer = null;
    currentitem = null;
  } else {
    noClose = 0;
  }
  currentLayer = null;
  currentitem = null;
}

document.onclick = mclose; 