
schedule("window", insertSWFs); 


/*
	** Each SWF file that needs to be inserted should have a separate function.
*/

function insertSWFs() 
{
	flaobj = document.getElementById("flash-banner");
	
	if(flaobj) 
	{
		var so = new SWFObject("basemedia/swf/rotator.swf", "sotester", "736", "217", "8", "#FF6600");
		so.addParam("wmode", "transparent");
		//get the path of the xml
		path = flaobj.getAttribute("rel");
		so.addVariable("path", path);
		so.write("flash-banner");
	}
};

function insertBannerSWF() 
{
	alert("?")
	
};
