if(typeof VEOH=="undefined"||!VEOH){var VEOH={};} VEOH.Util={};VEOH.Util.appendNode=function(element,surrogate){if(surrogate){surrogate.appendChild(element);} else{document.body.appendChild(element);}};VEOH.Util.removeNode=function(element){element.parentNode.removeChild(element);};VEOH.Util.hide=function(element){element.style.display='none';element.style.filter='alpha(opacity=0)';element.style.opacity='0';};VEOH.Util.documentWidth=function(){if(document.documentElement&&document.documentElement.scrollWidth){return document.documentElement.scrollWidth;} else if(document.body.scrollWidth){return document.body.scrollWidth;} else{throw new Error('cannot get document width');}};VEOH.Util.documentHeight=function(){if(document.documentElement&&document.documentElement.scrollHeight){return document.documentElement.scrollHeight;} else if(document.body.scrollHeight){return document.body.scrollHeight;} else{throw new Error('cannot get document height');}};VEOH.Util.xScroll=function(){var xScroll=window.scrollX||document.documentElement.scrollLeft;return xScroll;};VEOH.Util.yScroll=function(){var yScroll=window.scrollY||document.documentElement.scrollTop;return yScroll;};VEOH.Util.extend=function(oSub,oSuper){if(!(oSub&&oSuper)) return;for(sProperty in oSuper){oSub[sProperty]=oSuper[sProperty];}};VEOH.Util.clearHighlight=function(un) {if(!un) return;un.style.border="1px solid #D7D7D7";un.style.backgroundColor="#FFFFFF";un.onBlur="";};VEOH.Util.focusField=function(un) {if(!un) return;un.oldBackgroundColor=un.style.backgroundColor;un.oldBorder=un.style.border;un.style.backgroundColor="#FFF899";un.style.border="1px solid #F46E2A";un.onblur=function(){VEOH.Util.clearHighlight(un);};};VEOH.Util.createMethodReference=function(object,method){if(!(method instanceof Function)) method=object[method];return function(){method.apply(object,arguments);};};VEOH.Util.log=function(message,type,component){if(!message) return;if(typeof YAHOO!="undefined"&&typeof YAHOO.log!="undefined"){YAHOO.log(message,type,component);return;} return;var output=message;if(type) output+=" - "+type;if(component) output+=" - "+component;if(typeof console!="undefined"&&console.log) console.log(output);};var log=VEOH.Util.log;VEOH.Util.getAbsolutePosition=function(element,axis){if(!element){log("no element to get position for","error");return 0;} var curleft=0;var curtop=0;if(!element.parentNode){log("cannot get absolute position: unsupported browser");return 0;} var iterateElement=element;do{if(iterateElement&&iterateElement.offsetLeft){curleft+=iterateElement.offsetLeft;curtop+=iterateElement.offsetTop;}} while(iterateElement=iterateElement.parentNode);if(axis&&axis=="y"){return curtop;} return curleft;};VEOH.Util.queryString=function(qs){var params=new Array();if(qs==null) qs=location.search.substring(1,location.search.length);if(qs.length==0) return null;qs=qs.replace(/\+/g,' ');var args=qs.split('&');for(var i=0;i0){VEOH.Util.removeChildSafe(el.childNodes[el.childNodes.length-1]);}} if(el.parentNode) el.parentNode.removeChild(el);};VEOH.Util.captureMousePosition=function(e){if(!e) this.event=window.event;else this.event=e;this.getXMousePos=function(){if(this.event.pageX){return this.event.pageX;} else if(this.event.clientX){return this.event.clientX+ (document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft);} else{return null;}};this.getYMousePos=function(evt){if(this.event.pageY){return this.event.pageY;} else if(this.event.clientY){return this.event.clientY+ (document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);} else{return null;}};glbXMousePos=this.getXMousePos();glbYMousePos=this.getYMousePos();}; var BALLOON_RESOURCES_CONTAINER="balloonResources";var BALLOON_ELEMENT_SUFFIX="_balloon" var BALLOON_RESOURCE_ELEMENT_SUFFIX=BALLOON_ELEMENT_SUFFIX+"_resources";var BALLOON_GLOBAL_RESOURCE_NAME="_global"+BALLOON_RESOURCE_ELEMENT_SUFFIX;var BALLOON_DEFAULT_EVENT_NAME="onclick";var BALLOON_DEFAULT_WIDTH="";var BALLOON_DEFAULT_HEIGHT="";var BALLOON_DEFAULT_BACKGROUND="#FeF898";var BALLOON_DEFAULT_BORDER="";var BALLOON_DEFAULT_PADDING="";var BALLOON_DEFAULT_TEXT_ALIGN="left";var BALLOON_DEFAULT_DISPLAY="block";var BALLOON_DEFAULT_VISIBILITY="hidden";var BALLOON_DEFAULT_POSITION="absolute";var BALLOON_DEFAULT_ZINDEX=1000;var BALLOON_CLOSE_BUTTON_BACKGROUND="##CC9900";var BALLOON_CLOSE_BUTTON_X_OFFSET=16;var BALLOON_CLOSE_BUTTON_Y_OFFSET=4;var BALLOON_MIN_X_OFFSET=5;var ARROW_UP_DOWN_HEIGHT=19;var ARROW_LEFT_RIGHT_WIDTH=34;var ARROW_MIN_X_OFFSET=2;var SIGNUP_REDIRECT_ACTION_PARAM_NAME="redirectAction";var VEOH_REGISTRATON_BASE_URI='http://www.veoh.com/register.html?action=1®ister=1&signupRedirect=';var BALLOON_ARROW_URI_PREFIX="http://ll-appserver.veoh.com/images/balloonArrow";var glbXMousePos=0;var glbYMousePos=0;var glbXMousePosMax=0;var glbYMousePosMax=0;var glbBalloons=new Array();if(typeof VEOH=="undefined"||!VEOH) VEOH={};if(typeof VEOH.Widgets=="undefined"||!VEOH.Widgets) VEOH.Widgets={};if(typeof VEOH.Widgets.Balloon=="undefined"||!VEOH.Widgets.Balloon) VEOH.Widgets.Balloon={};if(typeof VEOH.Util=="undefined"||!VEOH.Util) VEOH.Util={};VEOH.Widgets.Balloon=function(res){this.res=res;this.originalRes=this.res;this.name=null;this.element=null;this.triggerElement=null;this.message=null;this.closeButton=null;this.arrow=null;this.width=BALLOON_DEFAULT_WIDTH;this.height=BALLOON_DEFAULT_HEIGHT;this.border=BALLOON_DEFAULT_BORDER;this.background=BALLOON_DEFAULT_BACKGROUND;this.textAlign=BALLOON_DEFAULT_TEXT_ALIGN;this.marginLeft="0px";this.marginRight="0px";this.marginTop="0px";this.marginBottom="0px";this.padding=BALLOON_DEFAULT_PADDING;this.position=BALLOON_DEFAULT_POSITION;this.top=null;this.left=null;this.hiddenElements=new Array();this.update=function(obj){this.element.innerHTML=obj.element.innerHTML;if(this.height[x]";a.href="javascript:void(0);";a.style.position="absolute";a.style.left=closeButtonPosX+"px";a.style.top=closeButtonPosY+"px";a.style.display="block";a.className="panelClose";container.appendChild(a);return a;};this.createArrow=function(){return new VEOH.Widgets.Balloon.Arrow(this);};this.display=function(){VEOH.Widgets.Balloon.popAll();this.top=glbYMousePos;this.left=glbXMousePos;if(!this.left||this.left<1) return;if(!this.element){var element=this.element=this.createElement();} else{var element=this.element;} if(!element) return;for(i in this.hiddenElements) {var el=document.getElementById(this.hiddenElements[i]);if(el) {log('hiding '+this.hiddenElements[i]);el.style.visibility="hidden";}} log("displaying balloon element: "+element.id);if(!document.getElementById(element.id)){document.body.appendChild(element);} if(!this.arrow) this.arrow=this.createArrow();if(this.arrow) this.arrow.display();element.style.visibility="visible";element.style.display=BALLOON_DEFAULT_DISPLAY;this.postProcess();};this.postProcess=function(){};this.pop=function(){log("hiding balloon element: "+this.element.id);if(this.arrow){this.arrow.xMousePos=null;this.arrow.yMousePos=null;} for(i in this.hiddenElements) {var el=document.getElementById(this.hiddenElements[i]);if(el) {log('hiding '+this.hiddenElements[i]);el.style.visibility="visible";}} if(this.element){VEOH.Util.removeChildSafe(this.element);this.element=null;if(this.arrow){this.arrow.destroy();this.arrow=null;}} if(!this.getGlobalElement()) this.updateResource(this.originalRes.id);};this.hide=this.pop;this.getResourceElement=function(){if(!this.res){log("ERROR: res is not defined");return null;} return this.res;};this.updateResource=function(resId){var res=document.getElementById(resId);if(!res){res=document.getElementById(resId+BALLOON_RESOURCE_ELEMENT_SUFFIX);if(!res){log("ERROR: can't find resource");return;}} this.res=res;this.populate();this.updateElement();};this.getName=function(){var resourceId=this.res.id;var iEnd=resourceId.indexOf(BALLOON_RESOURCE_ELEMENT_SUFFIX);var name=resourceId.substring(0,iEnd);if(name.length>0) return name;return null;};this.getTriggerElement=function(){if(!this.res){log("ERROR: res is not defined");return;} var triggerId;if(res.name){triggerId=res.name;} else{triggerId=this.getName();} if(!triggerId) return;var triggerElement=document.getElementById(triggerId);if(!triggerElement) return null;return triggerElement;};this.bind=function(eventName){if(!eventName) eventName=BALLOON_DEFAULT_EVENT_NAME;if(!this.triggerElement){VEOH.Util.log("unable to bind balloon: no triggerElement for "+this.name,"error","balloon");return;} if(!glbBalloons[this.name]) return;this.triggerElement[eventName]=VEOH.Util.createMethodReference(this,this.trigger);if(this.triggerElement.href) {this.triggerElement.href='javascript:void(0);';}};this.trigger=function(event){if(!event) event=window.event;try{event.preventDefault();} catch(e){} this.display();};this.isReady=function(){if(this.res&&this.name&&this.trigger) return true;VEOH.Util.log("Balloon not ready","error","balloon");return false;};this.getHeight=function(){if(!this.element) return 0;var strHeight=this.element.style.height;var iHeight=strHeight.substring(0,strHeight.length-2);return parseInt(iHeight);};this.getWidth=function(){if(!this.element) return 0;var strWidth=this.element.style.width;var iWidth=strWidth.substring(0,strWidth.length-2);return parseInt(iWidth);};this.populate();};VEOH.Widgets.Balloon.Arrow=function(balloon){this.balloon=balloon;this.orientation=null;this.container=null;this.element=null;this.orientation="down";this.left=null;this.top=null;this.createElement=function(orientation,element){if(!orientation) orientation="down";if(orientation=="none") return;var container=document.createElement("div");container.style.width=ARROW_LEFT_RIGHT_WIDTH+"px";container.style.height=ARROW_UP_DOWN_HEIGHT+"px";var arrow=document.createElement("img");arrow.id=this.balloon.name+"_balloon_arrow";arrow.style.display="none";arrow.style.position="absolute";arrow.style.zIndex=100;arrow.width=ARROW_LEFT_RIGHT_WIDTH;arrow.height=ARROW_UP_DOWN_HEIGHT;arrow.src=BALLOON_ARROW_URI_PREFIX+orientation.substring(0,1).toUpperCase()+orientation.substring(1,orientation.length)+".gif";this.element=arrow;container.appendChild(arrow);this.container=container;};this.getTop=function(){var topOffset=0;if("up"==this.orientation){topOffset=2-ARROW_UP_DOWN_HEIGHT;} else if("left"==this.orientation||"right"==this.orientation){try{topOffset=this.balloon.getHeight()/2;} catch(e){log("ERROR: unable to get top offset for arrow: "+e);topOffset=0;}} else if("none"!=this.orientation){var iContainerHeight=this.balloon.getHeight();topOffset=iContainerHeight-2+ARROW_UP_DOWN_HEIGHT;} return topOffset;};this.getLeft=function(){var leftOffset=0;var balloonWidth=this.balloon.getWidth();if("left"==this.orientation){return 2-ARROW_LEFT_RIGHT_WIDTH;} else if("right"==this.orientation){return balloonWidth+ARROW_LEFT_RIGHT_WIDTH-2;} else if("none"!=this.orientation){var absX=VEOH.Util.getAbsolutePosition(this.balloon.element,"x");log("absolute x position of balloon: "+absX);leftOffset=BALLOON_MIN_X_OFFSET;if(absX){if(this.xMousePos-absX>BALLOON_MIN_X_OFFSET){leftOffset=this.xMousePos-absX;}} leftOffset-=this.element.width/2;if(leftOffset0){log("y offset > 0; arrow faces up");return"up";} else{if(iYOffset<0){log("y offset < 0; arrow faces down");return"down";}} if(iXOffset>0){log("x offset > 0; arrow faces right");return"right";} else{if(iXOffset<0){log("x offset < 0; arrow faces left");return"left";}} return"none";};this.insert=function(){if(!this.balloon.element){log("ERROR: no element to position for","error");return;} if(!this.element){log("WARNING: no arrow to insert","error");return;} this.balloon.element.appendChild(this.element);log("inserting arrow into balloon pointing "+this.orientation);};this.position=function(){if(!this.balloon.element){log("ERROR: no element to position for","error");return;} if(!this.element){log("WARNING: no arrow to position","error");return;} this.top=this.getTop();this.left=this.getLeft();this.element.style.top=this.top+"px";this.element.style.left=this.left+"px";};this.display=function(keepPosition){if(!this.element){log("ERROR displaying arrow: element not defined","error");return;} this.discoverPointToPosition();this.insert();if(keepPosition){this.element.style.top=this.top+"px";this.element.style.left=this.left+"px";} else{this.position();} this.element.style.display="block";};this.destroy=function(){if(this.element){try{this.xMousePos=null;this.yMousePos=null;this.balloon.element.removeChild(this.element);} catch(e){log("ERROR destroying arrow: "+e,"error","balloon");}}};this.getHeight=function(){var strHeight=this.element.style.height;var iHeight=strHeight.substring(0,strHeight.length-2);return parseInt(iHeight);};this.getWidth=function(){var strWidth=this.element.style.width;var iWidth=strWidth.substring(0,strWidth.length-2);return parseInt(iWidth);};this.discoverPointToPosition=function(){if(!this.xMousePos) this.xMousePos=glbXMousePos;if(!this.yMousePos) this.yMousePos=glbYMousePos;};this.orientation=this.getOrientation();this.createElement(this.orientation,this.balloon.element);};VEOH.Widgets.Balloon.popAll=function(){var row;for(row in glbBalloons){if(!glbBalloons[row].element) continue;glbBalloons[row].pop();log("popping "+glbBalloons[row].name);}};VEOH.Widgets.Balloon.createBalloons=function(){log("creating balloons","notice","Balloon");var container=document.getElementById(BALLOON_RESOURCES_CONTAINER);if(!container) return;var arrRes=container.getElementsByTagName("input");var arrRes2=container.getElementsByTagName("textarea");for(var i=0;i0) return name[0];return null;};VEOH.Widgets.Balloon.Login=function(res){this.inheritFrom=VEOH.Widgets.Balloon;this.inheritFrom(res);this.postProcess=function(){this.loadLogin();var signupLink=document.getElementById("balloon_signupLink");if(signupLink) signupLink.href=this.getSignupRedirectUri();};this.loadLogin=function(el){var el=this.element;if(!el) return;var name=this.triggerElement.id;var sr=document.getElementById('mlRedirect');var url=window.location.href;if(url.indexOf('?')>-1&&sr) sr.value=url+'&'+SIGNUP_REDIRECT_ACTION_PARAM_NAME+'='+name;else if(sr) sr.value=url+'?'+SIGNUP_REDIRECT_ACTION_PARAM_NAME+'='+name;};this.getSignupRedirectUri=function(){var name=this.triggerElement.id;var url=window.location.href;if(url.indexOf('?')>-1) url=url+'&'+SIGNUP_REDIRECT_ACTION_PARAM_NAME+'='+name;else url=url+'?'+SIGNUP_REDIRECT_ACTION_PARAM_NAME+'='+name;url=encodeURIComponent(url);return VEOH_REGISTRATON_BASE_URI+url;};};VEOH.Widgets.Balloon.HomePage=function(res){this.inheritFrom=VEOH.Widgets.Balloon;this.inheritFrom(res);this.postProcess=function(){var el=this.element;if(!el) return;this.prepareLogin(el);var signupLink=document.getElementById("balloon_signupLink");if(signupLink) signupLink.href=this.getSignupRedirectUri(el);};this.prepareLogin=function(el) {if(!el) return;var id=this.name;var sr=document.getElementById('mlRedirect');var url=this.getAction(id);url=encodeURIComponent(url);sr.value='http://www.veoh.com'+url;var un=document.getElementById("j_username");if(!un) return;un.focus();};this.getSignupRedirectUri=function(el){if(!el) return;var id=this.name;url=this.getAction(id);url=encodeURIComponent(url);return VEOH_REGISTRATON_BASE_URI+url;};this.getAction=function(id){var url;if(id=='friends') url='/invite.html';else if(id=='favorites') url='/browse/videos.html';else if(id=='videos') url='/upload.html';else if(id=='channels') url='/publish/myChannels.html';else if(id=='groups') url='/publish/myGroups.html';else url='';return url;};};VEOH.Widgets.Balloon.Login.postbackAction=function(){var qs=VEOH.Util.queryString();if(qs==null){log("error loading querystring");return;} var action=qs[SIGNUP_REDIRECT_ACTION_PARAM_NAME];if(!action) return;var element=document.getElementById(action);if(!element) return;VEOH.Util.simulateEvent('click',action);log("event performed");};if(document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=VEOH.Util.captureMousePosition;} else{if(document.all){document.onmousedown=VEOH.Util.captureMousePosition;} else if(document.getElementById){document.onmousedown=VEOH.Util.captureMousePosition;}} if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C0)?C.dump(A[D],G-1):J);}else{I.push(A[D]);}I.push(H);}if(I.length>1){I.pop();}I.push("]");}else{I.push("{");for(D in A){if(C.hasOwnProperty(A,D)){I.push(D+E);if(C.isObject(A[D])){I.push((G>0)?C.dump(A[D],G-1):J);}else{I.push(A[D]);}I.push(H);}}if(I.length>1){I.pop();}I.push("}");}return I.join("");},substitute:function(Q,B,J){var G,F,E,M,N,P,D=YAHOO.lang,L=[],C,H="dump",K=" ",A="{",O="}";for(;;){G=Q.lastIndexOf(A);if(G<0){break;}F=Q.indexOf(O,G);if(G+1>=F){break;}C=Q.substring(G+1,F);M=C;P=null;E=M.indexOf(K);if(E>-1){P=M.substring(E+1);M=M.substring(0,E);}N=B[M];if(J){N=J(M,N,P);}if(D.isObject(N)){if(D.isArray(N)){N=D.dump(N,parseInt(P,10));}else{P=P||"";var I=P.indexOf(H);if(I>-1){P=P.substring(4);}if(N.toString===Object.prototype.toString||I>-1){N=D.dump(N,parseInt(P,10));}else{N=N.toString();}}}else{if(!D.isString(N)&&!D.isNumber(N)){N="~-"+L.length+"-~";L[L.length]=C;}}Q=Q.substring(0,G)+N+Q.substring(F+1);}for(G=L.length-1;G>=0;G=G-1){Q=Q.replace(new RegExp("~-"+G+"-~"),"{"+L[G]+"}","g");}return Q;},trim:function(A){try{return A.replace(/^\s+|\s+$/g,"");}catch(B){return A;}},merge:function(){var D={},B=arguments;for(var C=0,A=B.length;C=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(E){var C=Math.max(this.top,E.top);var D=Math.min(this.right,E.right);var A=Math.min(this.bottom,E.bottom);var B=Math.max(this.left,E.left);if(A>=C&&D>=B){return new YAHOO.util.Region(C,D,A,B);}else{return null;}};YAHOO.util.Region.prototype.union=function(E){var C=Math.min(this.top,E.top);var D=Math.max(this.right,E.right);var A=Math.max(this.bottom,E.bottom);var B=Math.min(this.left,E.left);return new YAHOO.util.Region(C,D,A,B);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}");};YAHOO.util.Region.getRegion=function(D){var F=YAHOO.util.Dom.getXY(D);var C=F[1];var E=F[0]+D.offsetWidth;var A=F[1]+D.offsetHeight;var B=F[0];return new YAHOO.util.Region(C,E,A,B);};YAHOO.util.Point=function(A,B){if(YAHOO.lang.isArray(A)){B=A[1];A=A[0];}this.x=this.right=this.left=this[0]=A;this.y=this.top=this.bottom=this[1]=B;};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"2.5.1",build:"984"});YAHOO.util.CustomEvent=function(D,B,C,A){this.type=D;this.scope=B||window;this.silent=C;this.signature=A||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var E="_YUICEOnSubscribe";if(D!==E){this.subscribeEvent=new YAHOO.util.CustomEvent(E,this,true);}this.lastError=null;};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(B,C,A){if(!B){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(B,C,A);}this.subscribers.push(new YAHOO.util.Subscriber(B,C,A));},unsubscribe:function(D,F){if(!D){return this.unsubscribeAll();}var E=false;for(var B=0,A=this.subscribers.length;B0){A=H[0];}try{F=K.fn.call(J,A,K.obj);}catch(E){this.lastError=E;}}else{try{F=K.fn.call(J,this.type,H,K.obj);}catch(G){this.lastError=G;}}if(false===F){if(!this.silent){}return false;}}}return true;},unsubscribeAll:function(){for(var A=this.subscribers.length-1;A>-1;A--){this._delete(A);}this.subscribers=[];return A;},_delete:function(A){var B=this.subscribers[A];if(B){delete B.fn;delete B.obj;}this.subscribers.splice(A,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"scope: "+this.scope;}};YAHOO.util.Subscriber=function(B,C,A){this.fn=B;this.obj=YAHOO.lang.isUndefined(C)?null:C;this.override=A;};YAHOO.util.Subscriber.prototype.getScope=function(A){if(this.override){if(this.override===true){return this.obj;}else{return this.override;}}return A;};YAHOO.util.Subscriber.prototype.contains=function(A,B){if(B){return(this.fn==A&&this.obj==B);}else{return(this.fn==A);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", override: "+(this.override||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var H=false;var I=[];var J=[];var G=[];var E=[];var C=0;var F=[];var B=[];var A=0;var D={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};return{POLL_RETRYS:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,startInterval:function(){if(!this._interval){var K=this;var L=function(){K._tryPreloadAttach();};this._interval=setInterval(L,this.POLL_INTERVAL);}},onAvailable:function(P,M,Q,O,N){var K=(YAHOO.lang.isString(P))?[P]:P;for(var L=0;L-1;O--){U=(this.removeListener(L[O],K,T)&&U);}return U;}}if(!T||!T.call){return this.purgeElement(L,false,K);}if("unload"==K){for(O=J.length-1;O>-1;O--){V=J[O];if(V&&V[0]==L&&V[1]==K&&V[2]==T){J.splice(O,1);return true;}}return false;}var P=null;var Q=arguments[3];if("undefined"===typeof Q){Q=this._getCacheIndex(L,K,T);}if(Q>=0){P=I[Q];}if(!L||!P){return false;}if(this.useLegacyEvent(L,K)){var N=this.getLegacyIndex(L,K);var M=E[N];if(M){for(O=0,R=M.length;O0&&F.length>0);}var P=[];var R=function(T,U){var S=T;if(U.override){if(U.override===true){S=U.obj;}else{S=U.override;}}U.fn.call(S,U.obj);};var L,K,O,N,M=[];for(L=0,K=F.length;L-1;L--){O=F[L];if(!O||!O.id){F.splice(L,1);}}this.startInterval();}else{clearInterval(this._interval);this._interval=null;}this.locked=false;},purgeElement:function(O,P,R){var M=(YAHOO.lang.isString(O))?this.getEl(O):O;var Q=this.getListeners(M,R),N,K;if(Q){for(N=Q.length-1;N>-1;N--){var L=Q[N];this.removeListener(M,L.type,L.fn);}}if(P&&M&&M.childNodes){for(N=0,K=M.childNodes.length;N-1;M--){L=I[M];if(L){K.removeListener(L[K.EL],L[K.TYPE],L[K.FN],M);}}L=null;}G=null;K._simpleRemove(window,"unload",K._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var K=document.documentElement,L=document.body;if(K&&(K.scrollTop||K.scrollLeft)){return[K.scrollTop,K.scrollLeft];}else{if(L){return[L.scrollTop,L.scrollLeft];}else{return[0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(M,N,L,K){M.addEventListener(N,L,(K));};}else{if(window.attachEvent){return function(M,N,L,K){M.attachEvent("on"+N,L);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(M,N,L,K){M.removeEventListener(N,L,(K));};}else{if(window.detachEvent){return function(L,M,K){L.detachEvent("on"+M,K);};}else{return function(){};}}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;if(EU.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex){}},EU.POLL_INTERVAL);}else{if(EU.webkit&&EU.webkit<525){EU._dri=setInterval(function(){var rs=document.readyState;if("loaded"==rs||"complete"==rs){clearInterval(EU._dri);EU._dri=null;EU._ready();}},EU.POLL_INTERVAL);}else{EU._simpleAdd(document,"DOMContentLoaded",EU._ready);}}EU._simpleAdd(window,"load",EU._load);EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(A,C,F,E){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[A];if(D){D.subscribe(C,F,E);}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,override:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in A){if(YAHOO.lang.hasOwnProperty(A,D)){B=B&&A[D].unsubscribe(E,G);}}return B;}return false;},unsubscribeAll:function(A){return this.unsubscribe(A);},createEvent:function(G,D){this.__yui_events=this.__yui_events||{};var A=D||{};var I=this.__yui_events;if(I[G]){}else{var H=A.scope||this;var E=(A.silent);var B=new YAHOO.util.CustomEvent(G,H,E,YAHOO.util.CustomEvent.FLAT);I[G]=B;if(A.onSubscribeCallback){B.subscribeEvent.subscribe(A.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var F=this.__yui_subscribers[G];if(F){for(var C=0;C=420){W.addEventListener("load",function(){Z(V,T);});}else{var S=M[V];if(S.varName){var U=YAHOO.util.Get.POLL_FREQ;S.maxattempts=YAHOO.util.Get.TIMEOUT/U;S.attempts=0;S._cache=S.varName[0].split(".");S.timer=R.later(U,S,function(h){var e=this._cache,d=e.length,c=this.win,f;for(f=0;fthis.maxattempts){var g="Over retry limit, giving up";S.timer.cancel();P(V,g);}else{}return;}}S.timer.cancel();Z(V,T);},null,true);}else{R.later(YAHOO.util.Get.POLL_FREQ,null,Z,[V,T]);}}}}else{W.onload=function(){Z(V,T);};}}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(S){R.later(0,null,C,S);},abort:function(T){var U=(R.isString(T))?T:T.tId;var S=M[U];if(S){S.aborted=true;}},script:function(S,T){return I("script",S,T);},css:function(S,T){return I("css",S,T);}};}();YAHOO.register("get",YAHOO.util.Get,{version:"2.5.1",build:"984"}); YAHOO.util.Attribute=function(B,A){if(A){this.owner=A;this.configure(B,true);}};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,validator:null,getValue:function(){return this.value;},setValue:function(F,B){var E;var A=this.owner;var C=this.name;var D={type:C,prevValue:this.getValue(),newValue:F};if(this.readOnly||(this.writeOnce&&this._written)){return false;}if(this.validator&&!this.validator.call(A,F)){return false;}if(!B){E=A.fireBeforeChangeEvent(D);if(E===false){return false;}}if(this.method){this.method.call(A,F);}this.value=F;this._written=true;D.type=C;if(!B){this.owner.fireChangeEvent(D);}return true;},configure:function(B,C){B=B||{};this._written=false;this._initialConfig=this._initialConfig||{};for(var A in B){if(A&&YAHOO.lang.hasOwnProperty(B,A)){this[A]=B[A];if(C){this._initialConfig[A]=B[A];}}}},resetValue:function(){return this.setValue(this._initialConfig.value);},resetConfig:function(){this.configure(this._initialConfig);},refresh:function(A){this.setValue(this.value,A);}};(function(){var A=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(C){this._configs=this._configs||{};var B=this._configs[C];if(!B){return undefined;}return B.value;},set:function(D,E,B){this._configs=this._configs||{};var C=this._configs[D];if(!C){return false;}return C.setValue(E,B);},getAttributeKeys:function(){this._configs=this._configs;var D=[];var B;for(var C in this._configs){B=this._configs[C];if(A.hasOwnProperty(this._configs,C)&&!A.isUndefined(B)){D[D.length]=C;}}return D;},setAttributes:function(D,B){for(var C in D){if(A.hasOwnProperty(D,C)){this.set(C,D[C],B);}}},resetValue:function(C,B){this._configs=this._configs||{};if(this._configs[C]){this.set(C,this._configs[C]._initialConfig.value,B);return true;}return false;},refresh:function(E,C){this._configs=this._configs;E=((A.isString(E))?[E]:E)||this.getAttributeKeys();for(var D=0,B=E.length;D1){if(index+1==tabCount){this.set('activeIndex',index-1);}else{this.set('activeIndex',index+1);}}} this._tabParent.removeChild(tab.get('element'));this._contentParent.removeChild(tab.get('contentEl'));this._configs.tabs.value.splice(index,1);};proto.toString=function(){var name=this.get('id')||this.get('tagName');return"TabView "+name;};proto.contentTransition=function(newTab,oldTab){newTab.set('contentVisible',true);oldTab.set('contentVisible',false);};proto.initAttributes=function(attr){YAHOO.widget.TabView.superclass.initAttributes.call(this,attr);if(!attr.orientation){attr.orientation='top';} var el=this.get('element');if(!YAHOO.util.Dom.hasClass(el,this.CLASSNAME)){YAHOO.util.Dom.addClass(el,this.CLASSNAME);} this.setAttributeConfig('tabs',{value:[],readOnly:true});this._tabParent=this.getElementsByClassName(this.TAB_PARENT_CLASSNAME,'ul')[0]||_createTabParent.call(this);this._contentParent=this.getElementsByClassName(this.CONTENT_PARENT_CLASSNAME,'div')[0]||_createContentParent.call(this);this.setAttributeConfig('orientation',{value:attr.orientation,method:function(value){var current=this.get('orientation');this.addClass('yui-navset-'+value);if(current!=value){this.removeClass('yui-navset-'+current);} switch(value){case'bottom':this.appendChild(this._tabParent);break;}}});this.setAttributeConfig('activeIndex',{value:attr.activeIndex,method:function(value){this.set('activeTab',this.getTab(value));},validator:function(value){return!this.getTab(value).get('disabled');}});this.setAttributeConfig('activeTab',{value:attr.activeTab,method:function(tab){var activeTab=this.get('activeTab');if(tab){tab.set('active',true);this._configs['activeIndex'].value=this.getTabIndex(tab);} if(activeTab&&activeTab!=tab){activeTab.set('active',false);} if(activeTab&&tab!=activeTab){this.contentTransition(tab,activeTab);}else if(tab){tab.set('contentVisible',true);}},validator:function(value){return!value.get('disabled');}});if(this._tabParent){_initTabs.call(this);} this.DOM_EVENTS.submit=false;this.DOM_EVENTS.focus=false;this.DOM_EVENTS.blur=false;for(var type in this.DOM_EVENTS){if(YAHOO.lang.hasOwnProperty(this.DOM_EVENTS,type)){this.addListener.call(this,type,this.DOMEventHandler);}}};var _initTabs=function(){var tab,attr,contentEl;var el=this.get('element');var tabs=_getChildNodes(this._tabParent);var contentElements=_getChildNodes(this._contentParent);for(var i=0,len=tabs.length;i{label}{totalTime}ms (+{elapsedTime}) {localTime}:

{sourceAndDetail}

{message}

",BASIC_TEMPLATE:"

{label}{totalTime}ms (+{elapsedTime}) {localTime}: {sourceAndDetail}: {message}

"});YAHOO.widget.LogReader.prototype={logReaderEnabled:true,width:null,height:null,top:null,left:null,right:null,bottom:null,fontSize:null,footerEnabled:true,verboseOutput:true,entryFormat:null,newestOnTop:true,outputBuffer:100,thresholdMax:500,thresholdMin:100,isCollapsed:false,isPaused:false,draggable:true,toString:function(){return"LogReader instance"+this._sName;},pause:function(){this.isPaused=true;this._btnPause.value="Resume";this._timeout=null;this.logReaderEnabled=false;},resume:function(){this.isPaused=false;this._btnPause.value="Pause";this.logReaderEnabled=true;this._printBuffer();},hide:function(){this._elContainer.style.display="none";},show:function(){this._elContainer.style.display="block";},collapse:function(){this._elConsole.style.display="none";if(this._elFt){this._elFt.style.display="none";}this._btnCollapse.value="Expand";this.isCollapsed=true;},expand:function(){this._elConsole.style.display="block";if(this._elFt){this._elFt.style.display="block";}this._btnCollapse.value="Collapse";this.isCollapsed=false;},getCheckbox:function(A){return this._filterCheckboxes[A];},getCategories:function(){return this._categoryFilters;},showCategory:function(B){var D=this._categoryFilters;if(D.indexOf){if(D.indexOf(B)>-1){return;}}else{for(var A=0;A-1){return;}}else{for(var B=0;B/g,">");}return"";},_sName:null,_buffer:null,_consoleMsgCount:0,_lastTime:null,_timeout:null,_filterCheckboxes:null,_categoryFilters:null,_sourceFilters:null,_elContainer:null,_elHd:null,_elCollapse:null,_btnCollapse:null,_title:null,_elConsole:null,_elFt:null,_elBtns:null,_elCategoryFilters:null,_elSourceFilters:null,_btnPause:null,_btnClear:null,_initContainerEl:function(B){B=YAHOO.util.Dom.get(B);if(B&&B.tagName&&(B.tagName.toLowerCase()=="div")){this._elContainer=B;YAHOO.util.Dom.addClass(this._elContainer,"yui-log");}else{this._elContainer=document.body.appendChild(document.createElement("div"));YAHOO.util.Dom.addClass(this._elContainer,"yui-log");YAHOO.util.Dom.addClass(this._elContainer,"yui-log-container");var A=this._elContainer.style;if(this.width){A.width=this.width;}if(this.right){A.right=this.right;}if(this.top){A.top=this.top;}if(this.left){A.left=this.left;A.right="auto";}if(this.bottom){A.bottom=this.bottom;A.top="auto";}if(this.fontSize){A.fontSize=this.fontSize;}if(navigator.userAgent.toLowerCase().indexOf("opera")!=-1){document.body.style+="";}}},_initHeaderEl:function(){var A=this;if(this._elHd){YAHOO.util.Event.purgeElement(this._elHd,true);this._elHd.innerHTML="";}this._elHd=this._elContainer.appendChild(document.createElement("div"));this._elHd.id="yui-log-hd"+this._sName;this._elHd.className="yui-log-hd";this._elCollapse=this._elHd.appendChild(document.createElement("div"));this._elCollapse.className="yui-log-btns";this._btnCollapse=document.createElement("input");this._btnCollapse.type="button";this._btnCollapse.className="yui-log-button";this._btnCollapse.value="Collapse";this._btnCollapse=this._elCollapse.appendChild(this._btnCollapse);YAHOO.util.Event.addListener(A._btnCollapse,"click",A._onClickCollapseBtn,A);this._title=this._elHd.appendChild(document.createElement("h4"));this._title.innerHTML="Logger Console";},_initConsoleEl:function(){if(this._elConsole){YAHOO.util.Event.purgeElement(this._elConsole,true);this._elConsole.innerHTML="";}this._elConsole=this._elContainer.appendChild(document.createElement("div"));this._elConsole.className="yui-log-bd";if(this.height){this._elConsole.style.height=this.height;}},_initFooterEl:function(){var A=this;if(this.footerEnabled){if(this._elFt){YAHOO.util.Event.purgeElement(this._elFt,true);this._elFt.innerHTML="";}this._elFt=this._elContainer.appendChild(document.createElement("div"));this._elFt.className="yui-log-ft";this._elBtns=this._elFt.appendChild(document.createElement("div"));this._elBtns.className="yui-log-btns";this._btnPause=document.createElement("input");this._btnPause.type="button";this._btnPause.className="yui-log-button";this._btnPause.value="Pause";this._btnPause=this._elBtns.appendChild(this._btnPause);YAHOO.util.Event.addListener(A._btnPause,"click",A._onClickPauseBtn,A);this._btnClear=document.createElement("input");this._btnClear.type="button";this._btnClear.className="yui-log-button";this._btnClear.value="Clear";this._btnClear=this._elBtns.appendChild(this._btnClear);YAHOO.util.Event.addListener(A._btnClear,"click",A._onClickClearBtn,A);this._elCategoryFilters=this._elFt.appendChild(document.createElement("div"));this._elCategoryFilters.className="yui-log-categoryfilters";this._elSourceFilters=this._elFt.appendChild(document.createElement("div"));this._elSourceFilters.className="yui-log-sourcefilters";}},_initDragDrop:function(){if(YAHOO.util.DD&&this.draggable&&this._elHd){var A=new YAHOO.util.DD(this._elContainer);A.setHandleElId(this._elHd.id);this._elHd.style.cursor="move";}},_initCategories:function(){this._categoryFilters=[];var C=YAHOO.widget.Logger.categories;for(var A=0;Athis.thresholdMax)){Q=0;}K=(B>Q)?(B-Q):0;for(H=K;H0){C=G.substring(0,D);A=G.substring(D,G.length);}else{C=G;}if(this._isNewSource(C)){this._createNewSource(C);}}var H=new Date();var J=new YAHOO.widget.LogMsg({msg:B,time:H,category:F,source:C,sourceDetail:A});var I=this._stack;var E=this.maxStackEntries;if(E&&!isNaN(E)&&(I.length>=E)){I.shift();}I.push(J);this.newLogEvent.fire(J);if(this._browserConsoleEnabled){this._printToBrowserConsole(J);}return true;}else{return false;}};YAHOO.widget.Logger.reset=function(){this._stack=[];this._startTime=new Date().getTime();this.loggerEnabled=true;this.log("Logger reset");this.logResetEvent.fire();};YAHOO.widget.Logger.getStack=function(){return this._stack;};YAHOO.widget.Logger.getStartTime=function(){return this._startTime;};YAHOO.widget.Logger.disableBrowserConsole=function(){YAHOO.log("Logger output to the function console.log() has been disabled.");this._browserConsoleEnabled=false;};YAHOO.widget.Logger.enableBrowserConsole=function(){this._browserConsoleEnabled=true;YAHOO.log("Logger output to the function console.log() has been enabled.");};YAHOO.widget.Logger.handleWindowErrors=function(){if(!YAHOO.widget.Logger._windowErrorsHandled){if(window.error){YAHOO.widget.Logger._origOnWindowError=window.onerror;}window.onerror=YAHOO.widget.Logger._onWindowError;YAHOO.widget.Logger._windowErrorsHandled=true;YAHOO.log("Logger handling of window.onerror has been enabled.");}else{YAHOO.log("Logger handling of window.onerror had already been enabled.");}};YAHOO.widget.Logger.unhandleWindowErrors=function(){if(YAHOO.widget.Logger._windowErrorsHandled){if(YAHOO.widget.Logger._origOnWindowError){window.onerror=YAHOO.widget.Logger._origOnWindowError;YAHOO.widget.Logger._origOnWindowError=null;}else{window.onerror=null;}YAHOO.widget.Logger._windowErrorsHandled=false;YAHOO.log("Logger handling of window.onerror has been disabled.");}else{YAHOO.log("Logger handling of window.onerror had already been disabled.");}};YAHOO.widget.Logger.categoryCreateEvent=new YAHOO.util.CustomEvent("categoryCreate",this,true);YAHOO.widget.Logger.sourceCreateEvent=new YAHOO.util.CustomEvent("sourceCreate",this,true);YAHOO.widget.Logger.newLogEvent=new YAHOO.util.CustomEvent("newLog",this,true);YAHOO.widget.Logger.logResetEvent=new YAHOO.util.CustomEvent("logReset",this,true);YAHOO.widget.Logger._createNewCategory=function(A){this.categories.push(A);this.categoryCreateEvent.fire(A);};YAHOO.widget.Logger._isNewCategory=function(B){for(var A=0;A=0;--P){if(B[P]===J){return"null";}}B[B.length]=J;S=[];if(R>0){for(P=J.length-1;P>=0;--P){S[P]=G(J[P],T,R-1)||"null";}}B.pop();return"["+S.join(",")+"]";}if(W==="object"){if(!J){return"null";}for(P=B.length-1;P>=0;--P){if(B[P]===J){return"null";}}B[B.length]=J;S=[];if(R>0){if(T){for(P=0,O=0,Q=T.length;P=0?F:1/0;return G(C,K,F);}};YAHOO.register("json",YAHOO.lang.JSON,{version:"2.5.1",build:"984"}); var fwLib={version:1.0,loadComplete:false,currentSwapIndex:0,fwJSLibsLoaded:function() {return true;},flIntegration:{testFn:function() {alert("FL Integration");},getElementsByClass:function(startNode,tagFilter,classFilter) {var arrElms=(tagFilter=="*"&&startNode.all)?startNode.all:startNode.getElementsByTagName(tagFilter);var arrRetElms=new Array();var arrRegExpClassNames=new Array();if(typeof classFilter=="object") {for(var i=0;i7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="";_19+="";var _1d=this.getParams();for(var key in _1d){_19+="";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="";}_19+="";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(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){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.majorfv.major){return true;}if(this.minorfv.minor){return true;}if(this.rev=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject; if(DWREngine==null)var DWREngine={};DWREngine.setErrorHandler=function(handler){DWREngine._errorHandler=handler;};DWREngine.setWarningHandler=function(handler){DWREngine._warningHandler=handler;};DWREngine.setTimeout=function(timeout){DWREngine._timeout=timeout;};DWREngine.setPreHook=function(handler){DWREngine._preHook=handler;};DWREngine.setPostHook=function(handler){DWREngine._postHook=handler;};DWREngine.XMLHttpRequest=1;DWREngine.IFrame=2;DWREngine.setMethod=function(newMethod){if(newMethod!=DWREngine.XMLHttpRequest&&newMethod!=DWREngine.IFrame){DWREngine._handleError("Remoting method must be one of DWREngine.XMLHttpRequest or DWREngine.IFrame");return;} DWREngine._method=newMethod;};DWREngine.setVerb=function(verb){if(verb!="GET"&&verb!="POST"){DWREngine._handleError("Remoting verb must be one of GET or POST");return;} DWREngine._verb=verb;};DWREngine.setOrdered=function(ordered){DWREngine._ordered=ordered;};DWREngine.setAsync=function(async){DWREngine._async=async;};DWREngine.setTextHtmlHandler=function(handler){DWREngine._textHtmlHandler=handler;} DWREngine.defaultMessageHandler=function(message){if(typeof message=="object"&&message.name=="Error"&&message.description){alert("Error: "+message.description);} else{if(message.toString().indexOf("0x80040111")==-1){alert(message);}}};DWREngine.beginBatch=function(){if(DWREngine._batch){DWREngine._handleError("Batch already started.");return;} DWREngine._batch={map:{callCount:0},paramCount:0,ids:[],preHooks:[],postHooks:[]};};DWREngine.endBatch=function(options){var batch=DWREngine._batch;if(batch==null){DWREngine._handleError("No batch in progress.");return;} if(options&&options.preHook)batch.preHooks.unshift(options.preHook);if(options&&options.postHook)batch.postHooks.push(options.postHook);if(DWREngine._preHook)batch.preHooks.unshift(DWREngine._preHook);if(DWREngine._postHook)batch.postHooks.push(DWREngine._postHook);if(batch.method==null)batch.method=DWREngine._method;if(batch.verb==null)batch.verb=DWREngine._verb;if(batch.async==null)batch.async=DWREngine._async;if(batch.timeout==null)batch.timeout=DWREngine._timeout;batch.completed=false;DWREngine._batch=null;if(!DWREngine._ordered){DWREngine._sendData(batch);DWREngine._batches[DWREngine._batches.length]=batch;} else{if(DWREngine._batches.length==0){DWREngine._sendData(batch);DWREngine._batches[DWREngine._batches.length]=batch;} else{DWREngine._batchQueue[DWREngine._batchQueue.length]=batch;}}};DWREngine._errorHandler=DWREngine.defaultMessageHandler;DWREngine._warningHandler=null;DWREngine._preHook=null;DWREngine._postHook=null;DWREngine._batches=[];DWREngine._batchQueue=[];DWREngine._handlersMap={};DWREngine._method=DWREngine.XMLHttpRequest;DWREngine._verb="POST";DWREngine._ordered=false;DWREngine._async=true;DWREngine._batch=null;DWREngine._timeout=0;DWREngine._DOMDocument=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.5.0","Msxml2.DOMDocument.4.0","Msxml2.DOMDocument.3.0","MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"];DWREngine._XMLHTTP=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];DWREngine._execute=function(path,scriptName,methodName,vararg_params){var singleShot=false;if(DWREngine._batch==null){DWREngine.beginBatch();singleShot=true;} var args=[];for(var i=0;i2){DWREngine._handleError("Ambiguous nulls at start and end of parameter list. Which is the callback function?");} callData={callback:args.shift()};params=args;} else if(lastArg==null){callData={callback:args.pop()};params=args;} else{DWREngine._handleError("Missing callback function or metadata object.");return;} var random=Math.floor(Math.random()*10001);var id=(random+"_"+new Date().getTime()).toString();var prefix="c"+DWREngine._batch.map.callCount+"-";DWREngine._batch.ids.push(id);if(callData.method!=null){DWREngine._batch.method=callData.method;delete callData.method;} if(callData.verb!=null){DWREngine._batch.verb=callData.verb;delete callData.verb;} if(callData.async!=null){DWREngine._batch.async=callData.async;delete callData.async;} if(callData.timeout!=null){DWREngine._batch.timeout=callData.timeout;delete callData.timeout;} if(callData.preHook!=null){DWREngine._batch.preHooks.unshift(callData.preHook);delete callData.preHook;} if(callData.postHook!=null){DWREngine._batch.postHooks.push(callData.postHook);delete callData.postHook;} if(callData.errorHandler==null)callData.errorHandler=DWREngine._errorHandler;if(callData.warningHandler==null)callData.warningHandler=DWREngine._warningHandler;DWREngine._handlersMap[id]=callData;DWREngine._batch.map[prefix+"scriptName"]=scriptName;DWREngine._batch.map[prefix+"methodName"]=methodName;DWREngine._batch.map[prefix+"id"]=id;for(i=0;i=0&&navigator.userAgent.indexOf("MSIE")>=0)){batch.req=DWREngine._newActiveXObject(DWREngine._XMLHTTP);}} var query="";var prop;if(batch.req){batch.map.xml="true";if(batch.async){batch.req.onreadystatechange=function(){DWREngine._stateChange(batch);};} var indexSafari=navigator.userAgent.indexOf("Safari/");if(indexSafari>=0){var version=navigator.userAgent.substring(indexSafari+7);if(parseInt(version,10)<400)batch.verb=="GET";} if(batch.verb=="GET"){batch.map.callCount=""+batch.map.callCount;for(prop in batch.map){var qkey=encodeURIComponent(prop);var qval=encodeURIComponent(batch.map[prop]);if(qval=="")DWREngine._handleError("Found empty qval for qkey="+qkey);query+=qkey+"="+qval+"&";} try{batch.req.open("GET",batch.path+"/exec/"+urlPostfix+"?"+query,batch.async);batch.req.send(null);if(!batch.async)DWREngine._stateChange(batch);} catch(ex){DWREngine._handleMetaDataError(null,ex);}} else{for(prop in batch.map){if(typeof batch.map[prop]!="function"){query+=prop+"="+batch.map[prop]+"\n";}} try{batch.req.open("POST",batch.path+"/exec/"+urlPostfix,batch.async);batch.req.setRequestHeader('Content-Type','text/plain');batch.req.send(query);if(!batch.async)DWREngine._stateChange(batch);} catch(ex){DWREngine._handleMetaDataError(null,ex);}}} else{batch.map.xml="false";var idname="dwr-if-"+batch.map["c0-id"];batch.div=document.createElement("div");batch.div.innerHTML="";document.body.appendChild(batch.div);batch.iframe=document.getElementById(idname);batch.iframe.setAttribute("style","width:0px; height:0px; border:0px;");if(batch.verb=="GET"){for(prop in batch.map){if(typeof batch.map[prop]!="function"){query+=encodeURIComponent(prop)+"="+encodeURIComponent(batch.map[prop])+"&";}} query=query.substring(0,query.length-1);batch.iframe.setAttribute("src",batch.path+"/exec/"+urlPostfix+"?"+query);document.body.appendChild(batch.iframe);} else{batch.form=document.createElement("form");batch.form.setAttribute("id","dwr-form");batch.form.setAttribute("action",batch.path+"/exec"+urlPostfix);batch.form.setAttribute("target",idname);batch.form.target=idname;batch.form.setAttribute("method","POST");for(prop in batch.map){var formInput=document.createElement("input");formInput.setAttribute("type","hidden");formInput.setAttribute("name",prop);formInput.setAttribute("value",batch.map[prop]);batch.form.appendChild(formInput);} document.body.appendChild(batch.form);batch.form.submit();}}};DWREngine._stateChange=function(batch){if(!batch.completed&&batch.req.readyState==4){try{var reply=batch.req.responseText;if(reply==null||reply==""){DWREngine._handleMetaDataWarning(null,"No data received from server");} else{var contentType=batch.req.getResponseHeader("Content-Type");if(!contentType.match(/^text\/plain/)&&!contentType.match(/^text\/javascript/)){if(DWREngine._textHtmlHandler&&contentType.match(/^text\/html/)){DWREngine._textHtmlHandler();} else{DWREngine._handleMetaDataWarning(null,"Invalid content type from server: '"+contentType+"'");}} else{if(reply.search("DWREngine._handle")==-1){DWREngine._handleMetaDataWarning(null,"Invalid reply from server");} else{eval(reply);}}} DWREngine._clearUp(batch);} catch(ex){if(ex==null)ex="Unknown error occured";DWREngine._handleMetaDataWarning(null,ex);} finally{if(DWREngine._batchQueue.length!=0){var sendbatch=DWREngine._batchQueue.shift();DWREngine._sendData(sendbatch);DWREngine._batches[DWREngine._batches.length]=sendbatch;}}}};DWREngine._handleResponse=function(id,reply){var handlers=DWREngine._handlersMap[id];DWREngine._handlersMap[id]=null;if(handlers){try{if(handlers.callback)handlers.callback(reply);} catch(ex){DWREngine._handleMetaDataError(handlers,ex);}} if(DWREngine._method==DWREngine.IFrame){var responseBatch=DWREngine._batches[DWREngine._batches.length-1];if(responseBatch.map["c"+(responseBatch.map.callCount-1)+"-id"]==id){DWREngine._clearUp(responseBatch);}}};DWREngine._handleServerError=function(id,error){var handlers=DWREngine._handlersMap[id];DWREngine._handlersMap[id]=null;if(error.message)DWREngine._handleMetaDataError(handlers,error.message,error);else DWREngine._handleMetaDataError(handlers,error);};DWREngine._eval=function(script){return eval(script);} DWREngine._abortRequest=function(batch){if(batch&&!batch.completed){clearInterval(batch.interval);DWREngine._clearUp(batch);if(batch.req)batch.req.abort();var handlers;for(var i=0;i=0xDC00&&c<0xE000)continue;if(c>=0xD800&&c<0xDC00){if(i>=wide.length)continue;s=wide.charCodeAt(i++);if(s<0xDC00||c>=0xDE00)continue;c=((c-0xD800)<<10)+(s-0xDC00)+0x10000;} if(c<0x80){enc+=String.fromCharCode(c);} else if(c<0x800){enc+=String.fromCharCode(0xC0+(c>>6),0x80+(c&0x3F));} else if(c<0x10000){enc+=String.fromCharCode(0xE0+(c>>12),0x80+(c>>6&0x3F),0x80+(c&0x3F));} else{enc+=String.fromCharCode(0xF0+(c>>18),0x80+(c>>12&0x3F),0x80+(c>>6&0x3F),0x80+(c&0x3F));}} return enc;} DWREngine._hexchars="0123456789ABCDEF";DWREngine._toHex=function(n){return DWREngine._hexchars.charAt(n>>4)+DWREngine._hexchars.charAt(n&0xF);} DWREngine._okURIchars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-";window.encodeURIComponent=function(s){s=DWREngine._utf8(s);var c;var enc="";for(var i=0;ithis.length){if(arguments.length>2)ind=this.length;else return[];} if(arguments.length<2)cnt=this.length-ind;cnt=(typeof cnt=="number")?Math.max(0,cnt):0;removeArray=this.slice(ind,ind+cnt);endArray=this.slice(ind+cnt);this.length=ind;for(var i=2;i=0;--j)this[j+i]=this[j];for(j=0;j0)value=DWRUtil.toDescriptiveString(obj,level-1,depth+1);else value=DWRUtil._detailedTypeOf(obj);} else{value=""+obj;value=value.replace(/\/n/g,"\\n");value=value.replace(/\/t/g,"\\t");}} catch(ex){value=""+ex;} if(level!=0){reply+=DWRUtil._indent(level,depth+2)+value+", \n";} else{if(value.length>13)value=value.substring(0,10)+"...";reply+=value+", ";if(i>5){reply+="...";break;}}} if(level!=0)reply+=DWRUtil._indent(level,depth)+"]";else reply+="]";} return reply;} if(typeof data=="string"||typeof data=="number"||DWRUtil._isDate(data)){return data.toString();} if(typeof data=="object"){var typename=DWRUtil._detailedTypeOf(data);if(typename!="Object")reply=typename+" ";if(level!=0)reply+="{\n";else reply="{";var isHtml=DWRUtil._isHTMLElement(data);for(var prop in data){if(isHtml){if(prop.toUpperCase()==prop||prop=="title"||prop=="lang"||prop=="dir"||prop=="className"||prop=="form"||prop=="name"||prop=="prefix"||prop=="namespaceURI"||prop=="nodeType"||prop=="firstChild"||prop=="lastChild"||prop.match(/^offset/)){continue;}} value="";try{obj=data[prop];if(obj==null||typeof obj=="function"){continue;} else if(typeof obj=="object"){if(level>0){value="\n";value+=DWRUtil._indent(level,depth+2);value=DWRUtil.toDescriptiveString(obj,level-1,depth+1);} else{value=DWRUtil._detailedTypeOf(obj);}} else{value=""+obj;value=value.replace(/\/n/g,"\\n");value=value.replace(/\/t/g,"\\t");}} catch(ex){value=""+ex;} if(level==0&&value.length>13)value=value.substring(0,10)+"...";var propStr=prop;if(propStr.length>30)propStr=propStr.substring(0,27)+"...";if(level!=0)reply+=DWRUtil._indent(level,depth+1);reply+=prop+":"+value+", ";if(level!=0)reply+="\n";i++;if(level==0&&i>5){reply+="...";break;}} reply+=DWRUtil._indent(level,depth);reply+="}";return reply;} return data.toString();};DWRUtil._indent=function(level,depth){var reply="";if(level!=0){for(var j=0;j/,">");}} var orig=ele;var nodes,node,i;ele=$(ele);if(ele==null){nodes=document.getElementsByName(orig);if(nodes.length>=1){ele=nodes.item(0);}} if(ele==null){DWRUtil.debug("setValue() can't find an element with id/name: "+orig+".");return;} if(DWRUtil._isHTMLElement(ele,"select")){if(ele.type=="select-multiple"&&DWRUtil._isArray(val)){DWRUtil._selectListItems(ele,val);} else{DWRUtil._selectListItem(ele,val);} return;} if(DWRUtil._isHTMLElement(ele,"input")){if(ele.type=="radio"){if(nodes==null)nodes=document.getElementsByName(orig);if(nodes!=null&&nodes.length>1){for(i=0;i=1){ele=nodes.item(0);} if(ele==null){DWRUtil.debug("getValue() can't find an element with id/name: "+orig+".");return"";} if(DWRUtil._isHTMLElement(ele,"select")){var sel=ele.selectedIndex;if(sel!=-1){var reply=ele.options[sel].value;if(reply==null||reply==""){reply=ele.options[sel].text;} return reply;} else{return"";}} if(DWRUtil._isHTMLElement(ele,"input")){if(ele.type=="radio"){var node;for(i=0;i1)return node.value;else return true;}}}} switch(ele.type){case"checkbox":case"check-box":case"radio":return ele.checked;default:return ele.value;}} if(DWRUtil._isHTMLElement(ele,"textarea")){return ele.value;} if(options.textContent){if(ele.textContent)return ele.textContent;else if(ele.innerText)return ele.innerText;} return ele.innerHTML;};DWRUtil.getText=function(ele){var orig=ele;ele=$(ele);if(ele==null){DWRUtil.debug("getText() can't find an element with id: "+orig+".");return"";} if(!DWRUtil._isHTMLElement(ele,"select")){DWRUtil.debug("getText() can only be used with select elements. Attempt to use: "+DWRUtil._detailedTypeOf(ele)+" from id: "+orig+".");return"";} var sel=ele.selectedIndex;if(sel!=-1){return ele.options[sel].text;} else{return"";}};DWRUtil.setValues=function(map){for(var property in map){if($(property)!=null||document.getElementsByName(property).length>=1){DWRUtil.setValue(property,map[property]);}}};DWRUtil.getValues=function(data){var ele;if(typeof data=="string")ele=$(data);if(DWRUtil._isHTMLElement(data))ele=data;if(ele!=null){if(ele.elements==null){alert("getValues() requires an object or reference to a form element.");return null;} var reply={};var value;for(var i=0;i=1){data[property]=DWRUtil.getValue(property);}} return data;}};DWRUtil.addOptions=function(ele,data){var orig=ele;ele=$(ele);if(ele==null){DWRUtil.debug("addOptions() can't find an element with id: "+orig+".");return;} var useOptions=DWRUtil._isHTMLElement(ele,"select");var useLi=DWRUtil._isHTMLElement(ele,["ul","ol"]);if(!useOptions&&!useLi){DWRUtil.debug("addOptions() can only be used with select/ul/ol elements. Attempt to use: "+DWRUtil._detailedTypeOf(ele));return;} if(data==null)return;var text;var value;var opt;var li;if(DWRUtil._isArray(data)){for(var i=0;i0){ele.removeChild(ele.firstChild);}}};DWRUtil.addRows=function(ele,data,cellFuncs,options){var orig=ele;ele=$(ele);if(ele==null){DWRUtil.debug("addRows() can't find an element with id: "+orig+".");return;} if(!DWRUtil._isHTMLElement(ele,["table","tbody","thead","tfoot"])){DWRUtil.debug("addRows() can only be used with table, tbody, thead and tfoot elements. Attempt to use: "+DWRUtil._detailedTypeOf(ele));return;} if(!options)options={};if(!options.rowCreator)options.rowCreator=DWRUtil._defaultRowCreator;if(!options.cellCreator)options.cellCreator=DWRUtil._defaultCellCreator;var tr,rowNum;if(DWRUtil._isArray(data)){for(rowNum=0;rowNum0){ele.removeChild(ele.firstChild);}};DWRUtil._isHTMLElement=function(ele,nodeName){if(ele==null||typeof ele!="object"||ele.nodeName==null){return false;} if(nodeName!=null){var test=ele.nodeName.toLowerCase();if(typeof nodeName=="string"){return test==nodeName.toLowerCase();} if(DWRUtil._isArray(nodeName)){var match=false;for(var i=0;i-1) {installed=true;}}} else {var qtObj=false;try {qtObj=new ActiveXObject(activeXName);if(qtObj) {installed=true;}} catch(e) {installed=false;}}} return installed;} function isVeohWebPlayerInstalled(){var installed=false;if(navigator.plugins&&navigator.plugins.length) {for(var i=0;i-1) {installed=true;}}} else {try {qtObj=new ActiveXObject(activeXName5);if(qtObj){installed=true;}} catch(e) {installed=false;}} return installed;} function getVeohWebPlayerPort(){var p2pPort='';if(document.getElementById(mozId)&&typeof document.getElementById(mozId)=='function'&&document.getElementById(mozId).getP2PPort) {p2pPort=document.getElementById(mozId).getP2PPort();} else if(document.getElementById(ieId)&&typeof document.getElementById(ieId)=='object') {p2pPort=document.getElementById(ieId).P2PPort;} return p2pPort;} function getVeohWebPlayerVersion(){var version='';if(document.getElementById(mozId)&&typeof document.getElementById(mozId)=='function'&&document.getElementById(mozId).getVersion) {version=document.getElementById(mozId).getVersion();} else if(document.getElementById(ieId)&&typeof document.getElementById(ieId)=='object') {version=document.getElementById(ieId).Version;} return version;} function getWebPlayerPluginHtml(){var html=''+'';return html;} var AUTH_COOKIE_NAME="VEOH_GUIDE_AUTH";var IFrameObj;function callToServer(url) {if(!document.createElement) {return true;} var IFrameDoc;if(!IFrameObj&&document.createElement) {try {var tempIFrame=document.createElement('iframe');tempIFrame.setAttribute('id','RSIFrame');tempIFrame.style.border='0px';tempIFrame.style.width='0px';tempIFrame.style.height='0px';IFrameObj=document.body.appendChild(tempIFrame);if(document.frames) {IFrameObj=document.frames['RSIFrame'];}}catch(exception) {iframeHTML='\