//var thePath ="file:///Volumes/EMMANUELLE2/WORKWORK/mosex/web/";var thePath ="http://museumofsex.com/";var theImgPath = thePath + "images/";var theButtsPath = thePath + "skins/men/";numOfPeeks = 5;buttWidth = 229;buttHeight = 184;buttSpace = 0;buttName = "butt";buttFormat = ".jpg";buttBG = theImgPath + "transpa.gif";contentPageFullLength = true;butts = new Array();butts[0] = new Array(0,"0001","0002","0003","0004","0005","0006");butts[1] = new Array(0,"0007","0008","0009","0010","0011","0012");//butts[11] = new Array(0,"0013","0014","0015","0016","0017","0018");butts[12] = new Array(0,"0013","0014","0015","0016","0017","0018");butts[13] = new Array(0,"0019","0020","0021","0022","0023","0024");butts[3] = new Array(0,"0025","0026","0027","0028","0029","0030");//butts[4] = new Array(0,"0031","0032","0033","0034","0035","0036");butts[5] = new Array(0,"0031","0032","0033","0034","0035","0036");//new Array(0,"0037","0038","0039","0040","0041","0042");//new Array(0,"0043","0044","0045","0046","0047","0048");for ( i = 1; i <= 6; i++ )	{	butts[0][i] = buttName + butts[0][i] + buttFormat;	butts[1][i] = buttName + butts[1][i] + buttFormat;	//butts[11][i] = buttName + butts[11][i] + buttFormat;	butts[12][i] = buttName + butts[12][i] + buttFormat;	butts[13][i] = buttName + butts[13][i] + buttFormat;	butts[3][i] = buttName + butts[3][i] + buttFormat;	//butts[4][i] = buttName + butts[4][i] + buttFormat;	butts[5][i] = buttName + butts[5][i] + buttFormat;	}homeButt0 = theButtsPath + "home0.jpg";backButt0 = theButtsPath + "back0previous.jpg";backButt0print = theButtsPath + "back0print.jpg";homeButt1 = theButtsPath + buttName + "0034" + buttFormat;homeButt3 = theButtsPath + buttName + "0035" + buttFormat;homeButt4 = theButtsPath + buttName + "0036" + buttFormat;homeButt5 = theButtsPath + buttName + "0037" + buttFormat;backButt11 = theButtsPath + buttName + "0038" + buttFormat;backButt12 = theButtsPath + buttName + "0039" + buttFormat;backButt13 = theButtsPath + buttName + "0040" + buttFormat;var wW = 800; var wH = 600;var fak = 10;var curX = 0; var curY = 0;var destination = 'here';var stepX = 50; var stepY = 50;var destX = 0; var destY = 0;var curButt = '';var showSwitch = location.search.substring(1,location.search.length);var menuStart = '';//<TD><TABLE> filled in by forePlay();menuStart += '<TR><TD ALIGN="center" VALIGN="middle" $BACKGROUND="' + theImgPath + 'transpa.gif">';menuStart += '<TABLE BORDER=0 CELLPADDING=' + buttSpace + ' CELLSPACING=0><TR>\n';var buttStart = '<TD ALIGN="center" VALIGN="middle"><A HREF="javascript:go('var overButtVar = ' onMouseover="overButt(\''var outButtVar = '\');return true;" onMouseout="outButt(\''var outButtVar = '\');" onMouseout="outButt(\''var homeButtStart = '<TD ALIGN="center" VALIGN="middle"><A HREF="javascript:go(0,2,\'here\');"><IMG SRC="' + theButtsPath;var homeButtEnd = '" BORDER=0 ALT="museum of sex" WIDTH=' + buttWidth + ' HEIGHT=' + buttHeight + '></A></TD>';var emptyStart = '<TD ALIGN="center" VALIGN="middle"><IMG SRC="' + theButtsPath;var emptyEnd = '" BORDER=0 WIDTH=' + buttWidth + ' HEIGHT=' + buttHeight + '></TD>';var emptyCell = '<TD></TD>';var horDiv = '</TR><TR>';var menuEnd = '</TR></TABLE></TD></TR></TABLE>';var menuCellStart = '';var dir0 = ''; var homenu = '';//--home menuvar dir1 = 'information/'; var menu1 = '';//--informationvar dir3 = 'inside/'; var menu3 = '';//--collectionsvar dir4 = 'projects/'; var menu4 = '';//--events,etcvar dir5 = 'support/'; var menu5 = '';//--join usvar dir11 = dir1 + 'visit/'; var menu11 = '';//--visitvar dir12 = dir1 + 'about/'; var menu12 = '';//--about usvar dir13 = dir1 + 'press/'; var menu13 = '';//--press officefunction makeButt(xSpot,ySpot,link,menu,butt,alt){return buttStart + xSpot + ',' + ySpot + ',\'' + link + '\');"' + overButtVar + menu + ',' + butt + outButtVar + butt + '\')" ><IMG SRC="' + theButtsPath + butts[menu][butt] +'" BORDER=0 ALT="' + alt + '" NAME="butt' + menu + '' + butt + '" WIDTH=' + buttWidth + ' HEIGHT=' + buttHeight + '></A></TD>\n';}function overButt(menu,butt){//if ( document.images[butt].alt )//	{//	window.status = document.images[butt].alt;//	}//document.images[butt].src = theButtsPath + "o" + butts[menu][butt];}function outButt(butt){//document.images[butt].src = theButtsPath + eval(butt);window.status = ''; return true;}function forePlay(){if ( showSwitch == "print" )	{	wW = 0;	wH = 0;	}else	{	if ( navigator.appName == "Netscape" )		{		wW = window.innerWidth;		wH = window.innerHeight;		}	else		{		wW = document.body.offsetWidth;		wH = document.body.offsetHeight;		}	}menuCellStart = '\n<TABLE $WIDTH="' + wW + '" $HEIGHT="' + wH + '" BORDER=0 CELLPADDING=0 CELLSPACING=0>';menu3 = menuCellStart + menu3;menu4 = menuCellStart + menu4;menu5 = menuCellStart + menu5;menu11 = menuCellStart + menu11;menu12 = menuCellStart + menu12;menu13 = menuCellStart + menu13;}function makeHomenu(b1,b2,b3,b4,b5,b6){homenu = menuCellStart;homenu += menuStart;if ( b1 == 1 ) { homenu += makeButt(1,1,'here',0,1,'Visitor & general Information'); }else { homenu += makeButt(0,0,'information/index.html',0,1,'Visitor & general Information'); }if ( b2 == 1 ) { homenu += makeButt(3,0,'here',0,2,'Exhibitions Schedule'); }else { homenu += makeButt(0,0,dir0 + 'exhibitions/index.html',0,2,'Exhibitions Schedule'); }homenu += horDiv;if ( b3 == 1 ) { homenu += makeButt(1,0,'here',0,3,'Inside the Museum'); }else { homenu += makeButt(0,0,dir3 + 'index.html',0,3,'Inside the Museum'); }//if ( b4 == 1 ) { homenu += makeButt(3,0,'here',0,4,'Calendar of Events'); }//else { homenu += makeButt(0,4,'events/index.html',0,4,'Calendar of Events'); }homenu += emptyStart + butts[0][4] + emptyEnd;homenu += horDiv;if ( b5 == 1 ) { homenu += makeButt(1,4,'here',0,5,'Support Mosex'); }else { homenu += makeButt(0,0,dir5 + 'index.html',0,5,'Support Mosex'); }if ( b6 == 1 ) { homenu += makeButt(3,0,'here',0,6,'Shop online'); }else { homenu += makeButt(0,0,dir0 + 'museumstore/index.html',0,6,'Shop online'); }homenu += menuEnd;}function makeMenu1(b1,b2,b3,b4,b5){menu1 = menuCellStart;menu1 += menuStart;if ( b1 == 1 ) { menu1 += makeButt(3,0,'here',1,1,'Tickets, Hours & Location'); }else { menu1 += makeButt(0,0,dir1 + 'visit.html',1,1,'Tickets, Hours & Location'); }if ( b2 == 1 ) { menu1 += makeButt(2,1,'here',1,2,'About Mosex'); }else { menu1 += makeButt(0,0,dir1 + 'about/index.html',1,2,'About Mosex'); }menu1 += horDiv;if ( b3 == 1 ) { menu1 += makeButt(2,2,'here',1,3,'Press Office'); }else { menu1 += makeButt(0,0,dir1 + 'press/index.html',1,3,'Press Office'); }if ( b4 == 1 ) { menu1 += makeButt(3,0,'here',1,4,'Contact'); }else { menu1 += makeButt(0,0,dir1 + 'contact.html',1,4,'Contact'); }menu1 += horDiv;menu1 += homeButtStart + butts[1][5] + homeButtEnd;if ( b5 == 1 ) { menu1 += makeButt(3,0,'here',1,6,'Event Space Rental'); }else { menu1 += makeButt(0,0,dir1 + 'rental.html',1,6,'Event Space Rental'); }menu1 += menuEnd;}function makeMenu11(b1,b2,b3){menu11 = menuCellStart;menu11 += menuStart;menu11 += emptyStart + butts[11][1] + emptyEnd;if ( b1 == 1 ) { menu11 += makeButt(3,0,'here',11,2,'hours & location'); }else { menu11 += makeButt(0,0,dir11 + 'hourslocation.html',11,2,'hours & location'); }menu11 += horDiv;menu11 += '<TD ALIGN="center" VALIGN="middle"><A HREF="javascript:go(1,1,\'here\');"><IMG SRC="' + theButtsPath;menu11 += butts[11][3];menu11 += '" BORDER=0 ALT="information" WIDTH=' + buttWidth + ' HEIGHT=' + buttHeight + '></A></TD>';if ( b2 == 1 ) { menu11 += makeButt(3,0,'here',11,4,'admission / ticket sales'); }else { menu11 += makeButt(0,0,dir11 + 'admissionticketsales.html',11,4,'admission / ticket sales'); }menu11 += horDiv;menu11 += homeButtStart + butts[11][5] + homeButtEnd;if ( b3 == 1 ) { menu11 += makeButt(3,0,'here',11,6,'group visits'); }else { menu11 += makeButt(0,0,dir11 + 'groupvisits.html',11,6,'group visits'); }menu11 += menuEnd;}function makeMenu12(b1,b2,b3,b4){menu12 = menuCellStart;menu12 += menuStart;if ( b1 == 1 ) { menu12 += makeButt(3,0,'here',12,1,'Mission & History'); }else { menu12 += makeButt(0,0,dir12 + 'ourmission.html',12,1,'Mission & History'); }if ( b2 == 1 ) { menu12 += makeButt(3,0,'here',12,2,'The Muse Foundation'); }else { menu12 += makeButt(0,0,dir12 + 'muse.html',12,2,'The Muse Foundation'); }menu12 += horDiv;if ( b4 == 1 ) { menu12 += makeButt(3,0,'here',12,3,'Employment Opportunities'); }else { menu12 += makeButt(0,0,dir12 + 'employment.html',12,3,'Employment Opportunities'); }if ( b3 == 1 ) { menu12 += makeButt(3,0,'here',12,4,'Board of Advisors & Friends'); }else { menu12 += makeButt(0,0,dir12 + 'boardofadvisors.html',12,4,'Board of Advisors & Friends'); }menu12 += horDiv;menu12 += homeButtStart + butts[12][5] + homeButtEnd;menu12 += '<TD ALIGN="center" VALIGN="middle"><A HREF="javascript:go(1,1,\'here\');"><IMG SRC="' + theButtsPath;menu12 += butts[12][6];menu12 += '" BORDER=0 ALT="Visitor & General Information" WIDTH=' + buttWidth + ' HEIGHT=' + buttHeight + '></A></TD>';menu12 += menuEnd;}function makeMenu13(b1,b2,b3,b4){menu13 = menuCellStart;menu13 += menuStart;if ( b1 == 1 ) { menu13 += makeButt(3,0,'here',13,1,'Press Kit'); }else { menu13 += makeButt(0,0,dir13 + 'kit.html',13,1,'Press Kit'); }if ( b2 == 1 ) { menu13 += makeButt(3,0,'here',13,2,'Contact'); }else { menu13 += makeButt(0,0,dir13 + 'contact.html',13,2,'Contact'); }menu13 += horDiv;if ( b4 == 1 ) { menu13 += makeButt(3,0,'here',13,3,'In the Press'); }else { menu13 += makeButt(0,0,dir13 + 'inthepress.html',13,3,'In the Press'); }if ( b3 == 1 ) { menu13 += makeButt(3,0,'here',13,4,'Press Releases'); }else { menu13 += makeButt(0,0,dir13 + 'pressreleases.html',13,4,'Press Releases'); }menu13 += horDiv;menu13 += homeButtStart + butts[13][5] + homeButtEnd;menu13 += '<TD ALIGN="center" VALIGN="middle"><A HREF="javascript:go(1,1,\'here\');"><IMG SRC="' + theButtsPath;menu13 += butts[13][6];menu13 += '" BORDER=0 ALT="information" WIDTH=' + buttWidth + ' HEIGHT=' + buttHeight + '></A></TD>';menu13 += menuEnd;}function makeMenu3(b1,b2,b3,b4,b5,b6){menu3 = menuCellStart;menu3 += menuStart;if ( b1 == 1 ) { menu3 += makeButt(3,0,'here',3,1,'Collections'); }else { menu3 += makeButt(0,0,dir3 + 'collections.html',3,1,'Collections'); }if ( b2 == 1 ) { menu3 += makeButt(3,0,'here',3,2,'Events'); }else { menu3 += makeButt(0,0,dir3 + 'events.asp',3,2,'Events'); }menu3 += horDiv;menu3 += emptyStart + butts[3][3] + emptyEnd;menu3 += emptyStart + butts[3][4] + emptyEnd;menu3 += horDiv;menu3 += homeButtStart + butts[3][5] + homeButtEnd;menu3 += emptyStart + butts[3][6] + emptyEnd;menu3 += menuEnd;}function makeMenu4(b1,b2,b3,b4,b5){menu4 = menuCellStart;menu4 += menuStart;if ( b1 == 1 ) { menu4 += makeButt(3,0,'here',4,1,'the muse foundation of new york'); }else { menu4 += makeButt(0,0,dir4 + 'muse.html',4,1,'the muse foundation of new york'); }if ( b2 == 1 ) { menu4 += makeButt(3,0,'here',4,2,'publications'); }else { menu4 += makeButt(0,0,dir4 + 'publications.html',4,2,'publications'); }menu4 += horDiv;if ( b3 == 1 ) { menu4 += makeButt(3,0,'here',4,3,'events'); }else { menu4 += makeButt(0,0,dir4 + 'events.asp',4,3,'events'); }if ( b4 == 1 ) { menu4 += makeButt(3,0,'here',4,4,'curatorÕs choice'); }else { menu4 += makeButt(0,0,dir4 + 'curatorschoice.html',4,4,'curatorÕs choice'); }menu4 += horDiv;menu4 += homeButtStart + butts[4][5] + homeButtEnd;if ( b5 == 1 ) { menu4 += makeButt(3,0,'here',4,6,'moreÉ'); }else { menu4 += makeButt(0,0,dir4 + 'more.html',4,6,'moreÉ'); }menu4 += menuEnd;}function makeMenu5(b1,b2,b3){menu5 = menuCellStart;menu5 += menuStart;if ( b1 == 1 ) { menu5 += makeButt(3,0,'here',5,1,'Membership'); }else { menu5 += makeButt(0,0,dir5 + 'membership.html',5,1,'Membership'); }if ( b2 == 1 ) { menu5 += makeButt(3,0,'here',5,2,'Corporate Membership'); }else { menu5 += makeButt(0,0,dir5 + 'corporate.html',5,2,'Corporate Membership'); }menu5 += horDiv;menu5 += emptyStart + butts[5][3] + emptyEnd;if ( b3 == 1 ) { menu5 += makeButt(3,0,'here',5,4,'Donations & Submissions'); }else { menu5 += makeButt(0,0,dir5 + 'donations_submissions.html',5,4,'Donations & Submissions'); }menu5 += horDiv;menu5 += homeButtStart + butts[5][5] + homeButtEnd;menu5 += emptyStart + butts[5][6] + emptyEnd;menu5 += menuEnd;}function giveHead(){var imgS = '<TD'var imgM = '><IMG SRC="' + theButtsPath + 'transpa.gif" WIDTH="';var imgE = '" HEIGHT=1 BORDER=0></TD>\n';thisHTML = '';thisHTML += '<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0><TR>';thisHTML += imgS + ' CLASS="menu"' + imgM + wW + imgE;thisHTML += imgS + ' CLASS="menu"' + imgM + wW + imgE;thisHTML += imgS + ' CLASS="menu"' + imgM + wW + imgE;thisHTML += imgS + ' CLASS="menu"' + imgM + wW + imgE;thisHTML += '</TR>\n';if ( showSwitch == "print" )	{	}else	{	document.write(thisHTML);	}}function allTheWay(){document.write('<TABLE WIDTH="' + wW + '" HEIGHT="' + wH + '" BORDER=0 CELLPADDING=0 CELLSPACING=0>');}function allTheWayBaby(){document.write('<IMG SRC="' + thePath + 'transpa.gif" WIDTH=1 HEIGHT="' + wH + '" BORDER=0>');}function allTheWayBabyOhYeah(){document.write('<IMG SRC="' + thePath + 'transpa.gif" WIDTH=1 HEIGHT="' + (wH*4) + '" BORDER=0>');}function come(x,y){destX = wW * x;destY = wH * y;curX = destX;curY = destY;window.scrollTo(curX,curY);};function goHomo(){go(3,0,'here');}function go(x,y,desti,ancho){if ( navigator.appName == "Microsoft Internet Explorer" || navigator.appName == "Netscape" )	{	destination = desti;	destX = wW * x;	destY = wH * y + 1;	if ( navigator.appName == "Netscape" && navigator.appVersion.substring( 0,navigator.appVersion.indexOf('.') ) == 4 )		{		destX -= 14;		}	diffW = destX - curX;	diffH = destY - curY;	stepX = diffW/fak;	stepY = diffH/fak;	gonow(x,y,ancho);	}else	{	if ( destination != "here" ) { location.href = thePath + destination; }	}}function gonow(x,y,ancho){newX = curX + stepX;newY = curY + stepY;if ( destX > curX )	{	if ( destX > newX ) { curX = newX; } else { curX = destX; }	}else if ( destX < curX )	{	if ( destX < newX ) { curX = newX; } else { curX = destX; }	}if ( destY > curY )	{	if ( destY > newY ) { curY = newY; } else { curY = destY; }	}else if ( destY < curY )	{	if ( destY < newY ) { curY = newY; } else { curY = destY; }	}window.scrollTo(curX,curY);if ( curX != destX || curY != destY )	{	goTime = setTimeout("gonow(" + x + "," + y + ",'" + ancho + "');",50);	}else	{	if ( ancho && ancho != "" && ancho != "undefined" )		{		if ( location.hash ) { location.href = location.href; }		else {  location.href = location.href + ancho; }		};	if ( destination != "here" ) { location.href = thePath + destination; }	}}function down(page){thisH = (wH*page)*0.95;fak = 10;newY = curY + thisH/fak;if ( newY < thisH ) { curY = newY; } else { curY = thisH; }curX = wW;window.scrollTo(curX,curY);if ( curY != thisH ) { setTimeout("down(" + page + ");",50); }}var hugNum = 0;////////////////////////////////////////////////////////////////////////////////////////HUGfunction hug(who){if ( hugNum > 1 && who == "" && Math.random() < 0.1 )	{	thisPeek =  1 + Math.round( Math.random()*(numOfPeeks-1) );	who = '<IMG SRC="' + theButtsPath + 'peek' + thisPeek + '.gif">';	}hugNum++;if ( who == "" ) { who = "&nbsp;"; }thisHTML = '';thisHTML += '<TD>';thisHTML += '<TABLE WIDTH="' + wW + '" HEIGHT="' + wH + '" BORDER=0 CELLPADDING=0 CELLSPACING=0>';//commented out following line on 20040913 because it messed op the horizontal centering; don't know what it was needed for, seems redundant, maybe a compatibility issue. Michael.//thisHTML += '<TR><TD CLASS="menu" HEIGHT=' + (wH/2-buttHeight-buttSpace*3/0) + '>&nbsp;</TD></TR>';thisHTML += '<TR><TD ALIGN="center" VALIGN="middle" BACKGROUND=' + buttBG + ' HEIGHT=' + (buttHeight*2 + buttSpace*4) + '>';thisHTML += who;thisHTML += '</TD></TR>';//commented out following line on 20040913 because it messed op the horizontal centering; don't know what it was needed for, seems redundant, maybe a compatibility issue. Michael.//thisHTML += '<TR><TD CLASS="menu" HEIGHT=' + (wH/2-buttHeight) + '>&nbsp;</TD></TR>';thisHTML += '</TABLE>';thisHTML += '</TD>';if ( showSwitch == "print" )	{	}else	{	document.write(thisHTML);	}}function legsOpen(title,x,y,h){if ( showSwitch == "print" )	{	h=0;	}else	{	if ( h ) { } else { h = 5; }	if ( contentPageFullLength && h < 5 ) { h = 5; }	}if ( navigator.appName == "Netscape" && navigator.appVersion.substring(0,navigator.appVersion.indexOf('.')) == 4 )	{ thisClass = "pageNS"; }else	{ thisClass = "page"; }thisHTML = '';thisHTML += '<TD VALIGN="top" ROWSPAN=6>';thisHTML += '<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>';thisHTML += '<TR><TD ALIGN="left" VALIGN="top" CLASS="' + thisClass + '">';thisHTML += '<TABLE WIDTH=600 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR>';thisHTML += '<TD ALIGN="center" VALIGN="top" CLASS="menu">';if ( showSwitch == "print" )	{	thisHTML += '<A HREF="javascript:self.close();"><IMG SRC="' + theImgPath + 'logo_vertical.gif" BORDER=0></A><BR>';	}else	{	thisHTML += '<A HREF="javascript:go(0,2,\'here\');">';	thisHTML += '<IMG SRC="' + homeButt0 + '" BORDER=0></A><BR>';	if ( x && x == "link" )		{		thisHTML += '<A HREF="javascript:go(0,0,\'' + y + '\')">';		thisHTML += '<IMG SRC="' + backButt0 + '" BORDER=0></A><BR>';		}	else if ( x && x == 0 || y == "back" )		{		thisHTML += '<A HREF="javascript:history.back();">';		thisHTML += '<IMG SRC="' + backButt0 + '" BORDER=0></A><BR>';		}	else if ( x && x != 0 || y != 0 )		{		thisHTML += '<A HREF="javascript:go(' + x + ',' + y + ',\'here\');">';		thisHTML += '<IMG SRC="' + backButt0 + '" BORDER=0></A><BR>';		}	//printable version link	thisHTML += '<A HREF="' + location.href +'?print" TARGET="_blank">';	thisHTML += '<IMG SRC="' + backButt0print + '" BORDER=0></A><BR>';	}thisHTML += '</TD><TD ALIGN="left" VALIGN="bottom">';thisHTML += '<IMG SRC="' + theButtsPath + 'transpa.gif" WIDTH=40 HEIGHT="' + (wH*h) + '" BORDER=0></TD>';thisHTML += '<TD ALIGN="left" VALIGN="top" WIDTH=500>\n<BR>';thisHTML += '<SPAN CLASS="bigtitle">' + title + '</SPAN><BR><BR>\n';thisHTML += '<SPAN CLASS="blurb">\n';thisHTML += '<P ALIGN="justify">';document.write(thisHTML);}function legsClosed(){thisHTML = '';thisHTML += '<BR><BR><BR></SPAN></P></TD>\n';thisHTML += '<TD ALIGN="left" VALIGN="bottom">';thisHTML += '<IMG SRC="' + theButtsPath + 'transpa.gif" WIDTH=40 HEIGHT=1></TD>';thisHTML += '</TR></TABLE>\n';thisHTML += '</TD></TR></TABLE>';thisHTML += '</TD>';document.write(thisHTML);}function itsSoBig(h){thisHTML = '';thisHTML += horDiv;thisHTML += '<TD COLSPAN=3>';thisHTML += '<TABLE WIDTH="' + wW*3 + '" HEIGHT="' + wH*h + '" BORDER=0 CELLPADDING=0 CELLSPACING=0>';thisHTML += '<TR><TD ALIGN="center" VALIGN="middle">';thisHTML += '';thisHTML += '</TD></TR></TABLE>';thisHTML += '</TD>';document.write(thisHTML);}