function error(A){alert("ERROR:"+A)}function debug(A){}function trace(A){}function warn(A){}function ASSERT(B,A){if(!B){alert("ASSERT: "+A)}}try{if(undefined!=null){error("This browser does not have undefined null loose equivalance.")}}catch(l_e){var undefined=null}var g_ms_latest_xml_request_object_name="MSXML2.XMLHTTP.4.0";var g_ms_safe_xml_request_object_name="Microsoft.XMLHTTP";var g_ms_latest_xml_DOM_object_name="Msxml2.DOMDocument.3.0";var g_ms_latest_xml_XSLTPROC_object_name="MSXML2.XSLTemplate.3.0";var g_ms_latest_xml_XSLT_object_name="MSXML2.FreeThreadedDOMDocument.3.0";var g_ms_safest_xml_DOM_object_name="Microsoft.XMLDOM";var g_bid="Unknown";var g_bOS="";var g_bver=0;var g_bxmldoc="Unknown";var l_browser_signature=navigator.userAgent.toLowerCase();var l_browser_type;var l_browser_type_location;function checkIt(A){return l_browser_type_location=(l_browser_signature.indexOf(l_browser_type=A)+1)}if(checkIt("safari")){g_bid="Safari"}else{if(checkIt("opera")){g_bid="Opera"}else{if(checkIt("msie")){g_bid="IE"}else{if(!checkIt("compatible")){g_bid="Mozilla";g_bver=l_browser_signature.charAt(8)}else{g_bid="Unknown"}}}}if(!g_bver){g_bver=l_browser_signature.charAt(l_browser_type_location+l_browser_type.length)}if(!g_bOS){if(checkIt("linux")){g_bOS="Linux"}else{if(checkIt("x11")){g_bOS="Unix"}else{if(checkIt("mac")){g_bOS="Mac"}else{if(checkIt("win")){g_bOS="Windows"}else{OS="an unknown operating system"}}}}}var g_required_paths=new Array();function MwPath(A){g_required_paths[g_required_paths.length]=A}MwPath("");function MwInclude(F){var H="";if(MetaWrap.m_package){alert("m_package");return }for(var G=g_required_paths.length-1;G>=0;G--){var E=g_required_paths[G]+F;var D=window.location.protocol+window.location.hostname;var C=g_required_paths[G].split(":");var A="file:";var B="";if(C.length>1){A=C[0]+":";if(C.length>2){var C=C[1].split(".");B=C[0]}}if(window.location.protocol!=A){H+='<script language="JavaScript" type="text/javascript" src="'+E+'"><\/script>';continue}}if(H!=""){document.write(H);return true}error('Unable to locate "'+F+'"');return false}function MwUse(p_namespace,p_lib_file){try{if(p_lib_file==null){p_lib_file=p_namespace;p_lib_file=p_lib_file.replace(/MetaWrap/gi,"mw_lib");p_lib_file=p_lib_file.replace(/\./gi,"_")+".js";p_lib_file=p_lib_file.toLowerCase()}if(eval("MetaWrap.typeOf(window."+p_namespace+")")!="undefined"){return true}}catch(l_e){}return MwInclude(p_lib_file)}function MwPackage(E,B,C,A){MetaWrap.g_js_root=E;if(A!=null){for(var D=0;D<A.length;D++){try{MwPath(A[D])}catch(F){}}}for(var D=0;D<C.length;D++){if(MetaWrap.typeOf(C[D])=="string"){MwUse(C[D])}else{MwUse(C[D][0],C[D][1])}}MetaWrap.m_package=true}var g_required_objects=[];function MwRequire(B,A){g_required_objects[g_required_objects.length]={m_object:B,m_lib_file:A}}function MwInit(){for(var A=0;A<g_required_objects.length;A++){MwUse(g_required_objects[A].m_object,g_required_objects[A].m_lib_file)}}MetaWrap={};MetaWrap.m_package=false;MetaWrap.g_js_root="";MetaWrap.g_dev=false;MetaWrap.exceptionMessage=function(A){if(A.message!=undefined){return A.message}else{return A}};MetaWrap.typeOf=function(A){if(A===undefined){return"undefined"}else{if(A===null){return"null"}else{if((A=="undefined")||(A==null)){return"undefined"}else{if(A.push){return"array"}}}}return typeof (A)};MetaWrap.Try=function(){for(var A=0;A<arguments.length;A++){try{return arguments[A]()}catch(B){}}return null};MetaWrap.getAllChildren=function(A){return A.all?A.all:A.getElementsByTagName("*")};MetaWrap.doRemove=function(A,C){if(A.splice){A.splice(C,1)}else{for(var B=C;B<A.length-1;B++){A[B]=A[B+1]}A.length--}};MetaWrap.doCall=function(C,D,B){var A=null;if(C.call){A=C.call(D,B)}else{D.mwcfunc=C;A=D.mwcfunc(B);D.mwcfunc=null}if(A!==undefined){return A}};MetaWrap.getDOMLocationFromElement=function(B){var F="";if(B==null){return""}if(B==document){return"document"}if(B.nodeName=="IFRAME"){F="frames['"+B.name+"']";while(B.parentNode.nodeName!="#document"){B=B.parentNode}B=B.parentNode}else{if(B.id){F="#"+B.id;while(B.parentNode.nodeName!="#document"){B=B.parentNode}B=B.parentNode}else{if(B.nodeName=="#document"){F+="document"}else{F+=B.nodeName}var D=0;var E=B.previousSibling;while(E!=null){if(E.nodeName==B.nodeName){D++}E=E.previousSibling}if(D){F=F+"["+D+"]"}}}if(B.parentNode==null){var C=B.defaultView||B.parentWindow;ASSERT(C!=null,"l_window != null");ASSERT(B.nodeName=="#document","p_element.nodeName == '#document'");var A=C.frameElement;if(A!=null){ASSERT(B!=document,"p_element != document");return(MetaWrap.getDOMLocationFromElement(A)+"."+F)}else{return F}}else{return(MetaWrap.getDOMLocationFromElement(B.parentNode)+"."+F)}};MetaWrap.getDOMElementFromLocation=function(M){if(M==""){return document}if(M=="document"){return document}var J=window;var K=null;var A=null;K=M.split(".");for(var F=0;F<K.length;F++){var D=K[F];var B=D.indexOf("[");var E=0;if(B!=-1){var G=D.indexOf("]");E=D.substring(B+1,G);if((E.charAt(0)=="'")||(E.charAt(0)=='"')){E=E.substring(1,E.length-1)}D=D.substring(0,B)}if((A!=null)&&(D=="#text")){A=A.firstChild}else{if(D.charAt(0)=="#"){var I=D.substring(1,D.length);A=J.document.getElementById(I);if(!A){A=J.document.getElementById(M);if(!A){return A}}ASSERT(A,"MetaWrap.getDOMElementFromLocation: failed to find #"+I+" from "+M)}else{if(D=="document"){A=l_document=J.document;ASSERT(A,"failed to find 'document'")}else{if(D=="frames"){for(var L=0;L<J.frames.length;L++){if(J.frames[L].name==E){J=J.frames[L];break}}ASSERT(J!=null,"MetaWrap.getDOMElementFromLocation: failed to find frame '"+E+"'");A=J.document}else{if(A){var H=A.firstChild;var C=0;while((H)&&((H.nodeName!=D)||(C!=E))){if(H.nodeName==D){C++}H=H.nextSibling;if(H==null){error("escape with "+D);return null}}A=H}}}}}}ASSERT(A!=null,"MetaWrap.getDOMElementFromLocation: failed to find '"+M+"'");return A};MetaWrap.s2h=function(D){var C="";var A=D.length;for(var B=0;B<A;B++){C+=MetaWrap.d2h2(D.charCodeAt(B))}return C};MetaWrap.d2h=function(C){var A=MetaWrap.d2h.c_lookup;var B=A.substr(C&15,1);while(C>15){C>>=4;B=A.substr(C&15,1)+B}return B};MetaWrap.d2h.c_lookup="0123456789abcdef";MetaWrap.d2h2=function(B){var A=MetaWrap.d2h(B);if(A.length==0){return"00"}else{if(A.length<2){return"0"+A}else{if(A.length>2){return A.substr(0,2)}}}return A};MetaWrap.h2d=function(A){return parseInt(A,16)};MetaWrap.stripWhitespace=function(E){var D="";if(E==null){return D}var C=0;var A=E.length;for(var B=0;B<A;B++){switch(E.charCodeAt(B)){case 10:case 32:case 13:case 7:break;default:D+=E.charAt(B);break}}return D};MetaWrap.strip0D0A=function(E){var D="";if(E==null){return D}var C=0;var A=E.length;for(var B=0;B<A;B++){switch(E.charCodeAt(B)){case 10:case 13:break;default:D+=E.charAt(B);break}}return D};MetaWrap.f0=function(A,B){B=new String(B);while(B.length<A){B="0"+B}return B};MetaWrap.dateTimeString=function(){var D=new Date();var B=this.f0(2,D.getHours());var C=this.f0(2,D.getMinutes());var A=this.f0(2,D.getSeconds());var E=this.f0(2,D.getDate());var G=this.f0(2,D.getMonth()+1);var F=this.f0(4,D.getFullYear());return F+""+G+""+E+"-"+B+""+C+""+A};MetaWrap.doOnIn=function(C,B){for(var A in C){if(C[A][B]!=null){C[A][B]()}}};MetaWrap.qs=function(B){var D=window.location.search.substring(1);var E=D.split("&");for(var C=0;C<E.length;C++){var A=E[C].split("=");if(A[0]==B){return A[1]}}return""};MetaWrap.$=function(B,A){if(A==null){A=document}return A.getElementById(B)};MetaWrap.$E=function(D,B){if(B==null){B=document}var C;if("string"==typeof D){C=document.createTextNode(D)}else{C=B.createElement(D.tag);delete (D.tag);if("undefined"!=typeof D.children){if("string"==typeof D.children||"undefined"==typeof D.children.length){C.appendChild(MetaWrap.$E(D.children,B))}else{for(var A=0,E=null;"undefined"!=typeof (E=D.children[A]);A++){C.appendChild(MetaWrap.$E(E,B))}}delete (D.children)}for(attr in D){C[attr]=D[attr]}}return C};MetaWrap.Class=function(){if(arguments.length){if(this==window){MetaWrap.Class.prototype.extend.call(arguments[0],arguments.callee.prototype)}else{this.extend(arguments[0])}}};MetaWrap.Class.extend=function(E,G){var F=MetaWrap.Class.prototype.extend;if(!E){E={}}MetaWrap.Class.$_prototyping=true;var D=new this;F.call(D,E);var C=D.constructor;D.constructor=this;delete MetaWrap.Class.$_prototyping;var A=function(){if(!MetaWrap.Class.$_prototyping){C.apply(this,arguments)}this.constructor=A};A.prototype=D;A.extend=this.extend;A.implement=this.implement;A.toString=function(){return String(C)};F.call(A,G);var B=C?A:D;if(B.init instanceof Function){B.init()}return B};MetaWrap.Class.implement=function(A){if(A instanceof Function){A=A.prototype}this.prototype.extend(A)};MetaWrap.Class.prototype.extend=function(D,G){var H=MetaWrap.Class.prototype.extend;if(arguments.length==2){var I=this[D];if((I instanceof Function)&&(G instanceof Function)&&I.valueOf()!=G.valueOf()&&/\bbase\b/.test(G)){var B=G;G=function(){var K=this.base;this.base=I;var J=B.apply(this,arguments);this.base=K;return J};G.valueOf=function(){return B};G.toString=function(){return String(B)}}return this[D]=G}else{if(D){var E={toSource:null};var F=["toString","valueOf"];if(MetaWrap.Class.$_prototyping){F[2]="constructor"}for(var C=0;(A=F[C]);C++){if(D[A]!=E[A]){H.call(this,A,D[A])}}for(var A in D){if(!E[A]){H.call(this,A,D[A])}}}}return this};MetaWrap.Class.prototype.base=function(){};MetaWrap.Platform={};MetaWrap.Platform.MediaManager={};var Prototype={Version:"1.5.0_rc1",BrowserFeatures:{XPath:!!document.evaluate},ScriptFragment:"(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)",emptyFunction:function(){},K:function(A){return A}};var Class={create:function(){return function(){this.initialize.apply(this,arguments)}}};var Abstract=new Object();Object.extend=function(A,C){for(var B in C){A[B]=C[B]}return A};Object.extend(Object,{inspect:function(A){try{if(A===undefined){return"undefined"}if(A===null){return"null"}return A.inspect?A.inspect():A.toString()}catch(B){if(B instanceof RangeError){return"..."}throw B}},keys:function(A){var B=[];for(var C in A){B.push(C)}return B},values:function(B){var A=[];for(var C in B){A.push(B[C])}return A},clone:function(A){return Object.extend({},A)}});Function.prototype.bind=function(){var A=this,C=$A(arguments),B=C.shift();return function(){return A.apply(B,C.concat($A(arguments)))}};Function.prototype.bindAsEventListener=function(C){var A=this,B=$A(arguments),C=B.shift();return function(D){return A.apply(C,[(D||window.event)].concat(B).concat($A(arguments)))}};Object.extend(Number.prototype,{toColorPart:function(){var A=this.toString(16);if(this<16){return"0"+A}return A},succ:function(){return this+1},times:function(A){$R(0,this,true).each(A);return this}});var Try={these:function(){var C;for(var B=0;B<arguments.length;B++){var A=arguments[B];try{C=A();break}catch(D){}}return C}};var PeriodicalExecuter=Class.create();PeriodicalExecuter.prototype={initialize:function(B,A){this.callback=B;this.frequency=A;this.currentlyExecuting=false;this.registerCallback()},registerCallback:function(){this.timer=setInterval(this.onTimerEvent.bind(this),this.frequency*1000)},stop:function(){if(!this.timer){return }clearInterval(this.timer);this.timer=null},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyExecuting=true;this.callback(this)}finally{this.currentlyExecuting=false}}}};Object.extend(String.prototype,{gsub:function(E,C){var A="",D=this,B;C=arguments.callee.prepareReplacement(C);while(D.length>0){if(B=D.match(E)){A+=D.slice(0,B.index);A+=(C(B)||"").toString();D=D.slice(B.index+B[0].length)}else{A+=D,D=""}}return A},sub:function(C,A,B){A=this.gsub.prepareReplacement(A);B=B===undefined?1:B;return this.gsub(C,function(D){if(--B<0){return D[0]}return A(D)})},scan:function(B,A){this.gsub(B,A);return this},truncate:function(B,A){B=B||30;A=A===undefined?"...":A;return this.length>B?this.slice(0,B-A.length)+A:this},strip:function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")},stripTags:function(){return this.replace(/<\/?[^>]+>/gi,"")},stripScripts:function(){return this.replace(new RegExp(Prototype.ScriptFragment,"img"),"")},extractScripts:function(){var B=new RegExp(Prototype.ScriptFragment,"img");var A=new RegExp(Prototype.ScriptFragment,"im");return(this.match(B)||[]).map(function(C){return(C.match(A)||["",""])[1]})},evalScripts:function(){return this.extractScripts().map(function(script){return eval(script)})},escapeHTML:function(){var B=document.createElement("div");var A=document.createTextNode(this);B.appendChild(A);return B.innerHTML},unescapeHTML:function(){var A=document.createElement("div");A.innerHTML=this.stripTags();return A.childNodes[0]?A.childNodes[0].nodeValue:""},toQueryParams:function(){var A=this.strip().match(/[^?]*$/)[0];if(!A){return{}}var B=A.split("&");return B.inject({},function(F,C){var E=C.split("=");var D=E[1]?decodeURIComponent(E[1]):undefined;F[decodeURIComponent(E[0])]=D;return F})},toArray:function(){return this.split("")},camelize:function(){var C=this.split("-");if(C.length==1){return C[0]}var A=this.indexOf("-")==0?C[0].charAt(0).toUpperCase()+C[0].substring(1):C[0];for(var B=1,E=C.length;B<E;B++){var D=C[B];A+=D.charAt(0).toUpperCase()+D.substring(1)}return A},inspect:function(B){var A=this.replace(/\\/g,"\\\\");if(B){return'"'+A.replace(/"/g,'\\"')+'"'}else{return"'"+A.replace(/'/g,"\\'")+"'"}}});String.prototype.gsub.prepareReplacement=function(B){if(typeof B=="function"){return B}var A=new Template(B);return function(C){return A.evaluate(C)}};String.prototype.parseQuery=String.prototype.toQueryParams;var Template=Class.create();Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/;Template.prototype={initialize:function(A,B){this.template=A.toString();this.pattern=B||Template.Pattern},evaluate:function(A){return this.template.gsub(this.pattern,function(B){var C=B[1];if(C=="\\"){return B[2]}return C+(A[B[3]]||"").toString()})}};var $break=new Object();var $continue=new Object();var Enumerable={each:function(B){var A=0;try{this._each(function(D){try{B(D,A++)}catch(E){if(E!=$continue){throw E}}})}catch(C){if(C!=$break){throw C}}return this},eachSlice:function(C,B){var A=-C,D=[],E=this.toArray();while((A+=C)<E.length){D.push(E.slice(A,A+C))}return D.collect(B||Prototype.K)},all:function(B){var A=true;this.each(function(D,C){A=A&&!!(B||Prototype.K)(D,C);if(!A){throw $break}});return A},any:function(B){var A=false;this.each(function(D,C){if(A=!!(B||Prototype.K)(D,C)){throw $break}});return A},collect:function(B){var A=[];this.each(function(D,C){A.push(B(D,C))});return A},detect:function(B){var A;this.each(function(D,C){if(B(D,C)){A=D;throw $break}});return A},findAll:function(B){var A=[];this.each(function(D,C){if(B(D,C)){A.push(D)}});return A},grep:function(C,B){var A=[];this.each(function(F,E){var D=F.toString();if(D.match(C)){A.push((B||Prototype.K)(F,E))}});return A},include:function(A){var B=false;this.each(function(C){if(C==A){B=true;throw $break}});return B},inGroupsOf:function(C,B){B=B||null;var A=this.eachSlice(C);if(A.length>0){(C-A.last().length).times(function(){A.last().push(B)})}return A},inject:function(A,B){this.each(function(D,C){A=B(A,D,C)});return A},invoke:function(B){var A=$A(arguments).slice(1);return this.collect(function(C){return C[B].apply(C,A)})},max:function(B){var A;this.each(function(D,C){D=(B||Prototype.K)(D,C);if(A==undefined||D>=A){A=D}});return A},min:function(B){var A;this.each(function(D,C){D=(B||Prototype.K)(D,C);if(A==undefined||D<A){A=D}});return A},partition:function(C){var B=[],A=[];this.each(function(E,D){((C||Prototype.K)(E,D)?B:A).push(E)});return[B,A]},pluck:function(B){var A=[];this.each(function(D,C){A.push(D[B])});return A},reject:function(B){var A=[];this.each(function(D,C){if(!B(D,C)){A.push(D)}});return A},sortBy:function(A){return this.collect(function(C,B){return{value:C,criteria:A(C,B)}}).sort(function(E,D){var C=E.criteria,B=D.criteria;return C<B?-1:C>B?1:0}).pluck("value")},toArray:function(){return this.collect(Prototype.K)},zip:function(){var B=Prototype.K,A=$A(arguments);if(typeof A.last()=="function"){B=A.pop()}var C=[this].concat(A).map($A);return this.map(function(E,D){return B(C.pluck(D))})},inspect:function(){return"#<Enumerable:"+this.toArray().inspect()+">"}};Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray});var $A=Array.from=function(D){if(!D){return[]}if(D.toArray){return D.toArray()}else{var B=[];for(var A=0,C=D.length;A<C;A++){B.push(D[A])}return B}};Object.extend(Array.prototype,Enumerable);if(!Array.prototype._reverse){Array.prototype._reverse=Array.prototype.reverse}Object.extend(Array.prototype,{_each:function(B){for(var A=0,C=this.length;A<C;A++){B(this[A])}},clear:function(){this.length=0;return this},first:function(){return this[0]},last:function(){return this[this.length-1]},compact:function(){return this.select(function(A){return A!=undefined||A!=null})},flatten:function(){return this.inject([],function(B,A){return B.concat(A&&A.constructor==Array?A.flatten():[A])})},without:function(){var A=$A(arguments);return this.select(function(B){return !A.include(B)})},indexOf:function(A){for(var B=0,C=this.length;B<C;B++){if(this[B]==A){return B}}return -1},reverse:function(A){return(A!==false?this:this.toArray())._reverse()},reduce:function(){return this.length>1?this:this[0]},uniq:function(){return this.inject([],function(B,A){return B.include(A)?B:B.concat([A])})},clone:function(){return[].concat(this)},inspect:function(){return"["+this.map(Object.inspect).join(", ")+"]"}});Array.prototype.toArray=Array.prototype.clone;var Hash={_each:function(B){for(var A in this){var C=this[A];if(typeof C=="function"){continue}var D=[A,C];D.key=A;D.value=C;B(D)}},keys:function(){return this.pluck("key")},values:function(){return this.pluck("value")},merge:function(A){return $H(A).inject(this,function(B,C){B[C.key]=C.value;return B})},toQueryString:function(){return this.map(function(A){if(!A.value&&A.value!==0){A[1]=""}if(!A.key){return }return A.map(encodeURIComponent).join("=")}).join("&")},inspect:function(){return"#<Hash:{"+this.map(function(A){return A.map(Object.inspect).join(": ")}).join(", ")+"}>"}};function $H(A){var B=Object.extend({},A||{});Object.extend(B,Enumerable);Object.extend(B,Hash);return B}ObjectRange=Class.create();Object.extend(ObjectRange.prototype,Enumerable);Object.extend(ObjectRange.prototype,{initialize:function(C,A,B){this.start=C;this.end=A;this.exclusive=B},_each:function(A){var B=this.start;while(this.include(B)){A(B);B=B.succ()}},include:function(A){if(A<this.start){return false}if(this.exclusive){return A<this.end}return A<=this.end}});var $R=function(C,A,B){return new ObjectRange(C,A,B)};var Ajax={getTransport:function(){return Try.these(function(){return new XMLHttpRequest()},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")})||false},activeRequestCount:0};Ajax.Responders={responders:[],_each:function(A){this.responders._each(A)},register:function(A){if(!this.include(A)){this.responders.push(A)}},unregister:function(A){this.responders=this.responders.without(A)},dispatch:function(D,B,C,A){this.each(function(E){if(typeof E[D]=="function"){try{E[D].apply(E,[B,C,A])}catch(F){}}})}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++},onComplete:function(){Ajax.activeRequestCount--}});Ajax.Base=function(){};Ajax.Base.prototype={setOptions:function(A){this.options={method:"post",asynchronous:true,contentType:"application/x-www-form-urlencoded",encoding:"UTF-8",parameters:""};Object.extend(this.options,A||{});this.options.method=this.options.method.toLowerCase();this.options.parameters=$H(typeof this.options.parameters=="string"?this.options.parameters.toQueryParams():this.options.parameters)}};Ajax.Request=Class.create();Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];Ajax.Request.prototype=Object.extend(new Ajax.Base(),{initialize:function(B,A){this.transport=Ajax.getTransport();this.setOptions(A);this.request(B)},request:function(B){var D=this.options.parameters;if(D.any()){D._=""}if(!["get","post"].include(this.options.method)){D._method=this.options.method;this.options.method="post"}this.url=B;if(this.options.method=="get"&&D.any()){this.url+=(this.url.indexOf("?")>=0?"&":"?")+D.toQueryString()}try{Ajax.Responders.dispatch("onCreate",this,this.transport);this.transport.open(this.options.method.toUpperCase(),this.url,this.options.asynchronous,this.options.username,this.options.password);if(this.options.asynchronous){setTimeout(function(){this.respondToReadyState(1)}.bind(this),10)}this.transport.onreadystatechange=this.onStateChange.bind(this);this.setRequestHeaders();var A=this.options.method=="post"?(this.options.postBody||D.toQueryString()):null;this.transport.send(A);if(!this.options.asynchronous&&this.transport.overrideMimeType){this.onStateChange()}}catch(C){this.dispatchException(C)}},onStateChange:function(){var A=this.transport.readyState;if(A>1){this.respondToReadyState(this.transport.readyState)}},setRequestHeaders:function(){var D={"X-Requested-With":"XMLHttpRequest","X-Prototype-Version":Prototype.Version,Accept:"text/javascript, text/html, application/xml, text/xml, */*"};if(this.options.method=="post"){D["Content-type"]=this.options.contentType+(this.options.encoding?"; charset="+this.options.encoding:"");if(this.transport.overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005){D.Connection="close"}}if(typeof this.options.requestHeaders=="object"){var C=this.options.requestHeaders;if(typeof C.push=="function"){for(var B=0;B<C.length;B+=2){D[C[B]]=C[B+1]}}else{$H(C).each(function(E){D[E.key]=E.value})}}for(var A in D){this.transport.setRequestHeader(A,D[A])}},success:function(){return !this.transport.status||(this.transport.status>=200&&this.transport.status<300)},respondToReadyState:function(A){var C=Ajax.Request.Events[A];var E=this.transport,B=this.evalJSON();if(C=="Complete"){try{(this.options["on"+this.transport.status]||this.options["on"+(this.success()?"Success":"Failure")]||Prototype.emptyFunction)(E,B)}catch(D){this.dispatchException(D)}}try{(this.options["on"+C]||Prototype.emptyFunction)(E,B);Ajax.Responders.dispatch("on"+C,this,E,B)}catch(D){this.dispatchException(D)}if(C=="Complete"){if((this.getHeader("Content-type")||"").strip().match(/^(text|application)\/(x-)?(java|ecma)script(;.*)?$/i)){this.evalResponse()}this.transport.onreadystatechange=Prototype.emptyFunction}},getHeader:function(A){try{return this.transport.getResponseHeader(A)}catch(B){return null}},evalJSON:function(){try{var json=this.getHeader("X-JSON");return json?eval("("+json+")"):null}catch(e){return null}},evalResponse:function(){try{return eval(this.transport.responseText)}catch(e){this.dispatchException(e)}},dispatchException:function(A){(this.options.onException||Prototype.emptyFunction)(this,A);Ajax.Responders.dispatch("onException",this,A)}});Ajax.Updater=Class.create();Object.extend(Object.extend(Ajax.Updater.prototype,Ajax.Request.prototype),{initialize:function(A,C,B){this.container={success:(A.success||A),failure:(A.failure||(A.success?null:A))};this.transport=Ajax.getTransport();this.setOptions(B);var D=this.options.onComplete||Prototype.emptyFunction;this.options.onComplete=(function(F,E){this.updateContent();D(F,E)}).bind(this);this.request(C)},updateContent:function(){var B=this.container[this.success()?"success":"failure"];var A=this.transport.responseText;if(!this.options.evalScripts){A=A.stripScripts()}if(B=$(B)){if(this.options.insertion){new this.options.insertion(B,A)}else{B.update(A)}}if(this.success()){if(this.onComplete){setTimeout(this.onComplete.bind(this),10)}}}});Ajax.PeriodicalUpdater=Class.create();Ajax.PeriodicalUpdater.prototype=Object.extend(new Ajax.Base(),{initialize:function(A,C,B){this.setOptions(B);this.onComplete=this.options.onComplete;this.frequency=(this.options.frequency||2);this.decay=(this.options.decay||1);this.updater={};this.container=A;this.url=C;this.start()},start:function(){this.options.onComplete=this.updateComplete.bind(this);this.onTimerEvent()},stop:function(){this.updater.options.onComplete=undefined;clearTimeout(this.timer);(this.onComplete||Prototype.emptyFunction).apply(this,arguments)},updateComplete:function(A){if(this.options.decay){this.decay=(A.responseText==this.lastText?this.decay*this.options.decay:1);this.lastText=A.responseText}this.timer=setTimeout(this.onTimerEvent.bind(this),this.decay*this.frequency*1000)},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options)}});function $(B){if(arguments.length>1){for(var A=0,D=[],C=arguments.length;A<C;A++){D.push($(arguments[A]))}return D}if(typeof B=="string"){B=document.getElementById(B)}return Element.extend(B)}if(Prototype.BrowserFeatures.XPath){document._getElementsByXPath=function(F,B){var D=[];var E=document.evaluate(F,$(B)||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var C=0,A=E.snapshotLength;C<A;C++){D.push(E.snapshotItem(C))}return D}}document.getElementsByClassName=function(D,A){if(Prototype.BrowserFeatures.XPath){var G=".//*[contains(concat(' ', @class, ' '), ' "+D+" ')]";return document._getElementsByXPath(G,A)}else{var C=($(A)||document.body).getElementsByTagName("*");var F=[],H;for(var B=0,E=C.length;B<E;B++){H=C[B];if(Element.hasClassName(H,D)){F.push(Element.extend(H))}}return F}};if(!window.Element){var Element=new Object()}Element.extend=function(C){if(!C){return }if(_nativeExtensions||C.nodeType==3){return C}if(!C._extended&&C.tagName&&C!=window){var B=Object.clone(Element.Methods),A=Element.extend.cache;if(C.tagName=="FORM"){Object.extend(B,Form.Methods)}if(["INPUT","TEXTAREA","SELECT"].include(C.tagName)){Object.extend(B,Form.Element.Methods)}for(var E in B){var D=B[E];if(typeof D=="function"){C[E]=A.findOrStore(D)}}var B=Object.clone(Element.Methods.Simulated),A=Element.extend.cache;for(var E in B){var D=B[E];if("function"==typeof D&&!(E in C)){C[E]=A.findOrStore(D)}}}C._extended=true;return C};Element.extend.cache={findOrStore:function(A){return this[A]=this[A]||function(){return A.apply(null,[this].concat($A(arguments)))}}};Element.Methods={visible:function(A){return $(A).style.display!="none"},toggle:function(A){A=$(A);Element[Element.visible(A)?"hide":"show"](A);return A},hide:function(A){$(A).style.display="none";return A},show:function(A){$(A).style.display="";return A},showOverlay:function(A){$(A).style.display="block";return A},remove:function(A){A=$(A);A.parentNode.removeChild(A);return A},update:function(B,A){A=typeof A=="undefined"?"":A.toString();$(B).innerHTML=A.stripScripts();setTimeout(function(){A.evalScripts()},10);return B},replace:function(C,B){C=$(C);if(C.outerHTML){C.outerHTML=B.stripScripts()}else{var A=C.ownerDocument.createRange();A.selectNodeContents(C);C.parentNode.replaceChild(A.createContextualFragment(B.stripScripts()),C)}setTimeout(function(){B.evalScripts()},10);return C},inspect:function(B){B=$(B);var A="<"+B.tagName.toLowerCase();$H({id:"id",className:"class"}).each(function(F){var E=F.first(),C=F.last();var D=(B[E]||"").toString();if(D){A+=" "+C+"="+D.inspect(true)}});return A+">"},recursivelyCollect:function(A,C){A=$(A);var B=[];while(A=A[C]){if(A.nodeType==1){B.push(Element.extend(A))}}return B},ancestors:function(A){return $(A).recursivelyCollect("parentNode")},descendants:function(A){A=$(A);return $A(A.getElementsByTagName("*"))},previousSiblings:function(A){return $(A).recursivelyCollect("previousSibling")},nextSiblings:function(A){return $(A).recursivelyCollect("nextSibling")},siblings:function(A){A=$(A);return A.previousSiblings().reverse().concat(A.nextSiblings())},match:function(B,A){B=$(B);if(typeof A=="string"){A=new Selector(A)}return A.match(B)},up:function(B,C,A){return Selector.findElement($(B).ancestors(),C,A)},down:function(B,C,A){return Selector.findElement($(B).descendants(),C,A)},previous:function(B,C,A){return Selector.findElement($(B).previousSiblings(),C,A)},next:function(B,C,A){return Selector.findElement($(B).nextSiblings(),C,A)},getElementsBySelector:function(){var A=$A(arguments),B=$(A.shift());return Selector.findChildElements(B,A)},getElementsByClassName:function(A,B){A=$(A);return document.getElementsByClassName(B,A)},getHeight:function(A){A=$(A);return A.offsetHeight},classNames:function(A){return new Element.ClassNames(A)},hasClassName:function(A,B){if(!(A=$(A))){return }var C=A.className;if(C.length==0){return false}if(C==B||C.match(new RegExp("(^|\\s)"+B+"(\\s|$)"))){return true}return false},addClassName:function(A,B){if(!(A=$(A))){return }Element.classNames(A).add(B);return A},removeClassName:function(A,B){if(!(A=$(A))){return }Element.classNames(A).remove(B);return A},observe:function(){Event.observe.apply(Event,arguments);return $A(arguments).first()},stopObserving:function(){Event.stopObserving.apply(Event,arguments);return $A(arguments).first()},cleanWhitespace:function(B){B=$(B);var C=B.firstChild;while(C){var A=C.nextSibling;if(C.nodeType==3&&!/\S/.test(C.nodeValue)){B.removeChild(C)}C=A}return B},empty:function(A){return $(A).innerHTML.match(/^\s*$/)},childOf:function(B,A){B=$(B),A=$(A);while(B=B.parentNode){if(B==A){return true}}return false},scrollTo:function(B){B=$(B);var A=B.x?B.x:B.offsetLeft,C=B.y?B.y:B.offsetTop;window.scrollTo(A,C);return B},getStyle:function(B,C){B=$(B);var D=B.style[C.camelize()];if(!D){if(document.defaultView&&document.defaultView.getComputedStyle){var A=document.defaultView.getComputedStyle(B,null);D=A?A.getPropertyValue(C):null}else{if(B.currentStyle){D=B.currentStyle[C.camelize()]}}}if(window.opera&&["left","top","right","bottom"].include(C)){if(Element.getStyle(B,"position")=="static"){D="auto"}}return D=="auto"?null:D},setStyle:function(B,C){B=$(B);for(var A in C){B.style[A.camelize()]=C[A]}return B},getDimensions:function(B){B=$(B);if(Element.getStyle(B,"display")!="none"){return{width:B.offsetWidth,height:B.offsetHeight}}var A=B.style;var E=A.visibility;var C=A.position;A.visibility="hidden";A.position="absolute";A.display="";var F=B.clientWidth;var D=B.clientHeight;A.display="none";A.position=C;A.visibility=E;return{width:F,height:D}},makePositioned:function(A){A=$(A);var B=Element.getStyle(A,"position");if(B=="static"||!B){A._madePositioned=true;A.style.position="relative";if(window.opera){A.style.top=0;A.style.left=0}}return A},undoPositioned:function(A){A=$(A);if(A._madePositioned){A._madePositioned=undefined;A.style.position=A.style.top=A.style.left=A.style.bottom=A.style.right=""}return A},makeClipping:function(A){A=$(A);if(A._overflow){return A}A._overflow=A.style.overflow||"auto";if((Element.getStyle(A,"overflow")||"visible")!="hidden"){A.style.overflow="hidden"}return A},undoClipping:function(A){A=$(A);if(!A._overflow){return A}A.style.overflow=A._overflow=="auto"?"":A._overflow;A._overflow=null;return A}};Element.Methods.Simulated={hasAttribute:function(A,B){return $(A).getAttributeNode(B).specified}};if(document.all){Element.Methods.update=function(C,B){C=$(C);B=typeof B=="undefined"?"":B.toString();var A=C.tagName.toUpperCase();if(["THEAD","TBODY","TR","TD"].indexOf(A)>-1){var D=document.createElement("div");switch(A){case"THEAD":case"TBODY":D.innerHTML="<table><tbody>"+B.stripScripts()+"</tbody></table>";depth=2;break;case"TR":D.innerHTML="<table><tbody><tr>"+B.stripScripts()+"</tr></tbody></table>";depth=3;break;case"TD":D.innerHTML="<table><tbody><tr><td>"+B.stripScripts()+"</td></tr></tbody></table>";depth=4}$A(C.childNodes).each(function(E){C.removeChild(E)});depth.times(function(){D=D.firstChild});$A(D.childNodes).each(function(E){C.appendChild(E)})}else{C.innerHTML=B.stripScripts()}setTimeout(function(){B.evalScripts()},10);return C}}Object.extend(Element,Element.Methods);var _nativeExtensions=false;if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){["","Form","Input","TextArea","Select"].each(function(B){var C="HTML"+B+"Element";if(window[C]){return }var A=window[C]={};A.prototype=document.createElement(B?B.toLowerCase():"div").__proto__})}Element.addMethods=function(A){Object.extend(Element.Methods,A||{});function B(F,D,C){C=C||false;var E=Element.extend.cache;for(var H in F){var G=F[H];if(!C||!(H in D)){D[H]=E.findOrStore(G)}}}if(typeof HTMLElement!="undefined"){B(Element.Methods,HTMLElement.prototype);B(Element.Methods.Simulated,HTMLElement.prototype,true);B(Form.Methods,HTMLFormElement.prototype);[HTMLInputElement,HTMLTextAreaElement,HTMLSelectElement].each(function(C){B(Form.Element.Methods,C.prototype)});_nativeExtensions=true}};var Toggle=new Object();Toggle.display=Element.toggle;Abstract.Insertion=function(A){this.adjacency=A};Abstract.Insertion.prototype={initialize:function(B,C){this.element=$(B);this.content=C.stripScripts();if(this.adjacency&&this.element.insertAdjacentHTML){try{this.element.insertAdjacentHTML(this.adjacency,this.content)}catch(D){var A=this.element.tagName.toLowerCase();if(A=="tbody"||A=="tr"){this.insertContent(this.contentFromAnonymousTable())}else{throw D}}}else{this.range=this.element.ownerDocument.createRange();if(this.initializeRange){this.initializeRange()}this.insertContent([this.range.createContextualFragment(this.content)])}setTimeout(function(){C.evalScripts()},10)},contentFromAnonymousTable:function(){var A=document.createElement("div");A.innerHTML="<table><tbody>"+this.content+"</tbody></table>";return $A(A.childNodes[0].childNodes[0].childNodes)}};var Insertion=new Object();Insertion.Before=Class.create();Insertion.Before.prototype=Object.extend(new Abstract.Insertion("beforeBegin"),{initializeRange:function(){this.range.setStartBefore(this.element)},insertContent:function(A){A.each((function(B){this.element.parentNode.insertBefore(B,this.element)}).bind(this))}});Insertion.Top=Class.create();Insertion.Top.prototype=Object.extend(new Abstract.Insertion("afterBegin"),{initializeRange:function(){this.range.selectNodeContents(this.element);this.range.collapse(true)},insertContent:function(A){A.reverse(false).each((function(B){this.element.insertBefore(B,this.element.firstChild)}).bind(this))}});Insertion.Bottom=Class.create();Insertion.Bottom.prototype=Object.extend(new Abstract.Insertion("beforeEnd"),{initializeRange:function(){this.range.selectNodeContents(this.element);this.range.collapse(this.element)},insertContent:function(A){A.each((function(B){this.element.appendChild(B)}).bind(this))}});Insertion.After=Class.create();Insertion.After.prototype=Object.extend(new Abstract.Insertion("afterEnd"),{initializeRange:function(){this.range.setStartAfter(this.element)},insertContent:function(A){A.each((function(B){this.element.parentNode.insertBefore(B,this.element.nextSibling)}).bind(this))}});Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(A){this.element=$(A)},_each:function(A){this.element.className.split(/\s+/).select(function(B){return B.length>0})._each(A)},set:function(A){this.element.className=A},add:function(A){if(this.include(A)){return }this.set($A(this).concat(A).join(" "))},remove:function(A){if(!this.include(A)){return }this.set($A(this).without(A).join(" "))},toString:function(){return $A(this).join(" ")}};Object.extend(Element.ClassNames.prototype,Enumerable);var Selector=Class.create();Selector.prototype={initialize:function(A){this.params={classNames:[]};this.expression=A.toString().strip();this.parseExpression();this.compileMatcher()},parseExpression:function(){function G(H){throw"Parse error in selector: "+H}if(this.expression==""){G("empty expression")}var F=this.params,E=this.expression,B,A,D,C;while(B=E.match(/^(.*)\[([a-z0-9_:-]+?)(?:([~\|!]?=)(?:"([^"]*)"|([^\]\s]*)))?\]$/i)){F.attributes=F.attributes||[];F.attributes.push({name:B[2],operator:B[3],value:B[4]||B[5]||""});E=B[1]}if(E=="*"){return this.params.wildcard=true}while(B=E.match(/^([^a-z0-9_-])?([a-z0-9_-]+)(.*)/i)){A=B[1],D=B[2],C=B[3];switch(A){case"#":F.id=D;break;case".":F.classNames.push(D);break;case"":case undefined:F.tagName=D.toUpperCase();break;default:G(E.inspect())}E=C}if(E.length>0){G(E.inspect())}},buildMatchExpression:function(){var D=this.params,C=[],B;if(D.wildcard){C.push("true")}if(B=D.id){C.push("element.id == "+B.inspect())}if(B=D.tagName){C.push("element.tagName.toUpperCase() == "+B.inspect())}if((B=D.classNames).length>0){for(var A=0;A<B.length;A++){C.push("Element.hasClassName(element, "+B[A].inspect()+")")}}if(B=D.attributes){B.each(function(F){var G="element.getAttribute("+F.name.inspect()+")";var E=function(H){return G+" && "+G+".split("+H.inspect()+")"};switch(F.operator){case"=":C.push(G+" == "+F.value.inspect());break;case"~=":C.push(E(" ")+".include("+F.value.inspect()+")");break;case"|=":C.push(E("-")+".first().toUpperCase() == "+F.value.toUpperCase().inspect());break;case"!=":C.push(G+" != "+F.value.inspect());break;case"":case undefined:C.push(G+" != null");break;default:throw"Unknown operator "+F.operator+" in selector"}})}return C.join(" && ")},compileMatcher:function(){this.match=new Function("element","if (!element.tagName) return false;       return "+this.buildMatchExpression())},findElements:function(D){var C;if(C=$(this.params.id)){if(this.match(C)){if(!D||Element.childOf(C,D)){return[C]}}}D=(D||document).getElementsByTagName(this.params.tagName||"*");var B=[];for(var A=0,E=D.length;A<E;A++){if(this.match(C=D[A])){B.push(Element.extend(C))}}return B},toString:function(){return this.expression}};Object.extend(Selector,{matchElements:function(B,C){var A=new Selector(C);return B.select(A.match.bind(A)).collect(Element.extend)},findElement:function(B,C,A){if(typeof C=="number"){A=C,C=false}return Selector.matchElements(B,C||"*")[A||0]},findChildElements:function(A,B){return B.map(function(C){return C.strip().split(/\s+/).inject([null],function(E,F){var D=new Selector(F);return E.inject([],function(H,G){return H.concat(D.findElements(G||A))})})}).flatten()}});function $$(){return Selector.findChildElements(document,$A(arguments))}var Form={reset:function(A){$(A).reset();return A},serializeElements:function(A){return A.inject([],function(D,C){var B=Form.Element.serialize(C);if(B){D.push(B)}return D}).join("&")}};Form.Methods={serialize:function(A){return Form.serializeElements($(A).getElements())},getElements:function(A){return $A($(A).getElementsByTagName("*")).inject([],function(B,C){if(Form.Element.Serializers[C.tagName.toLowerCase()]){B.push(Element.extend(C))}return B})},getInputs:function(G,C,D){G=$(G);var A=G.getElementsByTagName("input");if(!C&&!D){return A}var H=new Array();for(var E=0,F=A.length;E<F;E++){var B=A[E];if((C&&B.type!=C)||(D&&B.name!=D)){continue}H.push(Element.extend(B))}return H},disable:function(A){A=$(A);A.getElements().each(function(B){B.blur();B.disabled="true"});return A},enable:function(A){A=$(A);A.getElements().each(function(B){B.disabled=""});return A},findFirstElement:function(A){return $(A).getElements().find(function(B){return B.type!="hidden"&&!B.disabled&&["input","select","textarea"].include(B.tagName.toLowerCase())})},focusFirstElement:function(A){A=$(A);A.findFirstElement().activate();return A}};Object.extend(Form,Form.Methods);Form.Element={focus:function(A){$(A).focus();return A},select:function(A){$(A).select();return A}};Form.Element.Methods={serialize:function(B){B=$(B);if(B.disabled){return""}var D=B.tagName.toLowerCase();var C=Form.Element.Serializers[D](B);if(C){var A=encodeURIComponent(C[0]);if(A.length==0){return }if(C[1].constructor!=Array){C[1]=[C[1]]}return C[1].map(function(E){return A+"="+encodeURIComponent(E)}).join("&")}},getValue:function(A){A=$(A);var C=A.tagName.toLowerCase();var B=Form.Element.Serializers[C](A);if(B){return B[1]}},clear:function(A){$(A).value="";return A},present:function(A){return $(A).value!=""},activate:function(A){A=$(A);A.focus();if(A.select){A.select()}return A},disable:function(A){A=$(A);A.disabled=true;return A},enable:function(A){A=$(A);A.blur();A.disabled=false;return A}};Object.extend(Form.Element,Form.Element.Methods);var Field=Form.Element;Form.Element.Serializers={input:function(A){switch(A.type.toLowerCase()){case"checkbox":case"radio":return Form.Element.Serializers.inputSelector(A);default:return Form.Element.Serializers.textarea(A)}return false},inputSelector:function(A){if(A.checked){return[A.name,A.value]}},textarea:function(A){return[A.name,A.value]},select:function(A){return Form.Element.Serializers[A.type=="select-one"?"selectOne":"selectMany"](A)},selectOne:function(C){var D="",B,A=C.selectedIndex;if(A>=0){B=Element.extend(C.options[A]);D=B.hasAttribute("value")?B.value:B.text}return[C.name,D]},selectMany:function(C){var D=[];for(var B=0;B<C.length;B++){var A=Element.extend(C.options[B]);if(A.selected){D.push(A.hasAttribute("value")?A.value:A.text)}}return[C.name,D]}};var $F=Form.Element.getValue;Abstract.TimedObserver=function(){};Abstract.TimedObserver.prototype={initialize:function(A,B,C){this.frequency=B;this.element=$(A);this.callback=C;this.lastValue=this.getValue();this.registerCallback()},registerCallback:function(){setInterval(this.onTimerEvent.bind(this),this.frequency*1000)},onTimerEvent:function(){var A=this.getValue();if(this.lastValue!=A){this.callback(this.element,A);this.lastValue=A}}};Form.Element.Observer=Class.create();Form.Element.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Form.Element.getValue(this.element)}});Form.Observer=Class.create();Form.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Form.serialize(this.element)}});Abstract.EventObserver=function(){};Abstract.EventObserver.prototype={initialize:function(A,B){this.element=$(A);this.callback=B;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase()=="form"){this.registerFormCallbacks()}else{this.registerCallback(this.element)}},onElementEvent:function(){var A=this.getValue();if(this.lastValue!=A){this.callback(this.element,A);this.lastValue=A}},registerFormCallbacks:function(){Form.getElements(this.element).each(this.registerCallback.bind(this))},registerCallback:function(A){if(A.type){switch(A.type.toLowerCase()){case"checkbox":case"radio":Event.observe(A,"click",this.onElementEvent.bind(this));break;default:Event.observe(A,"change",this.onElementEvent.bind(this));break}}}};Form.Element.EventObserver=Class.create();Form.Element.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){return Form.Element.getValue(this.element)}});Form.EventObserver=Class.create();Form.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){return Form.serialize(this.element)}});if(!window.Event){var Event=new Object()}Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_HOME:36,KEY_END:35,KEY_PAGEUP:33,KEY_PAGEDOWN:34,element:function(A){return A.target||A.srcElement},isLeftClick:function(A){return(((A.which)&&(A.which==1))||((A.button)&&(A.button==1)))},pointerX:function(A){return A.pageX||(A.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft))},pointerY:function(A){return A.pageY||(A.clientY+(document.documentElement.scrollTop||document.body.scrollTop))},stop:function(A){if(A.preventDefault){A.preventDefault();A.stopPropagation()}else{A.returnValue=false;A.cancelBubble=true}},findElement:function(C,B){var A=Event.element(C);while(A.parentNode&&(!A.tagName||(A.tagName.toUpperCase()!=B.toUpperCase()))){A=A.parentNode}return A},observers:false,_observeAndCache:function(D,C,B,A){if(!this.observers){this.observers=[]}if(D.addEventListener){this.observers.push([D,C,B,A]);D.addEventListener(C,B,A)}else{if(D.attachEvent){this.observers.push([D,C,B,A]);D.attachEvent("on"+C,B)}}},unloadCache:function(){if(!Event.observers){return }for(var A=0,B=Event.observers.length;A<B;A++){Event.stopObserving.apply(this,Event.observers[A]);Event.observers[A][0]=null}Event.observers=false},observe:function(D,C,B,A){D=$(D);A=A||false;if(C=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||D.attachEvent)){C="keydown"}Event._observeAndCache(D,C,B,A)},stopObserving:function(D,C,B,A){D=$(D);A=A||false;if(C=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||D.detachEvent)){C="keydown"}if(D.removeEventListener){D.removeEventListener(C,B,A)}else{if(D.detachEvent){try{D.detachEvent("on"+C,B)}catch(E){}}}}});if(navigator.appVersion.match(/\bMSIE\b/)){Event.observe(window,"unload",Event.unloadCache,false)}var Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},realOffset:function(B){var A=0,C=0;do{A+=B.scrollTop||0;C+=B.scrollLeft||0;B=B.parentNode}while(B);return[C,A]},cumulativeOffset:function(B){var A=0,C=0;do{A+=B.offsetTop||0;C+=B.offsetLeft||0;B=B.offsetParent}while(B);return[C,A]},positionedOffset:function(B){var A=0,D=0;do{A+=B.offsetTop||0;D+=B.offsetLeft||0;B=B.offsetParent;if(B){if(B.tagName=="BODY"){break}var C=Element.getStyle(B,"position");if(C=="relative"||C=="absolute"){break}}}while(B);return[D,A]},offsetParent:function(A){if(A.offsetParent){return A.offsetParent}if(A==document.body){return A}while((A=A.parentNode)&&A!=document.body){if(Element.getStyle(A,"position")!="static"){return A}}return document.body},within:function(B,A,C){if(this.includeScrollOffsets){return this.withinIncludingScrolloffsets(B,A,C)}this.xcomp=A;this.ycomp=C;this.offset=this.cumulativeOffset(B);return(C>=this.offset[1]&&C<this.offset[1]+B.offsetHeight&&A>=this.offset[0]&&A<this.offset[0]+B.offsetWidth)},withinIncludingScrolloffsets:function(B,A,D){var C=this.realOffset(B);this.xcomp=A+C[0]-this.deltaX;this.ycomp=D+C[1]-this.deltaY;this.offset=this.cumulativeOffset(B);return(this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+B.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+B.offsetWidth)},overlap:function(B,A){if(!B){return 0}if(B=="vertical"){return((this.offset[1]+A.offsetHeight)-this.ycomp)/A.offsetHeight}if(B=="horizontal"){return((this.offset[0]+A.offsetWidth)-this.xcomp)/A.offsetWidth}},page:function(D){var A=0,C=0;var B=D;do{A+=B.offsetTop||0;C+=B.offsetLeft||0;if(B.offsetParent==document.body){if(Element.getStyle(B,"position")=="absolute"){break}}}while(B=B.offsetParent);B=D;do{if(!window.opera||B.tagName=="BODY"){A-=B.scrollTop||0;C-=B.scrollLeft||0}}while(B=B.parentNode);return[C,A]},clone:function(C,E){var A=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});C=$(C);var D=Position.page(C);E=$(E);var F=[0,0];var B=null;if(Element.getStyle(E,"position")=="absolute"){B=Position.offsetParent(E);F=Position.page(B)}if(B==document.body){F[0]-=document.body.offsetLeft;F[1]-=document.body.offsetTop}if(A.setLeft){E.style.left=(D[0]-F[0]+A.offsetLeft)+"px"}if(A.setTop){E.style.top=(D[1]-F[1]+A.offsetTop)+"px"}if(A.setWidth){E.style.width=C.offsetWidth+"px"}if(A.setHeight){E.style.height=C.offsetHeight+"px"}},absolutize:function(B){B=$(B);if(B.style.position=="absolute"){return }Position.prepare();var D=Position.positionedOffset(B);var F=D[1];var E=D[0];var C=B.clientWidth;var A=B.clientHeight;B._originalLeft=E-parseFloat(B.style.left||0);B._originalTop=F-parseFloat(B.style.top||0);B._originalWidth=B.style.width;B._originalHeight=B.style.height;B.style.position="absolute";B.style.top=F+"px";B.style.left=E+"px";B.style.width=C+"px";B.style.height=A+"px"},relativize:function(A){A=$(A);if(A.style.position=="relative"){return }Position.prepare();A.style.position="relative";var C=parseFloat(A.style.top||0)-(A._originalTop||0);var B=parseFloat(A.style.left||0)-(A._originalLeft||0);A.style.top=C+"px";A.style.left=B+"px";A.style.height=A._originalHeight;A.style.width=A._originalWidth}};if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){Position.cumulativeOffset=function(B){var A=0,C=0;do{A+=B.offsetTop||0;C+=B.offsetLeft||0;if(B.offsetParent==document.body){if(Element.getStyle(B,"position")=="absolute"){break}}B=B.offsetParent}while(B);return[C,A]}}Element.addMethods();var Scriptaculous={Version:"1.6.5",require:function(A){document.write('<script type="text/javascript" src="'+A+'"><\/script>')},load:function(){if((typeof Prototype=="undefined")||(typeof Element=="undefined")||(typeof Element.Methods=="undefined")||parseFloat(Prototype.Version.split(".")[0]+"."+Prototype.Version.split(".")[1])<1.5){throw ("script.aculo.us requires the Prototype JavaScript framework >= 1.5.0")}$A(document.getElementsByTagName("script")).findAll(function(A){return(A.src&&A.src.match(/scriptaculous\.js(\?.*)?$/))}).each(function(B){var C=B.src.replace(/scriptaculous\.js(\?.*)?$/,"");var A=B.src.match(/\?.*load=([a-z,]*)/);(A?A[1]:"builder,effects,dragdrop,controls,slider").split(",").each(function(D){Scriptaculous.require(C+D+".js")})})}};Scriptaculous.load();if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(L,B,M,D,H,J,F,E,C,K,I){if(!document.getElementById){return }this.DETECT_KEY=I?I:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(L){this.setAttribute("swf",L)}if(B){this.setAttribute("id",B)}if(M){this.setAttribute("width",M)}if(D){this.setAttribute("height",D)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(J){this.addParam("bgcolor",J)}var A=E?E:"high";this.addParam("quality",A);this.setAttribute("useExpressInstall",F);this.setAttribute("doExpressInstall",false);var G=(C)?C:window.location;this.setAttribute("xiRedirectUrl",G);this.setAttribute("redirectUrl","");if(K){this.setAttribute("redirectUrl",K)}};deconcept.SWFObject.prototype={setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(B,A){this.params[B]=A},getParams:function(){return this.params},addVariable:function(B,A){this.variables[B]=A},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var C=new Array();var B;var A=this.getVariables();for(B in A){C.push(B+"="+A[B])}return C},getSWFHTML:function(){var B="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn")}B='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"';B+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var F=this.getParams();for(var E in F){B+=[E]+'="'+F[E]+'" '}var D=this.getVariablePairs().join("&");if(D.length>0){B+='flashvars="'+D+'"'}B+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX")}B='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';B+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();for(var E in C){B+='<param name="'+E+'" value="'+C[E]+'" />'}var A=this.getVariablePairs().join("&");if(A.length>0){B+='<param name="flashvars" value="'+A+'" />'}B+="</object>"}return B},write:function(B){if(this.getAttribute("useExpressInstall")){var A=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(A)&&!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 C=(typeof B=="string")?document.getElementById(B):B;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var D=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){D=new deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(C){try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");D=new deconcept.PlayerVersion([6,0,21]);B.AllowScriptAccess="always"}catch(C){if(D.major==6){return D}}try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(C){}}if(B!=null){D=new deconcept.PlayerVersion(B.GetVariable("$version").split(" ")[1].split(","))}}return D};deconcept.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(A){var D=document.location.search||document.location.hash;if(D){var C=D.substring(1).split("&");for(var B=0;B<C.length;B++){if(C[B].substring(0,C[B].indexOf("="))==A){return C[B].substring((C[B].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return }var C=document.getElementsByTagName("OBJECT");for(var B=0;B<C.length;B++){C[B].style.display="none";for(var A in C[B]){if(typeof C[B][A]=="function"){C[B][A]=function(){}}}}};deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};if(typeof window.onunload=="function"){var A=window.onunload;window.onunload=function(){deconcept.SWFObjectUtil.cleanupSWFs();A()}}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs}};if(typeof window.onbeforeunload=="function"){var oldBeforeUnload=window.onbeforeunload;window.onbeforeunload=function(){deconcept.SWFObjectUtil.prepUnload();oldBeforeUnload()}}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload}if(Array.prototype.push==null){Array.prototype.push=function(A){this[this.length]=A;return this.length}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;function StringTokenizer(A,B){this.material=A;this.separator=B;this.getTokens=getTokens;this.nextToken=nextToken;this.countTokens=countTokens;this.hasMoreTokens=hasMoreTokens;this.tokensReturned=tokensReturned;this.tokens=this.getTokens();this.tokensReturned=0}function getTokens(){var D=new Array();var B;if(this.material.indexOf(this.separator)<0){D[0]=this.material;return D}start=0;end=this.material.indexOf(this.separator,start);var A=0;var C;while(this.material.length-start>=1){B=this.material.substring(start,end);start=end+1;if(this.material.indexOf(this.separator,start+1)<0){end=this.material.length}else{end=this.material.indexOf(this.separator,start+1)}C=trim(B);while(C.substring(0,this.separator.length)==this.separator){C=C.substring(this.separator.length)}C=trim(C);if(C==""){continue}D[A]=C;A++}return D}function countTokens(){return this.tokens.length}function nextToken(){if(this.tokensReturned>=this.tokens.length){return null}else{var A=this.tokens[this.tokensReturned];this.tokensReturned++;return A}}function hasMoreTokens(){if(this.tokensReturned<this.tokens.length){return true}else{return false}}function tokensReturned(){return this.tokensReturned}function trim(A){return(A.replace(/^\s+|\s+$/g,""))}function URLEncode(E){var G="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.!~*'()";var B="0123456789ABCDEF";var F="";for(var C=0;C<E.length;C++){var D=E.charAt(C);if(D==" "){F+="+"}else{if(G.indexOf(D)!=-1){F+=D}else{var A=D.charCodeAt(0);if(A>255){alert("Unicode Character '"+D+"' cannot be encoded using standard URL encoding.\n(URL encoding only supports 8-bit characters.)\nA space (+) will be substituted.");F+="+"}else{F+="%";F+=B.charAt((A>>4)&15);F+=B.charAt(A&15)}}}}return F}function URLDecode(E){var A="0123456789ABCDEFabcdef";var D="";var B=0;while(B<E.length){var C=E.charAt(B);if(C=="+"){D+=" ";B++}else{if(C=="%"){if(B<(E.length-2)&&A.indexOf(E.charAt(B+1))!=-1&&A.indexOf(E.charAt(B+2))!=-1){D+=unescape(E.substr(B,3));B+=3}else{alert("Bad escape combination near ..."+E.substr(B));D+="%[ERROR]";B++}}else{D+=C;B++}}}return D}MetaWrap.Platform.MediaManager.SpecCheck={};MetaWrap.Platform.MediaManager.SpecCheck.g_mm_sniffer=false;MetaWrap.Platform.MediaManager.SpecCheck.g_wmp_version="N/A";MetaWrap.Platform.MediaManager.SpecCheck.g_os_version="Unknown OS";MetaWrap.Platform.MediaManager.SpecCheck.g_browser_version="Unknown Browser";MetaWrap.Platform.MediaManager.SpecCheck.g_dotnet_version="N/A";MetaWrap.Platform.MediaManager.SpecCheck.g_wmc_version="N/A";MetaWrap.Platform.MediaManager.SpecCheck.g_flash_version="";MetaWrap.Platform.MediaManager.SpecCheck.g_individualised=false;MetaWrap.Platform.MediaManager.SpecCheck.g_individualisation_version="";MetaWrap.Platform.MediaManager.SpecCheck.g_media_manager_version="";MetaWrap.Platform.MediaManager.SpecCheck.g_media_manager_version_required="3.0.0.494";var requiredMajorVersion=8;var requiredMinorVersion=0;var requiredRevision=0;var jsVersion=1.1;var versionMajor=0;var versionMinor=0;var g_flash_url="http://www.adobe.com/go/getflashplayer";var g_flash_message="The required version of the Flash browser plugin could not be detected. Please choose 'OK' to exit BigPond Movie Downloads ViiV, and install the Flash browser plugin from the Macromedia website at '"+g_flash_url+"' to install the Flash browser. \nChoose 'CANCEL' to exit..";var g_flash_message_remote="The required version of the Flash browser plugin could not be detected. Please load this application on your ViiV PC to install the required software.";var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;MetaWrap.Platform.MediaManager.SpecCheck.checkFlash=function(){var E=requiredMajorVersion;var B=requiredMinorVersion;var A=requiredRevision;function D(G){if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var H=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var F=navigator.plugins["Shockwave Flash"+H].description;descArray=F.split(" ");tempArrayMajor=descArray[2].split(".");versionMajor=tempArrayMajor[0];versionMinor=tempArrayMajor[1];if(descArray[3]!=""){tempArrayMinor=descArray[3].split("r")}else{tempArrayMinor=descArray[4].split("r")}versionRevision=tempArrayMinor[1]>0?tempArrayMinor[1]:0;flashVer=versionMajor+"."+versionMinor+"."+versionRevision}else{flashVer=-1}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){flashVer=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){flashVer=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){flashVer=2}else{flashVer=-1}}}}return flashVer}try{reqVer=parseFloat(E+"."+A);for(i=25;i>0;i--){if(isIE&&isWin&&!isOpera){versionStr=VBGetSwfVer(i)}else{versionStr=D(i)}if(versionStr==-1){return false}else{if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}versionMajor=versionArray[0];versionMinor=versionArray[1];versionRevision=versionArray[2];versionString=versionMajor+"."+versionRevision;versionNum=parseFloat(versionString);MetaWrap.Platform.MediaManager.SpecCheck.g_flash_version=versionString;if((versionMajor>E)&&(versionNum>=reqVer)){return true}else{return(((versionNum>=reqVer)&&(versionMinor>=B))?true:false)}}}}}catch(C){return false}};MetaWrap.Platform.MediaManager.SpecCheck.checkWMP=function(){function R(c,W){var b=c.split(".");var V=W.split(".");var a=b.length;var Z=V.length;var Y=a;if(Z<a){Y=Z}for(var X=0;X<Y;X++){if(parseInt(b[X],10)>parseInt(V[X],10)){actionWMP=actionWMP2;return(false)}}return(true)}function Q(){var Z,c,Y,a;var W;var d="2200",V=0;W=new String("0.0");if(document.netobj!=null){c=document.netobj.GetSystemInfo();Z='<?xml version="1.0"?><MEDIATEST><WMP>7</WMP>'+netobj.GetSystemInfo()+"</MEDIATEST>";try{Y=new ActiveXObject("Msxml2.DOMDocument")}catch(X){Y=new ActiveXObject("Msxml.DOMDocument")}Y.loadXML(Z);a=Y.selectSingleNode("MEDIATEST/CLIENTINFO/SECURITYVERSION");if(a){var b;b=/\./g;W=String(a.text);W=W.replace(b,"")}MetaWrap.Platform.MediaManager.SpecCheck.g_individualisation_version=W;if(Number(W)<d){return false}else{return true}}return false}var B=false;var C=false;var J=navigator.userAgent.toLowerCase();var G=navigator.appVersion.toLowerCase();var H=(J.indexOf("win")!=-1);var D=(G.indexOf("msie")!=-1);var N=false;var I=false;var O=false;var K;var P="10.00.00.3802";if(H&&D){var E;try{E=new ActiveXObject("MediaPlayer.MediaPlayer.1");N=true;I=true}catch(A){N=false;I=false}if(N){try{E=new ActiveXObject("WMPlayer.OCX");O=true}catch(A){O=false}}if(O){K=E.versionInfo;E=null}else{K="6.4"}var T=parseFloat(K);var L=parseInt(T);B=(D)?(T>=10):N;C=(D)?(T==9):false;MetaWrap.Platform.MediaManager.SpecCheck.g_wmp_version=K;if(B){return true;document.write('<div id="killme"><object id="netobj"  classid=clsid:A9FC132B-096D-460B-B7D5-1DB0FAE0C062 width=0 height=0></object></div>');try{MetaWrap.Platform.MediaManager.SpecCheck.g_individualised=Q();var U=netobj.GetDRMVersion();if(R(P,U)){return true}}catch(S){if(!MetaWrap.Platform.MediaManager.SpecCheck.g_individualised){var M=null;try{try{M=new ActiveXObject("thePlatform.MediaManager.ActiveX.Wrapper")}catch(S){}if(M==null){var F=new ActiveXObject("thePlatform.MediaManager.ActiveX.AxMediaManagerFactory");M=F.GetRemoteMediaManager()}MetaWrap.Platform.MediaManager.SpecCheck.g_individualised=M.IsIndividualized}catch(S){}}return MetaWrap.Platform.MediaManager.SpecCheck.g_individualised}}else{if(C){return true}}}else{N=(typeof navigator.mimeTypes["application/x-mplayer2"]=="object")}return false};MetaWrap.Platform.MediaManager.SpecCheck.checkOS=function(){if(navigator.appVersion.toLowerCase().indexOf("win")!=-1){MetaWrap.Platform.MediaManager.SpecCheck.g_os_version="Windows"}if(navigator.appVersion.toLowerCase().indexOf("mac")!=-1){MetaWrap.Platform.MediaManager.SpecCheck.g_os_version="MacOS"}if(navigator.appVersion.toLowerCase().indexOf("x11")!=-1){MetaWrap.Platform.MediaManager.SpecCheck.g_os_version="UNIX"}if(navigator.appVersion.toLowerCase().indexOf("linux")!=-1){MetaWrap.Platform.MediaManager.SpecCheck.g_os_version="Linux"}if(MetaWrap.Platform.MediaManager.SpecCheck.g_os_version=="Windows"){if(navigator.userAgent.toLowerCase().indexOf("windows 95")!=-1){MetaWrap.Platform.MediaManager.SpecCheck.g_os_version="Windows 95"}else{if(navigator.userAgent.toLowerCase().indexOf("win95")!=-1){MetaWrap.Platform.MediaManager.SpecCheck.g_os_version="Windows 95"}}if(navigator.userAgent.toLowerCase().indexOf("windows 98")!=-1){MetaWrap.Platform.MediaManager.SpecCheck.g_os_version="Windows 98"}else{if(navigator.userAgent.toLowerCase().indexOf("win98")!=-1){MetaWrap.Platform.MediaManager.SpecCheck.g_os_version="Windows 98"}else{if(navigator.userAgent.toLowerCase().indexOf("windows nt 4.0")!=-1){MetaWrap.Platform.MediaManager.SpecCheck.g_os_version="Windows NT"}else{if(navigator.userAgent.toLowerCase().indexOf("windows nt 5.0")!=-1){MetaWrap.Platform.MediaManager.SpecCheck.g_os_version="Windows 2000"}else{if(navigator.userAgent.toLowerCase().indexOf("windows nt 5.1")!=-1){MetaWrap.Platform.MediaManager.SpecCheck.g_os_version="Windows XP";return true}else{if(navigator.userAgent.toLowerCase().indexOf("windows 2000")!=-1){MetaWrap.Platform.MediaManager.SpecCheck.g_os_version="Windows 2000"}else{if(navigator.userAgent.toLowerCase().indexOf("windows nt 6.")!=-1){MetaWrap.Platform.MediaManager.SpecCheck.g_os_version="Windows Vista";return true}else{if(navigator.userAgent.toLowerCase().indexOf("windows nt")!=-1){MetaWrap.Platform.MediaManager.SpecCheck.g_os_version="Windows (Post 2007)";return true}else{MetaWrap.Platform.MediaManager.SpecCheck.g_os_version="Windows (unknown version) "+navigator.userAgent}}}}}}}}}return false};MetaWrap.Platform.MediaManager.SpecCheck.checkBrowser=function(){var E=" ";var D=new StringTokenizer(navigator.userAgent,E);var B=false;while(D.hasMoreTokens()&&!B){var C=D.nextToken();if(C.toLowerCase().indexOf("msie")!=-1){MetaWrap.Platform.MediaManager.SpecCheck.g_browser_version="I.E";B=true;if(D.hasMoreTokens()){var A=D.nextToken();A=A.replace(";","");MetaWrap.Platform.MediaManager.SpecCheck.g_browser_version=MetaWrap.Platform.MediaManager.SpecCheck.g_browser_version+" v"+A;try{if(A>=6){return true}}catch(F){}}}else{if(C.toLowerCase().indexOf("firefox")!=-1){MetaWrap.Platform.MediaManager.SpecCheck.g_browser_version=C}}}return false};MetaWrap.Platform.MediaManager.SpecCheck.checkDotNetFramework=function(){if(navigator.appVersion.toLowerCase().indexOf(".net clr")!=-1){var F="; ";var I=new StringTokenizer(navigator.appVersion.toLowerCase(),F);var G=false;while(I.hasMoreTokens()){var E=I.nextToken();if(E.indexOf(".net clr")!=-1){G=true;var A=" ";var C=new StringTokenizer(E,A);var D=false;while(C.hasMoreTokens()&&!D){var B=C.nextToken();if(B.indexOf(".net")==-1&&B.indexOf("clr")==-1){D=true;if(B.indexOf("(")!=-1){B=B.substring(B.indexOf("("),B.length)}if(B.indexOf(")")!=-1){B=B.substring(0,B.indexOf(")"))}MetaWrap.Platform.MediaManager.SpecCheck.g_dotnet_version=B;var H=MetaWrap.Platform.MediaManager.SpecCheck.g_dotnet_version.split(".");if(((H[0]==1)&&(H[1]>=1))||((H[0]==3)&&(H[1]>=0))){return true}}}}}}return false};MetaWrap.Platform.MediaManager.SpecCheck.checkViiVMM=function(){try{var B=null;try{B=new ActiveXObject("thePlatform.MediaManager.ActiveX.Wrapper");if(B!=null){return true}}catch(D){B=null}if(B==null){var A=new ActiveXObject("thePlatform.MediaManager.ActiveX.AxMediaManagerFactory");B=A.GetRemoteMediaManager()}try{var E=MetaWrap.Platform.MediaManager.SpecCheck;E.g_media_manager_version=""+B.Version;if(E.g_media_manager_version_required>E.g_media_manager_version){return false}}catch(C){}return(B!=null)}catch(D){return false}};MetaWrap.Platform.MediaManager.SpecCheck.checkViiVRemoted=function(){try{var A=new ActiveXObject("IntelDH.Platform");if(A.GetFeature("/IntelDH/ApplicationServer")){var B=new ActiveXObject("IntelDH.ApplicationServer");var D=B.GetSession("");if(D){return true}else{return false}}}catch(C){return false}return false};MetaWrap.Platform.MediaManager.SpecCheck.checkMCE=function(){try{if(window.external.MediaCenter!=null){try{var A=window.external.MediaCenter.MajorVersion}catch(B){MetaWrap.Platform.MediaManager.SpecCheck.g_wmc_version=""}if(A<7){MetaWrap.Platform.MediaManager.SpecCheck.g_wmc_version="2004"}else{if(nmajVer=7){MetaWrap.Platform.MediaManager.SpecCheck.g_wmc_version="2005"}else{MetaWrap.Platform.MediaManager.SpecCheck.g_wmc_version="2005+"}}return true}else{return false}}catch(B){return false}};MetaWrap.Platform.MediaManager.SpecCheck.checkMCERemoted=function(){try{if(window.external.MediaCenter.Capabilities.IsConsole==false){if(window.external.MediaCenter.Capabilities.IsVideoAllowed==true){return true}else{return false}}else{return false}}catch(A){return false}};MetaWrap.Platform.MediaManager.SpecCheck.checkViiV=function(){try{var A=new ActiveXObject("IntelDH.Platform");if(!A.GetFeature("/IntelDH")){return false}}catch(B){return false}return true};MetaWrap.Platform.MediaManager.SpecCheck.run=function(){var A={};A.m_media_manager=MetaWrap.Platform.MediaManager.SpecCheck.checkViiVMM();A.m_wmc=MetaWrap.Platform.MediaManager.SpecCheck.checkMCE();A.m_wmc_remoting=MetaWrap.Platform.MediaManager.SpecCheck.checkMCERemoted();A.m_viiv=MetaWrap.Platform.MediaManager.SpecCheck.checkViiV();A.m_viiv_remoting=MetaWrap.Platform.MediaManager.SpecCheck.checkViiVRemoted();A.m_dot_net=MetaWrap.Platform.MediaManager.SpecCheck.checkDotNetFramework();A.m_browser=MetaWrap.Platform.MediaManager.SpecCheck.checkBrowser();A.m_os=MetaWrap.Platform.MediaManager.SpecCheck.checkOS();A.m_wmp=MetaWrap.Platform.MediaManager.SpecCheck.checkWMP();A.m_indiv=MetaWrap.Platform.MediaManager.SpecCheck.g_individualised;A.m_flash=MetaWrap.Platform.MediaManager.SpecCheck.checkFlash();A.m_media_manager_version=MetaWrap.Platform.MediaManager.SpecCheck.g_media_manager_version;A.m_os_version=MetaWrap.Platform.MediaManager.SpecCheck.g_os_version;A.m_wmp_version=MetaWrap.Platform.MediaManager.SpecCheck.g_wmp_version;A.m_indiv_version=MetaWrap.Platform.MediaManager.SpecCheck.g_individualisation_version;A.m_wmc_version=MetaWrap.Platform.MediaManager.SpecCheck.g_wmc_version;A.m_flash_version=MetaWrap.Platform.MediaManager.SpecCheck.g_flash_version;A.m_dotnet_version=MetaWrap.Platform.MediaManager.SpecCheck.g_dotnet_version;return A};MetaWrap.Platform.MediaManager.SpecCheck.m_result=MetaWrap.Platform.MediaManager.SpecCheck.run();MwUse("MetaWrap","mw_lib.js");MetaWrap.Bigpond={};MwUse("MetaWrap","mw_lib.js");MwUse("MetaWrap.Bigpond","mw_lib_bigpond.js");MetaWrap.Bigpond.Movies={};MwUse("MetaWrap","mw_lib.js");MwUse("MetaWrap.Bigpond","mw_lib_bigpond.js");MwUse("MetaWrap.Bigpond.Movies","mw_lib_bigpond_movies.js");MetaWrap.Bigpond.Movies.Entertainmentportal={};MwUse("MetaWrap","mw_lib.js");MwUse("MetaWrap.Bigpond","mw_lib_bigpond.js");MwUse("MetaWrap.Bigpond.Movies","mw_lib_bigpond_movies.js");MwUse("MetaWrap.Bigpond.Movies.Entertainmentportal","mw_lib_bigpond_movies_entertainmentportal.js");MetaWrap.Bigpond.Movies.Entertainmentportal.Video={};function getFlashObject(C){var B=navigator.appName.indexOf("Microsoft")!=-1;var A=(B)?window[C]:document[C];if(A==null){error("getFlashObject: Unable to find flash object "+C)}return A}function JSInit(A){try{g_video_player.launchVideo(A)}catch(B){debug(MetaWrap.exceptionMessage(B))}return true}function JSBigpondTV(A){alert("JSBigpondTV('"+A+"')");return true}function JSPlay(){try{g_video_player.playVideo()}catch(A){debug(MetaWrap.exceptionMessage(A))}return true}function JSPause(){try{g_video_player.pauseVideo()}catch(A){debug(MetaWrap.exceptionMessage(A))}return true}function JSRestart(){try{g_video_player.restartVideo()}catch(A){debug(MetaWrap.exceptionMessage(A))}return true}function JSMute(B){try{g_video_player.muteVideoVolume(B)}catch(A){debug(MetaWrap.exceptionMessage(A))}return true}function JSFullScreen(){try{g_video_player.fullscreenVideo(true)}catch(A){debug(MetaWrap.exceptionMessage(A))}return true}function JSHide(){try{g_video_player.closeVideo()}catch(A){debug(MetaWrap.exceptionMessage(A))}return true}var g_platform=null;MetaWrap.Bigpond.Movies.Entertainmentportal.Video.Player=MetaWrap.Class.extend({m_flash_x:0,m_flash_y:0,m_flash_w:0,m_flash_h:0,m_video_x:4,m_video_y:4,m_video_w:429,m_video_h:252,m_include_path:"./",m_flash_div:"flashcontent",m_flash_id:"video_player",m_position_timer:null,m_buffering_timer:null,m_url:"",m_playing:false,constructor:function(){debug("base:constructor")},include:function(){debug("base:include")},embed:function(){},start:function(){this.getFlashLocation()},stop:function(){debug("base:stop")},type:function(){return"base"},launchVideo:function(A){debug("base:launchVideo "+A)},removeVideo:function(){debug("base:removeVideo")},playVideo:function(){if(!this.m_playing){this.m_playing=true;this.launchVideo(this.m_url)}debug("base:playVideo")},setVideo:function(A){this.m_url=A},pauseVideo:function(){debug("base:pauseVideo");this.m_paused=true},restartVideo:function(){debug("base:restartVideo")},closeVideo:function(){clearTimeout(this.m_position_timer);this.m_position_timer=null},muteVideoVolume:function(A){debug("base:muteVideoVolume "+A)},fullscreenVideo:function(A){debug("base:fullscreenVideo "+A)},getDuration:function(){return -1},getPosition:function(){return -1},getFlashLocation:function(){var A=getFlashObject(this.m_flash_id);var F=MetaWrap.$(this.m_flash_div);var E=0;var D=0;var B=F.offsetWidth;var C=F.offsetHeight;if(F.offsetParent){E=F.offsetLeft;D=F.offsetTop;while(F=F.offsetParent){E+=F.offsetLeft;D+=F.offsetTop}}this.m_flash_x=E;this.m_flash_y=D;this.m_flash_w=B;this.m_flash_h=C},setBuffering:function(A){getFlashObject(this.m_flash_id).FLBufferUpdate(A)},videoBuffering:function(A){debug("videoBuffering "+A)},videoMessage:function(B,A){},videoMediaError:function(A){debug("videoMediaError")},videoError:function(){debug("videoError")},startBufferingTimer:function(){debug("startBufferingTimer");this.m_buffering_timer=setTimeout("g_video_player.timerBuffering()",100)},isBuffering:function(){return false},getBufferingPercentage:function(){return 0},timerBuffering:function(){this.stopBufferingTimer();debug("timerBuffering");if(this.getBufferingPercentage()!=100){this.videoBuffering(false);this.startBufferingTimer()}else{}},stopBufferingTimer:function(){debug("endBufferingTimer");if(this.m_buffering_timer!=null){clearTimeout(this.m_buffering_timer);this.m_buffering_timer=null}},videoState:function(A){debug(this.type()+" videoState "+A);if((A=="playing")&&(this.m_position_timer==null)){this.videoReady()}else{if(A=="completed"){getFlashObject(this.m_flash_id).FLFinished()}else{if(A=="buffering"){this.startBufferingTimer()}}}},videoReady:function(){this.m_position_timer=setTimeout("g_video_player.positionTimer()",1000);getFlashObject(this.m_flash_id).FLReady(this.getDuration())},positionTimer:function(){clearTimeout(this.m_position_timer);this.m_position_timer=null;if(!this.isBuffering()){var A=this.getPosition();getFlashObject(this.m_flash_id).FLPositionUpdate(A)}this.m_position_timer=setTimeout("g_video_player.positionTimer()",1000)}},{sniff:function(){debug("base:sniff");return false},choose:function(G,C,F){for(var B in MetaWrap.Bigpond.Movies.Entertainmentportal.Video.Player){var E=MetaWrap.Bigpond.Movies.Entertainmentportal.Video.Player[B];try{if(E.sniff()){debug("choose "+B);var A=new E();if(G!=null){A.m_include_path=G}if(C!=null){A.m_flash_div=C}if(F!=null){A.m_flash_id=F}A.include();return A}}catch(D){}}debug("choose: returning harmless stub");return new MetaWrap.Bigpond.Movies.Entertainmentportal.Video.Player()}});MetaWrap.Bigpond.Movies.Entertainmentportal.Video.Player.WMP=MetaWrap.Bigpond.Movies.Entertainmentportal.Video.Player.extend({m_not_ie:false,m_states:["undefined","stopped","paused","playing","forwarding","rewinding","buffering","waiting","completed","transitioning","ready","reconnecting"],constructor:function(){},embed:function(){document.write('<div id="divVideo" class="VideoWMP9" ><div id="divVideo_VideoOut"></div></div>')},include:function(){document.write('<style type="text/css">');document.write("    div.VideoWMP9 { position:absolute;  border:0px;  margin:0px; padding: "+this.m_video_x+"px; left:"+this.m_video_y+"px; top:8px;  width:"+this.m_video_w+"px; height:"+this.m_video_h+"px; font-size:13px; font-family:vardana; z-index:100; visibility:hidden; cursor:hand;}");document.write("</style>");document.write('<script for="wmpVideo_Player" event="buffering(Start)">');document.write("    g_video_player.videoBuffering(Start);");document.write("<\/script>");document.write('<script for="wmpVideo_Player" event="ScriptCommand(p_type,p_param)">');document.write("try");document.write("{");document.write("    g_video_player.videoMessage(p_type,p_param);");document.write("}");document.write("catch(e)");document.write("{");document.write("}");document.write("<\/script>");document.write('<script for="wmpVideo_Player" event="MediaError(pMediaObject)">');document.write("try");document.write("{");document.write("    g_video_player.videoMediaError(pMediaObject);");document.write("}");document.write("catch(l_e)");document.write("{");document.write("}");document.write("<\/script>");document.write('<script for="wmpVideo_Player" event="error()">');document.write("try");document.write("{");document.write("    g_video_player.videoError();");document.write("}");document.write("catch(l_e)");document.write("{");document.write("}");document.write("<\/script>");document.write('<script for="wmpVideo_Player" event="playStateChange(NewState)">');document.write("try");document.write("{");document.write("    g_video_player.videoState(g_video_player.m_states[NewState]);");document.write("}");document.write("catch(l_e)");document.write("{");document.write("}");document.write("<\/script>");l_script='<script src="/js/mw/mw_lib_bigpond_movies_entertainmentportal_video_player_wmp_implementation.js"><\/script>';document.write(l_script)},type:function(){return"WMP"},launchVideo:function(A){WMPlaunch(A)},closeVideo:function(){this.base();WMPclose()},playVideo:function(){this.base();WMPplay()},pauseVideo:function(){WMPpause()},restartVideo:function(){WMPrestart()},muteVideoVolume:function(A){WMPmute(A)},fullscreenVideo:function(A){WMPfullscreen(A)},isBuffering:function(){return WMPisBuffering()},getBufferingPercentage:function(){return WMPgetBufferingPercentage()},videoBuffering:function(A){if(A){return 0}this.setBuffering(this.getBufferingPercentage())},getDuration:function(){return Math.ceil(WMPgetDuration())},getPosition:function(){return Math.ceil(WMPgetPosition())}},{sniff:function(){debug("IE:sniff");if(MetaWrap.Platform.MediaManager.SpecCheck.checkBrowser()){debug("Got IE");if(MetaWrap.Platform.MediaManager.SpecCheck.checkWMP()){debug("Got WMP");return true}}else{if(MetaWrap.Platform.MediaManager.SpecCheck.checkOS()){return true}}debug("failed to detect anything");for(var A=0;A<navigator.plugins.length;A++){debug(navigator.plugins[A].name);if((navigator.plugins[A].name.indexOf("Flip4Mac Windows Media Plugin"))!=-1){return true}if((navigator.plugins[A].name.indexOf("Windows Media Player Firefox Plugin"))!=-1){return true}}return false}});var g_video_player=MetaWrap.Bigpond.Movies.Entertainmentportal.Video.Player.choose("","flashcontent","video_player");function JSGotoURL(A,B){if(B=="_parent"){parent.window.location=A}else{if(B=="_blank"){parent.openGallery(A,800,570)}}};