    //Delay to play the movie when the banner is loaded.
    var delay=5000;
	// These functions are caught by the JavascriptView object of the player.
	function sendEvent(typ,prm) {
        if(thisMovie("player")){
            thisMovie("player").sendEvent(typ,prm);
         }
    }

    // This is a javascript handler for the player and is always needed.
	function thisMovie(movieName) {
	    if(navigator.appName.indexOf("Microsoft") != -1) {
			if(window[movieName]){
            return window[movieName];
            }
		} else {
            if(document[movieName]){
			return document[movieName];
            }
		}
	};

    function playMovie(){
        var banner=parent.document.getElementById("banner");
        if(banner.PercentLoaded() >= 100){
           setTimeout("sendEvent('play',true)",delay);
        }
    };

    

    function gotoPage(str)
	{
        var url=str+".html";
        window.open(url,"mainFrame");
		//window.parent.location.hash=url;
 	}
	
	function changePage(s)
	{
		var url=s+".html";
        window.open(url,"_parent");
	}
	