function renderFlash(obj)
{
	var startPage = (obj.startPage) ? obj.startPage : "startPage";
	var site = (obj.site) ? obj.site : "en";
	var config = (obj.config) ? obj.config : "config.xml";
	var gTags = (obj.gTags) ? obj.gTags : "";
	var width = (obj.width) ? obj.width : "1000";
	var height = (obj.height) ? obj.height : "500";
	var bgColor = (obj.bgColor) ? obj.bgColor : "#ffffff";
	var version = (obj.version) ? obj.version : "9.0.115.0";
	
	var flashvars = {};
	flashvars.startWith = startPage;
	flashvars.lang = site;
	flashvars.configFile = config;
	flashvars.configFile = config;
	flashvars.gTags = gTags;
	var params = {};
	params.scale = "noscale";
	params.bgcolor = bgColor;
	params.allowfullscreen = "true";
	var attributes = {};
	attributes.id = "hostFlash";
	swfobject.embedSWF("host.swf", "content", width, height, version, "expressInstall.swf", flashvars, params, attributes);
	
	
}

function reSize(flashName, w,h) 
{
   //sets the width and height of the embeded flash
   //this function is called from within flash to resize  
	document.getElementById(flashName).height=h
	document.getElementById(flashName).width=w 
}


function doStats(evStr)
{
	pageTracker._trackPageview(evStr); //This is a Google Analytics code.
	//window.status = "GA: " + evStr;
}

replace = function(str, find, replace) {
	return str.split(find).join(replace);
}

function share(url, title) {
	var s = SHARETHIS.addEntry({
		url: url,
		title: title
	}, {button:false,popup:true});
	s.popup()
	return false;
}
