function displayFlash(path, width, height)
{
    /*path+=getURL();*/

	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0" WIDTH="' + width);
	document.write('" HEIGHT="' + height + '" id="FlashContent">');
	document.write('<PARAM NAME="movie" VALUE="' + path + '"><PARAM NAME="quality" VALUE="high">');
	document.write('<PARAM NAME="AllowScriptAccess" VALUE="never"><EMBED src="' + path + '"');
	document.write(' quality="high" WIDTH="' + width + '" HEIGHT="' + height + '" NAME="FlashContent"');
	document.write(' AllowScriptAccess="never" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
	document.write('</EMBED></OBJECT>');
}
/*
function displayDirector(path, width, height) {
	document.write('<OBJECT classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000"');
	document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=10,1,0,11"');
	document.write(' ID="DirectorContent" WIDTH="' + width + '" HEIGHT="' + height + '">');
	document.write('<PARAM NAME=src VALUE="' + path + '">');
	document.write('<EMBED SRC="' + path + '"');
	document.write(' WIDTH="' + width + '" HEIGHT="' + height + '"');
	document.write(' TYPE="application/x-director" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveDirector">');
	document.write('</EMBED>');
	document.write('</OBJECT>');
}

function displayCustomEmbed(embed) {
	document.write(embed);
}

function getURL(){
    var searchString = document.location.search;
    searchString = searchString.substring(1);
    var nvPairs = searchString.split("&");
    var pattern=/[^a-zA-Z0-9]+/;
   
    //show the length
   
    for (i = 0; i < nvPairs.length; i++){
        var nvPair = nvPairs[i].split("=");
        var name = nvPair[0];
     
        if(nvPair[0]=='url_id'){
            var url_id=nvPair[1];
            if(url_id.match(pattern)){
               return "?url_id=bad_id";
            }else{
               return "?url_id="+url_id;
            }
        }else{
           return '';
       }
    }
     
}

function getHostValue(){
    var host=location.hostname;
    return host;
}*/