var fswfid="";var fwindows={};function fsetfswfid(id){fswfid=id;};function callFunc(aa,ba,ca,da){return aa[ba](ca,da);};function fgetWindowName(){return window.name;};function fsetWindowName(ea){window.name=ea;};function fgetSWF(fa){if(window[fa]){return window[fa];}
return document[fa];};function fopenWindow(ga,ha,ia,ja,ka,la){setTimeout(function(){fopenWindowTimer(ga,ha,ia,ja,ka,la,true);},500);};function fopenWindowTimer(ma,na,oa,pa,qa,ra,sa){var ta=window.open(ma,na,oa);if(ta==null||ta.closed){fgetSWF(fswfid).onPopupBlocked(na);return null;};fwindows[na]=ta;if(pa!=null&&pa.length>0){ta.document.open();if(ra>0){ta.document.write('<script language=\"javascript\">function fcltimer(lifetime){return setTimeout(function () {this.close();}, lifetime);}</script>');};ta.document.write(pa);ta.document.close();};if(!qa){try{callFunc(ta.document,'getElementsByTagName','body')[0].oncontextmenu=function(){return false;};}
catch(err){};};if(ra>0){try{if(pa!=null&&pa.length>0){callFunc(ta,'fcltimer',ra);}
else{callFunc(ta,'setTimeout',function(){ta.close();},ra);};}
catch(err){};};fgetSWF(fswfid).onWindowOpened(na);if(fgetWindowByName(na)&&!fgetWindowByName(na).closed&&oa.length>0&&navigator.userAgent.indexOf('Macintosh')!=-1){var ua=oa.split(',');var ww=0;var hh=0;for(i=0;i<ua.length;i++){if(ua[i].indexOf('width=')==0){ww=parseInt(ua[i].substring(6));};if(ua[i].indexOf('height=')==0){hh=parseInt(ua[i].substring(7));};};if(ww>0&&hh>0&&typeof(ta.innerWidth)=='number'){if(sa){setTimeout(function(){fresize(na,ww,hh);},100);}
else{fresize(na,ww,hh);};};};return ta;};function fcloseWindow(va,wa){setTimeout(function(){fcloseWindowTimer(va,wa);},100);};function fcloseImmediately(xa){if(fgetWindowByName(xa)&&!fgetWindowByName(xa).closed){fgetWindowByName(xa).close();};};function fcloseWindowTimer(ya,za){if(fgetWindowByName(ya)&&!fgetWindowByName(ya).closed){if(za){fgetWindowByName(ya).close();}
else{try{fgetWindowByName(ya).setTimeout('close()',500);}
catch(err){};};if(ya==window.name&&window.opener&&!window.opener.closed){try{callFunc(window.opener,'fcloseWindow',ya);}
catch(err){};};fdeleteWindow(ya);};};function fdeleteWindow(Aa){try{delete fwindows[Aa];}
catch(err){};};function fgetWindowByName(Ba){if(Ba==window.name){return window;};try{if(window.opener&&Ba==window.opener.name&&!window.opener.closed){return window.opener;};}
catch(err){};if(fwindows[Ba]&&!fwindows[Ba].closed){return fwindows[Ba];};return null;};function fcall(Ca,Da,Ea){return callFunc(fgetWindowByName(Ca),'fcallHandler',Da,Ea);};function fcallHandler(Fa,Ga){return fgetSWF(fswfid).callHandler(Fa,Ga);};function fclearUnload(){window.onunload=null;};function fwindowUnload(e,Ha){if(Ha){fgetSWF(fswfid).onUnloadHandler(Ha);}
else{try{fgetSWF(fswfid).onUnloadHandler(window.name);}
catch(err){};if(window.opener&&!window.opener.closed){try{callFunc(window.opener,'fwindowUnload',e,window.name);}
catch(err){};};for(var i in fwindows){if(fwindows[i]&&!fwindows[i].closed){try{callFunc(fwindows[i],'fwindowUnload',e,window.name);}
catch(err){};};};};};function fgrabFocus(Ia){if(Ia==window.name){try{setTimeout('focus()',100);}
catch(err){};}
else{try{fgetWindowByName(Ia).focus();}
catch(err){};};};function fdefineEvents(){window.onfocus=fwindowFocus;fgetSWF(fswfid).onfocus=fwindowFocus;window.onblur=fwindowBlur;fgetSWF(fswfid).onblur=fwindowBlur;window.onunload=fwindowUnload;if(navigator.userAgent.indexOf('Safari')!=-1){window.onmousewheel=fwheel;if(navigator.userAgent.indexOf('Version')==-1){fclearUnload();};};window.onresize=fwindowResize;};function fwheel(e){try{var Ja=0;if(!event){event=window.event;};if(event.wheelDelta){Ja=event.wheelDelta/120;}
else if(event.detail){Ja=-event.detail/3;};if(Ja){fgetSWF(fswfid).onWheelHandler(window.name,Ja);};}
catch(err){};};function fwindowFocus(e){try{fgetSWF(fswfid).onFocusHandler(window.name);}
catch(err){};};function fwindowBlur(e){try{fgetSWF(fswfid).onBlurHandler(window.name);}
catch(err){};};function fgetClosedWindow(Ka){if(Ka&&(!window.opener||window.opener.closed)){return 'opener';};for(var i in fwindows){if(!fwindows[i]||fwindows[i].closed){fdeleteWindow(i);return i;};};return null;};function fchangeTitle(La){document.title=La;};function funloadMessage(Ma){if(Ma==null){window.onbeforeunload=null;}
else{window.onbeforeunload=function(){return Ma;};};};function fchangeLocation(Na,Oa){fgetWindowByName(Na).location=Oa;};var timer1=0;var timer2=0;var minWidth=0;var minHeight=0;var currentWidth=0;var currentHeight=0;function fcontrolSize(Pa,w,h){minWidth=w;minHeight=h;currentWidth=fgetInnerWidth(window.name);currentHeight=fgetInnerHeight(window.name);};function fwindowResize(e){try{if(minWidth>0&&minHeight>0){if(timer1>0){clearTimeout(timer1);};if(typeof(window.innerHeight)=='number'){timer1=setTimeout(function(){fresizeByTimer();},1000);}
else{timer1=setTimeout(function(){fresizeByTimer();},100);};}
else{fgetSWF(fswfid).onResizeHandler(window.name);};}
catch(err){};};function fresizeByTimer(){try{timer1=0;var Qa=fgetInnerWidth(window.name);var Ra=fgetInnerHeight(window.name);var Sa=0;var Ta=0;var Ua=false;if(typeof(window.innerHeight)=='number'){var Va=fgetTopPosition(window.name);var Wa=fgetLeftPosition(window.name);if(Va<0){Ra+=Va*2;if(Wa<0){Qa+=Wa*2;window.moveTo(0,0);}
else{window.moveTo(Wa,0);};Sa=Qa;Ta=Ra;};}
else{var Va=fgetTopPosition(window.name);var Wa=fgetLeftPosition(window.name);if(Va==4||Wa==-3){Ua=true;Ra+=-8;Qa+=-8;Sa=Qa;Ta=Ra;}
else{Sa=screen.width-11;Ta=screen.height-11;};};if(Qa<minWidth){Qa=minWidth;};if(Ra<minHeight){Ra=minHeight;};var Xa=Math.abs(currentWidth-Qa);var Ya=Math.abs(currentHeight-Ra);var Za=false;if(Xa>Ya){Za=true;};if(Za){Ra=Math.round(Qa*minHeight/minWidth);}
else{Qa=Math.round(Ra*minWidth/minHeight);};if(Sa>0&&Qa>Sa&&Sa>minWidth){Qa=Sa;Ra=Math.round(Qa*minHeight/minWidth);};if(Ta>0&&Ra>Ta&&Ta>minHeight){Ra=Ta;Qa=Math.round(Ra*minWidth/minHeight);};window.onresize=null;fresize(window.name,Qa,Ra,false);if(fgetInnerWidth(window.name)<Qa||fgetInnerHeight(window.name)<Ra){fsetCurrentDim();}
if(Ua){window.moveBy(4,4);};window.onresize=fwindowResize;if(timer2>0){clearTimeout(timer2);};if(typeof(window.innerHeight)=='number'){timer2=setTimeout(function(){fsetCurrentDim();},2000);}
else{timer2=setTimeout(function(){fsetCurrentDim();},100);};fgetSWF(fswfid).onResizeHandler(window.name);}
catch(err){window.onresize=fwindowResize;fgetSWF(fswfid).onResizeHandler(window.name);if(timer1>0){clearTimeout(timer1);timer1=0;};timer1=setTimeout(function(){fresizeByTimer();},500);};};function fsetCurrentDim(){timer2=0;currentWidth=fgetInnerWidth(window.name);currentHeight=fgetInnerHeight(window.name);};function fgetInnerWidth($a){var ab=0;var bb=fgetWindowByName($a);if(typeof(bb.innerWidth)=='number'){ab=bb.innerWidth;}
else if(bb.document.documentElement&&bb.document.documentElement.clientWidth){ab=bb.document.documentElement.clientWidth;}
else if(bb.document.body&&bb.document.body.clientWidth){ab=bb.document.body.clientWidth;};return ab;};function fgetInnerHeight(cb){var db=0;var eb=fgetWindowByName(cb);if(typeof(eb.innerHeight)=='number'){db=eb.innerHeight;}
else if(eb.document.documentElement&&eb.document.documentElement.clientHeight){db=eb.document.documentElement.clientHeight;}
else if(eb.document.body&&eb.document.body.clientHeight){db=eb.document.body.clientHeight;};return db;};function fgetLeftPosition(fb){var gb=0;var hb=fgetWindowByName(fb);if(typeof(hb.screenX)=='number'){gb=hb.screenX;}
else{gb=hb.screenLeft-3;};return gb;};function fgetTopPosition(ib){var jb=0;var kb=fgetWindowByName(ib);if(typeof(kb.screenY)=='number'){jb=kb.screenY;}
else{jb=kb.screenTop-40;};return jb;};function fresize(lb,mb,nb,ob){var pb=fgetWindowByName(lb);if(mb==-1&&nb==-1){pb.moveTo(0,0);if(typeof(screen.width)=='number'){pb.resizeTo(screen.width,screen.height);}
else{pb.resizeTo(screen.availableWidth,screen.availableHeight);};return;};var qb=fgetTopPosition(lb);var rb=fgetLeftPosition(lb);var sb=fgetInnerWidth(lb);var tb=fgetInnerHeight(lb);if(sb==mb&&tb==nb){return;};var ub=mb;var vb=nb;if(typeof(pb.outerWidth)=='number'&&typeof(pb.outerHeight)=='number'){ub+=pb.outerWidth-sb;vb+=pb.outerHeight-tb;};pb.resizeTo(ub,vb);sb=fgetInnerWidth(lb);tb=fgetInnerHeight(lb);if(sb==mb&&tb==nb){if(qb<=0){if(rb<=0){pb.moveTo(0,0);};pb.moveTo(rb,0);};return;};if(typeof(pb.outerWidth)=='number'){if(navigator.userAgent.indexOf('Safari')==-1||navigator.userAgent.indexOf('Version')!=-1){return;}}
ub=mb;vb=nb;if(sb<mb){ub+=mb-sb;};if(tb<nb){vb+=nb-tb;};pb.resizeTo(ub,vb);if(ob){return;};sb=fgetInnerWidth(lb);tb=fgetInnerHeight(lb);if(sb==mb&&tb==nb){return;};ub=0;vb=0;if(sb<mb){ub=mb-sb;};if(tb<nb){vb=nb-tb;};pb.moveBy(-ub,-vb);fresize(lb,mb,nb,true);};function fgetParentWindow(){var wb=new Object();wb.op=false;wb.name=null;if(window.opener){wb.op=true;try{wb.name=window.opener.name;}
catch(err){};};return wb;};function fsetParentWindowName(xb){try{window.opener.name=xb;}
catch(err){};};function fsendHtcmd(yb,zb){try{fgetSWF(fswfid).htcmdHandler(yb,zb);}
catch(err){};};function fopenHurl(Ab){var Bb='<iframe id="hurliframe" src="'+Ab+'" width="0px" height="0px" border="0px" frameborder="0" style="DISPLAY: none; LEFT: 0px; POSITION: absolute; TOP: 0px"></iframe>';var l=document.getElementById('hurliframediv');l.innerHTML=Bb;};function fcheckPopupBlocker(Cb){var Db=window.open("about:blank","fpopuptest",Cb);if(Db==null||Db.closed){return true;};Db.close();return false;};
