if(!document.all){
var onError=null;
}else{
window.onerror=handleError;
}
window.onerror=function(){
return true;
};
function handleError(){
return true;
}
var flashMovie;
function onBrowserLoad(){
if(document["flashcontent_obj"]){
flashMovie=document["flashcontent_obj"];
}else{
flashMovie=window.document["flashcontent_obj"];
}
}
window.onload=onBrowserLoad;
if(typeof com=="undefined"){
var com=new Object();
}
if(typeof com.vpmedia=="undefined"){
com.vpmedia=new Object();
}
com.vpmedia.SWFCommons=new function(){
this.browser=function(){
var _1=typeof document.getElementById!="undefined"&&typeof document.getElementsByTagName!="undefined"&&typeof document.createElement!="undefined";
var u=navigator.userAgent.toLowerCase();
var _3=/win/.test(u);
var _4=/mac/.test(u);
var _5=/opera/.test(u);
var _6=_5?parseFloat(u.replace(/^.*opera ?\/?(\d+(\.\d+)?).*$/,"$1")):0;
var ie=!_5&&/msie/.test(u);
var _8=ie?parseFloat(u.replace(/^.*msie (\d+\.\d+).*$/,"$1")):0;
var _9=/webkit/.test(u);
var _a=_9?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):0;
return {w3cdom:_1,ie:ie,opera:_5,win:_3,mac:_4,webkit:_9};
};
this.getHost=function(){
var _b;
if(this.getProtocol()=="HTTP"){
_b=document.URL.substring(7,document.URL.indexOf("/",7));
}else{
if(this.getProtocol()=="HTTPS"){
_b=document.URL.substring(8,document.URL.indexOf("/",8));
}else{
_b=".";
}
}
return _b.toString();
};
this.getProtocol=function(){
var _c;
if(document.URL.substring(0,7).toUpperCase()=="HTTP://"){
_c="HTTP";
}else{
if(document.URL.substring(0,8).toUpperCase()=="HTTPS://"){
_c="HTTPS";
}else{
_c="FILE";
}
}
return _c.toString();
};
this.getPath=function(){
var l=document.URL.substring(8,document.URL.indexOf("/",8)).toString().length;
var _e=document.URL.substring(8+l);
return _e.toString();
};
this.checkHost=function(_f){
if(this.getHost()!=_f){
document.URL="http://"+_f;
}
};
this.setFlashSize=function(_10,_11){
flashMovie.style.width=_10+"px";
flashMovie.style.height=_11+"px";
};
this.setFlashBgColor=function(_12){
var _13=SWFCommons.browser().ie;
var s=_12.substr(4);
s=s.substr(0,s.length-1);
s=s.split(", ").slice("");
var _15=_13?_12:_12.substr(1,7);
flashMovie.setAttribute("bgColor",_15);
};
this.onOutsideFlash=function(){
flashMovie.SetVariable("isOutsideFlash","true");
};
this.onInsideFlash=function(){
flashMovie.SetVariable("isOutsideFlash","false");
};
this.createTextResizeListener=function(){
TextResizeDetector.TARGET_ELEMENT_ID="mainbody";
TextResizeDetector.USER_INIT_FUNC=SWFCommons.TextResizeListener;
};
this.TextResizeListener=function(){
var _16=TextResizeDetector.addEventListener(SWFCommons.onTextResize,null);
if(_16[0].iSize){
flashMovie.SetVariable("isTextResize",_16[0].iSize);
}
};
this.onTextResize=function(e,_18){
if(_18[0].iSize){
flashMovie.SetVariable("isTextResize",_18[0].iSize);
}
};
this.mouseClickHandler=function(e){
var _1a=SWFCommons.browser().ie;
if(navigator.appName=="Netscape"&&(e.which==3||e.which==2)){
return false;
}else{
if(_1a&&(event.button==2||event.button==3)){
return false;
}
}
return true;
};
this.createMouseNoRight=function(){
document.onmousedown=SWFCommons.mouseClickHandler;
document.onmouseup=SWFCommons.mouseClickHandler;
if(document.layers){
window.captureEvents(Event.MOUSEDOWN);
}
if(document.layers){
window.captureEvents(Event.MOUSEUP);
}
window.onmousedown=SWFCommons.mouseClickHandler;
window.onmouseup=SWFCommons.mouseClickHandler;
};
return this;
};
com.vpmedia.CSSUtil=new function(){
this.getCSSBodyBgColor=function(){
var _1b=SWFCommons.browser().ie;
var _1c=document.styleSheets[0];
var _1d=_1c.cssRules?_1c.cssRules:_1c.rules;
for(var i=0;i<_1d.length;i++){
if(_1d[i].selectorText.toLowerCase()=="body"){
var _1f=_1d[i];
if(_1f.style.backgroundColor){
var _20=_1f.style.backgroundColor;
var s=_20.substr(4);
s=s.substr(0,s.length-1);
s=s.split(",").slice("");
var _22=_1b?_20:"#"+com.vpmedia.CSSUtil.rg2html(s[0],s[1],s[2]);
break;
}
}
}
return _22;
};
this.html2rg=function(c){
var j=c.replace("#","");
var red=j.substr(0,2);
var gre=j.substr(2,2);
var blu=j.substr(4,2);
var r=parseInt(red,16);
var g=parseInt(gre,16);
var b=parseInt(blu,16);
var _2b="rgb("+r+","+g+","+b+")";
return _2b;
};
this.rg2html=function(r,g,b){
var css=com.vpmedia.CSSUtil;
var _30=css.d2h(r)+css.d2h(g)+css.d2h(b);
return _30;
};
this.d2h=function(d){
var hch="0123456789ABCDEF";
var a=d%16;
var q=(d-a)/16;
var _35=hch.charAt(q)+hch.charAt(a);
return _35;
};
};
var SWFCommons=com.vpmedia.SWFCommons;
var seo=function(_36,_37){
var _38=location.href.indexOf("#");
if(_36!="/"&&(_38==-1||_38==location.href.length-1)){
var xhr;
if(window.XMLHttpRequest){
xhr=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
try{
xhr=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e){
xhr=new ActiveXObject("Microsoft.XMLHTTP");
}
}
}
xhr.open("get",((typeof _37!="undefined")?_37:"")+"/?"+_36,false);
xhr.setRequestHeader("Content-Type","application/x-swfaddress");
xhr.send("");
eval(xhr.responseText);
}
};
function SWFMacMouseWheel(_3a){
this.div=_3a;
var _3b=navigator.appVersion.toLowerCase().indexOf("mac")!=-1;
if(_3b){
this.init();
}
}
SWFMacMouseWheel.prototype={init:function(){
SWFMacMouseWheel.instance=this;
if(window.addEventListener){
window.addEventListener("DOMMouseScroll",SWFMacMouseWheel.instance.wheel,false);
}
window.onmousewheel=document.onmousewheel=SWFMacMouseWheel.instance.wheel;
},handle:function(_3c){
document[this.div].externalMouseEvent(_3c);
},wheel:function(_3d){
var _3e=0;
if(_3d.wheelDelta){
_3e=_3d.wheelDelta/120;
if(window.opera){
_3e=-_3e;
}
}else{
if(_3d.detail){
_3e=-_3d.detail/3;
}
}
if(/AppleWebKit/.test(navigator.userAgent)){
_3e/=3;
}
if(_3e){
SWFMacMouseWheel.instance.handle(_3e);
}
if(_3d.preventDefault){
_3d.preventDefault();
}
_3d.returnValue=false;
}};
function SWFForceSize(_3f,_40,_41){
this.div=_3f;
this.minW=_40;
this.minH=_41;
var o=this;
this.addWindowEvent("onload",this,this.onLoadDiv);
this.addWindowEvent("onresize",this,this.onResizeDiv);
}
SWFForceSize.prototype={addWindowEvent:function(_43,_44,_45){
var _46=window[_43];
if(typeof window[_43]!="function"){
window[_43]=function(){
_45.call(_44);
};
}else{
window[_43]=function(){
if(_46){
_46();
}
_45.call(_44);
};
}
},getWinSize:function(){
var _47,_48;
if(parseInt(navigator.appVersion)>3){
if(document.body.offsetWidth){
_48=document.body.offsetWidth;
_47=document.body.offsetHeight;
}else{
if(document.body.offsetWidth){
_48=document.body.offsetWidth;
_47=document.body.offsetHeight;
}
}
}
return {height:_47,width:_48};
},onLoadDiv:function(){
document.getElementById(this.div).style.width="100%";
document.getElementById(this.div).style.height="100%";
this.onResizeDiv();
},onResizeDiv:function(){
var _49=this.getWinSize();
var w=_49.width<this.minW?this.minW+"px":"100%";
var h=_49.height<this.minH?this.minH+"px":"100%";
if(document.all){
document.body.scroll=(w!="100%"||h!="100%")?"auto":"no";
}
document.getElementById(this.div).style.width=w;
document.getElementById(this.div).style.height=h;
}};
var RightClick={init:function(){
this.FlashObjectID="customRightClick";
this.FlashContainerID="flashcontent";
this.Cache=this.FlashObjectID;
if(window.addEventListener){
window.addEventListener("mousedown",this.onGeckoMouse(),true);
}else{
document.getElementById(this.FlashContainerID).onmouseup=function(){
document.getElementById(RightClick.FlashContainerID).releaseCapture();
};
document.oncontextmenu=function(){
if(window.event.srcElement.id==RightClick.FlashObjectID){
return false;
}else{
RightClick.Cache="nan";
}
};
document.getElementById(this.FlashContainerID).onmousedown=RightClick.onIEMouse;
}
},killEvents:function(_4c){
if(_4c){
if(_4c.stopPropagation){
_4c.stopPropagation();
}
if(_4c.preventDefault){
_4c.preventDefault();
}
if(_4c.preventCapture){
_4c.preventCapture();
}
if(_4c.preventBubble){
_4c.preventBubble();
}
}
},onGeckoMouse:function(ev){
return function(ev){
if(ev.button!=0){
RightClick.killEvents(ev);
if(ev.target.id==RightClick.FlashObjectID&&RightClick.Cache==RightClick.FlashObjectID){
RightClick.call();
}
RightClick.Cache=ev.target.id;
}
};
},onIEMouse:function(){
if(event.button>1){
if(window.event.srcElement.id==RightClick.FlashObjectID&&RightClick.Cache==RightClick.FlashObjectID){
RightClick.call();
}
document.getElementById(RightClick.FlashContainerID).setCapture();
if(window.event.srcElement.id){
RightClick.Cache=window.event.srcElement.id;
}
}
},call:function(){
document.getElementById(this.FlashObjectID).rightClick();
}};
TextResizeDetector=function(){
var el=null;
var _50=200;
var _51=null;
var _52=-1;
var _53=-1;
var _54=[];
var _55=function(){
el=document.createElement("span");
el.id="textResizeControl";
el.innerHTML="&nbsp;";
el.style.position="absolute";
el.style.left="-9999px";
var elC=document.getElementById(TextResizeDetector.TARGET_ELEMENT_ID);
if(elC){
elC.insertBefore(el,elC.firstChild);
}
_53=_52=TextResizeDetector.getSize();
};
function _stopDetector(){
window.clearInterval(_51);
_51=null;
}
function _startDetector(){
if(!_51){
_51=window.setInterval("TextResizeDetector.detect()",_50);
}
}
function _detect(){
var _57=TextResizeDetector.getSize();
if(_57!==_52){
for(var i=0;i<_54.length;i++){
aListnr=_54[i];
var _59={iBase:_53,iDelta:((_52!=-1)?_57-_52+"px":"0px"),iSize:_52=_57};
if(!aListnr.obj){
aListnr.fn("textSizeChanged",[_59]);
}else{
aListnr.fn.apply(aListnr.obj,["textSizeChanged",[_59]]);
}
}
}
return _52;
}
var _5a=function(){
if(!TextResizeDetector.onAvailableCount_i){
TextResizeDetector.onAvailableCount_i=0;
}
if(document.getElementById(TextResizeDetector.TARGET_ELEMENT_ID)){
TextResizeDetector.init();
if(TextResizeDetector.USER_INIT_FUNC){
TextResizeDetector.USER_INIT_FUNC();
}
TextResizeDetector.onAvailableCount_i=null;
}else{
if(TextResizeDetector.onAvailableCount_i<600){
TextResizeDetector.onAvailableCount_i++;
setTimeout(_5a,200);
}
}
};
setTimeout(_5a,500);
return {init:function(){
_55();
_startDetector();
},addEventListener:function(fn,obj,_5d){
_54[_54.length]={fn:fn,obj:obj};
return _53;
},detect:function(){
return _detect();
},getSize:function(){
var _5e;
return el.offsetHeight;
},stopDetector:function(){
return _stopDetector();
},startDetector:function(){
return _startDetector();
}};
}();
TextResizeDetector.TARGET_ELEMENT_ID="doc";
TextResizeDetector.USER_INIT_FUNC=null;
function DetectFlashVer(_5f,_60,_61){
var _62=(navigator.appVersion.toLowerCase().indexOf("msie")!=-1)?true:false;
var _63=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;
var _64=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1)?true:false;
var _65=parseFloat(_5f+"."+_61);
for(var i=25;i>0;i--){
if(_62&&_63&&!_64){
var _67=VBGetSwfVer(i);
}else{
var _67=JSGetSwfVer(i);
}
if(_67==-1){
return false;
}else{
if(_67!=0){
if(_62&&_63&&!_64){
var _68=_67.split(" ");
var _69=_68[1];
var _6a=_69.split(",");
}else{
var _6a=_67.split(".");
}
var _6b=_6a[0];
var _6c=_6a[1];
var _6d=_6a[2];
var _6e=_6b+"."+_6d;
var _6f=parseFloat(_6e);
if((_6b>_5f)&&(_6f>=_65)){
return true;
}else{
return ((_6f>=_65&&_6c>=_60)?true:false);
}
}
}
}
return (_65?false:0);
}
function JSGetSwfVer(i){
if(navigator.plugins!=null&&navigator.plugins.length>0){
if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){
var _71=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";
var _72=navigator.plugins["Shockwave Flash"+_71].description;
var _73=_72.split(" ");
var _74=_73[2].split(".");
var _75=_74[0];
var _76=_74[1];
if(_73[3]!=""){
var _77=_73[3].split("r");
}else{
var _77=_73[4].split("r");
}
var _78=_77[1]>0?_77[1]:0;
var _79=_75+"."+_76+"."+_78;
}else{
var _79=-1;
}
}else{
if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){
_79=4;
}else{
if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){
_79=3;
}else{
if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){
_79=2;
}else{
_79=-1;
}
}
}
}
return _79;
}

