var pagetogoto = "";
var athome = true;
var pagestr = "";

function showmenu(elmnt) {
document.getElementById(elmnt).style.visibility="visible";
}
function hidemenu(elmnt) {
document.getElementById(elmnt).style.visibility="hidden";
}

function setHilite(elmnt) {
document.getElementById(elmnt).style.background="#b8a795";
}
function removeHilite(elmnt) {
document.getElementById(elmnt).style.background="#e1d6c7";
}
function removesubHilite(elmnt) {
document.getElementById(elmnt).style.background="#efe5d7";
}

   
oncoordination = new Image();
                      oncoordination.src = "images/but_coordinationHi.gif";
                      offcoordination = new Image();
                      offcoordination.src = "images/but_coordination.gif";    
onintimate = new Image();
                      onintimate.src = "images/but_intimateHi.gif";
                      offintimate = new Image();
                      offintimate.src = "images/but_intimate.gif";    
onday = new Image();
                      onday.src = "images/but_dayHi.gif";
                      offday = new Image();
                      offday.src = "images/but_day.gif";    
oninfo = new Image();
                      oninfo.src = "images/but_infoHi.gif";
                      offinfo = new Image();
                      offinfo.src = "images/but_info.gif";

onhome = new Image();
                      onhome.src = "images/but_homeHi.gif";
                      offhome = new Image();
                      offhome.src = "images/but_home.gif";                                 
                
function itson(imgDocID,imgObjName) {
 document.images[imgDocID].src = eval(imgObjName + ".src");
 }


function thisMovie(movieName) {
    var isIE = navigator.appName.indexOf("Microsoft") != -1;
    return (isIE) ? window[movieName] : document[movieName];
}

function leavehome(str, ver) {
pagetogoto  = str;

	if (athome == true) {
	athome = false;
	thisMovie("extint").fademeout(str);

	document.getElementById('header').innerHTML="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='887' height='149' id='toplogo' align='middle'><param name='allowScriptAccess' value='always' /><param name='allowFullScreen' value='false' /><param name='movie' value='top.swf' /><param name='wmode' value='transparent' /><param name='quality' value='high' /><param name='bgcolor' value='#ffffff' /><embed src='top.swf' quality='high' bgcolor='#ffffff' wmode='transparent' width='887' height='149' name='toplogo' align='middle' allowScriptAccess='always' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>"; 
	} 

if (ver == 1) {
pagestr = "<table border='0' width='887' id='mainarea' cellspacing='0' cellpadding='0' height='579'><TR><TD width='237' height='579' valign='top'><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='237' height='579' id='side' align='middle'><param name='allowScriptAccess' value='always' /><param name='allowFullScreen' value='false' /><param name='movie' value='side.swf' /><param name='wmode' value='transparent' /><param name='quality' value='high' /><param name='bgcolor' value='#ffffff' /><embed src='side.swf' quality='high' bgcolor='#ffffff' width='237' height='579' wmode='transparent' name='side' align='middle' allowScriptAccess='always' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object></TD><td width='650' height='579'><iframe NORESIZE  FRAMEBORDER=0 BORDER=0 MARGINWIDTH=0 src='";

pagestr = pagestr + str +".htm' name='main' width='650' height='579'></iframe></td></TR></table>";
} else {
pagestr = "<table border='0' width='887' id='mainarea' cellspacing='0' cellpadding='0' height='579'><TR><TD width='237' height='579' valign='top'><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='237' height='579' id='side' align='middle'><param name='allowScriptAccess' value='always' /><param name='allowFullScreen' value='false' /><param name='movie' value='side2.swf' /><param name='wmode' value='transparent' /><param name='quality' value='high' /><param name='bgcolor' value='#ffffff' /><embed src='side2.swf' quality='high' bgcolor='#ffffff' width='237' height='579' wmode='transparent' name='side' align='middle' allowScriptAccess='always' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object></TD><td width='650' height='579'><iframe NORESIZE  FRAMEBORDER=0 BORDER=0 MARGINWIDTH=0 src='";

pagestr = pagestr + str +".htm' name='main' width='650' height='579'></iframe></td></TR></table>";
}

document.getElementById('flasharea').innerHTML= pagestr;


window.main.location = str +".htm";
movemenu(str);
}

function gohome() {
  window.location.reload( false );
}

var i=-149;
var speed=3;

function movemenu() {
intShow=setInterval("show()",10);
}

function show() {
	if (i<-2) {
	i=i+speed;
	document.getElementById('wedding1').style.top=i;
	} else {
	thisMovie("side").gotopage(pagetogoto);
	clearInterval(intShow);
	}
}