var __CAROUSEL__={};__CAROUSEL__.SizeOf=function(c){var b=0,a;for(a in c){if(c.hasOwnProperty(a)){if(a!="END"){b++}}}return b};__CAROUSEL__.Player=function(){var d=this.SizeOf(this.Parms);var b=Math.floor(Math.random()*d+1);var c=this.Parms["SHOW"+b];c=this.CreateShowHtmls(c);document.write(c);var a=document.getElementsByName("postflash");a.onerror=function(){alert("error")}};__CAROUSEL__.CreateShowHtmls=function(b){var a="";if(b.TYPE=="1"){a+=this.BuildImageHtmls(b.WIDTH,b.HEIGHT,b.URL,b.CLICK)}else{a+=this.BuildFlashHtmls(b.WIDTH,b.HEIGHT,b.URL,b.CLICK)}return a+this.BuildMonitorHtmls(b.MONITOR)};__CAROUSEL__.BuildMonitorHtmls=function(b){var a='<img src="'+b+'" width="1" height="1"/>';return a};__CAROUSEL__.BuildImageHtmls=function(d,a,e,b){var c='<a target="_blank" href="'+b+'"><img width="'+d+'px" height="'+d+'px" src="'+e+'"></a>';return c};__CAROUSEL__.BuildFlashHtmls=function(a,h,g,e){var c="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000";var d="application/x-shockwave-flash";var f="http://www.macromedia.com/go/getflashplayer";var i="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8.0.42.0";var b='<div style="width:'+a+"px;height:"+h+'px;padding:0;margin:0;overflow:hidden;clear:both;">';b+='<object classid="'+c+'" codebase="'+i+'" width="'+a+'" height="'+h+'" id="postflash">';b+='<param name="movie" value="'+g+'">';b+='<param name="wmode" value="Opaque">';b+='<param name="allowscriptaccess" value="always">';b+='<embed src="'+g+'" width="'+a+'" height="'+h+'" swliveconnect="true" wmode="Opaque" ';b+='type="'+d+'" allowscriptaccess="always" name="postflash" pluginspage="'+f+'">';b+="</object>";b+="<div onclick=\"javascript:window.open('"+e+"');\" ";b+='style="position:relative;cursor:pointer;padding:0;margin:0;filter:alpha(opacity=0);-moz-opacity:0;';b+="opacity:0;background-color:tan;left:0px;top:-"+h+"px;z-index:1;width:"+a+"px;height:"+h+'px;">';b+="</div></div>";return b};

