var ve_initialized;if(!ve_initialized){ve_initialized=true;(function(){if(window.VE_jQuery){var _VE_jQuery=window.VE_jQuery}var VE_jQuery=window.VE_jQuery=function(selector,context){return new VE_jQuery.prototype.init(selector,context)};if(window.VE_$){var _VE_$=window.VE_$}window.VE_$=VE_jQuery;var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;var isSimple=/^.[^:#\[\.]*$/;VE_jQuery.fn=VE_jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this}else{if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){selector=VE_jQuery.clean([match[1]],context)}else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3]){return VE_jQuery().find(selector)}else{this[0]=elem;this.length=1;return this}}else{selector=[]}}}else{return new VE_jQuery(context).find(selector)}}else{if(VE_jQuery.isFunction(selector)){return new VE_jQuery(document)[VE_jQuery.fn.ready?"ready":"load"](selector)}}}return this.setArray(selector.constructor==Array&&selector||(selector.jquery||selector.length&&selector!=window&&!selector.nodeType&&selector[0]!=undefined&&selector[0].nodeType)&&VE_jQuery.makeArray(selector)||[selector])},jquery:"1.2.3",size:function(){return this.length},length:0,get:function(num){return num==undefined?VE_jQuery.makeArray(this):this[num]},pushStack:function(elems){var ret=VE_jQuery(elems);ret.prevObject=this;return ret},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this},each:function(callback,args){return VE_jQuery.each(this,callback,args)},index:function(elem){var ret=-1;this.each(function(i){if(this==elem){ret=i}});return ret},attr:function(name,value,type){var options=name;if(name.constructor==String){if(value==undefined){return this.length&&VE_jQuery[type||"attr"](this[0],name)||undefined}else{options={};options[name]=value}}return this.each(function(i){for(name in options){VE_jQuery.attr(type?this.style:this,name,VE_jQuery.prop(this,options[name],type,i,name))}})},css:function(key,value){if((key=="width"||key=="height")&&parseFloat(value)<0){value=undefined}return this.attr(key,value,"curCSS")},text:function(text){if(typeof text!="object"&&text!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text))}var ret="";VE_jQuery.each(text||this,function(){VE_jQuery.each(this.childNodes,function(){if(this.nodeType!=8){ret+=this.nodeType!=1?this.nodeValue:VE_jQuery.fn.text([this])}})});return ret},wrapAll:function(html){if(this[0]){VE_jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild){elem=elem.firstChild}return elem}).append(this)}return this},wrapInner:function(html){return this.each(function(){VE_jQuery(this).contents().wrapAll(html)})},wrap:function(html){return this.each(function(){VE_jQuery(this).wrapAll(html)})},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1){this.appendChild(elem)}})},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1){this.insertBefore(elem,this.firstChild)}})},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this)})},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling)})},end:function(){return this.prevObject||VE_jQuery([])},find:function(selector){var elems=VE_jQuery.map(this,function(elem){return VE_jQuery.find(selector,elem)});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?VE_jQuery.unique(elems):elems)},clone:function(events){var ret=this.map(function(){if(VE_jQuery.browser.msie&&!VE_jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return VE_jQuery.clean([container.innerHTML])[0]}else{return this.cloneNode(true)}});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined){this[expando]=null}});if(events===true){this.find("*").andSelf().each(function(i){if(this.nodeType==3){return }var events=VE_jQuery.data(this,"events");for(var type in events){for(var handler in events[type]){VE_jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data)}}})}return ret},filter:function(selector){return this.pushStack(VE_jQuery.isFunction(selector)&&VE_jQuery.grep(this,function(elem,i){return selector.call(elem,i)})||VE_jQuery.multiFilter(selector,this))},not:function(selector){if(selector.constructor==String){if(isSimple.test(selector)){return this.pushStack(VE_jQuery.multiFilter(selector,this,true))}else{selector=VE_jQuery.multiFilter(selector,this)}}var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?VE_jQuery.inArray(this,selector)<0:this!=selector})},add:function(selector){return !selector?this:this.pushStack(VE_jQuery.merge(this.get(),selector.constructor==String?VE_jQuery(selector).get():selector.length!=undefined&&(!selector.nodeName||VE_jQuery.nodeName(selector,"form"))?selector:[selector]))},is:function(selector){return selector?VE_jQuery.multiFilter(selector,this).length>0:false},hasClass:function(selector){return this.is("."+selector)},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(VE_jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0){return null}for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=VE_jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one){return value}values.push(value)}}return values}else{return(this[0].value||"").replace(/\r/g,"")}}return undefined}return this.each(function(){if(this.nodeType!=1){return }if(value.constructor==Array&&/radio|checkbox/.test(this.type)){this.checked=(VE_jQuery.inArray(this.value,value)>=0||VE_jQuery.inArray(this.name,value)>=0)}else{if(VE_jQuery.nodeName(this,"select")){var values=value.constructor==Array?value:[value];VE_jQuery("option",this).each(function(){this.selected=(VE_jQuery.inArray(this.value,values)>=0||VE_jQuery.inArray(this.text,values)>=0)});if(!values.length){this.selectedIndex=-1}}else{this.value=value}}})},html:function(value){return value==undefined?(this.length?this[0].innerHTML:null):this.empty().append(value)},replaceWith:function(value){return this.after(value).remove()},eq:function(i){return this.slice(i,i+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(callback){return this.pushStack(VE_jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},andSelf:function(){return this.add(this.prevObject)},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value==null){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data==undefined&&this.length){data=VE_jQuery.data(this[0],key)}return data==null&&parts[1]?this.data(parts[0]):data}else{return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){VE_jQuery.data(this,key,value)})}},removeData:function(key){return this.each(function(){VE_jQuery.removeData(this,key)})},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=VE_jQuery.clean(args,this.ownerDocument);if(reverse){elems.reverse()}}var obj=this;if(table&&VE_jQuery.nodeName(this,"table")&&VE_jQuery.nodeName(elems[0],"tr")){obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"))}var scripts=VE_jQuery([]);VE_jQuery.each(elems,function(){var elem=clone?VE_jQuery(this).clone(true)[0]:this;if(VE_jQuery.nodeName(elem,"script")){scripts=scripts.add(elem)}else{if(elem.nodeType==1){scripts=scripts.add(VE_jQuery("script",elem).remove())}callback.call(obj,elem)}});scripts.each(evalScript)})}};VE_jQuery.prototype.init.prototype=VE_jQuery.prototype;function evalScript(i,elem){if(elem.src){VE_jQuery.ajax({url:elem.src,async:false,dataType:"script"})}else{VE_jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"")}if(elem.parentNode){elem.parentNode.removeChild(elem)}}VE_jQuery.extend=VE_jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2}if(typeof target!="object"&&typeof target!="function"){target={}}if(length==1){target=this;i=0}for(;i<length;i++){if((options=arguments[i])!=null){for(var name in options){if(target===options[name]){continue}if(deep&&options[name]&&typeof options[name]=="object"&&target[name]&&!options[name].nodeType){target[name]=VE_jQuery.extend(target[name],options[name])}else{if(options[name]!=undefined){target[name]=options[name]}}}}}return target};var expando="VE_jQuery"+(new Date()).getTime(),uuid=0,windowData={};var exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i;VE_jQuery.extend({noConflict:function(deep){window.VE_$=_VE_$;if(deep){window.VE_jQuery=_VE_jQuery}return VE_jQuery},isFunction:function(fn){return !!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/function/i.test(fn+"")},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body},globalEval:function(data){data=VE_jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(VE_jQuery.browser.msie){script.text=data}else{script.appendChild(document.createTextNode(data))}head.appendChild(script);head.removeChild(script)}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase()},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id){id=elem[expando]=++uuid}if(name&&!VE_jQuery.cache[id]){VE_jQuery.cache[id]={}}if(data!=undefined){VE_jQuery.cache[id][name]=data}return name?VE_jQuery.cache[id][name]:id},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(VE_jQuery.cache[id]){delete VE_jQuery.cache[id][name];name="";for(name in VE_jQuery.cache[id]){break}if(!name){VE_jQuery.removeData(elem)}}}else{try{delete elem[expando]}catch(e){if(elem.removeAttribute){elem.removeAttribute(expando)}}delete VE_jQuery.cache[id]}},each:function(object,callback,args){if(args){if(object.length==undefined){for(var name in object){if(callback.apply(object[name],args)===false){break}}}else{for(var i=0,length=object.length;i<length;i++){if(callback.apply(object[i],args)===false){break}}}}else{if(object.length==undefined){for(var name in object){if(callback.call(object[name],name,object[name])===false){break}}}else{for(var i=0,length=object.length,value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}}return object},prop:function(elem,value,type,i,name){if(VE_jQuery.isFunction(value)){value=value.call(elem,i)}return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value},className:{add:function(elem,classNames){VE_jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!VE_jQuery.className.has(elem.className,className)){elem.className+=(elem.className?" ":"")+className}})},remove:function(elem,classNames){if(elem.nodeType==1){elem.className=classNames!=undefined?VE_jQuery.grep(elem.className.split(/\s+/),function(className){return !VE_jQuery.className.has(classNames,className)}).join(" "):""}},has:function(elem,className){return VE_jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name]}callback.call(elem);for(var name in options){elem.style[name]=old[name]}},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;VE_jQuery.each(which,function(){padding+=parseFloat(VE_jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(VE_jQuery.curCSS(elem,"border"+this+"Width",true))||0});val-=Math.round(padding+border)}if(VE_jQuery(elem).is(":visible")){getWH()}else{VE_jQuery.swap(elem,props,getWH)}return Math.max(0,val)}return VE_jQuery.curCSS(elem,name,force)},curCSS:function(elem,name,force){var ret;function color(elem){if(!VE_jQuery.browser.safari){return false}var ret=document.defaultView.getComputedStyle(elem,null);return !ret||ret.getPropertyValue("color")==""}if(name=="opacity"&&VE_jQuery.browser.msie){ret=VE_jQuery.attr(elem.style,"opacity");return ret==""?"1":ret}if(VE_jQuery.browser.opera&&name=="display"){var save=elem.style.outline;elem.style.outline="0 solid black";elem.style.outline=save}if(name.match(/float/i)){name=styleFloat}if(!force&&elem.style&&elem.style[name]){ret=elem.style[name]}else{if(document.defaultView&&document.defaultView.getComputedStyle){if(name.match(/float/i)){name="float"}name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var getComputedStyle=document.defaultView.getComputedStyle(elem,null);if(getComputedStyle&&!color(elem)){ret=getComputedStyle.getPropertyValue(name)}else{var swap=[],stack=[];for(var a=elem;a&&color(a);a=a.parentNode){stack.unshift(a)}for(var i=0;i<stack.length;i++){if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block"}}ret=name=="display"&&swap[stack.length-1]!=null?"none":(getComputedStyle&&getComputedStyle.getPropertyValue(name))||"";for(var i=0;i<swap.length;i++){if(swap[i]!=null){stack[i].style.display=swap[i]}}}if(name=="opacity"&&ret==""){ret="1"}}else{if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase()});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var style=elem.style.left,runtimeStyle=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;elem.style.left=ret||0;ret=elem.style.pixelLeft+"px";elem.style.left=style;elem.runtimeStyle.left=runtimeStyle}}}}return ret},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document}VE_jQuery.each(elems,function(i,elem){if(!elem){return }if(elem.constructor==Number){elem=elem.toString()}if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">"});var tags=VE_jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||VE_jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--){div=div.lastChild}if(VE_jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j){if(VE_jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j])}}if(/^\s/.test(elem)){div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild)}}elem=VE_jQuery.makeArray(div.childNodes)}if(elem.length===0&&(!VE_jQuery.nodeName(elem,"form")&&!VE_jQuery.nodeName(elem,"select"))){return }if(elem[0]==undefined||VE_jQuery.nodeName(elem,"form")||elem.options){ret.push(elem)}else{ret=VE_jQuery.merge(ret,elem)}});return ret},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8){return undefined}var fix=VE_jQuery.isXMLDoc(elem)?{}:VE_jQuery.props;if(name=="selected"&&VE_jQuery.browser.safari){elem.parentNode.selectedIndex}if(fix[name]){if(value!=undefined){elem[fix[name]]=value}return elem[fix[name]]}else{if(VE_jQuery.browser.msie&&name=="style"){return VE_jQuery.attr(elem.style,"cssText",value)}else{if(value==undefined&&VE_jQuery.browser.msie&&VE_jQuery.nodeName(elem,"form")&&(name=="action"||name=="method")){return elem.getAttributeNode(name).nodeValue}else{if(elem.tagName){if(value!=undefined){if(name=="type"&&VE_jQuery.nodeName(elem,"input")&&elem.parentNode){throw"type property can't be changed"}elem.setAttribute(name,""+value)}if(VE_jQuery.browser.msie&&/href|src/.test(name)&&!VE_jQuery.isXMLDoc(elem)){return elem.getAttribute(name,2)}return elem.getAttribute(name)}else{if(name=="opacity"&&VE_jQuery.browser.msie){if(value!=undefined){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseFloat(value).toString()=="NaN"?"":"alpha(opacity="+value*100+")")}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100).toString():""}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase()});if(value!=undefined){elem[name]=value}return elem[name]}}}}},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"")},makeArray:function(array){var ret=[];if(typeof array!="array"){for(var i=0,length=array.length;i<length;i++){ret.push(array[i])}}else{ret=array.slice(0)}return ret},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++){if(array[i]==elem){return i}}return -1},merge:function(first,second){if(VE_jQuery.browser.msie){for(var i=0;second[i];i++){if(second[i].nodeType!=8){first.push(second[i])}}}else{for(var i=0;second[i];i++){first.push(second[i])}}return first},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=VE_jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i])}}}catch(e){ret=array}return ret},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++){if(!inv&&callback(elems[i],i)||inv&&!callback(elems[i],i)){ret.push(elems[i])}}return ret},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!==null&&value!=undefined){if(value.constructor!=Array){value=[value]}ret=ret.concat(value)}}return ret}});var userAgent=navigator.userAgent.toLowerCase();VE_jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=VE_jQuery.browser.msie?"styleFloat":"cssFloat";VE_jQuery.extend({boxModel:!VE_jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,innerHTML:"innerHTML",className:"className",value:"value",disabled:"disabled",checked:"checked",readonly:"readOnly",selected:"selected",maxlength:"maxLength",selectedIndex:"selectedIndex",defaultValue:"defaultValue",tagName:"tagName",nodeName:"nodeName"}});VE_jQuery.each({parent:function(elem){return elem.parentNode},parents:function(elem){return VE_jQuery.dir(elem,"parentNode")},next:function(elem){return VE_jQuery.nth(elem,2,"nextSibling")},prev:function(elem){return VE_jQuery.nth(elem,2,"previousSibling")},nextAll:function(elem){return VE_jQuery.dir(elem,"nextSibling")},prevAll:function(elem){return VE_jQuery.dir(elem,"previousSibling")},siblings:function(elem){return VE_jQuery.sibling(elem.parentNode.firstChild,elem)},children:function(elem){return VE_jQuery.sibling(elem.firstChild)},contents:function(elem){return VE_jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:VE_jQuery.makeArray(elem.childNodes)}},function(name,fn){VE_jQuery.fn[name]=function(selector){var ret=VE_jQuery.map(this,fn);if(selector&&typeof selector=="string"){ret=VE_jQuery.multiFilter(selector,ret)}return this.pushStack(VE_jQuery.unique(ret))}});VE_jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){VE_jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++){VE_jQuery(args[i])[original](this)}})}});VE_jQuery.each({removeAttr:function(name){VE_jQuery.attr(this,name,"");if(this.nodeType==1){this.removeAttribute(name)}},addClass:function(classNames){VE_jQuery.className.add(this,classNames)},removeClass:function(classNames){VE_jQuery.className.remove(this,classNames)},toggleClass:function(classNames){VE_jQuery.className[VE_jQuery.className.has(this,classNames)?"remove":"add"](this,classNames)},remove:function(selector){if(!selector||VE_jQuery.filter(selector,[this]).r.length){VE_jQuery("*",this).add(this).each(function(){VE_jQuery.event.remove(this);VE_jQuery.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){VE_jQuery(">*",this).remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(name,fn){VE_jQuery.fn[name]=function(){return this.each(fn,arguments)}});VE_jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();VE_jQuery.fn[type]=function(size){return this[0]==window?VE_jQuery.browser.opera&&document.body["client"+name]||VE_jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?VE_jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px")}});var chars=VE_jQuery.browser.safari&&parseInt(VE_jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");VE_jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||VE_jQuery.nodeName(a,m[2])},"#":function(a,i,m){return a.getAttribute("id")==m[2]},":":{lt:function(a,i,m){return i<m[3]-0},gt:function(a,i,m){return i>m[3]-0},nth:function(a,i,m){return m[3]-0==i},eq:function(a,i,m){return m[3]-0==i},first:function(a,i){return i==0},last:function(a,i,m,r){return i==r.length-1},even:function(a,i){return i%2==0},odd:function(a,i){return i%2},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a},"last-child":function(a){return VE_jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a},"only-child":function(a){return !VE_jQuery.nth(a.parentNode.lastChild,2,"previousSibling")},parent:function(a){return a.firstChild},empty:function(a){return !a.firstChild},contains:function(a,i,m){return(a.textContent||a.innerText||VE_jQuery(a).text()||"").indexOf(m[3])>=0},visible:function(a){return"hidden"!=a.type&&VE_jQuery.css(a,"display")!="none"&&VE_jQuery.css(a,"visibility")!="hidden"},hidden:function(a){return"hidden"==a.type||VE_jQuery.css(a,"display")=="none"||VE_jQuery.css(a,"visibility")=="hidden"},enabled:function(a){return !a.disabled},disabled:function(a){return a.disabled},checked:function(a){return a.checked},selected:function(a){return a.selected||VE_jQuery.attr(a,"selected")},text:function(a){return"text"==a.type},radio:function(a){return"radio"==a.type},checkbox:function(a){return"checkbox"==a.type},file:function(a){return"file"==a.type},password:function(a){return"password"==a.type},submit:function(a){return"submit"==a.type},image:function(a){return"image"==a.type},reset:function(a){return"reset"==a.type},button:function(a){return"button"==a.type||VE_jQuery.nodeName(a,"button")},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},has:function(a,i,m){return VE_jQuery.find(m[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},animated:function(a){return VE_jQuery.grep(VE_jQuery.timers,function(fn){return a==fn.elem}).length}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=VE_jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:VE_jQuery.merge(cur,f.r)}return cur},find:function(t,context){if(typeof t!="string"){return[t]}if(context&&context.nodeType!=1&&context.nodeType!=9){return[]}context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=VE_jQuery.trim(t);var foundToken=false;var re=quickChild;var m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++){for(var c=ret[i].firstChild;c;c=c.nextSibling){if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName)){r.push(c)}}}ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0){continue}foundToken=true}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling){if(n.nodeType==1){var id=VE_jQuery.data(n);if(m=="~"&&merge[id]){break}if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~"){merge[id]=true}r.push(n)}if(m=="+"){break}}}}ret=r;t=VE_jQuery.trim(t.replace(re,""));foundToken=true}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0]){ret.shift()}done=VE_jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length)}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]]}else{re2=quickClass;m=re2.exec(t)}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!VE_jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((VE_jQuery.browser.msie||VE_jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2]){oid=VE_jQuery('[@id="'+m[2]+'"]',elem)[0]}ret=r=oid&&(!m[3]||VE_jQuery.nodeName(oid,m[3]))?[oid]:[]}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object"){tag="param"}r=VE_jQuery.merge(r,ret[i].getElementsByTagName(tag))}if(m[1]=="."){r=VE_jQuery.classFilter(r,m[2])}if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++){if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break}}r=tmp}ret=r}t=t.replace(re2,"")}}if(t){var val=VE_jQuery.filter(t,r);ret=r=val.r;t=VE_jQuery.trim(val.t)}}if(t){ret=[]}if(ret&&context==ret[0]){ret.shift()}done=VE_jQuery.merge(done,ret);return done},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass){tmp.push(r[i])}}return tmp},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=VE_jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break}}if(!m){break}if(m[1]==":"&&m[2]=="not"){r=isSimple.test(m[3])?VE_jQuery.filter(m[3],r,true).r:VE_jQuery(r).not(m[3])}else{if(m[1]=="."){r=VE_jQuery.classFilter(r,m[2],not)}else{if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[VE_jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2])){z=VE_jQuery.attr(a,m[2])||""}if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not){tmp.push(a)}}r=tmp}else{if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=VE_jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling){if(n.nodeType==1){n.nodeIndex=c++}}merge[id]=true}var add=false;if(first==0){if(node.nodeIndex==last){add=true}}else{if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0){add=true}}if(add^not){tmp.push(node)}}r=tmp}else{var fn=VE_jQuery.expr[m[1]];if(typeof fn=="object"){fn=fn[m[2]]}if(typeof fn=="string"){fn=eval("false||function(a,i){return "+fn+";}")}r=VE_jQuery.grep(r,function(elem,i){return fn(elem,i,m,r)},not)}}}}}return{r:r,t:t}},dir:function(elem,dir){var matched=[];var cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1){matched.push(cur)}cur=cur[dir]}return matched},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType==1&&++num==result){break}}return cur},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&(!elem||n!=elem)){r.push(n)}}return r}});VE_jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8){return }if(VE_jQuery.browser.msie&&elem.setInterval!=undefined){elem=window}if(!handler.guid){handler.guid=this.guid++}if(data!=undefined){var fn=handler;handler=function(){return fn.apply(this,arguments)};handler.data=data;handler.guid=fn.guid}var events=VE_jQuery.data(elem,"events")||VE_jQuery.data(elem,"events",{}),handle=VE_jQuery.data(elem,"handle")||VE_jQuery.data(elem,"handle",function(){var val;if(typeof VE_jQuery=="undefined"||VE_jQuery.event.triggered){return val}val=VE_jQuery.event.handle.apply(arguments.callee.elem,arguments);return val});handle.elem=elem;VE_jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!VE_jQuery.event.special[type]||VE_jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener){elem.addEventListener(type,handle,false)}else{if(elem.attachEvent){elem.attachEvent("on"+type,handle)}}}}handlers[handler.guid]=handler;VE_jQuery.event.global[type]=true});elem=null},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8){return }var events=VE_jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)==".")){for(var type in events){this.remove(elem,type+(types||""))}}else{if(types.type){handler=types.handler;types=types.type}VE_jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler){delete events[type][handler.guid]}else{for(handler in events[type]){if(!parts[1]||events[type][handler].type==parts[1]){delete events[type][handler]}}}for(ret in events[type]){break}if(!ret){if(!VE_jQuery.event.special[type]||VE_jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener){elem.removeEventListener(type,VE_jQuery.data(elem,"handle"),false)}else{if(elem.detachEvent){elem.detachEvent("on"+type,VE_jQuery.data(elem,"handle"))}}}ret=null;delete events[type]}}})}for(ret in events){break}if(!ret){var handle=VE_jQuery.data(elem,"handle");if(handle){handle.elem=null}VE_jQuery.removeData(elem,"events");VE_jQuery.removeData(elem,"handle")}}},trigger:function(type,data,elem,donative,extra){data=VE_jQuery.makeArray(data||[]);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true}if(!elem){if(this.global[type]){VE_jQuery("*").add([window,document]).trigger(type,data)}}else{if(elem.nodeType==3||elem.nodeType==8){return undefined}var val,ret,fn=VE_jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift(this.fix({type:type,target:elem}))}data[0].type=type;if(exclusive){data[0].exclusive=true}if(VE_jQuery.isFunction(VE_jQuery.data(elem,"handle"))){val=VE_jQuery.data(elem,"handle").apply(elem,data)}if(!fn&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false){val=false}if(event){data.shift()}if(extra&&VE_jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined){val=ret}}if(fn&&donative!==false&&val!==false&&!(VE_jQuery.nodeName(elem,"a")&&type=="click")){this.triggered=true;try{elem[type]()}catch(e){}}this.triggered=false}return val},handle:function(event){var val;event=VE_jQuery.event.fix(event||window.event||{});var parts=event.type.split(".");event.type=parts[0];var handlers=VE_jQuery.data(this,"events")&&VE_jQuery.data(this,"events")[event.type],args=Array.prototype.slice.call(arguments,1);args.unshift(event);for(var j in handlers){var handler=handlers[j];args[0].handler=handler;args[0].data=handler.data;if(!parts[1]&&!event.exclusive||handler.type==parts[1]){var ret=handler.apply(this,args);if(val!==false){val=ret}if(ret===false){event.preventDefault();event.stopPropagation()}}}if(VE_jQuery.browser.msie){event.target=event.preventDefault=event.stopPropagation=event.handler=event.data=null}return val},fix:function(event){var originalEvent=event;event=VE_jQuery.extend({},originalEvent);event.preventDefault=function(){if(originalEvent.preventDefault){originalEvent.preventDefault()}originalEvent.returnValue=false};event.stopPropagation=function(){if(originalEvent.stopPropagation){originalEvent.stopPropagation()}originalEvent.cancelBubble=true};if(!event.target){event.target=event.srcElement||document}if(event.target.nodeType==3){event.target=originalEvent.target.parentNode}if(!event.relatedTarget&&event.fromElement){event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement}if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0)}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode)){event.which=event.charCode||event.keyCode}if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey}if(!event.which&&event.button){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)))}return event},special:{ready:{setup:function(){bindReady();return },teardown:function(){return }},mouseenter:{setup:function(){if(VE_jQuery.browser.msie){return false}VE_jQuery(this).bind("mouseover",VE_jQuery.event.special.mouseenter.handler);return true},teardown:function(){if(VE_jQuery.browser.msie){return false}VE_jQuery(this).unbind("mouseover",VE_jQuery.event.special.mouseenter.handler);return true},handler:function(event){if(withinElement(event,this)){return true}arguments[0].type="mouseenter";return VE_jQuery.event.handle.apply(this,arguments)}},mouseleave:{setup:function(){if(VE_jQuery.browser.msie){return false}VE_jQuery(this).bind("mouseout",VE_jQuery.event.special.mouseleave.handler);return true},teardown:function(){if(VE_jQuery.browser.msie){return false}VE_jQuery(this).unbind("mouseout",VE_jQuery.event.special.mouseleave.handler);return true},handler:function(event){if(withinElement(event,this)){return true}arguments[0].type="mouseleave";return VE_jQuery.event.handle.apply(this,arguments)}}}};VE_jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){VE_jQuery.event.add(this,type,fn||data,fn&&data)})},one:function(type,data,fn){return this.each(function(){VE_jQuery.event.add(this,type,function(event){VE_jQuery(this).unbind(event);return(fn||data).apply(this,arguments)},fn&&data)})},unbind:function(type,fn){return this.each(function(){VE_jQuery.event.remove(this,type,fn)})},trigger:function(type,data,fn){return this.each(function(){VE_jQuery.event.trigger(type,data,this,true,fn)})},triggerHandler:function(type,data,fn){if(this[0]){return VE_jQuery.event.trigger(type,data,this[0],false,fn)}return undefined},toggle:function(){var args=arguments;return this.click(function(event){this.lastToggle=0==this.lastToggle?1:0;event.preventDefault();return args[this.lastToggle].apply(this,arguments)||false})},hover:function(fnOver,fnOut){return this.bind("mouseenter",fnOver).bind("mouseleave",fnOut)},ready:function(fn){bindReady();if(VE_jQuery.isReady){fn.call(document,VE_jQuery)}else{VE_jQuery.readyList.push(function(){return fn.call(this,VE_jQuery)})}return this}});VE_jQuery.extend({isReady:false,readyList:[],ready:function(){if(!VE_jQuery.isReady){VE_jQuery.isReady=true;if(VE_jQuery.readyList){VE_jQuery.each(VE_jQuery.readyList,function(){this.apply(document)});VE_jQuery.readyList=null}VE_jQuery(document).triggerHandler("ready")}}});var readyBound=false;function bindReady(){if(readyBound){return }readyBound=true;if(document.addEventListener&&!VE_jQuery.browser.opera){document.addEventListener("DOMContentLoaded",VE_jQuery.ready,false)}if(VE_jQuery.browser.msie&&window==top){(function(){if(VE_jQuery.isReady){return }try{document.documentElement.doScroll("left")}catch(error){setTimeout(arguments.callee,0);return }VE_jQuery.ready()})()}if(VE_jQuery.browser.opera){document.addEventListener("DOMContentLoaded",function(){if(VE_jQuery.isReady){return }for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return }}VE_jQuery.ready()},false)}if(VE_jQuery.browser.safari){var numStyles;(function(){if(VE_jQuery.isReady){return }if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return }if(numStyles===undefined){numStyles=VE_jQuery("style, link[rel=stylesheet]").length}if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return }VE_jQuery.ready()})()}VE_jQuery.event.add(window,"load",VE_jQuery.ready)}VE_jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,change,select,submit,keydown,keypress,keyup,error").split(","),function(i,name){VE_jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name)}});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem){try{parent=parent.parentNode}catch(error){parent=elem}}return parent==elem};VE_jQuery(window).bind("unload",function(){VE_jQuery("*").add(document).unbind()});VE_jQuery.fn.extend({load:function(url,params,callback){if(VE_jQuery.isFunction(url)){return this.bind("load",url)}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off)}callback=callback||function(){};var type="GET";if(params){if(VE_jQuery.isFunction(params)){callback=params;params=null}else{params=VE_jQuery.param(params);type="POST"}}var self=this;VE_jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified"){self.html(selector?VE_jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText)}self.each(callback,[res.responseText,status,res])}});return this},serialize:function(){return VE_jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return VE_jQuery.nodeName(this,"form")?VE_jQuery.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(i,elem){var val=VE_jQuery(this).val();return val==null?null:val.constructor==Array?VE_jQuery.map(val,function(val,i){return{name:elem.name,value:val}}):{name:elem.name,value:val}}).get()}});VE_jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){VE_jQuery.fn[o]=function(f){return this.bind(o,f)}});var jsc=(new Date).getTime();VE_jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(VE_jQuery.css(this,"display")=="none"){var elem=VE_jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none"){this.style.display="block"}elem.remove()}}).end()},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||VE_jQuery.css(this,"display");this.style.display="none"}).end()},_toggle:VE_jQuery.fn.toggle,toggle:function(fn,fn2){return VE_jQuery.isFunction(fn)&&VE_jQuery.isFunction(fn2)?this._toggle(fn,fn2):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){VE_jQuery(this)[VE_jQuery(this).is(":hidden")?"show":"hide"]()})},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback)},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback)},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback)},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback)},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback)},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback)},animate:function(prop,speed,easing,callback){var optall=VE_jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1){return false}var opt=VE_jQuery.extend({},optall);var hidden=VE_jQuery(this).is(":hidden"),self=this;for(var p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden){return VE_jQuery.isFunction(opt.complete)&&opt.complete.apply(this)}if(p=="height"||p=="width"){opt.display=VE_jQuery.css(this,"display");opt.overflow=this.style.overflow}}if(opt.overflow!=null){this.style.overflow="hidden"}opt.curAnim=VE_jQuery.extend({},prop);VE_jQuery.each(prop,function(name,val){var e=new VE_jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val)){e[val=="toggle"?hidden?"show":"hide":val](prop)}else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit}if(parts[1]){end=((parts[1]=="-="?-1:1)*end)+start}e.custom(start,end,unit)}else{e.custom(start,val,"")}}});return true})},queue:function(type,fn){if(VE_jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx"}if(!type||(typeof type=="string"&&!fn)){return queue(this[0],type)}return this.each(function(){if(fn.constructor==Array){queue(this,type,fn)}else{queue(this,type).push(fn);if(queue(this,type).length==1){fn.apply(this)}}})},stop:function(clearQueue,gotoEnd){var timers=VE_jQuery.timers;if(clearQueue){this.queue([])}this.each(function(){for(var i=timers.length-1;i>=0;i--){if(timers[i].elem==this){if(gotoEnd){timers[i](true)}timers.splice(i,1)}}});if(!gotoEnd){this.dequeue()}return this}});var queue=function(elem,type,array){if(!elem){return undefined}type=type||"fx";var q=VE_jQuery.data(elem,type+"queue");if(!q||array){q=VE_jQuery.data(elem,type+"queue",array?VE_jQuery.makeArray(array):[])}return q};VE_jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length){q[0].apply(this)}})};VE_jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||VE_jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:{slow:600,fast:200}[opt.duration])||400;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){VE_jQuery(this).dequeue()}if(VE_jQuery.isFunction(opt.old)){opt.old.apply(this)}};return opt},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig){options.orig={}}}});VE_jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.apply(this.elem,[this.now,this])}(VE_jQuery.fx.step[this.prop]||VE_jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width"){this.elem.style.display="block"}},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null){return this.elem[this.prop]}var r=parseFloat(VE_jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(VE_jQuery.curCSS(this.elem,this.prop))||0},custom:function(from,to,unit){this.startTime=(new Date()).getTime();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd)}t.elem=this.elem;VE_jQuery.timers.push(t);if(VE_jQuery.timerId==null){VE_jQuery.timerId=setInterval(function(){var timers=VE_jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1)}}if(!timers.length){clearInterval(VE_jQuery.timerId);VE_jQuery.timerId=null}},13)}},show:function(){this.options.orig[this.prop]=VE_jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height"){this.elem.style[this.prop]="1px"}VE_jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=VE_jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(gotoEnd){var t=(new Date()).getTime();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(VE_jQuery.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){this.elem.style.display="none"}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){VE_jQuery.attr(this.elem.style,p,this.options.orig[p])}}}if(done&&VE_jQuery.isFunction(this.options.complete)){this.options.complete.apply(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=VE_jQuery.easing[this.options.easing||(VE_jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};VE_jQuery.fx.step={scrollLeft:function(fx){fx.elem.scrollLeft=fx.now},scrollTop:function(fx){fx.elem.scrollTop=fx.now},opacity:function(fx){VE_jQuery.attr(fx.elem.style,"opacity",fx.now)},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit}};VE_jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem){with(VE_jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),fixed=VE_jQuery.css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop)}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2){border(offsetParent)}if(!fixed&&VE_jQuery.css(offsetParent,"position")=="fixed"){fixed=true}offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(VE_jQuery.css(parent,"display"))){add(-parent.scrollLeft,-parent.scrollTop)}if(mozilla&&VE_jQuery.css(parent,"overflow")!="visible"){border(parent)}parent=parent.parentNode}if((safari2&&(fixed||VE_jQuery.css(offsetChild,"position")=="absolute"))||(mozilla&&VE_jQuery.css(offsetChild,"position")!="absolute")){add(-doc.body.offsetLeft,-doc.body.offsetTop)}if(fixed){add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop))}}results={top:top,left:left}}}function border(elem){add(VE_jQuery.curCSS(elem,"borderLeftWidth",true),VE_jQuery.curCSS(elem,"borderTopWidth",true))}function add(l,t){left+=parseInt(l)||0;top+=parseInt(t)||0}return results}})();(function(B){B.dimensions={version:"1.2"};B.each(["Height","Width"],function(D,C){B.fn["inner"+C]=function(){if(!this[0]){return }var F=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";return this.is(":visible")?this[0]["client"+C]:A(this,C.toLowerCase())+A(this,"padding"+F)+A(this,"padding"+E)};B.fn["outer"+C]=function(F){if(!this[0]){return }var H=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";F=B.extend({margin:false},F||{});var G=this.is(":visible")?this[0]["offset"+C]:A(this,C.toLowerCase())+A(this,"border"+H+"Width")+A(this,"border"+E+"Width")+A(this,"padding"+H)+A(this,"padding"+E);return G+(F.margin?(A(this,"margin"+H)+A(this,"margin"+E)):0)}});B.each(["Left","Top"],function(D,C){B.fn["scroll"+C]=function(E){if(!this[0]){return }return E!=undefined?this.each(function(){this==window||this==document?window.scrollTo(C=="Left"?E:B(window)["scrollLeft"](),C=="Top"?E:B(window)["scrollTop"]()):this["scroll"+C]=E}):this[0]==window||this[0]==document?self[(C=="Left"?"pageXOffset":"pageYOffset")]||B.boxModel&&document.documentElement["scroll"+C]||document.body["scroll"+C]:this[0]["scroll"+C]}});B.fn.extend({position:function(){var H=0,G=0,F=this[0],I,C,E,D;if(F){E=this.offsetParent();I=this.offset();C=E.offset();I.top-=A(F,"marginTop");I.left-=A(F,"marginLeft");C.top+=A(E,"borderTopWidth");C.left+=A(E,"borderLeftWidth");D={top:I.top-C.top,left:I.left-C.left}}return D},offsetParent:function(){var C=this[0].offsetParent;while(C&&(!/^body|html$/i.test(C.tagName)&&B.css(C,"position")=="static")){C=C.offsetParent}return B(C)}});function A(C,D){return parseInt(B.curCSS(C.jquery?C[0]:C,D,true))||0}})(VE_jQuery);VE_jQuery.extend(VE_jQuery.easing,{easeInQuad:function(B,C,A,E,D){return E*(C/=D)*C+A},easeOutQuad:function(B,C,A,E,D){return -E*(C/=D)*(C-2)+A},easeInOutQuad:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C+A}return -E/2*((--C)*(C-2)-1)+A}});(function(VE_$){var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s={array:function(x){var a=["["],b,f,i,l=x.length,v;for(i=0;i<l;i+=1){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=="string"){if(b){a[a.length]=","}a[a.length]=v;b=true}}}a[a.length]="]";return a.join("")},"boolean":function(x){return String(x)},"null":function(x){return"null"},number:function(x){return isFinite(x)?String(x):"null"},object:function(x){if(x){if(x instanceof Array){return s.array(x)}var a=["{"],b,f,i,v;for(i in x){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=="string"){if(b){a[a.length]=","}a.push(s.string(i),":",v);b=true}}}a[a.length]="}";return a.join("")}return"null"},string:function(x){if(/["\\\x00-\x1f]/.test(x)){x=x.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];if(c){return c}c=b.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})}return'"'+x+'"'}};VE_$.toJSON=function(v){var f=isNaN(v)?s[typeof v]:s.number;if(f){return f(v)}};VE_$.parseJSON=function(v,safe){if(safe===undefined){safe=VE_$.parseJSON.safe}return eval("("+v+")")};VE_$.parseJSON.safe=false})(VE_jQuery);var videoegg={};var VE_DEBUG;var ve_onerror_backup=window.onerror;window.onerror=function(F,C,A){if(C.indexOf("videoegg.com")!=-1){var E=["http://beacon.videoegg.com/jserr?msg=",escape(F),"&url=",escape(C),"&line=",escape(A),"&eapv=",escape(EAP_VERSION),"&si=",ve_site?ve_site:"undefined","&area=",ve_area?ve_area:"undefined","&pb=",ve_publisher?ve_publisher:"undefined"];var B=document.createElement("img");B.src=E.join("");try{VE_beaconLog(B.src)}catch(D){}delete B;return !VE_DEBUG}else{if(typeof (ve_onerror_backup)=="function"){return ve_onerror_backup(F,C,A)}}return false};var VE__namespace=function(){var y=function(AB,AC){for(var AA in AC.prototype){if(typeof (AB.prototype[AA])=="undefined"){AB.prototype[AA]=AC.prototype[AA]}}};var K=function(AC,AD){AD._usedAsBase=true;if(AC._usedAsBase){throw"DeriveClass Error: broken inheritance"}AC.supr=AD;for(var AA in AD.prototype){if(typeof (AC.prototype[AA])=="undefined"){AC.prototype[AA]=AD.prototype[AA]}else{if(typeof (AC.prototype[AA])=="function"){var AB=function(){var AE=AC.prototype[AA];var AF=AD.prototype[AA];AC.prototype[AA]=function(){var AG=this.supr;this.supr=AF;try{return AE.apply(this,arguments)}finally{this.supr=AG}}}()}else{throw"DeriveClass Error: member variable collision: "+AA}}}};videoegg._internal={};videoegg._internal.DeriveClass=y;var e=function(AA){if(VE_DEBUG){if((typeof (console)!=="undefined")&&(typeof (console.log)=="function")){console.log.apply(console,arguments)}else{}}};videoegg.trace=e;var J=new Date().getTime();var x=function(){this.firefox=false;this.ie=false;this.safari=false;this.mac=false;this.win=false;this.flash=0;this.PLATFORM="html";this.ADMANAGER_VERSION="2";this.ADMANAGER_URL="http://core.videoegg.com/eap/"+this.PLATFORM+"/swf/AdManager.swf"};x.prototype.isValidBrowser=function(){if(this.mac){return(this.firefox||this.safari)}else{if(this.win){return(this.firefox||this.ie)}else{return this.firefox}}};x.prototype.isSupportedEnvironment=function(){return(this.isValidBrowser()&&this.flash>=9)};var G=function(){var AA={};this.register=function(AB){if((AB==null)||(AB.type==null)||(AB.identifier==null)){throw"Invalid plugin"}if(AA[AB.type]==null){AA[AB.type]={}}if(AA[AB.type][AB.identifier]==null){AA[AB.type][AB.identifier]=AB}else{throw"Plugin already registered"}};this.unregister=function(AC,AB){try{delete (AA[AC][AB])}catch(AD){throw"Plugin unregister failed. Could not find plugin "+AC+"."+AB}};this.locate=function(AC,AB){var AE;try{AE=AA[AC][AB]}catch(AD){throw"Plugin lookup failed. Could not find plugin "+AC+"."+AB}return AE}};videoegg.PluginRegistry=new G();var W=function(AA){};W.prototype.trigger=function(){};W.prototype.loadAd=function(AA){};var F=function(Aa){var AK={width:430,height:360};var AL=9;var AQ={testpublisher:{url:"http://core.videoegg.com/eap/"+EAP_VERSION+"/samples/display/test/basictest.xml"}};var AI="http://videoegg.adbureau.net/LSERVER/hserver/aamsz=display/rid=$rid$/"+(Aa.publisher.toLowerCase()=="ve2go"?"site=$site$/area=$area$/":"site=facebook/area=fb_$area$/")+"channel=$channel$/expandable=$expandable$/isfbml=$isFBML$/VA=$va$/VAI=$vai$/VG=$vg$/VGI=$vgi$/VL=$vl$/ccid=$ccid$/dim=$dim$/pb=$pb$/pageid="+Math.floor(Math.random()*9999999)+1;var AH=Aa;if(typeof (Aa.placement)=="undefined"&&typeof (Aa.position)!="undefined"){AH.placement=Aa.position}var AY;if(!(AY=AH.RID)){Aa.RID=AH.RID=AY=T._generateRID();try{ve_initjs(AH.publisher,AH.site,AH.area,AH.width,AH.height,AH.RID);if(VE_DEBUG||Math.floor(Math.random()*100)<1){new top_beacon(AH.publisher,AH.site,AH.area,AH.width,AH.height,AH.RID)}}catch(AW){e("WARN: initjs fail")}}var AA;var Ab=new O();var AV=false;var AD=null;var AN=function(Ae,Ac){var Ad=null;AX(Ae,Ac,null,Ad,true)};var AE=function(){var Ad=null;switch(arguments.length){case (1):var Ac=arguments[0];if(Ac==null){throw"elementId cannot be null for insertInvitation."}AX(null,null,Ac,Ad,true);break;case (3):var Ac=arguments[2];if(Ac==null){throw"elementId cannot be null for insertInvitation."}AX(arguments[0],arguments[1],Ac,Ad,true);break;default:throw"Wrong number of arguments for for insertInvitation.";break}};var AX=function(Ad,Am,Af,Aj,Ac){if(typeof (AH.forcedType)!="undefined"){Aj=AH.forcedType}e("AdManager::embedContainers type = "+Aj);Af=h(Ad,Am,Af);if(q.PLATFORM=="html"&&!Aa.iframeEnabled){var Ae=z.getOffset(Af);var Ah=z.getViewportDimension();var Ag=z.getScrollOffset();if(((Ag.scrollTop>Ae.top)||(Ag.scrollLeft>Ae.left)||(Ae.top>(Ah.height+Ag.scrollTop))||(Ae.left>(Ah.width+Ag.scrollLeft)))&&typeof (AH.placement)=="undefined"){var Al={r:this._RID,area:AH.area,si:AH.site,pb:AH.publisher,fv:q.flashStr};var Ak=new b();Ak.send("btf",Al)}}var Ai=new r(Af,Ad,Am);if(Aj!=null){Ai.setForcedType(Aj)}Ai.setAlternate(Ac);Ai.setConfig(AH);Ai.setRID(AY);Ab.addContainer(Ai);return Ai};this.destroy=function(){AA.destroy();Ab.destroy()};var AS=function(Ad){if(Ad.getCCID()!=undefined){AH.CCID=Ad.getCCID()}var Ae=Ab.getDisplayContainers();for(var Ac in Ae){Ae[Ac].setConfig(AH)}Ab.setData(Ad,(Aa.preloadAssets!=undefined&&Aa.preloadAssets?true:false))};var AG=function(){e("AdManager:: onAdLoadError");if(AH.alternate){var Af=Ab.getDisplayContainers();e("dList::"+Af);var Ae=null;for(var Ac in Af){if(Af[Ac].getAlternate()){Ae=Af[Ac];break}}Ab.clearDisplayList();Ae.setForcedType("alternate");Ae.setConfig(AH);Ae.setRID(AY);Ab.addContainer(Ae);var Ad={};Ad.alternate=AH.alternate;Ab.setData(Ad,false)}};var AF=function(){e("AdManager_base::init "+z.getURL(AH));if(!AV){if(AH.ref==null){AH.ref=z.getURL(AH)}AA=new Q(AH,AY);AA.addEventListener({onAdLoadComplete:function(Af){AS(Af)}});AA.addEventListener({onAdLoadError:function(Af){AG(Af)}});AA.trigger()}else{e("AdManager_base::configValidationError");var Ad;if(q.firefox){Ad="firefox"}else{if(q.ie){Ad="ie"}else{if(q.safari){Ad="safari"}else{Ad="unknown"}}}var Ae={width:AH.width,height:AH.height,fv:q.flashStr,os:(q.mac?"mac":"win"),browser:Ad,ref:document.URL,r:Math.floor(Math.random()*9999999)+1,area:AH.area,si:AH.site,pb:AH.publisher,err:AD};var Ac=new b();Ac.send("invalid",Ae);AG()}};var AO=function(Ac,Ae){var Ad=videoegg.PluginRegistry.locate(Ae,"custom");if(Ad==null){Ad=videoegg.PluginRegistry.locate("videoegg.displayunit","DisplayUnit")}videoegg.PluginRegistry.unregister(Ae,"default");K(Ac,Ad);Ac.identifier="default";Ac.type=Ae;Ac.prototype.supr=Ad;videoegg.PluginRegistry.register(Ac)};var AT=function(){var Ad=document.createElement("div");var Ac=false;try{Ad=document.body.insertBefore(Ad,document.body.firstChild);Ad.style.position="fixed";Ad.style.top="-10%";Ad.style.left="-10%";if(Ad.offsetLeft<0&&Ad.offsetTop<0){Ac=true}}finally{document.body.removeChild(Ad)}return Ac};F.prototype.takeover=function(){var Ad=Ab.getDisplayContainers();for(var Ac in Ad){if(typeof (Ad[Ac]._impl)!="undefined"&&typeof (Ad[Ac]._impl.showTakeover)=="function"){Ad[Ac]._impl.showTakeover()}}};if(typeof (AH.eapv)=="undefined"){AH.eapv=EAP_VERSION}if(typeof (AH.version)=="undefined"){AH.version=q.ADMANAGER_VERSION}if(typeof (AH.modelLoader)=="undefined"){AH.modelLoader="ModelLoader"}if(typeof (AH.publisher)!="undefined"){var AJ=AQ[AH.publisher.toLowerCase()];if(AJ!=null){for(var AU in AJ){if(AU=="url"){if(typeof (AH.url)=="undefined"){AH[AU]=AJ[AU]}}else{AH[AU]=AJ[AU]}}}}if(typeof (AH.takeover)!="undefined"){AO(AH.takeover,"videoegg.displayunit.takeover")}if(typeof (AH.takeoverAction)!="undefined"){AO(AH.takeoverAction,"videoegg.takeover.actions.transition");AO(AH.takeoverAction,"videoegg.takeover.banner.actions.transition")}var AB=videoegg.PluginRegistry.locate("videoegg.displayunit.takeover","default");var AZ=AB.prototype.getDimensions.call({_du:z,_domUtilities:z});e("AdManager::init overlay dim = [w:"+AZ.width+", h:"+AZ.height+"]");if(((AZ.width<AK.width)||(AZ.height<AK.height))&&!AH.iframeEnabled){e("Going into error mode, viewport size is less than minimum display size.");AH.expandable="0"}else{AH.expandable="1"}AH.takeoverWidth=AZ.width;AH.takeoverHeight=AZ.height;if(!AH.publisher){e("Error!  Missing required parameter: publisher");AV=true;AD=1}if(!AH.width&&typeof (AH.placement)=="undefined"){e("Error!  Missing required parameter: width");AV=true;AD=2}if(!AH.height&&typeof (AH.placement)=="undefined"){e("Error!  Missing required parameter: height");AV=true;AD=3}if(typeof (AH.placement)!="undefined"&&!AT()){e("Error! Browser does not support the css position fixed");AV=true;AD=4}if((AH.height&&AH.width)&&typeof (AH.placement)=="undefined"){var AR=["728x90","616x80","616x70","300x250","300x50","180x150","160x600","125x125"].join(" ");var AP=Aa.width+"x"+AH.height;if(AR.indexOf(AP)<0){e("Error!  Invalid parameters: "+AP+" is not a supported ad size");AV=true;AD=5}}if(!AH.site){e("Error!  Missing required parameter: site");AV=true;AD=6}if(!AH.area){e("Error!  Missing required parameter: area");AV=true;AD=7}if(q.flash<AL){e("Error!  Flash version must be 9 or above. Detected Flash version is "+q.flash);AV=true;AD=8}e("AdManager::init: _config['url''] = "+AH.url);if((AH.url==null)||(typeof (AH.url)=="undefined")||(AH.url.length==0)||((typeof (AH.CCID)!="undefined"))){AH.url=AI}else{var AM={};AM.rid=AY;if(typeof (AH.site)!="undefined"){AM.site=AH.site}if(typeof (AH.area)!="undefined"){AM.area=AH.area}if(typeof (AH.channel)!="undefined"){AM.channel=AH.channel}AM.isFBML=(q.PLATFORM=="fbml");if(typeof (AH.va)!="undefined"){AM.va=AH.va}if(typeof (AH.vg)!="undefined"){AM.vg=AH.vg}if(typeof (AH.vgi)!="undefined"){AM.vgi=AH.vgi}if(typeof (AH.vai)!="undefined"){AM.vai=AH.vai}if(typeof (AH.CCID)!="undefined"){AM.ccid=AH.CCID}if(typeof (AH.publisher)!="undefined"){AM.pb=AH.publisher}AM.expandable=AH.expandable;if(!AH.placement){AM.dim=AH.width+"x"+AH.height}AM.eapVersion=EAP_VERSION;var AC=new Y();AH.url=AC.replaceTokens(AH.url,AM);e("AdMananger::replaced config.url = "+AH.url)}e("AdManager::init: _config['url''] 2 = "+AH.url);e("element is null "+(AH.parentElement==null));e("element type is "+typeof (AH.parentElement));e("element type is undefined? "+(typeof (AH.parentElement)=="undefined"));if((AH.parentElement==null)&&(typeof (AH.parentElement)=="undefined")){e("embedding");AN(AH.width,AH.height)}else{if(typeof (AH.parentElement)!="string"){AH.parentElement=z.getElementId(AH.parentElement)}AE(AH.width,AH.height,AH.parentElement)}AF()};var U=function(){this.base="http://beacon.videoegg.com/"};U.prototype.send=function(AB,AC){var AA=this.base+AB+"?";var AE="";for(var AD in AC){AE+=(AE.length>0?"&":"");AE+=AD+"="+escape(AC[AD])}AA+=AE;this.sendPlatform(AA);this.sendToQA(AA)};U.prototype.sendToQA=function(AB){try{VE_beaconLog(AB)}catch(AA){}};U.prototype.sendPlatform=function(AA){e("Beacon_base.prototype.sendPlatform::sending beacon = "+AA)};function w(){this._listeners=[]}w.prototype.addEventListener=function(AA){if(this._listeners==null){this._listeners=[]}if(this._findListener(AA)==null){this._listeners.push(AA)}};w.prototype.dispatchEvent=function(AB,AC){if(this._listeners==null){this._listeners=[]}for(var AA=0;AA<this._listeners.length;AA++){if(this._listeners[AA][AB]&&typeof (this._listeners[AA][AB])=="function"){this._listeners[AA][AB].call(this._listeners[AA],AC)}}};w.prototype.removeListener=function(AB){var AA=this._findListener(AB);if(AA!=null){this._listeners.splice(AA,1)}};w.prototype._findListener=function(AB){for(var AA=0;AA<this._listeners.length;AA++){if(this._listeners[AA]==AB){return AA}}return null};var T={};T.identifier="IDGenerator";T.type="videoegg.utilites";videoegg.PluginRegistry.register(T);T._generateGUID=function(){var AA=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};return(AA()+AA()+"_"+AA()+"_"+AA()+"_"+AA()+"_"+AA()+AA()+AA()).toUpperCase()};T._generateRID=function(){var AB=new Date();var AA=AB.getTime();var AE=AA.toString(16);var AD=32-AE.length;for(var AC=0;AC<AD;AC++){AE+=Math.floor(Math.random()*16).toString(16)}return AE};var V={};var l=function(AD,AC,AB){this.callback=AD;this.timeout=AC;this.lasttimeout=(new Date()).getTime();this.once=AB;var AA=this;this.delegate=function(AG){var AE=(new Date()).getTime();var AF=AE-AA.lasttimeout;if(AE-AA.lasttimeout>=AA.timeout){try{AA.callback.call()}catch(AG){e("timer callback failed: "+AG.toString())}AA.lasttimeout=AE;if(AA.once){AA.clear()}}};z.addMouseListener("mousemove",this.delegate);this.id=setInterval(this.delegate,AC);V[this.id]=this};l.prototype.clear=function(){if(V[this.id]){clearInterval(this.id);z.removeMouseListener("mousemove",this.delegate);delete V[this.id]}};function f(AC,AB){var AA=new l(AC,AB,false);return AA.id}function s(AC,AB){var AA=new l(AC,AB,true);return AA.id}function H(AC){try{var AA=V[AC];AA.clear()}catch(AB){}}var C=H;videoegg.VE_setInterval=f;videoegg.VE_setTimeout=s;videoegg.VE_clearInterval=H;videoegg.VE_clearTimeout=C;var Y=function(){this.randomTokens={};this.MAX_RAND_TOKEN=99999999};Y.prototype.replaceTokens=function(AH,AG,AF){var AD,AE;for(var AA in AG){AE="\\$"+AA+"\\$";AD=new RegExp(AE,"g");AH=AH.replace(AD,AG[AA],"g")}AD=new RegExp("\\$(VE_RAND[A-Za-z0-9_]*)\\$","g");var AC=AH.match(AD);if(AC!=null){for(var AB=0;AB<AC.length;AB++){AE=AC[AB].replace(/\$/g,"\\$");AD=new RegExp(AE,"g");if(typeof (this.randomTokens[AC[AB]])=="undefined"){this.randomTokens[AC[AB]]=Math.floor(Math.random()*this.MAX_RAND_TOKEN)}AH=AH.replace(AD,this.randomTokens[AC[AB]])}}if(AF){var AD=new RegExp("\\$[A-Za-z0-9_]+\\$","g");AH=AH.replace(AD,"")}AD=new RegExp("\\$\\$","g");AH=AH.replace(AD,"$");return AH};var n=function(){var AB={};var AA=[];var AC=new Y();n.prototype.getInvite=function(){return AB.invite};n.prototype.getTakeover=function(){return AB.takeover};n.prototype.getType=function(){return AB.type};n.prototype.getCCID=function(){return AB.ccid};n.prototype.getFullData=function(){return AB};n.prototype.getAssets=function(){return AA};n.prototype.setContents=function(AE){e("AdModel.setContents::",AE);var AD={eapVersion:EAP_VERSION,platform:q.PLATFORM};AA=m.findAssets(m.toJSON(AE.takeover));AB=AE}};var Q=function(AD,AC){w.call(this);var AE;var AA;var AB="http://notready.ru";this._config=AD;this._RID=AC;var AF="videoegg.adloader.callback";e("AdLoader::init config width = "+AD.width);e("AdLoader::init config height = "+AD.height);this.adLoaded=function(AI){e("AdLoader::adLoaded");var AK=new n();AK.setContents(AI);if(AD.loops!=undefined){var AG=AK.getInvite();AG.rawData=AG.rawData.replace(/<loop>.*<\/loop>/g,"<loop>"+AD.loops+"</loop>");e("invite rawData: "+AG.rawData);try{if(AG.content){for(var AH=0;AH<AG.content.children.length;AH++){AG.content.children[AH].video.loop=AD.loops}}}catch(AJ){e("Can not override loop count")}}this._owner.dispatchEvent("onAdLoadComplete",AK);z.destroyElement(this._owner._element)};this.adLoadError=function(){this._owner.dispatchEvent("onAdLoadError")};this.trigger=function(){e("AdLoader::trigger");if(AD.adData){this._owner=this;this.adLoaded(AD.adData)}else{var AG=(AD.url!=null)?AD.url:AB;e("AdLoader::trigger: using url = "+AG);(AD.unitId==null)?AE=T._generateGUID():AE=AD.unitId;AA=z.createElement("VE_AL_"+AE,"div");if(videoegg.adloader==null){videoegg.adloader={}}if(videoegg.adloader.callback==null){videoegg.adloader.callback={}}videoegg.adloader.callback["AL_CB_"+AE]={onSuccess:this.adLoaded,onError:this.adLoadError,_owner:this};var AH={};AH.id="VE_AL_SWF_"+AE;AH.src="http://core.videoegg.com/eap/"+EAP_VERSION+"/"+q.PLATFORM+"/swf/"+AD.modelLoader+".swf";AH.width=1;AH.height=1;AH.flashvars={url:AG,successCallback:AF+".AL_CB_"+AE+".onSuccess",failureCallback:AF+".AL_CB_"+AE+".onError"};AH.position=AD.placement?true:false;z.createSWF(AA,AH,null,AE,this._config,this._RID);z.setStyle("position","fixed",AA);z.setStyle("zIndex",z.getNextHighestZIndex(),AA);z.setStyle("top","2px",AA);z.setStyle("left","2px",AA);z.insertStart(z.getRootElement(),AA)}};this.loadAd=function(AI){var AH=(AI.url!=null)?AI.url:AB;var AG=document["VE_AL_SWF_"+AE];AG.loadModel({url:AH,successCallback:AF+".AL_CB_"+AE+".onSuccess",failureCallback:AF+".AL_CB_"+AE+".onError",config:this._config})};this.destroy=function(){z.destroyElement("VE_AL_"+AE,"div")}};y(Q,w);y(Q,W);var v=function(){var AA=navigator.userAgent;x.call(this);this.firefox=(AA.match(/firefox/i)!=null);this.ie=(AA.match(/msie/i)!=null);this.safari=(navigator.userAgent.match(/(safari|webkit)/i)!=null);this.mac=(navigator.userAgent.match(/(macintosh|mac os x)/i)!=null);this.win=(navigator.userAgent.match(/(windows|\.net)/i)!=null);this.flashRevision=0;this.flashMinor=0;this.flash=N.call(this);this.flashStr=this.flash+"."+this.flashMinor+"."+this.flashRevision};var N=function(){var AF=0;if(this.ie){for(var AB=11;AB>=8;AB--){try{var AD=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+AB);if(typeof (AD)=="object"){var AA=AD.GetVariable("$version").split(",");this.flashMinor=parseInt(AA[1]);this.flashRevision=parseInt(AA[2]);AD="";AF=AB;break}}catch(AH){}}}else{if(navigator.plugins){navigator.plugins.refresh(false);for(var AE=0;AE<navigator.plugins.length;AE++){var AG=navigator.plugins[AE];var AC=AG.description.match(/^shockwave flash (\d+)\.(\d+) *r(\d+)/i);if(AC){AF=parseInt(AC[1],10);this.flashMinor=parseInt(AC[2],10);this.flashRevision=parseInt(AC[3],10);break}}}}return AF};y(v,x);var q=new v();var c=F;var h=function(AE,AB,AC){var AG="VE_inivitation_"+T._generateGUID();if(AC==null){var AD={id:AG,"class":AG,width:AE,height:AB,style:"margin:auto;text-align:center;"};var AF="<div";for(var AA in AD){AF+=" "+AA+'="'+AD[AA]+'"'}AF+="></div>";document.write(AF)}else{AG=AC}return AG};videoegg.AdManager=F;var b=function(){U.call(this)};b.prototype.sendPlatform=function(AB){U.prototype.sendPlatform.call(this,AB);var AA=z.createElement("ve_img_beacon_"+T._generateGUID(),"img");z.setSource(AB,AA);delete AA};y(b,U);var j=function(){};j.identifier="AnimationUtilities";j.type="videoegg.utilities";videoegg.PluginRegistry.register(j);j.prototype.animate=function(AG,AB,AA,AF,AE){try{if(!VE_jQuery.isFunction(AE)){AE=null}var AC=AG;if(typeof (AG)=="string"){AC=VE_$("#"+AG)}else{AC=AG}if(AA){switch(AA.toLowerCase()){case"easein":AA="easeInQuad";break;case"easeout":AA="easeOutQuad";break;case"easeinout":AA="easeInOutQuad";break}}VE_$(AC).animate(AB,AF,AA,AE)}catch(AD){e("Error completing jQuery animation: "+AD)}};var z={};z.identifier="DOMUtilities";z.type="videoegg.utilities";videoegg.PluginRegistry.register(z);z.isDOMReady=false;z.startTime=(new Date()).getTime();z.hiddenSelects=[];z.hiddenFrames=[];z.documentReady=function(){};VE_$(document).ready(function(){z.documentReady()});VE_$(document).ready(function(){z.isDOMReady=true});z.createElement=function(AC,AB){var AA=document.createElement(AB);AA.id=AC;return AA};z.createIframe=function(AC,AA){var AB=VE_$("<iframe noresize scrolling='no' hspace='0' vspace='0' frameborder='0' marginheight='0' marginwidth='0' allowTransparency='true'/></iframe>").attr("id",AC)[0];this.setFrameBorder(0,AB);AB.scrolling="no";this.addElement(AA,AB);return AB};z.getTagName=function(AA){return AA.tagName};z.getElementsByClassName=function(AA){return VE_$("."+AA).get()};z.getElementsByTagName=function(AA){return VE_$(AA).get()};z.destroyElement=function(AA){if(typeof (AA)=="string"){elem=VE_$("#"+AA)}else{elem=AA}VE_$(elem).remove()};z.insertStart=function(AA,AB){return AA.insertBefore(AB,AA.firstChild)};z.addElement=function(AB,AA){if(typeof (AB)=="string"){VE_$("#"+AB).append(AA)}else{VE_$(AB).append(AA)}};z.getElementById=function(AA){return VE_$("#"+AA)[0]};z.getElementId=function(AA){return VE_$(AA).attr("id")};z.getViewportDimension=function(){return({width:VE_$(window).width(),height:VE_$(window).height()})};z.getPageDimension=function(){return({width:VE_$(document).width(),height:VE_$(document).height()})};z.getScrollbarWidth=function(){return 0};z.getDimension=function(AF){var AC=0;var AE=0;var AA=VE_$(AF).css("width");var AB=VE_$(AF).css("height");var AG=/(px)/;var AD=AA.replace(AG,"");if(AA.match(AG)){AC=parseInt(AA.replace(AG,""))}if(AB.match(AG)){AE=parseInt(AB.replace(AG,""))}return({width:AC,height:AE})};z.getOffset=function(AB){var AA=(AB==null)?document:AB;if(typeof (AA)=="string"){AA=VE_$("#"+AB)}return VE_$(AA).offset()};z.getScrollOffset=function(AB){var AA=(AB==null)?document:AB;if(typeof (AA)=="string"){AA=VE_$("#"+AB)}return{scrollTop:VE_$(AA).scrollTop(),scrollLeft:VE_$(AA).scrollLeft()}};z.setSource=function(AB,AA){switch(AA.tagName){case ("A"):AA.href=AB;break;default:AA.src=AB;break}};z.getSource=function(AA){switch(AA.tagName){case ("A"):return AA.href;break;case ("IFRAME"):return AA.contentWindow.location;break;default:return AA.src;break}};z.getHash=function(AA){if(AA==null){return document.window.location.hash}return AA.hash};z.setHash=function(AB,AA){if(AA==null){AA=window}if(!q.ie){AA.location.hash=AB}else{AA.location.href=AA.location.href.substr(0,AA.location.href.indexOf("#"))+"#"+AB}};z.setType=function(AB,AA){if(q.ie){}else{AA.type=AB}};z.setStyle=function(AA,AC,AB){VE_$(AB).css(AA,AC)};z.setStyles=function(AB,AC){for(var AA in AC){VE_$(AB).css(AA,AC[AA])}};z.getStyle=function(AA,AB){return VE_$(AB).css(AA)};z.addEventListener=function(AC,AA,AB){VE_$(AB)[AC](AA)};z.removeEventListener=function(AC,AA,AB){VE_$(AB).unbind(AC,AA)};z.addMouseListener=function(AB,AA){z.addEventListener(AB,AA,document)};z.removeMouseListener=function(AB,AA){z.removeEventListener(AB,AA,document)};z.addResizeListener=function(AA){z.addEventListener("resize",AA,window)};z.removeResizeListener=function(AA){z.removeEventListener("resize",AA,window)};z.setEmbedVisibility=function(AA,AB){if(AB){VE_$("object,embed").css("visibility",(AA?"visible":"hidden")).filter(function(AC){for(var AD=0;AD<AB.length;AD++){if(VE_$(this).attr("id")==VE_$(AB[AD]).attr("id")){return false}else{return true}}}).css("visibility",(AA?"hidden":"visible"))}else{VE_$("object,embed").css("visibility",(AA?"hidden":"visible"))}};z.setSelectVisibility=function(AB){if(AB){z.hiddenSelects=[];VE_$("select").filter(function(AC){if(!(VE_$(this).hasClass("veignore"))){z.hiddenSelects.push(this);return true}}).css("visibility","hidden")}else{for(var AA=0;AA<z.hiddenSelects.length;AA++){VE_$(z.hiddenSelects[AA]).css("visibility","visible")}}};z.setIframeVisibility=function(AB){if(AB){z.hiddenFrames=[];VE_$("iframe").filter(function(AC){if(!(VE_$(this).hasClass("veignore"))){z.hiddenFrames.push(this);return true}}).css("visibility","hidden")}else{for(var AA=0;AA<z.hiddenFrames.length;AA++){VE_$(z.hiddenFrames[AA]).css("visibility","visible")}}};z.setHtml=function(AB,AA){VE_$(AB).html(AA)};z.setText=function(AB,AA){VE_$(AB).text(AA)};z.addDocumentReadyListener=function(AB,AA){VE_$(document).ready(function(){AA.call(AB)})};z.createSWF=function(AH,AE,AL,AA,AC,AG,AB,AF){e("DOMUtilities::createSWF");var AI="System.useCodePage=true";if(AA==null){throw"DOMUtilities.createSWF ::A container id must be provided"}if(AC==null){alert("DOMUtilities.createSWF ::A config must be provided");throw"DOMUtilities.createSWF ::A config must be provided"}if(AG==null){throw"DOMUtilities.createSWF ::A RID must be provided"}if(AE.width>5000){AE.width=5000}if(AE.height>32000){AE.height=32000}if(AE.wmode==null){AE.wmode="transparent"}if(AE.scale==null){AE.scale="noscale"}if(AE.flashvars==null){}else{if(typeof (AE.flashvars)=="object"){for(var AD in AE.flashvars){AI+=(AI.length>0?"&":"");AI+=escape(AD)+"="+escape(AE.flashvars[AD])}}else{AI=AE.flashvars}}AI+="&tStart="+new Date().getTime();if((AC!=null)&&(typeof (AC)=="object")){if(AC.adData){AC.adData={}}AI+=(AI.length>0?"&":"");var AJ=m.toJSON(AC);AI+=escape("config")+"="+escape(AJ)}if((AL!=null)&&(typeof (AL)=="object")){var AK={rawData:AL.rawData};AI+=(AI.length>0?"&":"");var AJ=m.toJSON(AK);AI+=escape("adData")+"="+escape(AJ)}AI+=(AI.length>0?"&":"");AI+=escape("unitId")+"="+escape(AA);AI+=(AI.length>0?"&":"");if(AC.iframeEnabled){AI+=escape("platform")+"="+escape("iframe")}else{AI+=escape("platform")+"="+escape(q.PLATFORM)}AI+=(AI.length>0?"&":"");AI+=escape("RID")+"="+escape(AG);AI+="&position="+AE.position;if(AE.inviteOffset!=null){AI+="&ix="+AE.inviteOffset.left;AI+="&iy="+AE.inviteOffset.top}var AM='<embed src="%MOVIE" quality="high" bgcolor="#ffffff" wmode="%WMODE" name="%ID" id="%ID" width="%WIDTH" height="%HEIGHT" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="%FLASHVARS" scale="%SCALE"></embed>';if(q.ie){AM='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="%ID" id="%ID" width="%WIDTH" height="%HEIGHT" align="middle" ><param name="allowscriptaccess" value="always" />'+((!AF)?'<param name="flashvars" value="%FLASHVARS" />':"")+'<param name="wmode" value="%WMODE"/><param name="quality" value="high"/><param name="scale" value="%SCALE"/><param name="bgcolor" value="#ffffff"/><param name="movie" value="%MOVIE'+((!AF)?"":"?%FLASHVARS")+'" /></object>'}AM=AM.replace(/%MOVIE/g,AE.src);AM=AM.replace(/%ID/g,AE.id);if(AE.position){AM=AM.replace(/%WIDTH/g,"100%");AM=AM.replace(/%HEIGHT/g,"40px")}else{AM=AM.replace(/%WIDTH/g,AE.width);AM=AM.replace(/%HEIGHT/g,AE.height)}AM=AM.replace(/%WMODE/g,AE.wmode);AM=AM.replace(/%SCALE/g,AE.scale);AM=AM.replace(/%FLASHVARS/g,AI);if(AC.iframeEnabled&&q.ie&&(((q.flash==9)&&(q.flashRevision>=115))||(q.flash>9))){VE_$(AH)[0].innerHTML=VE_$(AH)[0].innerHTML+AM}else{VE_$(AM).appendTo(AH)}return this.getElementById(AE.id)};z.getNextHighestZIndex=function(){var AA=0;VE_$("*").each(function(){if(VE_$(this).css("z-index")){if((!isNaN(VE_$(this).css("z-index")))&&(VE_$(this).css("z-index")>AA)){AA=Number(VE_$(this).css("z-index"))+1}}});e("DOMUtilities.getNextHighestZIndex::"+AA);return AA};z.getRootElement=function(){return VE_$("body")[0]};z.getURL=function(){var AB="";try{AB=document.URL}catch(AA){e("DOMUtilities.getNextHighestZIndex::Error getting document location - "+AA)}return AB};z.setFrameBorder=function(AB,AA){AA.frameBorder=AB};z.getId=function(AA){return AA.id};z.setId=function(AA,AB){AA.id=AB};z.isInIframe=function(){if((typeof (window.parent)!="undefined")&&(window!=window.parent)){if(window.parent.frames.length>0){return true}}return false};z.getQueryStringParameters=function(){var AA=window.location.search;var AB={};if((AA!=null)&&(AA.length>0)){if(AA.indexOf("?")==0){AA=AA.substr(1,AA.length)}var AD=AA.split("&");for(var AC=0;AC<AD.length;AC++){var AE=AD[AC].split("=");AB[AE[0]]=AE[1]}}return AB};z.insertBodyStart=function(AB,AD){if(document.body==null||typeof (document.body)!="object"){var AA=this;var AC=function(){AA.insertBodyStart(AB,AD)};setTimeout(AC,30);return }else{document.body.insertBefore(AB,document.body.firstChild);if(typeof (AD)=="function"){AD()}}};var m={};m.identifier="DataUtilities";m.type="videoegg.utilities";videoegg.PluginRegistry.register(m);m.toJSON=function(AA){return VE_$.toJSON(AA)};m.fromJSON=function(AA){return VE_$.parseJSON(AA)};m.findAssets=function(AF){var AA=[];var AC=0;var AD=/(http|https):\/\/[A-Za-z0-9_.\/]+(\b|$)(.)(png|jpg|jpeg|swf|gif|mp3){1}/gim;var AB;while((AB=AD.exec(AF))!=null){var AE=true&&(AB[0].indexOf("AdManager")==-1);for(var AG=0;AG<AA.length;AG++){if(AA[AG].toLowerCase()==AB[0].toLowerCase()){AE=false;break}}if(AE){AA.push(AB[0])}}return AA};var M=function(){w.call(this)};M.identifier="DisplayUnit";M.type="videoegg.displayunit";M.prototype.init=function(AD,AC,AB,AA){this._id=AC;this._config=AB;this._RID=AA;this._du=z;this._domUtilities=z;this._trace=e;e("DisplayUnit::init");e("DisplayUnit::init: parentId = "+AD);if(typeof (AD)=="string"){if(z.getElementById(AD)==null){throw"A valid parent element must be provided.";e("DisplayUnit::init Fatal Error, A valid parent element must be provided.")}this._parent=this._du.getElementById(AD)}else{this._parent=AD}this._width=null;this._height=null;e("DisplayUnit::init: parent tagName = "+this._du.getTagName(this._parent).toUpperCase());if(this._du.getTagName(this._parent).toUpperCase()=="IFRAME"){this._element=this._parent}else{this._element=this._du.createElement("VE_DU__"+this._id,"div");this._du.setStyle("margin","auto",this._element)}this._data=null;p.registerUnit(this);this._enabled=true};M.prototype.show=function(){e("DisplayUnit::show "+this._id);this._du.setStyle("display","block",this._element)};M.prototype.hide=function(){this._du.setStyle("display","none",this._element)};M.prototype.create=function(){e("DisplayUnit::create "+this._id);if(this._du.getTagName(this._parent).toUpperCase()!="IFRAME"){this._du.setStyle("display","none",this._element);this._du.insertStart(this._parent,this._element)}};M.prototype.destroy=function(){this._du.destroyElement(this._element)};M.prototype.onAdManagerLoaded=function(){e("DisplayUnit::onAdManagerLoaded ")};M.prototype.populate=function(AA){e("DisplayUnit::populate ");this._data=AA};M.prototype.setId=function(AA){this._id=AA};M.prototype.getId=function(){return this._id};M.prototype.getWidth=function(){return this._width};M.prototype.setWidth=function(AA){this._width=AA};M.prototype.getHeight=function(){return this._height};M.prototype.setHeight=function(AA){this._height=AA};M.prototype.setEnabledForAllContainers=function(AB){var AC=o.getAllContainers();for(var AA=0;AA<AC.length;AA++){AC[AA].enabled(AB)}};M.prototype.enabled=function(AA){this._enabled=AA};M.prototype.getDimensions=function(){return{width:this._width,height:this._height}};M.register=function(){videoegg.PluginRegistry.register(M);y(M,w)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(M.register)}else{M.register()}var X=function(){M.call(this);this._originElement=null;this._animationDuration=700;this._actionComplete=false;this._originalPageDim=null;this._cornerPos=null;var AA=this;this._resizeUpdate=function(){var AB=z.getPageDimension();if(AB.width<430){AB.width=430}if(AB.height<380){AB.height=380}z.setStyle("top","0px",AA._element);z.setStyle("left","0px",AA._element);z.setStyle("height",AB.height+"px",AA._element);z.setStyle("width",AB.width+"px",AA._element)}};X.identifier="default";X.type="videoegg.takeover.banner.actions.transition";X.prototype.create=function(){M.prototype.create.call(this);e("BannerTakeoverAction.create ()");if(this._originElement==null){this._originElement=this._du.getRootElement()}this._du.setStyles(this._element,{position:"absolute",textAlign:"left",display:"none",overflow:"hidden",margin:"0px",padding:"0px",height:this._height+"px",width:this._width+"px"});if((q.mac)&&(q.firefox)){this._du.setStyle("backgroundImage","url('http://core.videoegg.com/eap/"+EAP_VERSION+"/"+q.PLATFORM+"/media/macFFBgHack.png')",this._element);this._du.setStyle("backgroundRepeat","repeat",this._element)}else{this._du.setStyle("backgroundColor","black",this._element);this._du.setStyle("opacity",".8",this._element)}};X.prototype.show=function(){e("BannerTakeoverAction.show ()");if(this._enabled){try{var AG=this;this._du.addEventListener("mousedown",function(){AG.onMouseDown.call(AG)},this._element);this._du.addEventListener("mouseout",function(){AG.onRollOut.call(AG)},this._element);this._du.addEventListener("mouseover",function(){AG.onRollOver.call(AG)},this._element);this._originalPageDim=z.getPageDimension();var AI=this._du.getOffset(this._originElement);var AH,AD;if((AI.top+AI.left)==0){AH=this._du.getStyle("top",this._originElement);AD=this._du.getStyle("left",this._originElement)}else{AH=AI.top+"px";AD=AI.left+"px"}this._du.setStyles(this._element,{top:AH,left:AD,display:"block",zIndex:this._du.getNextHighestZIndex()-1});var AC=new j();if((!q.mac)&&(!q.firefox)){this._du.setStyle("opactity","0",this._element)}var AA=this._du.getViewportDimension();if(AA.width<430){AA.width=430}if(AA.height<380){AA.height=380}this._cornerPos=this._du.getScrollOffset();this._du.setEmbedVisibility(true,[this._originElement]);this._du.setSelectVisibility(true);this._du.setIframeVisibility(true);var AB={height:AA.height+"px",width:AA.width+"px",left:this._cornerPos.scrollLeft+"px",top:this._cornerPos.scrollTop+"px"};this._actionComplete=false;var AF=function(){AG.onAnimationComplete.call(AG)};AC.animate(this._element,AB,"easeInOut",this._animationDuration,AF)}catch(AE){e("BannerTakeoverAction:: Error during show operation: "+AE)}}};X.prototype.hide=function(){try{e("BannerTakeoverAction::hide");this._du.removeResizeListener(this._resizeUpdate);this._du.setEmbedVisibility(true,[this._originElement]);this._cornerPos=this._du.getScrollOffset();if(this._du.getStyle("top",this._element)!=this._cornerPos.scrollTop+"px"){this._du.setStyle("top",this._cornerPos.scrollTop+"px",this._element)}if(this._du.getStyle("left",this._element)!=this._cornerPos.scrollLeft+"px"){this._du.setStyle("left",this._cornerPos.scrollLeft+"px",this._element)}var AA=this;this._du.removeEventListener("mousedown",function(){AA.onMouseDown.call(AA)},this._element);this._du.removeEventListener("mousemove",function(){AA.onRollOver.call(AA)},this._element);var AD=this._du.getOffset(this._originElement);var AF,AC;if((AD.top+AD.left)==0){AF=this._du.getStyle("top",this._originElement);AC=this._du.getStyle("left",this._originElement)}else{AF=AD.top+"px";AC=AD.left+"px"}var AA=this;var AE={height:this._height+"px",width:this._width+"px",left:AC,top:AF};var AH=new j();var AB=function(){AA._du.setStyle("display","none",AA._element);AA.onHideComplete.call(AA)};AH.animate(this._element,AE,"easeInOut",this._animationDuration,AB)}catch(AG){e("BannerTakeoverAction:: Error during hide operation: "+AG);alert("TakeoverAction error: "+AG.message)}};X.prototype.populate=function(AA){try{M.prototype.populate.call(this)}catch(AB){e("BannerTakeoverAction::Error during find operation: "+AB)}};X.prototype.onShowComplete=function(AA){this._resizeUpdate();this._du.addResizeListener(this._resizeUpdate);this._du.setEmbedVisibility(true);this.dispatchEvent("onShowComplete",this)};X.prototype.onHideComplete=function(AB){this._du.setEmbedVisibility(false);this._du.setSelectVisibility(false);this._du.setIframeVisibility(false);this._du.setStyles(this._element,{top:"0px",left:"0px",height:"100%",width:"100%",visibility:"hidden",display:"block"});var AA=this._du.getOffset(this._originElement);this._du.setStyles(this._element,{top:AA.top+"px",left:AA.left+"px",height:this._height+"px",width:this._width+"px",visibility:"visible",display:"none"});this.dispatchEvent("onHideComplete",this)};X.prototype.onAnimationComplete=function(){if((this._du.getStyle("top",this._element)==this._cornerPos.scrollTop+"px")&&(this._du.getStyle("left",this._element)==this._cornerPos.scrollLeft+"px")&&(!this._actionComplete)){this._actionComplete=true;this.onShowComplete()}};X.prototype.onRollOver=function(){this.dispatchEvent("onRollOver",this)};X.prototype.onRollOut=function(){this.dispatchEvent("onRollOut",this)};X.prototype.onMouseDown=function(){this.dispatchEvent("onMouseDown",this)};X.prototype.setOriginElement=function(AA){this._originElement=AA};X.prototype.getOriginElement=function(){return this._originElement};X.prototype.getDimensions=function(){var AA=this._du.getDimension(this._originElement);return AA};X.register=function(){videoegg.PluginRegistry.register(X);y(X,M)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(X.register)}else{X.register()}var u=function(){M.call(this);this._takeoverAction=null;this._takeover=null;this._swfElement=null;this._timeout=-1;this._isVisibleTimout=-1;this._originalElement=null;this._preloader=null;this._hiddenElements=null;this._adSpacer=null;this._TAKEOVER_PACKAGE="videoegg.takeover.banner.actions.transition"};u.identifier="banner";u.type="videoegg.displayunit";u.prototype.onAdManagerLoaded=function(){e("Banner::onAdManagerLoaded");if(this._isVisibleTimout!=-1){H(this._isVisibleTimout);this._isVisibleTimout=-1}};u.prototype.show=function(){if(this._enabled){e("Banner.show()");M.prototype.show.call(this);this._swfElement=this._du.createSWF(this._element,this._swf,this._data,this._id,this._config,this._RID);e("Banner.show() :: Setting origin and offset values");this._takeoverAction.setOriginElement(this._swfElement);e("Banner.show() :: Values set");var AA=this;this._hiddenElements=z.getElementsByClassName("veignore");this._isVisibleTimout=f(function(){AA._du.setStyle("visibility","visible",AA._swfElement)},100);e("Banner.show() :: Calling onShowComplete()");this.onShowComplete()}};u.prototype.hide=function(){e("Banner::hide");M.prototype.hide.call(this);if(this._isVisibleTimout!=-1){H(this._isVisibleTimout);this._isVisibleTimout=-1}this.onHideComplete()};u.prototype.create=function(){M.prototype.create.call(this);e("Banner::create");try{if(!this._config.placement){this._du.setStyles(this._element,{margin:"auto",textAlign:"center",padding:"0px",width:"100%"})}else{this._du.setStyles(this._element,{position:"fixed",top:"0",left:"0",height:"40px",width:"100%",padding:"0",margin:"0",zIndex:this._du.getNextHighestZIndex()+1});this._adSpacer=this._du.createElement("ve_spacer","div");this._du.setStyles(this._adSpacer,{height:"40px"});this._du.insertBodyStart(this._adSpacer)}if(!this._config.iframeEnabled){var AA=this._du.createElement("VE_IP_"+T._generateGUID(),"div");this._du.addElement(this._element,AA);this._du.setStyle("width","100%",AA);this._du.setStyle("textAlign","center",AA);var AC=this._du.createElement("VE_IL_"+T._generateGUID(),"div");this._du.addElement(AA,AC);if(!this._config.placement){this._du.setStyle("width",this._config.width+"px",AC);this._du.setStyle("height",this._config.height+"px",AC);this._du.setStyle("margin","auto",AC)}else{this._du.setStyle("width","100%",AC);this._du.setStyle("height","40px",AC);this._du.setStyle("margin","0",AC);this._du.setStyle("padding","0",AC);this._du.setStyle("zIndex",this._du.getNextHighestZIndex()+1,AC)}this._du.setStyle("display","block",this._element);this._du.setStyle("display","none",AC);this._originalElement=this._element;this._element=AC}if(this._takeoverAction!=null){this._takeoverAction.create()}if(this._takeover!=null){this._takeover.create()}}catch(AB){e("Banner::Error during create: "+AB)}};u.prototype.destroy=function(){e("Banner.destroy");M.prototype.destroy.call(this);this._du.destroyElement(this._originalElement);if(this._isVisibleTimout!=-1){H(this._isVisibleTimout);this._isVisibleTimout=-1}this._takeoverAction.destroy();this._takeover.destroy()};u.prototype.populate=function(AC){try{M.prototype.populate.call(this);if(this._width==null){this._width=616}if(this._height==null){this._height=70}this._data=AC.getInvite();var AB=AC.getTakeover();this._swf={};this._swf.id=T._generateGUID();this._swf.src=this._data.url;this._swf.width=this._width;this._swf.height=this._height;if(AB!=null){var AE=videoegg.PluginRegistry.locate("videoegg.takeover.banner.actions.transition",AB.transitionType);if(typeof (AE)!=undefined){this._takeoverAction=new AE()}else{AE=videoegg.PluginRegistry.locate("videoegg.takeover.banner.actions.transition","default");this._takeoverAction=new AE()}this._takeoverAction.init(this._du.getRootElement(),T._generateGUID(),this._config,this._RID);this._du.setStyle("width",this._width+"px",this._element);this._du.setStyle("height",this._height+"px",this._element);this._takeoverAction.setOriginElement(this._element);this._takeoverAction.populate(AC);var AA=this._takeoverAction.getDimensions();this._takeoverAction.setWidth(AA.width);this._takeoverAction.setHeight(AA.height);this._takeoverAction.addEventListener(this);this._swf={};this._swf.id="VE_INV_"+T._generateGUID();this._swf.src=this._data.url;this._swf.width=this._width;this._swf.height=this._height;this._swf.position=this._config.placement?true:false;AE=videoegg.PluginRegistry.locate("videoegg.displayunit.takeover","default");this._takeover=new AE();this._takeover.init(this._du.getRootElement(),T._generateGUID(),this._config,this._RID);this._takeover.setOriginElement(this._element);this._takeover.populate(AC);AA=this._takeover.getDimensions();this._takeover.setWidth(AA.width);this._takeover.setHeight(AA.height);this._takeover.addEventListener(this)}}catch(AD){e("Banner::Error during populate: "+AD)}};u.prototype.onShowComplete=function(AA){if(AA==this._takeoverAction){this._takeover.show()}this.dispatchEvent("onShowComplete",this)};u.prototype.onHideComplete=function(AA){e("Banner::onHideComplete");if(AA==this._takeover){this.setEnabledForAllContainers(true);var AB=(this._hiddenElements)?this._hiddenElements.length:0;for(i=0;i<AB;i++){z.setStyle("display","block",this._hiddenElements[i])}this._takeoverAction.hide()}};u.prototype.onRollOver=function(AA){if(AA==this._takeoverAction){this._takeover.onCloseRollover()}};u.prototype.onRollOut=function(AA){if(AA==this._takeoverAction){this._takeover.onCloseRollout()}};u.prototype.onMouseDown=function(AA){if(AA==this._takeoverAction){this._takeover.hide()}};u.prototype.showTakeover=function(){e("Banner::showTakeover");if(this._enabled){if(this._isVisibleTimout!=-1){H(this._isVisibleTimout);this._isVisibleTimout=-1}this.setEnabledForAllContainers(false);this._takeoverAction.show();z.destroyElement(this._preloader);var AA=(this._hiddenElements)?this._hiddenElements.length:0;for(i=0;i<AA;i++){z.setStyle("display","none",this._hiddenElements[i])}}};u.prototype.hideInvite=function(){e("Banner::hideInvite()");if(typeof (this._config.placement)!="undefined"){e("Banner::hideInvite() - hiding twig ad.");this._du.setStyle("display","none",this._swfElement)}};u.register=function(){videoegg.PluginRegistry.register(u);y(u,M)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(u.register)}else{u.register()}var g=[];var O=function(){e("DisplayManager::init");e("DisplayManager::EAP_VERSION = "+EAP_VERSION);this._isHostReady=true;this._isDataSet=false;this._displayList={};this._data=null;this._preloader;this._render();g.push(this)};O.prototype.preloadAssets=function(AB){e("DisplayManager::preloadingAssets");var AC=T._generateGUID();this._preloader=z.createElement("VE_PL_"+AC,"div");var AA={};AA.id="VE_PL_SWF_"+AC;AA.src="http://core.videoegg.com/eap/"+EAP_VERSION+"/"+q.PLATFORM+"/swf/AssetPreloader.swf";AA.width=1;AA.height=1;AA.flashvars={assetList:m.toJSON(AB)};z.createSWF(this._preloader,AA,null,AC,{},AC);z.setStyle("position","fixed",this._preloader);z.setStyle("zIndex",z.getNextHighestZIndex(),this._preloader);z.setStyle("top","0px",this._preloader);z.setStyle("left","0px",this._preloader);z.insertStart(z.getRootElement(),this._preloader)};O.prototype.setData=function(AB,AA){e("DisplayManager::setData");this._data=AB;this._isDataSet=true;if(AA){this.preloadAssets(AB.getAssets())}this._render()};O.prototype.addContainer=function(AA){if(this._displayList[AA.getId()]==null){var AB=(AA.getConfig()["unitId"]==null)?T._generateGUID():AA.getConfig()["unitId"];this._displayList[AB]=AA;AA._owner_=this;AA.setId(AB)}else{throw"DisplayContainer "+AA.getId()+" has already been added to the display list. DisplayContainers can only be added once."}};O.prototype.getContainer=function(AA){return this._displayList[AA]};O.prototype.getDisplayContainers=function(){return this._displayList};O.prototype.clearDisplayList=function(){this._displayList={}};O.prototype.destroy=function(){for(var AA in this._displayList){var AB=this._displayList[AA];AB.destroy()}this.clearDisplayList()};O.prototype._render=function(){e("DisplayManager::_render");for(var AA in this._displayList){var AB=this._displayList[AA];AB.populate(this._data);AB.create();AB.show();AB.getUnit()._preloader=this._preloader}};var o={};o.locate=function(AD){for(var AB=0;AB<g.length;AB++){var AA=g[AB];var AC=AA.getUnit(AD);if(AC!=null){return AC}}return null};o.getAllContainers=function(){var AC=[];for(var AB=0;AB<g.length;AB++){var AD=g[AB].getDisplayContainers();for(var AA in AD){AC.push(AD[AA])}}return AC};var p={};var B=[];p.registerUnit=function(AA){if(B[AA.getId()]==null){e("UnitManager::Registering unit with id="+AA.getId(),AA);B[AA.getId()]=AA}else{throw"UnitManager::DisplayUnit "+AA.getId()+" is already a registered unit. DisplayUnits can only be added once."}};p.locate=function(AA){e("UnitManager::locate registered object with id = "+AA+": ",B[AA]);return B[AA]};p.register=function(){videoegg.UnitManager=p};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(p.register)}else{p.register()}var k=function(){u.call(this);this._TAKEOVER_PACKAGE="videoegg.takeover.actions.transition"};k.identifier="invite";k.type="videoegg.displayunit";k.register=function(){videoegg.PluginRegistry.register(k);y(k,u)};if(typeof (VE_initCustom)!="undefined"){VE_initCustom.push(k.register)}else{k.register()}var A=function(){X.call(this)};A.identifier="default";A.type="videoegg.takeover.actions.transition";A.prototype.create=function(){e("AdFrameTakeoverAction.create ()");X.prototype.create.call(this);var AB=this._du.createElement(this._id+"_corner","div");this._du.setStyles(AB,{position:"absolute",top:"0px",right:"0px",height:"53px",width:"53px",zIndex:"1"});this._du.addElement(this._element,AB);var AA=this._du.createElement(this._id+"_cornerImg","img");this._du.setSource("http://core.videoegg.com/eap/"+EAP_VERSION+"/"+q.PLATFORM+"/media/takeover_btn.jpg",AA);this._du.setStyles(AA,{position:"absolute",right:"0px"});this._du.addElement(AB,AA)};A.prototype.show=function(){e("AdFrameTakeoverAction.show ()");X.prototype.show.call(this);if((this._width<300)||(this._height<300)){this._du.setStyles(this._du.getElementById(this._id+"_cornerImg"),{height:"50px",width:"50px"})}else{this._du.setStyles(this._du.getElementById(this._id+"_cornerImg"),{height:"100px",width:"100px"})}var AB=new j();var AA={height:"0px",width:"0px"};AB.animate(this._id+"_cornerImg",AA,"easeInOut",this._animationDuration,function(){return true})};A.register=function(){videoegg.PluginRegistry.register(A);y(A,X)};if(typeof (VE_initCustom)!="undefined"){VE_initCustom.push(A.register)}else{A.register()}var a=function(){M.call(this)};a.identifier="alternate";a.type="videoegg.displayunit";a.prototype.show=function(){if(this._enabled){M.prototype.show.call(this);var AA=typeof (this._data.alternate);if(this._width==null){this._width=728}if(this._height==null){this._height=90}this._du.setStyles(this._element,{width:this._width+"px",height:this._height+"px",overflow:"hidden"});switch(AA){case"function":this._data.alternate(this._element);break;case"object":this._du.setHtml(this._element,this._data.alternate);break;case"string":if(this._data.alternate.substr&&this._data.alternate.substr(0,4)=="http"){var AB=this._du.createIframe(T._generateGUID(),this._element);this._du.setSource(this._data.alternate,AB);this._du.setStyles(AB,{width:this._width+"px",height:this._height+"px",marginTop:"0px",marginLeft:"auto",marginRight:"auto",padding:"0px",overflow:"hidden",border:"none"})}else{if(this._data.alternate=="collapse"){e("Alternate::collapse");this._du.setStyle("display","none",this._parent)}}break;default:this._du.setStyle("display","none",this._parent);break}this.onShowComplete()}};a.prototype.hide=function(){M.prototype.hide.call(this);this.onHideComplete()};a.prototype.create=function(){M.prototype.create.call(this)};a.prototype.destroy=function(){M.prototype.destroy.call(this)};a.prototype.populate=function(AA){try{e("Alternate:: populate");M.prototype.populate.call(this);this._data=AA}catch(AB){e("Alternate::Error during find: "+AB)}};a.prototype.onShowComplete=function(AA){e("Alternate::onShowComplete");this.dispatchEvent("onShowComplete",this)};a.prototype.onHideComplete=function(AA){e("Alternate::onHideComplete");this.setEnabledForAllContainers(true);this.dispatchEvent("onHideComplete",this)};a.register=function(){videoegg.PluginRegistry.register(a);y(a,M)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(a.register)}else{a.register()}var r=function(AB,AC,AA){this._elementId=AB;this._id=null;this._config=null;this._RID=null;this._alternate=null;this._impl=null;this._owner_=null;this._enabled=true;this._width=AC;this._height=AA;this._forcedType=null};r.prototype.populate=function(AA){if(this._forcedType!=null){this._impl=t.createUnitFromType(this._forcedType,this._elementId,AA,this._id,this._width,this._height,this._enabled,this._config,this._RID)}else{this._impl=t.createUnit(this._elementId,AA,this._id,this._width,this._height,this._enabled,this._config,this._RID)}this["create"]=function(){this._impl.create.call(this._impl)};this["show"]=function(){this._impl.show.call(this._impl)};this["hide"]=function(){this._impl.hide.call(this._impl)};this["destroy"]=function(){this._impl.destroy.call(this._impl)};delete this._width;delete this._height;this["getWidth"]=function(){return this._impl.getWidth.call(this._impl)};this["setWidth"]=function(AB){this._impl.setWidth.call(this._impl,AB)};this["getWidth"]=function(){return this._impl.getWidth.call(this._impl)};this["setWidth"]=function(AB){this._impl.setWidth.call(this._impl,AB)};this["getConfig"]=function(){return this._impl.getConfig.call(this._impl)};this["setConfig"]=function(AB){this._impl.setConfig.call(this._impl,AB)};this["getEnabled"]=function(){return this._impl.getEnabled.call()};this["enabled"]=function(AB){this._impl.enabled.call(this._impl,AB)};delete this._enabled};r.prototype.getAlternate=function(){return this._alternate};r.prototype.setAlternate=function(AA){this._alternate=AA};r.prototype.isEnabled=function(){return this._enabled};r.prototype.enabled=function(AA){this._enabled=AA};r.prototype.getId=function(){return this._id};r.prototype.setId=function(AA){if(this._owner_!=null){this._id=AA}};r.prototype.getWidth=function(){return this._width};r.prototype.setWidth=function(AA){this._width=AA};r.prototype.getHeight=function(){return this._height};r.prototype.setHeight=function(AA){this._height=AA};r.prototype.setForcedType=function(AA){this._forcedType=AA};r.prototype.getUnit=function(){return this._impl};r.prototype.getConfig=function(){return this._config};r.prototype.setConfig=function(AA){this._config=AA};r.prototype.getRID=function(){return this._RID};r.prototype.setRID=function(AA){this._RID=AA};var t={};t.createUnit=function(AD,AC,AA,AI,AE,AG,AB,AF){var AJ=AC.getType();var AH;switch(AJ){case ("BANNER"):AH="banner";break;case ("ADFRAMES"):default:AH="invite";break}return this.createUnitFromType(AH,AD,AC,AA,AI,AE,AG,AB,AF)};t.createUnitFromType=function(AJ,AE,AD,AA,AK,AG,AH,AC,AF){var AI=videoegg.PluginRegistry.locate("videoegg.displayunit",AJ);var AB=new AI();AB.init(AE,AA,AC,AF);AB.enabled(AH);AB.setWidth(AK);AB.setHeight(AG);AB.populate(AD);return AB};var d=function(){u.call(this);this._takeoverBridgeSwf=null;this._TAKEOVER_PACKAGE="videoegg.takeover.banner.actions.transition";e("IFrameBanner.constuctor ()")};d.identifier="iframebanner";d.type="videoegg.displayunit";d.prototype.show=function(){if(this._enabled){M.prototype.show.call(this);this._swfElement=this._du.createSWF(this._element,this._swf,this._data,this._id,this._config,this._RID);var AA=this;this._isVisibleTimout=f(function(){AA._du.setStyle("visibility","visible",AA._swfElement)},100);this.onShowComplete()}};d.prototype.populate=function(AD){e("IFrameBanner.populate ()");try{if(this._width==null){this._width=616}if(this._height==null){this._height=70}this.fullData=AD;this._data=AD.getInvite();this._swf={};this._swf.id=T._generateGUID();this._swf.src=this._data.url;this._swf.width=this._width;this._swf.height=this._height;this._du.setStyle("width",this._width+"px",this._element);this._du.setStyle("height",this._height+"px",this._element);var AA={};for(var AC in this._config){AA[AC]=this._config[AC]}if(AA.width==null){AA.width=this._width}if(AA.height==null){AA.height=this._height}AA.ref="";var AB={config:AA,RID:this._RID,unitID:this._id,adData:{takeover:{url:this.fullData.getTakeover()["url"],rawData:this.fullData.getTakeover()["rawData"]}}};top.VE_createBridge(AB)}catch(AE){e("IFrameBanner::Error during populate: "+AE)}};d.prototype.showTakeover=function(){e("IFrameBanner :: showTakeover, unitId:"+this._id);if(this._enabled){top.VE_showTakeover({unitId:this._id})}};d.prototype.sendMessage=function(AB,AA){AA.RID=this._RID;this._du.getElementById(this._bridgeSwfName).sendMessage(AB,AA)};d.register=function(){videoegg.PluginRegistry.register(d);y(d,u)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(d.register)}else{d.register()}var Z=function(){u.call(this);this._TAKEOVER_PACKAGE="videoegg.takeover.banner.actions.transition";e("IFrameShim.constuctor ()")};Z.identifier="iframeshim";Z.type="videoegg.displayunit";Z.prototype.show=function(){e("IFrameShim.show ()");if(this._enabled){this.onShowComplete();e("IFrameShim.shown ()")}};Z.prototype.populate=function(AD){e("IFrameShim.populate ()");try{if(this._width==null){this._width=616}if(this._height==null){this._height=70}this._data=AD.getInvite();var AC=AD.getTakeover();e("IFrameShim.populate () : takeover is null? "+(AC==null));if(AC!=null){e("IFrameShim.populate () : creating holder");if(!AC.transitionType){AC.transitionType="default"}var AF=videoegg.PluginRegistry.locate(this._TAKEOVER_PACKAGE,AC.transitionType);this._takeoverAction=new AF();this._takeoverAction.init(this._du.getRootElement(),T._generateGUID(),this._config,this._RID);var AB=z.getViewportDimension();this._du.setStyle("position","absolute",this._element);this._du.setStyle("width","10px",this._element);this._du.setStyle("height","10px",this._element);this._du.setStyle("top",Math.floor(AB.height*0.5)+"px",this._element);this._du.setStyle("left",Math.floor(AB.width*0.5)+"px",this._element);this._takeoverAction.setOriginElement(this._element);this._takeoverAction.populate(AD);var AA=this._takeoverAction.getDimensions();this._takeoverAction.setWidth(AA.width);this._takeoverAction.setHeight(AA.height);this._takeoverAction.addEventListener(this);AF=videoegg.PluginRegistry.locate("videoegg.displayunit.takeover","default");this._takeover=new AF();this._takeover.init(this._du.getRootElement(),T._generateGUID(),this._config,this._RID);this._takeover.setOriginElement(this._element);this._takeover.populate(AD);AA=this._takeover.getDimensions();this._takeover.setWidth(AA.width);this._takeover.setHeight(AA.height);this._takeover.addEventListener(this)}}catch(AE){e("IFrameShim::Error during populate: "+AE)}};Z.prototype.onHideComplete=function(AA){e("IFrameShim::onHideComplete");if(AA==this._takeover){this.setEnabledForAllContainers(true);this._takeoverAction.hide()}};Z.register=function(){videoegg.PluginRegistry.register(Z);y(Z,u)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(Z.register)}else{Z.register()}var S=function(){M.call(this)};S.identifier="remnant";S.type="videoegg.displayunit";S.prototype.show=function(){};S.prototype.hide=function(){};S.prototype.create=function(){};S.prototype.destroy=function(){};S.prototype.populate=function(AA){};S.prototype.onShowComplete=function(){};S.prototype.onHideComplete=function(){};S.register=function(){videoegg.PluginRegistry.register(S);y(S,M)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(S.register)}else{S.register()}var L=function(){M.call(this);this._swfElement=null;this._closeDiv=null;this._closeBtn=null;this._originElement=null;this._backgroundDiv=null;this._layers=null;this._destroyTimeout=-1;this._takeoverShowing=false;this._inviteOffset=null};L.identifier="default";L.type="videoegg.displayunit.takeover";L.prototype.create=function(){M.prototype.create.call(this);this._closeDiv=this._du.createElement("takeover_close_"+this._id,"div");this._closeBtn=this._du.createElement("takeover_close_btn_"+this._id,"div");var AB=this._du.createElement("takeover_close_btn_img_"+this._id,"div");if(q.ie){this._du.setStyle("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://core.videoegg.com/eap/"+EAP_VERSION+"/"+q.PLATFORM+"/media/close_btn.png',sizingMethod='scale')",AB)}else{this._du.setStyle("backgroundImage","url('http://core.videoegg.com/eap/"+EAP_VERSION+"/"+q.PLATFORM+"/media/close_btn.png')",AB)}this._backgroundDiv=this._du.createElement("takeover_bg_"+this._id,"div");this._du.setStyles(this._backgroundDiv,{position:"absolute",top:"0px",left:"0px",height:"100%",width:"100%",zIndex:"1",visibility:"hidden"});this._du.addElement(this._element,this._backgroundDiv);this._swfLayer=this._du.createElement(this._swf.id+"_holder","div");this._du.setStyles(this._swfLayer,{position:"relative",top:"0px",margin:"auto",width:this._width+"px",zIndex:"2"});this._du.addElement(this._element,this._swfLayer);var AA=this._du.createElement("takeover_close_highlight_"+this._id,"div");this._du.setStyles(AA,{position:"absolute",backgroundColor:"#ffffff",height:"14px",width:"14px",right:"1px",top:"4px",padding:"0px",margin:"0px",fontSize:"1px",visibility:"hidden",zIndex:"1"});this._du.setStyles(AB,{position:"absolute",height:"26px",width:"84px",right:"0px",top:"0px",padding:"0px",margin:"0px",border:"none",zIndex:"2"});this._du.setStyles(this._closeBtn,{position:"relative",width:"100%",top:"0px",padding:"0px",margin:"auto",border:"none",cursor:"pointer",overflow:"visible"});this._du.setStyles(this._closeDiv,{position:"absolute",width:"100%",height:"26px",top:"2px",left:"0px",margin:"0px",visibility:"hidden",zIndex:"99"});this._du.addElement(this._closeBtn,AA);this._du.addElement(this._closeBtn,AB);this._du.addElement(this._closeDiv,this._closeBtn);this._du.addElement(this._element,this._closeDiv)};L.prototype.show=function(){e("Takeover.show");if(this._enabled){try{iab_rma_start()}catch(AE){}M.prototype.show.call(this);var AB=this._du.getViewportDimension();this._height=AB.height;this._width=AB.width;var AA=this._du.getScrollOffset();var AD=this._du.getElementById("takeover_close_highlight_"+this._id);this._du.setStyle("visibility","hidden",AD);this._du.setStyles(this._element,{position:"absolute",width:this._width+"px",height:this._height+"px",padding:"0px",margin:"0px",top:AA.scrollTop+"px",left:AA.scrollLeft+"px",textAlign:"center",zIndex:this._du.getNextHighestZIndex()});this._du.setStyle("height",this._height+"px",this._swfLayer);this._du.setStyle("width",this._width+"px",this._swfLayer);this._swf.width=this._width;this._swf.height=this._height;if(this._inviteOffset!=null){this._swf.inviteOffset=this._inviteOffset}else{this._swf.inviteOffset=null}if(this._swf.width<430){this._swf.width=430}if(this._swf.height<380){this._swf.height=380}this._swfElement=this._du.createSWF(this._swfLayer,this._swf,this._data,this._id,this._config,this._RID,(new Date()).getTime());this._du.setStyle("margin","auto",this._swfElement);var AC=this;this._du.addEventListener("mousedown",function(AF){AC.hide.call(AC,AF)},this._backgroundDiv);this._du.addEventListener("mousedown",function(AF){AC.hide.call(AC,AF)},this._closeDiv);this._du.addEventListener("mousemove",function(AF){AC.onCloseRollover.call(AC,AF)},this._closeBtn);this._du.addEventListener("mousemove",function(AF){AC.onCloseRollover.call(AC,AF)},this._closeDiv);this._du.addEventListener("mousemove",function(AF){AC.onCloseRollover.call(AC,AF)},this._backgroundDiv);this._takeoverStartTime=new Date().getTime();e("Takeover.show :: "+this._takeoverStartTime);this._takeoverShowing=true}};L.prototype.hide=function(){if(this._destroyTimeout==-1||this._takeoverShowing){var AB=new Date().getTime();var AC=AB-this._takeoverStartTime;var AD={ccid:((this._config.CCID==null)||(isNaN(this._config.CCID)))?1:this._config.CCID,rid:this._RID,t:AC,version:3,area:this._config.area,si:this._config.site};var AA=new b();AA.send("tclose",AD);var AE=this;this._destroyTimeout=s(function(){if(AE._du.getElementById(AE._swf.id)){AE._du.destroyElement(AE._swf.id);AE._du.setStyle("display","none",AE._element);AE.destroyLayers();AE.onHideComplete();AE._destroyTimeout=-1}},100);this._du.removeEventListener("mousedown",function(AF){AE.hide.call(AE,AF)},this._backgroundDiv);this._du.removeEventListener("mousedown",function(AF){AE.hide.call(AE,AF)},this._closeDiv);this._du.removeEventListener("mousemove",function(AF){AE.onCloseRollover.call(AE,AF)},this._closeBtn);this._du.removeEventListener("mousemove",function(AF){AE.onCloseRollover.call(AE,AF)},this._closeDiv);this._du.removeEventListener("mousemove",function(AF){AE.onCloseRollover.call(AE,AF)},this._backgroundDiv)}};L.prototype.destroy=function(){M.prototype.destroy.call(this)};L.prototype.populate=function(AA){try{M.prototype.populate.call(this);this._data=AA.getTakeover();this._swf={};this._swf.id=T._generateGUID();this._swf.src=this._data.url;this._swf.width=this._width;this._swf.height=this._height}catch(AB){e("Takeover:: Error during find operation: "+AB)}};L.prototype.onShowComplete=function(AA){e("Takeover :: onShowComplete");this._du.setStyle("visibility","visible",this._closeDiv);this.dispatchEvent("onShowComplete",this)};L.prototype.onHideComplete=function(AA){this.dispatchEvent("onHideComplete",this);this._takeoverShowing=false;try{iab_rma_stop()}catch(AB){}};L.prototype.setOriginElement=function(AA){this._originElement=AA};L.prototype.getOriginElement=function(){return this._originElement};L.prototype.onTakeoverResize=function(AD){e("Takeover::onTakeoverResize: ");if(AD.width){var AA=this._du.getElementById("takeover_close_btn_img_"+this._id);var AB=this._du.getElementById("takeover_close_highlight_"+this._id);var AC=Math.floor((this._width-AD.width)/2);this._du.setStyle("right",AC+"px",AA);this._du.setStyle("right",AC+1+"px",AB);this._du.setStyle("width",this._width+"px",this._closeBtn);this._du.setStyle("visibility","visible",this._backgroundDiv);this._du.setStyle("visibility","visible",this._closeDiv)}};L.prototype.onCloseRollover=function(AB){var AA=this._du.getElementById("takeover_close_highlight_"+this._id);this._du.setStyle("visibility","visible",AA)};L.prototype.onCloseRollout=function(AB){var AA=this._du.getElementById("takeover_close_highlight_"+this._id);this._du.setStyle("visibility","hidden",AA)};L.prototype.getDimensions=function(){return this._du.getViewportDimension()};L.prototype.destroyLayers=function(){if(this._layers!=null){this._du.destroyElement(this._layers)}this._layers=null};L.prototype.createIFrameLayer=function(AA){};L.prototype.setInviteOffset=function(AA){this._inviteOffset=AA};L.register=function(){videoegg.PluginRegistry.register(L);y(L,M)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(L.register)}else{L.register()}var E=function(){M.call(this)};E.identifier="blank";E.type="videoegg.takeover.actions.transition";E.prototype.create=function(){M.prototype.create.call(this)};E.prototype.show=function(){M.prototype.show.call(this);this.onShowComplete()};E.prototype.hide=function(){M.prototype.hide.call(this);this.onHideComplete()};E.prototype.destroy=function(){M.prototype.destroy.call(this);this.onHideComplete()};E.prototype.onShowComplete=function(){this.dispatchEvent("onShowComplete",this)};E.prototype.onHideComplete=function(){this.dispatchEvent("onHideComplete",this)};E.prototype.setOriginElement=function(AA){};E.register=function(){videoegg.PluginRegistry.register(E);y(E,M)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(E.register)}else{E.register()}var I=function(){M.call(this);this._originElement=null;this._closeBtn=null;this._swf=null;this._paddingTop=0;this._paddingLeft=0;this._paddingBottom=50};I.identifier="custom";I.type="videoegg.displayunit.takeover";I.prototype.create=function(){M.prototype.create.call(this);if(this._originElement==null){this._originElement=this._du.getRootElement()}};I.prototype.show=function(){if(this._enabled){M.prototype.show.call(this);this._swf.width=this._width;this._swf.height=this._height;this._swf.flashvars={};this._swf.flashvars.paddingTop=this._paddingTop;this._swf.flashvars.paddingLeft=this._paddingLeft;this._swf.flashvars.paddingBottom=this._paddingBottom;this._du.createSWF(this._element,this._swf,this._data,this._id,this._config,this._RID)}this._takeoverStartTime=new Date().getTime()};I.prototype.hide=function(){var AF=this;var AB=new Date().getTime();var AC=AB-this._takeoverStartTime;var AE={ccid:((this._config.CCID==null)||(isNaN(this._config.CCID)))?1:this._config.CCID,rid:this._RID,t:AC,version:3,area:this._config.area,si:this._config.site};var AA=new b();AA.send("tclose",AE);var AD=setTimeout(function(){if(AF._domUtilities.getElementById(AF._swf.id)){AF._domUtilities.destroyElement(AF._swf.id);AF._domUtilities.setStyle("display","none",AF._element);AF._domUtilities.setEmbedVisibility(false);AF.onHideComplete()}},100)};I.prototype.destroy=function(){M.prototype.destroy.call(this)};I.prototype.populate=function(AA){try{M.prototype.populate.call(this);this._data=AA.getTakeover();this._swf={};this._swf.id="SWF_INST_"+this._id;this._swf.src=this._data.url}catch(AB){e("CustomTakeover:: Error during populate operation: "+AB)}};I.prototype.onShowComplete=function(AA){this.dispatchEvent("onShowComplete",this)};I.prototype.onHideComplete=function(AA){this.dispatchEvent("onHideComplete",this)};I.prototype.setOriginElement=function(AA){this._originElement=AA};I.prototype.getOriginElement=function(){return this._originElement};I.prototype.getDimensions=function(){return this._du.getViewportDimension()};I.register=function(){videoegg.PluginRegistry.register(I);y(I,M)};if(typeof (VE_initCustom)!="undefined"){VE_initCustom.push(I.register)}else{I.register()}var P=function(){M.call(this);this._originElement=null};P.identifier="custom";P.type="videoegg.takeover.actions.transition";P.prototype.create=function(){M.prototype.create.call(this);try{if(this._originElement==null){this._originElement=this._du.getRootElement()}}catch(AA){e("CustomTakeoverAction:: Error during create operation: "+AA)}};P.prototype.show=function(){M.prototype.show.call(this)};P.prototype.hide=function(){M.prototype.hide.call(this)};P.prototype.populate=function(AA){try{M.prototype.populate.call(this)}catch(AB){e("CustomTakeoverAction::Error during populate operation: "+AB)}};P.prototype.onShowComplete=function(AA){this.dispatchEvent("onShowComplete",this)};P.prototype.onHideComplete=function(AA){this.dispatchEvent("onHideComplete",this)};P.prototype.setOriginElement=function(AA){this._originElement=AA};P.prototype.getOriginElement=function(){return this._originElement};P.register=function(){videoegg.PluginRegistry.register(P);y(P,M)};if(typeof (VE_initCustom)!="undefined"){VE_initCustom.push(P.register)}else{P.register()}var D=function(){M.call(this);this._originElement=null;this._speed=10;this._startOpacity=0.1;this._opacity=this._startOpacity;this._endOpacity=0.8;this._step=0.05};D.identifier="fade";D.type="videoegg.takeover.banner.actions.transition";D.prototype.create=function(){M.prototype.create.call(this);e("FadeTakeoverAction.create ()");this._du.setStyles(this._element,{width:"100%",height:"100%",position:"absolute",top:"0",left:"0",backgroundColor:"#000000",opacity:this._startOpacity})};D.prototype.show=function(){e("FadeTakeoverAction.show ()");if(this._enabled){try{this._du.setStyle("visibility","hidden",this._originElement);this._du.setStyle("display","block",this._element);var AA=this;setTimeout(function(){AA.fadeIn()},this._speed)}catch(AB){e("FadeTakeoverAction:: Error during show operation: "+AB)}}};D.prototype.fadeIn=function(){if(this._opacity<this._endOpacity){this._opacity+=this._step;this._du.setStyle("opacity",this._opacity,this._element);var AA=this;setTimeout(function(){AA.fadeIn()},this._speed)}else{this.onShowComplete()}};D.prototype.hide=function(){try{e("FadeTakeoverAction::hide");var AA=this;setTimeout(function(){AA.fadeOut()},this._speed)}catch(AB){e("FadeTakeoverAction:: Error during hide operation: "+AB)}};D.prototype.fadeOut=function(){if(this._opacity>0){this._opacity-=this._step;this._du.setStyle("opacity",this._opacity,this._element);var AA=this;setTimeout(function(){AA.fadeOut()},this._speed)}else{this._opacity=this._startOpacity;this.onHideComplete()}};D.prototype.onShowComplete=function(AA){this._du.setEmbedVisibility(true);this.dispatchEvent("onShowComplete",this)};D.prototype.onHideComplete=function(AA){this._du.setEmbedVisibility(false);this._du.setStyle("display","none",this._element);this._du.setStyle("visibility","visible",this._originElement);this.dispatchEvent("onHideComplete",this)};D.prototype.populate=function(AA){try{M.prototype.populate.call(this)}catch(AB){e("FadeTakeoverAction::Error during find operation: "+AB)}};D.prototype.onRollOver=function(){this.dispatchEvent("onRollOver",this)};D.prototype.onRollOut=function(){this.dispatchEvent("onRollOut",this)};D.prototype.onMouseDown=function(){this.dispatchEvent("onMouseDown",this)};D.prototype.setOriginElement=function(AA){this._originElement=AA};D.prototype.getOriginElement=function(){return this._originElement};D.prototype.getDimensions=function(){var AA=this._du.getDimension(this._originElement);return AA};D.register=function(){videoegg.PluginRegistry.register(D);y(D,M)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(D.register)}else{D.register()}var R=function(){M.call(this);this._originalState=null;this._expandingDiv=null;this._maxWidth=744;this._maxHeight=480;this._minWidth=430;this._minHeight=250;var AA=this;this._resizeUpdate=function(){var AB=z.getPageDimension();if(AB.width<430){AB.width=430}if(AB.height<380){AB.height=380}z.setStyle("top","0px",AA._element);z.setStyle("left","0px",AA._element);z.setStyle("height",AB.height+"px",AA._element);z.setStyle("width",AB.width+"px",AA._element)}};R.identifier="pop";R.type="videoegg.takeover.banner.actions.transition";R.prototype.create=function(){M.prototype.create.call(this);e("PopTakeoverAction.create ()");var AA=z.getPageDimension();this._du.setStyles(this._element,{width:AA.width+"px",height:AA.height+"px",position:"absolute",top:"0px",left:"0px",backgroundColor:"#000000",opacity:".8",zIndex:this._du.getNextHighestZIndex()+1});if((q.mac)&&(q.firefox)){this._du.setStyle("backgroundImage","url('http://core.videoegg.com/eap/"+EAP_VERSION+"/"+q.PLATFORM+"/media/macFFBgHack.png')",this._element);this._du.setStyle("backgroundRepeat","repeat",this._element)}else{this._du.setStyle("backgroundColor","black",this._element);this._du.setStyle("opacity",".8",this._element)}this._expandingDiv=this._du.createElement("exp","div");this._expandingDiv.style.MozBorderRadius="10px";this._expandingDiv.style.WebkitBorderRadius="10px";this._du.insertBodyStart(this._expandingDiv);this._du.setStyle("backgroundColor","#000000",this._element);this._du.setStyle("opacity",".8",this._element)};R.prototype.show=function(){e("PopTakeoverAction.show ()");this._du.setStyle("visibility","hidden",this._originElement);this._du.setStyle("display","block",this._element);this._resizeUpdate();var AF=this._du.getViewportDimension();var AJ=z.getScrollOffset();var AB=new j();var AK=this._du.getOffset(this._originElement);if(typeof (this._config.placement)=="undefined"){AK.top+=this._config.height/2;AK.left+=this._config.width/2}else{AK.top=10;AK.left=AF.width/2}this._originalState={position:"absolute",top:AK.top,left:AK.left,width:1,height:1,display:"none",backgroundColor:"black",opacity:".55",zIndex:this._du.getNextHighestZIndex()+1};this._du.setStyles(this._expandingDiv,this._originalState);this._du.setStyle("display","block",this._expandingDiv);e("PopTakeoverAction page dims: ",AF);var AA=this._maxWidth;var AM=this._maxHeight;if(AF.width<this._maxWidth||AF.height<this._maxHeight){var AH=1,AD=1;if(AF.width<this._maxWidth){AH=(AF.width-120)/this._maxWidth}if(AF.height<this._maxHeight){AD=AF.height/this._maxHeight}var AE=Math.min(AH,AD);if(AE==AH){AM*=AE;AA=((AM*this._maxWidth)/this._maxHeight)}else{AA*=AE;AM=(AA*this._maxHeight)/this._maxWidth}if(AM<this._minHeight||AA<this._minWidth){AA=this._minWidth;AM=this._minHeight}}var AI=Math.floor((AF.width-AA)/2);var AG=Math.floor((AF.height-AM)/2);var AC={width:Math.floor(AA),height:Math.floor(AM),top:AG+AJ.scrollTop,left:AI+AJ.scrollLeft};e("PopTakeoverAction animation params",AC);var AN=this;var AL=function(){AN.onShowComplete()};AB.animate(this._expandingDiv,AC,"easeinout",400,AL)};R.prototype.hide=function(){this._du.removeResizeListener(this._resizeUpdate);this._du.setStyle("display","none",this._element);this._du.setStyle("display","none",this._expandingDiv);this._du.setStyles(this._expandingDiv,this._originalState);this._du.setStyle("visibility","visible",this._originElement);this.onHideComplete()};R.prototype.populate=function(AA){try{M.prototype.populate.call(this)}catch(AB){e("PopTakeoverAction::Error during find operation: "+AB)}};R.prototype.onShowComplete=function(AA){this._du.setEmbedVisibility(true);this._du.addResizeListener(this._resizeUpdate);this.dispatchEvent("onShowComplete",this)};R.prototype.onHideComplete=function(AA){this._du.setEmbedVisibility(false);this._du.setSelectVisibility(false);this._du.setIframeVisibility(false);this.dispatchEvent("onHideComplete",this)};R.prototype.onRollOver=function(){this.dispatchEvent("onRollOver",this)};R.prototype.onRollOut=function(){this.dispatchEvent("onRollOut",this)};R.prototype.onMouseDown=function(){this.dispatchEvent("onMouseDown",this)};R.prototype.setOriginElement=function(AA){this._originElement=AA};R.prototype.getOriginElement=function(){return this._originElement};R.prototype.getDimensions=function(){var AA=this._du.getDimension(this._originElement);return AA};R.register=function(){videoegg.PluginRegistry.register(R);y(R,M)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(R.register)}else{R.register()}}()};