function init() {
	contents.style.visibility = "visible";
}

function mouseAction(overOrout) {
	myTable = contents.style;
	if (overOrout) {
		actionCheck = 1; 
		setTimeout("animationMenu(1);", 0);
	}else{
		actionCheck = 0; 
		setTimeout("animationMenu(0);", 0);
	}
} 

function animationMenu(overOrout) { 
	if (overOrout && actionCheck) {
		if (myTable.pixelTop < -2) {
			myTable.pixelTop += 8;
			setTimeout("animationMenu(1)",0); 
		}
	}else{
		if (!actionCheck && myTable.pixelTop > -540) {
			myTable.pixelTop -= 8;
			setTimeout("animationMenu(0)",0); 
		}       
	}
} 

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 MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

function ShowFlash(obj,strMediaURL,obj_width,obj_height){
	document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n');
	document.write('  CODEBASE="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,2,0" ID='+obj+'  WIDTH='+obj_width+' HEIGHT='+obj_height+'>\n');
	document.write('  <PARAM NAME="movie" VALUE="'+strMediaURL+'">\n');
	document.write('  <PARAM NAME=play VALUE=true>\n');
	document.write('  <PARAM NAME=loop VALUE=true>\n');
	document.write('  <PARAM NAME=menu VALUE=true>\n');
	document.write('  <PARAM NAME=quality VALUE=high>\n');
	document.write('  <PARAM NAME=wmode VALUE=transparent>\n');
	document.write('  <EMBED SRC="'+strMediaURL+'" name='+obj+' type=application/x-shockwave-flash SWLiveConnect=TRUE play=true loop=false menu=false width='+obj_width+' height='+obj_height+' scale=showall quality=best salign=BR loop=true pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>\n');
	document.write('</OBJECT>\n');
}

function menuURL(strTop, strMain){
	if (strTop=="A"){
		location.href="../main/main.asp";
	} else if (strTop=="B")	{
		if (strMain=="11"){
			location.href="../gallery/termsofbeauty01.asp";
		} else if (strMain=="12"){
			location.href="../gallery/termsofbeauty02.asp";
		} else if (strMain=="21"){
			location.href="../gallery/idealisticoddity01.asp";
		} else if (strMain=="22"){
			location.href="../gallery/idealisticoddity02.asp";
		} else if (strMain=="31"){
			location.href="../gallery/condomseries01.asp";
		} else if (strMain=="32"){
			location.href="../gallery/condomseries02.asp";
		} else if (strMain=="41"){
			location.href="../gallery/sweetworld01.asp";		//Ã¹È­¸é
		} else if (strMain=="42"){
			location.href="../gallery/sweetworld02.asp?category=ca01";		//¼­ºê 1
		} else if (strMain=="43"){
			location.href="../gallery/sweetworld02.asp?category=ca02";		//¼­ºê 2
		} else if (strMain=="44"){
			location.href="../gallery/sweetworld02.asp?category=ca03";		//¼­ºê 3
		} else if (strMain=="45"){
			location.href="../gallery/sweetworld02.asp?category=ca04";		//¼­ºê 4
		} else if (strMain=="46"){
			location.href="../gallery/sweetworld02.asp?category=ca05";		//¼­ºê 5
		} else if (strMain=="47"){
			location.href="../gallery/sweetworld02.asp?category=ca06";		//¼­ºê 6
		} else if (strMain=="51"){
			location.href="../gallery/intotheunknown01.asp";	//Ã¹È­¸é
		} else if (strMain=="52"){
			location.href="../gallery/intotheunknown02.asp";	//¼­ºê ¸ÞÀÎ
		} else if (strMain=="53"){
			location.href="../gallery/intotheunknown03.asp";	//¼­ºê 1
		} else if (strMain=="54"){
			location.href="../gallery/intotheunknown04.asp";	//¼­ºê 2
		} else if (strMain=="55"){
			location.href="../gallery/intotheunknown05.asp";	//¼­ºê 3
		} else if (strMain=="56"){
			location.href="../gallery/intotheunknown06.asp";	//¼­ºê 4
		} else if (strMain=="57"){
			location.href="../gallery/intotheunknown07.asp";	//¼­ºê 5
		} else if (strMain=="58"){
			location.href="../gallery/intotheunknown08.asp";	//¼­ºê 6
		} else if (strMain=="59"){
			location.href="../gallery/intotheunknown09.asp";	//¼­ºê 7
		} else if (strMain=="61"){
			location.href="../gallery/despairseries01.asp";		//Ã¹È­¸é
		} else if (strMain=="62"){
			location.href="../gallery/despairseries02.asp";		//¼­ºê 1
		} else if (strMain=="63"){
			location.href="../gallery/despairseries03.asp";		//¼­ºê 2
		} else if (strMain=="64"){
			location.href="../gallery/despairseries04.asp";		//¼­ºê 3
		} else if (strMain=="65"){
			location.href="../gallery/despairseries05.asp";		//¼­ºê 4
		} else if (strMain=="71"){
			location.href="../gallery/earlywork01.asp";
		} else if (strMain=="72"){
			location.href="../gallery/earlywork02.asp";
		} else {
			location.href="../gallery/termsofbeauty01.asp";
		}
	} else if (strTop=="C")	{
		location.href="../resume/resume.asp";
	} else if (strTop=="D")	{
		location.href="mailto:debbhan@yahoo.com";
	} else if (strTop=="E")	{
		location.href="../main/bodyFrame.asp";
	} else {
		location.href="../main/main.asp";
	}
}
