// JavaScript Document

function imagescroller(xmlUrl, height) {
	height = height && height>=140 && height<=400 ? height : 140;
	var code = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="' + height + '" id="imgsroller" align="middle">';
	code += '<param name="allowScriptAccess" value="sameDomain" />';
	code += '<param name="allowFullScreen" value="false" />';
	code += '<param name="scale" value="noScale" />';
	code += '<param name="movie" value="http://www.qooza.hk/plugin/imagescroller/imagescroller.swf?xmlUrl=' + xmlUrl + '" />';
	code += '<param name="quality" value="high" />';
	code += '<param name="wmode" value="transparent" />';
	code += '<param name="salign" value="TL" />';
	code += '<embed src="http://www.qooza.hk/plugin/imagescroller/imagescroller.swf?xmlUrl='+ xmlUrl +'" name="imgsroller" quality="high" width="100%" height="' + height + '" wmode="transparent" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" scale="noScale" salign="TL" />';
	code += '</object>';
	
	document.write(code);
}
