// JavaScript Document
//no link refefrence to the homepage
 // change the # on the left to adjuct the Y co-ordinate - main movie
	//replay button
	//close button
(document.getElementById) ? dom = true : dom = false;

function setCookie(name, value, expires, path, domain, secure) {
     var curCookie = name + "=" + escape(value) +
          ((expires) ? "; expires=" + expires.toGMTString() : "") + 
          ((path) ? "; path=" + path : "") +
          ((domain) ? "; domain=" + domain : "") +
          ((secure) ? "; secure" : "");
     document.cookie = curCookie;
}

function getCookie(name) {
     var dc = document.cookie;
     var prefix = name + "=";
     var begin = dc.indexOf("; " + prefix);
     if (begin == -1) {
          begin = dc.indexOf(prefix);
          if (begin != 0) return null;
     } else
          begin += 2;
     var end = document.cookie.indexOf(";", begin);
     if (end == -1)
          end = dc.length;
     return unescape(dc.substring(begin + prefix.length, end));
}

function deleteCookie(name, path, domain) {
     if (getCookie(name)) {
          document.cookie = name + "=" +
          ((path) ? "; path=" + path : "") +
          ((domain) ? "; domain=" + domain : "") +
          "; expires=Thu, 01-Jan-70 00:00:01 GMT";
     }
}

function showMovie(clip,t,w,h) {
   var t;
   var obj = '<object id=thewalker codeBase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 height='+h+' width='+w+' align="center bottom" classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000><PARAM NAME="allowScriptAccess" VALUE="sameDomain"><PARAM NAME="movie" VALUE="'+clip+'"><PARAM NAME="loop" VALUE="false"><PARAM NAME="quality" VALUE="autohigh"><PARAM NAME="salign" VALUE="b"><PARAM NAME="wmode" VALUE="transparent"><PARAM NAME="bgcolor" VALUE="#ffffff">      <embed src="'+clip+'" loop="false" quality="autohigh" salign="b" wmode="transparent" bgcolor="#ffffff" width="'+w+'" height="'+h+'" name="thewalker" align="bottom" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
		document.getElementById("walkon").innerHTML = obj;
		setTimeout("showThis('close')",500);
		setTimeout("closeMovie()",t);
		setTimeout("hideThis('close')",t);
		//setTimeout("hideThis('link')",t);
		setTimeout("hideThis('walkon')",t);
		centerpos();
}

function closeMovie() {
document.getElementById("walkon").innerHTML = '';
}

function hideThis(element) {
	if(document.getElementById(element)==null)
	{return;}
  if (dom) {document.getElementById(element).style.visibility='hidden';}
  if (document.layers) {document.layers[element].visibility='hide';} 
}
  
function showThis(element) {
if(document.getElementById(element)==null)
	{return;}
  if (dom) {document.getElementById(element).style.visibility='visible';}
  if (document.layers) {document.layers[element].visibility='show';} }  

function placeIt() {

  
    //link positioning removed

      //close button positioning


  window.setTimeout("placeIt()", 10); }
  
function centerpos(){
if(!window.innerWidth){if(document.documentElement.clientWidth != 0){var w = document.documentElement.clientWidth;}else{var w = document.body.clientWidth;}}else{var w = window.innerWidth;}
var cw=document.getElementById('walkon').offsetWidth.toString();
document.getElementById('walkon').style.left=Math.round(((w-cw)/2)+leftvar)+'px';
}

window.onload=placeIt;
onResize="window.location.href = window.location.href"