fnIncludeSwfObject = function fnIncludeSwfObject(src,w,h,wmode,menu,base, scale, align,flashvars) {
	var content ="<object align='center' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='" + w + "' height='" + h +"' id='"+src+"'/>"; 
		content += "<param name='movie' value='" + src + "'/>";
		content += "<param name='quality' value='high'/>";
		content += "<param name='allowScriptAccess' value='always'/>"
	
	if(scale != ''){
	  	content += "<param name='scale' value='" + scale + "'/>";
	}
	if(align != ''){
	  	content += "<param name='salign' value='" + align + "'/>";
	}
	
	content += "<param name='wmode' value='" + wmode + "'/>";
	if(menu != ''){
	  	content += "<param name='menu' value='" + menu + "'/>";
	}
	if(base != ''){
		content += "<param name='base' value='" + base + "'/>";
	}
	if(flashvars != ''){
		content += "<param name='FlashVars' value='" + flashvars + "'/>";
	}

	content += "<embed src='"+ src +"' quality='high' allowScriptAccess='always'  swLiveConnect='true'  pluginspage='https://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+ w +"' height='" + h;
	if(scale != '')
		content += "' scale='" + scale + "'";
	content += "' wmode='" + wmode + "'";
	if(align != ''){
		content += "' salign='" + align;
	}
	if(menu != ''){
		content += "' menu='" + menu;
	}
	if(flashvars !=''){
	  	content += "' FlashVars='" + flashvars + "'";
	}
	if(menu != ''){
	 	content += " menu='" + menu + "'";
	}
	if(base != ''){
		content += " base='" + base + "'";
	}	
	content += "name='"+src+"'"
	content += "/>";
	content += "</embed>";
	content +="</object>";
	  
	//adds the former object into the div container 
	document.write(content);
};

function getUrlVars()
	{
		alert("getUrlVars");
		var vars = [], hash;
		var hashes = window.location.href.slice(window.location.href.indexOf("?") + 1);
		alert("getUrlVars: " + hashes);
		return hashes;
	}

function getFlashVariables(bDecode){
	var sReturn = "";
	if(bDecode){
		var str = unescape(window.location.search);
	}else{
		var str = window.location.search;
	}
	var paramsAlpha = str.substr(1).split('&');

	for(i=0; i < paramsAlpha.length; i++){
		tempParam = paramsAlpha[i].split('=');
		if(String(tempParam[0]).indexOf("fv_")>=0){
			sReturn = sReturn + "&" + String(tempParam[0]).replace("fv_","") + "=" + tempParam[1];
		}
	}
	return(sReturn);
}

function openPopUp(sWindow){
	window.open(sWindow,'popup','toolbar=no,menubar=no,scrollbars=no,resizable=no,width=665,height=400');
}

function centerPopUp() { 
    px = (screen.width-document.body.clientWidth) / 2; 
    py = (screen.height-document.body.clientHeight) / 2; 
    moveTo(px, py); 
	focus();
} 