// JavaScript Document

// Load BackDrop Function
// Loads Background Image into Flash Movie: backdrop.swf
// Embeds Flash Movie in page using swfobject if Flach Player is detected
function loadBackDrop (picpath) {
	var so = new SWFObject("backdrop.swf", "backdrop", "100%", "100%", "1", "#000000");   
	so.addParam("quality", "best");
    so.addParam("wmode", "opaque");
	so.addVariable("picture", picpath);		
    so.write("backdropjs_background");	
}

// Size BackDrop Function
// Resizes Foreground Layer to fit 100% of page
// Required only to obtain correct height in IE6
function sizeBackDrop () {
  if(navigator.appName != "Netscape"){
    var viewportheight;
    if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientHeight != 'undefined' && document.documentElement.clientHeight != 0){
		viewportheight = document.documentElement.clientHeight
    }else{        
        viewportheight = document.getElementsByTagName('body')[0].clientHeight
    }
	var x = document.getElementById('backdropjs_foreground');
	x.style.height = viewportheight + 'px';	
  }
}