	var flashVersions = Math.floor(Math.random()*999999);
	flashVersions = "201004081012";
	
	slideShow = new Object();
	slideShow.settings = new Object();          

	
	slideShow.embed = function(categoryID,width,height,duration)
	{
		if(categoryID == "" || typeof categoryID == "undefined") return;
		if(width == "" || typeof width == "undefined") return;
		if(height == "" || typeof height == "undefined") return;
		if(duration == "" || typeof duration == "undefined") return;
		
		var settings_string = new String();

		for(var type in slideShow.settings)
		{
			if(slideShow.settings[type] != null)
				settings_string += "&"+type+"=" + escape(slideShow.settings[type]);
		}
		
		settings_string += "&categoryID="+categoryID;
		settings_string += "&duration="+duration;

		settings_string = settings_string.slice(1);

		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="slideShow" align="middle">\n');
		document.write('<param name="allowScriptAccess" value="always" />\n');
		document.write('<param name="movie" value="/flash/LLSImpleSlideShow.swf?v='+flashVersions+'" />\n');
		document.write('<param name="quality" value="high" />\n');
		document.write('<param name="wmode" value="transparent" />\n');
		document.write('<param name="bgcolor" value="#ffffff" />\n');

		document.write('<param name="flashvars" value="'+settings_string+'" />\n');

		document.write('<embed src="/flash/LLSImpleSlideShow.swf?v='+flashVersions+'" quality="high" flashvars="'+settings_string+'" wmode="transparent" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="slideShow" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
		document.write('</object>\n');
		
	}
	
