if(typeof swfIN=="undefined"){var swfIN=function(swfPath,swfID,width,height){this.params=[];this.flashVars=[];this.swfPath=swfPath;this.swfID=swfID;this.containerDivID="div_"+swfID;this.width=String(width);this.height=String(height);this.scrollbarWidth=null;this.scrollbarHeight=null;this.requiredVersion=[0,0,0];this.redirectURL=null;this.redirectUseParams=false;this.xiPath=null;this.xiWidth=null;this.xiHeight=null;this.is_written=false;this.showDivName=null;this.showDivStyleMemory=null;this.isUsingMacMousewheel=false;swfIN._static.init();}
swfIN.prototype={addParam:function(name,val){if(name!="")this.params[name]=val;},addParams:function(params){for(var i in params){if(params.hasOwnProperty(i))this.addParam(i,params[i]);}},addVar:function(name,val){if(name!="")this.flashVars[name]=val;},addVars:function(vars){for(var i in vars){if(vars.hasOwnProperty(i))this.addVar(i,vars[i]);}},scrollbarAt:function(width,height){this.scrollbarWidth=width;this.scrollbarHeight=height;if(this.isWritten())this.refresh();},resize:function(width,height){this.width=width;this.height=height;if(this.isWritten())this.refresh();},detect:function(requiredVersion,redirectURL,redirectUseParams){this.detectRedirect(requiredVersion,redirectURL,redirectUseParams);},detectRedirect:function(requiredVersion,redirectURL,redirectUseParams){this.requiredVersion=requiredVersion;this.redirectURL=redirectURL;this.redirectUseParams=redirectUseParams||false;},detectShowDiv:function(requiredVersion,showDivName,autoHide){this.requiredVersion=requiredVersion;this.showDivName=showDivName;},useExpressInstall:function(xiPath,width,height){this.xiPath=xiPath;this.xiWidth=width;this.xiHeight=height;},useSWFAddress:function(){if(typeof SWFAddress!="undefined"){SWFAddress.setId(this.getSWFID());}else{this._error("Can't find SWFAddress. Remove the .useSWFAddress() call if you're not using it.");}},useMacMousewheel:function(){this.isUsingMacMousewheel=true;},callback:function(funk){var o=window.document[this.getSWFID()];var a=arguments;var f=funk;var expression="";for(var i=1;i<arguments.length;i++){expression+=(i==1)?"a["+i+"]":", a["+i+"]";}
var result=null;try{result=eval("o[f]("+expression+");");}catch(err){this._error("callback function \""+funk+"\" failed");}
return result;},write:function(){if(!swfIN.detect.isPlayerVersionValid(this.requiredVersion)&&swfIN.detect.isPlayerVersionValid(swfIN._memory.expressInstallVersion)&&this.xiPath!=null&&swfIN.utils.getQueryParam("detect")!="false"){document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVar("MMdoctitle",document.title);this.addVar("MMplayerType",(swfIN.detect.nsPlugin())?"PlugIn":"ActiveX");this.addVar("MMredirectURL",window.location);this.width=this.xiWidth||this.width;if(this.width<swfIN._memory.expressInstallMinSize.w)this.width=swfIN._memory.expressInstallMinSize.w;this.height=this.xiHeight||this.height;if(this.height<swfIN._memory.expressInstallMinSize.h)this.height=swfIN._memory.expressInstallMinSize.h;this.swfPath=this.xiPath;document.write(this.getHTML());this.is_written=true;}else if(swfIN.detect.isPlayerVersionValid(this.requiredVersion)||swfIN.utils.getQueryParam("detect")=="false"){document.write(this.getHTML());this.is_written=true;}else if(this.redirectURL!=null){var url=(this.redirectUseParams)?this.redirectURL+"?required="+this.requiredVersion.join(".")+"&installed="+swfIN.detect.getPlayerVersionString():this.redirectURL;location.href=url;}
if(this.isWritten()){if(this.showDivName){var style=swfIN.utils.$(this.showDivName).style;this.showDivStyleMemory={visibility:style.visibility,position:style.position};swfIN.utils.$hide(this.showDivName);}
this._checkForConflicts();swfIN._memory.swf_stack.push(this);this.refresh();this._formFix();}else{if(this.showDivName){var style=swfIN.utils.$(this.showDivName).style;style.visibility=this.showDivStyleMemory.visibility;style.position=this.showDivStyleMemory.position;}}},isWritten:function(){return this.is_written;},hideSEO:function(seoDiv){swfIN.utils.$delete(seoDiv);},getDivID:function(){return this.containerDivID;},getDivRef:function(){return swfIN.utils.$(this.getDivID());},getSWFID:function(){return this.swfID;},getSWFRef:function(){return swfIN.utils.$(this.getSWFID());},refresh:function(){var div=this.getDivRef();div.style.width=this._calculateWidth();div.style.height=this._calculateHeight();if(this.scrollbarWidth)div.style["min-width"]=this.scrollbarWidth+"px";if(this.scrollbarHeight)div.style["min-height"]=this.scrollbarHeight+"px";},getHTML:function(){var fv="";for(var i in this.flashVars){if(this.flashVars.hasOwnProperty(i)){var mod=(fv=="")?"":"&";fv+=mod+i+"="+escape(this.flashVars[i]);}}
var p=[];p["quality"]="high";p["menu"]="false";p["swLiveConnect"]="true";p["pluginspage"]=swfIN._memory.player_download;p["allowScriptAccess"]="always";p["FlashVars"]=fv;for(var i in this.params){if(this.params.hasOwnProperty(i))p[i]=this.params[i];}
var tag="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' "+" id='"+this.swfID+"' width='100%' height='100%' align='top' hspace='0' vspace='0'><param name='movie' value='"+this.swfPath+"'>";for(var i in p){if(p.hasOwnProperty(i))tag+="<param name='"+i+"' value='"+p[i]+"'>";}
tag+="<embed src='"+this.swfPath+"' width='100%' height='100%' align='top' hspace='0' vspace='0' type='application/x-shockwave-flash' name='"+this.swfID+"' ";for(var i in p){if(p.hasOwnProperty(i))tag+=i+"='"+p[i]+"' ";}
tag+="></embed></object>";var minValues=(this.scrollbarWidth>0&&this.scrollbarHeight>0)?"min-width:"+this.scrollbarWidth+"px; min-height:"+this.scrollbarHeight+"px":"";tag="<div id='"+this.containerDivID+"' style='width:"+this._calculateWidth()+"; height:"+this._calculateHeight()+"; "+minValues+"'>"+tag+"</div>";return tag;},_formFix:function(){if(swfIN.detect.ie()){window[this.getSWFID()]=document[this.getSWFID()];}},_calculateWidth:function(){return this._sizeHelper("Width");},_calculateHeight:function(){return this._sizeHelper("Height");},_sizeHelper:function(type){var scrollbar=String(this["scrollbar"+type]);var res=String(this[type.toLowerCase()]);if(scrollbar!=null&&res.indexOf("%")>-1){var pixelVal=swfIN.detect.getBrowserSize()[type.substr(0,1).toLowerCase()]*(res.split("%")[0]/100);res=(scrollbar>pixelVal)?scrollbar:res;}
return(res.indexOf("%")>-1)?res:res+"px";},_checkForConflicts:function(){if(this.swfID==null)this._error("The swf's id cannot be empty");if(this.containerDivID==null)this._error("The container div's id cannot be empty");if(this.swfID.indexOf(" ")>-1)this._error("The swf's id cannot contain spaces");if(this.containerDivID.indexOf(" ")>-1)this._error("The container div's id cannot contain spaces");if(this.getDivID()==this.getSWFID())this._error("You cannot name swfs or divs by the same id. Please revise the ids currently in use.");var movies=swfIN._memory.swf_stack;for(var i=0;i<movies.length;i++){if(movies[i].getDivID()==this.getDivID()||movies[i].getDivID()==this.getSWFID()||movies[i].getSWFID()==this.getDivID()||movies[i].getSWFID()==this.getSWFID()){this._error("You cannot name swfs or divs by the same id. Please revise the ids currently in use.");}}},_error:function(msg){try{console.error("swfIN error!\n"+msg);}catch(e){}}}
swfIN._static={init:function(){if(!swfIN._memory.is_init){if(Array.prototype.push==null){Array.prototype.push=function(val){this[this.length]=val;return this.length;}}
if(swfIN.detect.mac()){swfIN.utils.addEventListener(window,"DOMMouseScroll",swfIN._static.sendMousewheel);swfIN.utils.addEventListener(document,"mousewheel",swfIN._static.sendMousewheel);}
swfIN.utils.addEventListener(window,"resize",swfIN._static.refreshAll);swfIN._memory.is_init=true;}},refreshAll:function(){var movies=swfIN._memory.swf_stack;for(var i=0;i<movies.length;i++){var m=movies[i];if(m.isWritten())m.refresh();}},sendMousewheel:function(event){var delta=0;if(event.wheelDelta){delta=event.wheelDelta/40;}else if(event.detail){delta=-event.detail;}
if(delta){var movies=swfIN._memory.swf_stack;for(var i=0;i<movies.length;i++){var m=movies[i];if(m.isWritten()&&m.isUsingMacMousewheel){m.callback("externalMouseEvent",delta);}}}},expressInstallFailed:function(){var movies=swfIN._memory.swf_stack;for(var i in movies){if(movies.hasOwnProperty(i)){var m=movies[i];swfIN.utils.$delete(m.getDivID());m.is_written=false;movies=swfIN.utils.splice(movies,i,1);swfIN._memory.swf_stack=movies;m.xiPath=null;m.write();}}}}
swfIN._memory={swf_stack:[],is_init:false,player_download:"http://get.adobe.com/flashplayer/",user_agent:navigator.userAgent.toLowerCase(),expressInstallMinSize:{w:214,h:137},expressInstallVersion:[6,0,65],fullscreenModeVersion:[9,0,28],vistaVersion:[9,0,28]}
swfIN.detect={getPlayerVersion:function(){var v=[0,0,0];var axo;if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){v=x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(".");}}else if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){axo=1;var counter=3;while(axo){try{counter++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+counter);v=[counter,0,0];}catch(e){axo=null;}}}else{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");v=[6,0,21];axo.AllowScriptAccess="always";}catch(e){if(v[0]==6){return v;}}
try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}
if(axo!=null){v=axo.GetVariable("$version").split(" ")[1].split(",");}}
return v;},isPlayerVersionValid:function(required){var current=swfIN.detect.getPlayerVersion();if(current[0]<required[0])return false;if(current[0]>required[0])return true;if(current[1]<required[1])return false;if(current[1]>required[1])return true;if(current[2]<required[2])return false;return true;},getPlayerVersionString:function(){return swfIN.detect.getPlayerVersion().join(".");},ns4:function(){return(document.layers!=null);},ie5_mac:function(){return(swfIN._memory.user_agent.indexOf("msie 5")!=-1&&swfIN._memory.user_agent.indexOf("mac")!=-1);},ie7:function(){return(swfIN._memory.user_agent.indexOf("msie 7")!=-1);},ie:function(){return(swfIN._memory.user_agent.indexOf("msie")!=-1);},webkit:function(){return(swfIN._memory.user_agent.indexOf("webkit")!=-1);},opera:function(){return(window.opera!=null);},mac:function(){return(swfIN._memory.user_agent.indexOf("mac")!=-1);},nsPlugin:function(){return(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length>0);},getBrowserSize:function(){if(self.innerWidth){return{w:self.innerWidth,h:self.innerHeight};}else if(document.documentElement&&document.documentElement.clientWidth){return{w:document.documentElement.clientWidth,h:document.documentElement.clientHeight};}else if(document.body){return{w:document.body.clientWidth,h:document.body.clientHeight};}else{return{w:null,h:null};}},getFullScreenSize:function(){return{w:screen.width,h:screen.height};},getAvailScreenSize:function(){return{w:screen.availWidth,h:screen.availHeight};}}
swfIN.utils={$:function(id){return document.getElementById(id);},$delete:function(id){var o=swfIN.utils.$(id);o.parentNode.removeChild(o);},$hide:function(id){var style=swfIN.utils.$(id).style;style.visibility="hidden";style.position="absolute";},splice:function(o,num,count){var a=[];if(count==null)count=o.length-num;var counter=0;for(var i=num;i<o.length;i++){if(++counter<count){a[i-num]=o[i];}}
return a;},delegate:function(scope,handler){var _f=function(){var tt=arguments.callee.t;var ff=arguments.callee.f;var aa=arguments.callee.a;return ff.apply(tt,aa);}
_f.t=scope;_f.f=handler;_f.a=swfIN.utils.splice(arguments,2);return _f;},addEventListener:function(listenerObject,event,handler){if(listenerObject.addEventListener){listenerObject.addEventListener(event,handler,true);}else{listenerObject.attachEvent("on"+event,handler);}},popUp:function(url,name,w,h,x,y,params){var scr2=swfIN.detect.getFullScreenSize();var scr=swfIN.detect.getAvailScreenSize();w=(w=="full")?scr.w:w;h=(h=="full")?scr.h:h;x=(x=="center")?(scr2.w-w)/2:x;y=(y=="center")?(scr2.h-h)/2:y;var p=[];p["width"]=w;p["innerWidth"]=w;p["height"]=h;p["innerHeight"]=h;p["toolbar"]=0;p["location"]=0;p["directories"]=0;p["status"]=0;p["menubar"]=0;p["scrollbars"]=0;p["resizable"]=0;p["copyhistory"]=0;p["fullscreen"]=0;for(var i in params){if(params.hasOwnProperty(i))p[i]=params[i];}
var finalExtras="";for(var i in p){if(p.hasOwnProperty(i))finalExtras+=(finalExtras=="")?i+"="+p[i]:","+i+"="+p[i];}
var win=window.open(url,name,finalExtras);win.resizeTo(w,h);win.moveTo(0,0);win.moveBy(x,y);win.focus();},getQueryParam:function(key){var val=swfIN.utils.getAllQueryParams()[key];return(val!=undefined&&val!="")?val:null;},getAllQueryParams:function(){var qs={};var params=window.location.search.substring(1).split("&");for(var i=0;i<params.length;i++){var keyVal=params[i].split("=");qs[keyVal[0]]=keyVal[1];}
return qs;}}}
