var FlashPicPlayer = function(PicWidth,PicHeight, SwfHeight,TextHeight,Photos,Links,Texts){var PicWidth;var PicHeight;var TextHeight;var SwfHeight;var baseurl;var Photos;var Links;var Texts;this.PicWidth = PicWidth;this.SwfHeight = SwfHeight;this.PicHeight = PicHeight;this.TextHeight = TextHeight;this.baseurl = "";this.Photos = Photos;this.Links = Links;this.Texts = Texts;var htmlcode = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ this.PicWidth +'" height="'+ this.SwfHeight +'">';htmlcode = htmlcode + '<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="'+this.baseurl+'images/PhotoPlayer.swf"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">';htmlcode = htmlcode + '<param name="menu" value="false"><param name=wmode value="opaque">';htmlcode = htmlcode + '<param name="FlashVars" value="pics='+this.Photos+'&links='+this.Links+'&texts='+this.Texts+'&borderwidth='+this.PicWidth+'&borderheight='+this.PicHeight+'&textheight='+this.TextHeight+'">';htmlcode = htmlcode + '<embed src="'+this.baseurl+'images/PhotoPlayer.swf" wmode="opaque" FlashVars="pics='+this.Photos+'&links='+this.Links+'&texts='+this.Texts+'&borderwidth='+this.PicWidth+'&borderheight='+this.PicHeight+'&textheight='+this.TextHeight+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ this.PicWidth +'" height="'+ this.SwfHeight +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';htmlcode = htmlcode + '</object>';document.write(htmlcode);}
