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.length){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);if(q.length){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;if(!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{if(typeof (VE_beaconLog)==="function"){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 x=function(AA,AB){for(var z in AB.prototype){if(typeof (AA.prototype[z])=="undefined"){AA.prototype[z]=AB.prototype[z]}}};var K=function(AB,AC){AC._usedAsBase=true;if(AB._usedAsBase){throw"DeriveClass Error: broken inheritance"}AB.supr=AC;for(var z in AC.prototype){if(typeof (AB.prototype[z])=="undefined"){AB.prototype[z]=AC.prototype[z]}else{if(typeof (AB.prototype[z])=="function"){var AA=function(){var AD=AB.prototype[z];var AE=AC.prototype[z];AB.prototype[z]=function(){var AF=this.supr;this.supr=AE;try{return AD.apply(this,arguments)}finally{this.supr=AF}}}()}else{throw"DeriveClass Error: member variable collision: "+z}}}};videoegg._internal={};videoegg._internal.DeriveClass=x;var d=function(z){if(VE_DEBUG){if((typeof (console)!=="undefined")&&(typeof (console.log)=="function")){console.log.apply(console,arguments)}else{}}};videoegg.trace=d;var J=new Date().getTime();videoegg.Constants={PLACEMENT_NORMAL:"normal",PLACEMENT_TWIG:"twig",PLACEMENT_TWIG_BOTTOM:"twig_bottom",TWIG_HEIGHT:40};var w=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"};w.prototype.isValidBrowser=function(){if(this.mac){return(this.firefox||this.safari)}else{if(this.win){return(this.firefox||this.ie)}else{return this.firefox}}};w.prototype.isSupportedEnvironment=function(){return(this.isValidBrowser()&&this.flash>=9)};var G=function(){var z={};this.register=function(AA){if((AA==null)||(AA.type==null)||(AA.identifier==null)){throw"Invalid plugin"}if(z[AA.type]==null){z[AA.type]={}}if(z[AA.type][AA.identifier]==null){z[AA.type][AA.identifier]=AA}else{throw"Plugin already registered"}};this.unregister=function(AB,AA){try{delete (z[AB][AA])}catch(AC){throw"Plugin unregister failed. Could not find plugin "+AB+"."+AA}};this.locate=function(AB,AA){var AD;try{AD=z[AB][AA]}catch(AC){throw"Plugin lookup failed. Could not find plugin "+AB+"."+AA}return AD}};videoegg.PluginRegistry=new G();var V=function(z){};V.prototype.trigger=function(){};V.prototype.loadAd=function(z){};var F=function(Ae){var AR;var AS=AS||(function(){var Ai={};function Ah(An,Am){var Ao=document,Al=Ao.getElementsByTagName("head")[0]||Ao.documentElement,Ak=Ao.createElement("script");var Aj=function(){An.state="loaded";Ak.onreadystatechange=null;Ak.onload=null;Ak.onerror=null;var Ap;while(Ap=An.callbacks.shift()){try{Ap()}catch(Aq){}}};Ak.onreadystatechange=function(){if(Ak.readyState=="loaded"){Aj()}};Ak.onload=Ak.onerror=function(Ap){Aj()};Ak.src=An.src+(Am?"?"+Math.random():"");Al.insertBefore(Ak,Al.firstChild)}function Ag(Al,Aj,Ak){if(!Ai[Al]){Ai[Al]={state:"dl",src:Al,callbacks:[]};Ah(Ai[Al],Ak)}if(Ai[Al].state=="dl"&&Aj){Ai[Al].callbacks.push(Aj)}else{if(Ai[Al].state=="loaded"){setTimeout(Aj,1)}}}return Ag})();var AY=false;var AD=null;for(var Ab in Ae){if(typeof (Ae[Ab])=="string"){Ae[Ab]=Ae[Ab].replace(/^\s\s*/,"").replace(/\s\s*$/,"")}}if(Ae.placement){Ae.placement=Ae.placement.toLowerCase()}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 z,AW=Ae.publisher.toLowerCase();if(AW=="passthru"){z="site=$site$/area=$area$/"}else{if(AW=="ve2go"){z="site=facebook/area=$area$/"}else{z="site=facebook/area=fb_$area$/"}}if(Ae.adsize==undefined){Ae.adsize="display"}var AI="http://videoegg.adbureau.net/LSERVER/hserver/aamsz="+Ae.adsize+"/rid=$rid$/"+z+"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=Ae;AH.placement=/^twig$/ig.test(AH.placement)?videoegg.Constants.PLACEMENT_TWIG:/^twig_bottom$/ig.test(AH.placement)?videoegg.Constants.PLACEMENT_TWIG_BOTTOM:videoegg.Constants.PLACEMENT_NORMAL;d("AdManager::Placement = ",AH.placement);if(videoegg.Constants.PLACEMENT_NORMAL!=AH.placement){AH.width=1000;AH.height=videoegg.Constants.TWIG_HEIGHT}var Ac=AH.RID;if(!Ac){AH.RID=Ac=S._generateRID();try{ve_initjs(AH.publisher,AH.site,AH.area,AH.width,AH.height,AH.RID,AH.placement);if(AH.topbeacon||Math.floor(Math.random()*100)<1){new top_beacon(AH.publisher,AH.site,AH.area,AH.width,AH.height,AH.RID,AH.placement)}}catch(AZ){d("WARN: initjs fail")}}if(!AH.iframeEnabled&&typeof (window.parent)!="undefined"&&window!=window.parent&&window.parent.frames.length>0){AH.container=document.referrer.split("?")[0];d("AdManager::iframe check confirmed, setting container",AH.container)}var AA;var Af=new O();var AN=function(Ai,Ag){var Ah=null;Aa(Ai,Ag,null,Ah,true)};var AE=function(){var Ah=null;switch(arguments.length){case (1):var Ag=arguments[0];if(Ag==null){throw"elementId cannot be null for insertInvitation."}Aa(null,null,Ag,Ah,true);break;case (3):var Ag=arguments[2];if(Ag==null){throw"elementId cannot be null for insertInvitation."}Aa(arguments[0],arguments[1],Ag,Ah,true);break;default:throw"Wrong number of arguments for for insertInvitation.";break}};var Aa=function(Ah,Aq,Aj,An,Ag){if(typeof (AH.forcedType)!="undefined"){An=AH.forcedType}d("AdManager::embedContainers type = "+An);Aj=g(Ah,Aq,Aj);if(p.PLATFORM=="html"&&!AH.iframeEnabled){var Ai=y.getOffset(Aj);var Al=y.getViewportDimension();var Ak=y.getScrollOffset();if(((Ak.scrollTop>Ai.top)||(Ak.scrollLeft>Ai.left)||(Ai.top>(Al.height+Ak.scrollTop))||(Ai.left>(Al.width+Ak.scrollLeft)))&&!AU(AH)){var Ap={rid:AH.RID,area:AH.area,si:AH.site,pb:AH.publisher,fv:p.flashStr};var Ao=new a();Ao.send("btf",Ap)}}var Am=new q(Aj,Ah,Aq);if(An!=null){Am.setForcedType(An)}Am.setAlternate(Ag);Am.setConfig(AH);Am.setRID(Ac);Af.addContainer(Am);return Am};this.destroy=function(){AA.destroy();Af.destroy();y.cleanUp();AA=null;Af=null;AH=null};var AV=function(Ah){if(Ah.getInvite()&&Ah.getInvite().content.twigHeight!=undefined){videoegg.Constants.TWIG_HEIGHT=Ah.getInvite().content.twigHeight}if(Ah.getCCID()!=undefined){AH.CCID=Ah.getCCID()}if(Ah.getInvitationimp()!=undefined){AH.invitationimp=Ah.getInvitationimp()}if(Ah.getTakeoverimp()!=undefined){AH.takeoverimp=Ah.getTakeoverimp()}if(Ah.getPath()!=undefined){AH.path=Ah.getPath()}if(Ah.getRev()!=undefined){AH.rev=Ah.getRev()}if(Ah.getAdRev()!=undefined){AH.adRev=Ah.getAdRev()}var Ai=Af.getDisplayContainers();for(var Ag in Ai){Ai[Ag].setConfig(AH)}Af.setData(Ah,"preloadAssets" in AH)};var AG=function(){d("AdManager:: onAdLoadError");if(AH.alternate){var Aj=Af.getDisplayContainers();d("dList::"+Aj);var Ai=null;for(var Ag in Aj){if(Aj[Ag].getAlternate()){Ai=Aj[Ag];break}}Af.clearDisplayList();Ai.setForcedType("alternate");Ai.setConfig(AH);Ai.setRID(Ac);Af.addContainer(Ai);var Ah={};Ah.alternate=AH.alternate;Af.setData(Ah,false)}};var AU=function(Ag){return Ag.placement&&(Ag.placement===videoegg.Constants.PLACEMENT_TWIG||Ag.placement===videoegg.Constants.PLACEMENT_TWIG_BOTTOM)};var AF=function(){if(AH.url.indexOf("videoegg.adbureau.net")>-1){if(this.ve_siteconfig!=undefined){if(this.ve_siteconfig.control!=undefined){var Ak=this.ve_siteconfig.control.throttle;if(Ak){var Ai=Math.random();if(Ai>Number(Ak)){AH.url+="/throttle=1"}else{AH.url+="/throttle=0"}}else{AH.url+="/throttle=0"}}else{AH.url+="/throttle=0"}}else{AH.url+="/throttle=0"}}d("AdManager_base::init "+y.getURL(AH));if(!AY){if(AH.ref==null){AH.ref=encodeURIComponent(y.getURL())}AA=new Q(AH,Ac);AA.addEventListener({onAdLoadComplete:function(Al){AV(Al)}});AA.addEventListener({onAdLoadError:function(Al){AG(Al)}});AA.trigger()}else{d("AdManager_base::configValidationError");var Ah;if(p.firefox){Ah="firefox"}else{if(p.ie){Ah="ie"}else{if(p.safari){Ah="safari"}else{Ah="unknown"}}}var Aj={width:AH.width,height:AH.height,fv:p.flashStr,os:(p.mac?"mac":"win"),browser:Ah,ref:document.URL,rid:AH.RID,area:AH.area,si:AH.site,pb:AH.publisher,err:AD};var Ag=new a();Ag.send("invalid",Aj);AG()}};var AO=function(Ag,Ai){var Ah=videoegg.PluginRegistry.locate(Ai,"custom");if(Ah==null){Ah=videoegg.PluginRegistry.locate("videoegg.displayunit","DisplayUnit")}videoegg.PluginRegistry.unregister(Ai,"default");K(Ag,Ah);Ag.identifier="default";Ag.type=Ai;Ag.prototype.supr=Ah;videoegg.PluginRegistry.register(Ag)};F.prototype.takeover=function(){var Ah=Af.getDisplayContainers();for(var Ag in Ah){if(typeof (Ah[Ag]._impl)!="undefined"&&typeof (Ah[Ag]._impl.showTakeover)=="function"){Ah[Ag]._impl.showTakeover()}}};if(typeof (AH.eapv)=="undefined"){AH.eapv=EAP_VERSION}if(typeof (AH.version)=="undefined"){AH.version=p.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 AX in AJ){if(AX=="url"){if(typeof (AH.url)=="undefined"){AH[AX]=AJ[AX]}}else{AH[AX]=AJ[AX]}}}}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 Ad=AB.prototype.getDimensions.call({_du:y,_domUtilities:y});d("AdManager::init overlay dim = [w:"+Ad.width+", h:"+Ad.height+"]");if(((Ad.width<AK.width)||(Ad.height<AK.height))&&!AH.iframeEnabled){d("Going into error mode, viewport size is less than minimum display size.");AH.expandable="0"}else{AH.expandable="1"}AH.takeoverWidth=Ad.width;AH.takeoverHeight=Ad.height;if(!AH.publisher){d("Error!  Missing required parameter: publisher");AY=true;AD=1}if(!AH.width&&!AU(AH)){d("Error!  Missing required parameter: width");AY=true;AD=2}if(!AH.height&&!AU(AH)){d("Error!  Missing required parameter: height");AY=true;AD=3}if(AH.height&&AH.width&&!AU(AH)){var AT=["728x90","616x70","300x600","300x250","300x50","160x600","125x125"].join(" ");var AP=AH.width+"x"+AH.height;if(AT.indexOf(AP)<0){d("Error!  Invalid parameters: "+AP+" is not a supported ad size");AY=true;AD=5}}if(!AH.site){d("Error!  Missing required parameter: site");AY=true;AD=6}if(!AH.area){d("Error!  Missing required parameter: area");AY=true;AD=7}if(p.flash<AL){d("Error!  Flash version must be 9 or above. Detected Flash version is "+p.flash);AY=true;AD=8}d("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=Ac;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=(p.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(!AU(AH)){AM.dim=AH.width+"x"+AH.height}AM.eapVersion=EAP_VERSION;var AC=new X();AH.url=AC.replaceTokens(AH.url,AM);d("AdMananger::replaced config.url = "+AH.url)}d("AdManager::init: _config['url''] 2 = "+AH.url);d("element is null "+(AH.parentElement==null));d("element type is "+typeof (AH.parentElement));d("element type is undefined? "+(typeof (AH.parentElement)=="undefined"));if((AH.parentElement==null)&&(typeof (AH.parentElement)=="undefined")){d("embedding");AN(AH.width,AH.height)}else{if(typeof (AH.parentElement)!="string"){AH.parentElement=y.getElementId(AH.parentElement)}AE(AH.width,AH.height,AH.parentElement)}if(AH.url.indexOf("videoegg.adbureau.net")>-1){AS("http://amconf.videoegg.com/siteconf/current/"+Ae.area+"/config.js?rid="+Math.floor(Math.random()*9999999),AF)}else{AF()}};var T=function(){this.base="http://beacon.videoegg.com/"};T.prototype.send=function(AA,AB){var z=this.base+AA+"?";var AD="";for(var AC in AB){AD+=(AD.length>0?"&":"");AD+=AC+"="+escape(AB[AC])}z+=AD;this.sendPlatform(z)};T.prototype.sendToQA=function(AA){try{VE_beaconLog(AA)}catch(z){}};T.prototype.sendPlatform=function(z){d("Beacon_base.prototype.sendPlatform::sending beacon = "+z)};function v(){this._listeners=[]}v.prototype.addEventListener=function(z){if(this._listeners==null){this._listeners=[]}if(this._findListener(z)==null){this._listeners.push(z)}};v.prototype.dispatchEvent=function(AA,AB){if(this._listeners==null){this._listeners=[]}for(var z=0;z<this._listeners.length;z++){if(this._listeners[z][AA]&&typeof (this._listeners[z][AA])=="function"){this._listeners[z][AA].call(this._listeners[z],AB)}}};v.prototype.removeListener=function(AA){var z=this._findListener(AA);if(z!=null){this._listeners.splice(z,1)}};v.prototype._findListener=function(AA){for(var z=0;z<this._listeners.length;z++){if(this._listeners[z]==AA){return z}}return null};var S={};S.identifier="IDGenerator";S.type="videoegg.utilites";videoegg.PluginRegistry.register(S);S._generateGUID=function(){var z=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};return(z()+z()+"_"+z()+"_"+z()+"_"+z()+"_"+z()+z()+z()).toUpperCase()};S._generateRID=function(){var AA=new Date();var z=AA.getTime();var AD=z.toString(16);var AC=32-AD.length;for(var AB=0;AB<AC;AB++){AD+=Math.floor(Math.random()*16).toString(16)}return AD};var U={};var k=function(AC,AB,AA){this.callback=AC;this.timeout=AB;this.lasttimeout=(new Date()).getTime();this.once=AA;var z=this;this.delegate=function(AF){var AD=(new Date()).getTime();var AE=AD-z.lasttimeout;if(AD-z.lasttimeout>=z.timeout){try{z.callback.call()}catch(AF){d("timer callback failed: "+AF.toString())}z.lasttimeout=AD;if(z.once){z.clear()}}};y.addMouseListener("mousemove",this.delegate);this.id=setInterval(this.delegate,AB);U[this.id]=this};k.prototype.clear=function(){if(U[this.id]){clearInterval(this.id);y.removeMouseListener("mousemove",this.delegate);this.delegate=null;this.callback=null;delete U[this.id]}};function e(AB,AA){var z=new k(AB,AA,false);return z.id}function r(AB,AA){var z=new k(AB,AA,true);return z.id}function H(AB){try{var z=U[AB];z.clear()}catch(AA){}}var C=H;videoegg.VE_setInterval=e;videoegg.VE_setTimeout=r;videoegg.VE_clearInterval=H;videoegg.VE_clearTimeout=C;var X=function(){this.randomTokens={};this.MAX_RAND_TOKEN=99999999};X.prototype.replaceTokens=function(AG,AF,AE){var AC,AD;for(var z in AF){AD="\\$"+z+"\\$";AC=new RegExp(AD,"g");AG=AG.replace(AC,AF[z],"g")}AC=new RegExp("\\$(VE_RAND[A-Za-z0-9_]*)\\$","g");var AB=AG.match(AC);if(AB!=null){for(var AA=0;AA<AB.length;AA++){AD=AB[AA].replace(/\$/g,"\\$");AC=new RegExp(AD,"g");if(typeof (this.randomTokens[AB[AA]])=="undefined"){this.randomTokens[AB[AA]]=Math.floor(Math.random()*this.MAX_RAND_TOKEN)}AG=AG.replace(AC,this.randomTokens[AB[AA]])}}if(AE){var AC=new RegExp("\\$[A-Za-z0-9_]+\\$","g");AG=AG.replace(AC,"")}AC=new RegExp("\\$\\$","g");AG=AG.replace(AC,"$");return AG};var m=function(){var AA={};var z=[];var AB=new X();m.prototype.getInvite=function(){return AA.invite};m.prototype.getTakeover=function(){return AA.takeover};m.prototype.getType=function(){return AA.type};m.prototype.getCCID=function(){return AA.ccid};m.prototype.getFullData=function(){return AA};m.prototype.getAssets=function(){return z};m.prototype.getPath=function(){return AA.path};m.prototype.getInvitationimp=function(){return AA.invitationimp};m.prototype.getTakeoverimp=function(){return AA.takeoverimp};m.prototype.getRev=function(){return AA.rev};m.prototype.getAdRev=function(){return AA.version};m.prototype.setContents=function(AC){d("AdModel.setContents::",AC);z=l.findAssets(l.toJSON(AC.takeover));AA=AC}};var Q=function(AC,AB){v.call(this);var AD;var z;var AA="http://notready.ru";this._config=AC;this._RID=AB;var AE="videoegg.adloader.callback";d("AdLoader::init config width = "+AC.width);d("AdLoader::init config height = "+AC.height);this.adLoaded=function(AH){d("AdLoader::adLoaded");var AJ=new m();AJ.setContents(AH);if(AC.loops!=undefined){var AF=AJ.getInvite();AF.rawData=AF.rawData.replace(/<loop>.*<\/loop>/g,"<loop>"+AC.loops+"</loop>");d("invite rawData: "+AF.rawData);try{if(AF.content){for(var AG=0;AG<AF.content.children.length;AG++){AF.content.children[AG].video.loop=AC.loops}}}catch(AI){d("Can not override loop count")}}this._owner.dispatchEvent("onAdLoadComplete",AJ);y.destroyElement(this._owner._element)};this.adLoadError=function(){this._owner.dispatchEvent("onAdLoadError")};this.trigger=function(){d("AdLoader::trigger");if(AC.adData){this._owner=this;this.adLoaded(AC.adData)}else{var AF=(AC.url!=null)?AC.url:AA;d("AdLoader::trigger: using url = "+AF);AD=AC.unitId==null?S._generateGUID():AC.unitId;z=y.createElement("VE_AL_"+AD,"div");videoegg.adloader=videoegg.adloader||{};videoegg.adloader.callback=videoegg.adloader.callback||{};videoegg.adloader.callback["AL_CB_"+AD]={onSuccess:this.adLoaded,onError:this.adLoadError,_owner:this};var AG={};AG.id="VE_AL_SWF_"+AD;AG.src="http://core.videoegg.com/eap/"+EAP_VERSION+"/"+p.PLATFORM+"/swf/AdManager.swf";AG.width=1;AG.height=1;AG.flashvars={url:AF,modelLoader:true,successCallback:AE+".AL_CB_"+AD+".onSuccess",failureCallback:AE+".AL_CB_"+AD+".onError"};y.createSWF(z,AG,null,AD,this._config,this._RID);y.setStyle("position","fixed",z);y.setStyle("zIndex",y.getNextHighestZIndex(),z);y.setStyle("top","2px",z);y.setStyle("left","2px",z);y.insertStart(y.getRootElement(),z)}};this.loadAd=function(AH){var AG=AH.url||AA;var AF=document["VE_AL_SWF_"+AD];AF.loadModel({url:AG,successCallback:AE+".AL_CB_"+AD+".onSuccess",failureCallback:AE+".AL_CB_"+AD+".onError",config:this._config})};this.destroy=function(){y.destroyElement("VE_AL_"+AD,"div");z=null}};x(Q,v);x(Q,V);var u=function(){var z=navigator.userAgent;w.call(this);this.firefox=(z.match(/firefox/i)!=null);this.ie=(z.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 AE=0;if(this.ie){for(var AA=11;AA>=8;AA--){try{var AC=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+AA);if(typeof (AC)=="object"){var z=AC.GetVariable("$version").split(",");this.flashMinor=parseInt(z[1]);this.flashRevision=parseInt(z[2]);AC="";AE=AA;break}}catch(AG){}}}else{if(navigator.plugins){navigator.plugins.refresh(false);for(var AD=0;AD<navigator.plugins.length;AD++){var AF=navigator.plugins[AD];var AB=AF.description.match(/^shockwave flash (\d+)\.(\d+) *r(\d+)/i);if(AB){AE=parseInt(AB[1],10);this.flashMinor=parseInt(AB[2],10);this.flashRevision=parseInt(AB[3],10);break}}}}return AE};x(u,w);var p=new u();var b=F;var g=function(AD,AA,AB){if(AB==null){var AF="VE_inivitation_"+S._generateGUID();var AC={id:AF,"class":AF,width:AD,height:AA,style:"margin:auto;text-align:center;"};var AE="<div";for(var z in AC){AE+=" "+z+'="'+AC[z]+'"'}AE+="></div>";document.write(AE);return AF}else{return AB}};videoegg.AdManager=F;var a=function(){T.call(this)};a.prototype.sendPlatform=function(z){T.prototype.sendPlatform.call(this,z);ve_beacon(z)};x(a,T);var h=function(){};h.identifier="AnimationUtilities";h.type="videoegg.utilities";videoegg.PluginRegistry.register(h);h.prototype.animate=function(AF,AA,z,AE,AD){try{if(!VE_jQuery.isFunction(AD)){AD=null}var AB=AF;if(typeof (AF)=="string"){AB=VE_$("#"+AF)}else{AB=AF}if(z){switch(z.toLowerCase()){case"easein":z="easeInQuad";break;case"easeout":z="easeOutQuad";break;case"easeinout":z="easeInOutQuad";break}}VE_$(AB).animate(AA,AE,z,AD)}catch(AC){d("Error completing jQuery animation: "+AC)}};var y={};y.identifier="DOMUtilities";y.type="videoegg.utilities";videoegg.PluginRegistry.register(y);y.isDOMReady=false;y.startTime=(new Date()).getTime();y.hiddenSelects=[];y.hiddenFrames=[];y.didScaleZIndexes=false;y.documentReady=function(){};VE_$(document).ready(function(){y.documentReady()});VE_$(document).ready(function(){y.isDOMReady=true});y.createElement=function(AB,AA){var z=document.createElement(AA);z.id=AB;return z};y.createIframe=function(AB,z){var AA=VE_$("<iframe noresize scrolling='no' hspace='0' vspace='0' frameborder='0' marginheight='0' marginwidth='0' allowTransparency='true'/></iframe>").attr("id",AB)[0];this.setFrameBorder(0,AA);AA.scrolling="no";this.addElement(z,AA);return AA};y.getTagName=function(z){return z.tagName};y.getElementsByClassName=function(z){return VE_$("."+z).get()};y.getElementsByTagName=function(z){return VE_$(z).get()};y.destroyElement=function(z){if(typeof (z)=="string"){elem=VE_$("#"+z)}else{elem=z}VE_$(elem).remove()};y.insertStart=function(z,AA){return z.insertBefore(AA,z.firstChild)};y.addElement=function(AA,z){if(typeof (AA)=="string"){VE_$("#"+AA).append(z)}else{VE_$(AA).append(z)}};y.getElementById=function(z){return VE_$("#"+z)[0]};y.getElementId=function(z){return VE_$(z).attr("id")};y.getViewportDimension=function(){return({width:VE_$(window).width(),height:VE_$(window).height()})};y.getPageDimension=function(){return({width:VE_$(document).width(),height:VE_$(document).height()})};y.getScrollbarWidth=function(){return 0};y.getDimension=function(AE){var AB=0;var AD=0;var z=VE_$(AE).css("width");var AA=VE_$(AE).css("height");var AF=/(px)/;var AC=z.replace(AF,"");if(z.match(AF)){AB=parseInt(z.replace(AF,""))}if(AA.match(AF)){AD=parseInt(AA.replace(AF,""))}return({width:AB,height:AD})};y.getOffset=function(AA){var z=(AA==null)?document:AA;if(typeof (z)=="string"){z=VE_$("#"+AA)}return VE_$(z).offset()};y.getScrollOffset=function(AA){var z=(AA==null)?document:AA;if(typeof (z)=="string"){z=VE_$("#"+AA)}return{scrollTop:VE_$(z).scrollTop(),scrollLeft:VE_$(z).scrollLeft()}};y.setSource=function(AA,z){switch(z.tagName){case ("A"):z.href=AA;break;default:z.src=AA;break}};y.getSource=function(z){switch(z.tagName){case ("A"):return z.href;break;case ("IFRAME"):return z.contentWindow.location;break;default:return z.src;break}};y.getHash=function(z){if(z==null){return document.window.location.hash}return z.hash};y.setHash=function(AA,z){if(z==null){z=window}if(!p.ie){z.location.hash=AA}else{z.location.href=z.location.href.substr(0,z.location.href.indexOf("#"))+"#"+AA}};y.setType=function(AA,z){if(p.ie){}else{z.type=AA}};y.setStyle=function(z,AB,AA){VE_$(AA).css(z,AB)};y.setStyles=function(AA,AB){for(var z in AB){VE_$(AA).css(z,AB[z])}};y.getStyle=function(z,AA){return VE_$(AA).css(z)};y.addEventListener=function(AB,z,AA){VE_$(AA)[AB](z)};y.removeEventListener=function(AB,z,AA){VE_$(AA).unbind(AB,z)};y.addMouseListener=function(AA,z){y.addEventListener(AA,z,document)};y.removeMouseListener=function(AA,z){y.removeEventListener(AA,z,document)};y.addResizeListener=function(z){y.addEventListener("resize",z,window)};y.removeResizeListener=function(z){y.removeEventListener("resize",z,window)};y.setEmbedVisibility=function(z,AA){if(AA){VE_$("object,embed").css("visibility",(z?"visible":"hidden")).filter(function(AB){for(var AC=0;AC<AA.length;AC++){if(VE_$(this).attr("id")==VE_$(AA[AC]).attr("id")){return false}else{return true}}}).css("visibility",(z?"hidden":"visible"))}else{VE_$("object,embed").css("visibility",(z?"hidden":"visible"))}};y.setSelectVisibility=function(AA){if(AA){y.hiddenSelects=[];VE_$("select").filter(function(AB){if(!(VE_$(this).hasClass("veignore"))){y.hiddenSelects.push(this);return true}}).css("visibility","hidden")}else{for(var z=0;z<y.hiddenSelects.length;z++){VE_$(y.hiddenSelects[z]).css("visibility","visible")}}};y.setIframeVisibility=function(AA){if(AA){y.hiddenFrames=[];VE_$("iframe").filter(function(AB){if(!(VE_$(this).hasClass("veignore"))){y.hiddenFrames.push(this);return true}}).css("visibility","hidden")}else{for(var z=0;z<y.hiddenFrames.length;z++){VE_$(y.hiddenFrames[z]).css("visibility","visible")}}};y.setHtml=function(AA,z){VE_$(AA).html(z)};y.setText=function(AA,z){VE_$(AA).text(z)};y.addDocumentReadyListener=function(AA,z){VE_$(document).ready(function(){z.call(AA)})};y.copyProps=function(){return VE_$.extend.apply(this,arguments)};y.createSWF=function(AL,AI,AN,AC,AF,AK,AE,AJ){if(AC==null){throw"DOMUtilities::createSWF, A container id must be provided."}if(AF==null){throw"DOMUtilities::createSWF, A config must be provided."}if(AK==null){throw"DOMUtilities::createSWF, A RID must be provided."}if(AI.width>5000){AI.width=5000}if(AI.height>32000){AI.height=32000}if(AI.wmode==null){AI.wmode="transparent"}if(AI.scale==null){AI.scale="noscale"}var AG={"System.useCodePage":"true",modelLoader:AI.modelLoader===true};if(AI.flashvars!=null&&typeof AI.flashvars==="object"){d("DOMUtilities::createSWF, flashvars passed in as an object: ",AI.flashvars);AG=VE_$.extend(AG,AI.flashvars||{})}if(AI.flashvars!=null&&typeof AI.flashvars==="string"){d("DOMUtilities::createSWF, flashvars passed in as a string: ",AI.flashvars);var AM=AI.flashvars.split("&");for(var AA in AM){AG[AA]=AM[AA]}}AG.tStart=new Date().getTime();if(AF!=null&&typeof AF==="object"){AF.adData={};AG.config=escape(l.toJSON(AF))}if(AN!=null&&typeof AN==="object"){var z=l.toJSON({rawData:AN.rawData});AG.adData=escape(z)}AG.platform=AF.iframeEnabled?"iframe":p.PLATFORM;if("placement" in AF){AG.placement=AF.placement}AG.unitId=AC;AG.RID=AK;if(AI.inviteOffset!=null){AG.ix=AI.inviteOffset.left;AG.iy=AI.inviteOffset.top}AG.ve_debug=VE_DEBUG?"true":"false";var AP;if(p.ie){AP='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="%ID" id="%ID" width="%WIDTH" height="%HEIGHT" align="middle" ><param name="allowscriptaccess" value="always" />'+((!AJ)?'<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="allowFullScreen" value="true"/><param name="movie" value="%MOVIE'+((!AJ)?"":"?%FLASHVARS")+'" /></object>'}else{AP='<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" allowFullScreen="true"></embed>'}AP=AP.replace(/%MOVIE/g,AI.src);AP=AP.replace(/%ID/g,AI.id);AP=AP.replace(/%WMODE/g,AI.wmode);AP=AP.replace(/%SCALE/g,AI.scale);var AD="placement" in AF&&AF.placement!==videoegg.Constants.PLACEMENT_NORMAL;var AB=AF.takeover===true;if(AD&&!AB){if(VE_$.browser.msie&&document.compatMode=="BackCompat"){AP=AP.replace(/%WIDTH/g,VE_$(window).width())}else{AP=AP.replace(/%WIDTH/g,"100%")}AP=AP.replace(/%HEIGHT/g,videoegg.Constants.TWIG_HEIGHT+"px")}else{AP=AP.replace(/%WIDTH/g,AI.width);AP=AP.replace(/%HEIGHT/g,AI.height)}d("DomUtilities::createSWF, assembling flashvars");var AO=[];for(var AA in AG){AO.push(AA+"="+AG[AA])}var AH=AO.join("&");d("DomUtilities::createSWF, FlashVars size after encoding:",AH.length);if(p.safari&&AH.length>64*1024){d("DOMUtilities::createSWF, WARNING!!!, Safari cannot handle a FlashVars parameter that exceeds 64K in size. Current FlashVars parameter is "+AH.length+" bytes!");delete AG.adData;AO=[];for(AA in AG){AO.push(AA+"="+AG[AA])}AH=AO.join("&");d("DomUtilities::createSWF, FlashVars size after removing ad.xml:",AH.length)}AP=AP.replace(/%FLASHVARS/g,AH);VE_$(AL)[0].innerHTML=VE_$(AL)[0].innerHTML+AP;return this.getElementById(AI.id)};y.getNextHighestZIndex=function(){var AB=new Date().getTime();var z=y.getNextHighestZIndexInt();var AA=new Date().getTime()-AB;d("DOMUtilities::getNextHighestZIndex, result:",z,", elapsed:",AA);return z};y.getNextHighestZIndexInt=function(){var AB=0;var AA=[];VE_$("*").each(function(){if(VE_$(this).css("z-index")){if((!isNaN(VE_$(this).css("z-index")))&&(VE_$(this).css("z-index")>AB)){if(!y.didScaleZIndexes&&Number(VE_$(this).css("z-index"))>100000){d("DOMUtilities.getNextHighestZIndex::Element found with big z-index: ",VE_$(this));AA.push(this)}AB=Number(VE_$(this).css("z-index"))+1}}});d("DOMUtilities.getNextHighestZIndex::"+AB);if(AA.length==0){return AB}else{d("DOMUtilities.getNextHighestZIndex:: Sorting "+AA.length+" bigZIndexes");AA.sort(function(AD,AC){return Number(VE_$(AD).css("z-index"))-Number(VE_$(AC).css("z-index"))});var z=100001;VE_$(AA).each(function(){VE_$(this).css("z-index",z++)});y.didScaleZIndexes=true;return this.getNextHighestZIndexInt()}};y.getRootElement=function(){return VE_$("body")[0]};y.getURL=function(){var AA="";try{AA=document.URL}catch(z){d("DOMUtilities.getURL::Error getting document location - "+z)}return AA};y.setFrameBorder=function(AA,z){z.frameBorder=AA};y.getId=function(z){return z.id};y.setId=function(z,AA){z.id=AA};y.isInIframe=function(){if((typeof (window.parent)!="undefined")&&(window!=window.parent)){if(window.parent.frames.length>0){return true}}return false};y.getQueryStringParameters=function(){var z=window.location.search;var AA={};if((z!=null)&&(z.length>0)){if(z.indexOf("?")==0){z=z.substr(1,z.length)}var AC=z.split("&");for(var AB=0;AB<AC.length;AB++){var AD=AC[AB].split("=");AA[AD[0]]=AD[1]}}return AA};y.insertBodyStart=function(AA,AC){if(document.body==null||typeof (document.body)!="object"){var z=this;var AB=function(){z.insertBodyStart(AA,AC)};setTimeout(AB,30);return }else{document.body.insertBefore(AA,document.body.firstChild);if(typeof (AC)=="function"){AC()}}};y.cleanUp=function(){VE_$("*").each(function(){if(this.id.indexOf("VE")>-1&&this.id.indexOf("pixie")==-1){VE_$(this).remove()}})};var l={};l.identifier="DataUtilities";l.type="videoegg.utilities";videoegg.PluginRegistry.register(l);l.toJSON=function(z){return VE_$.toJSON(z)};l.fromJSON=function(z){return VE_$.parseJSON(z)};l.findAssets=function(AE){var z=[];var AB=0;var AC=/(http|https):\/\/[A-Za-z0-9_.\/]+(\b|$)(.)(png|jpg|jpeg|swf|gif|mp3){1}/gim;var AA;while((AA=AC.exec(AE))!=null){var AD=true&&(AA[0].indexOf("AdManager")==-1);for(var AF=0;AF<z.length;AF++){if(z[AF].toLowerCase()==AA[0].toLowerCase()){AD=false;break}}if(AD){z.push(AA[0])}}return z};var M=function(){v.call(this)};M.identifier="DisplayUnit";M.type="videoegg.displayunit";M.prototype.init=function(AC,AB,AA,z){this._id=AB;this._config=AA;this._RID=z;this._du=y;this._domUtilities=y;this._trace=d;d("DisplayUnit::init: parentId = ",AC);this._parent=typeof AC=="string"?y.getElementById(AC):AC;this._width=null;this._height=null;d("DisplayUnit::init: parent tagName = "+this._du.getTagName(this._parent).toUpperCase());if(/iframe/ig.test(this._du.getTagName(this._parent))){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;o.registerUnit(this);this._enabled=true};M.prototype.show=function(){d("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(){d("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(){o.unregisterUnit(this);this._du.destroyElement(this._element)};M.prototype.onAdManagerLoaded=function(){d("DisplayUnit::onAdManagerLoaded ")};M.prototype.populate=function(z){d("DisplayUnit::populate ");this._data=z};M.prototype.setId=function(z){this._id=z};M.prototype.getId=function(){return this._id};M.prototype.getWidth=function(){return this._width};M.prototype.setWidth=function(z){this._width=z};M.prototype.getHeight=function(){return this._height};M.prototype.setHeight=function(z){this._height=z};M.prototype.setEnabledForAllContainers=function(AA){var AB=n.getAllContainers();for(var z=0;z<AB.length;z++){AB[z].enabled(AA)}};M.prototype.enabled=function(z){this._enabled=z};M.prototype.getDimensions=function(){return{width:this._width,height:this._height}};M.register=function(){videoegg.PluginRegistry.register(M);x(M,v)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(M.register)}else{M.register()}var W=function(){M.call(this);this._originElement=null;this._animationDuration=700;this._actionComplete=false;this._originalPageDim=null;this._cornerPos=null;var z=this;this._resizeUpdate=function(){var AA=y.getPageDimension();if(AA.width<430){AA.width=430}if(AA.height<380){AA.height=380}y.setStyle("top","0px",z._element);y.setStyle("left","0px",z._element);y.setStyle("height",AA.height+"px",z._element);y.setStyle("width",AA.width+"px",z._element)}};W.identifier="default";W.type="videoegg.takeover.banner.actions.transition";W.prototype.create=function(){M.prototype.create.call(this);d("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((p.mac)&&(p.firefox)){this._du.setStyle("backgroundImage","url('http://core.videoegg.com/eap/"+EAP_VERSION+"/"+p.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)}};W.prototype.show=function(){d("BannerTakeoverAction.show ()");if(this._enabled){try{var AF=this;this._du.addEventListener("mousedown",function(){AF.onMouseDown.call(AF)},this._element);this._du.addEventListener("mouseout",function(){AF.onRollOut.call(AF)},this._element);this._du.addEventListener("mouseover",function(){AF.onRollOver.call(AF)},this._element);this._originalPageDim=y.getPageDimension();var AH=this._du.getOffset(this._originElement);var AG,AC;if((AH.top+AH.left)==0){AG=this._du.getStyle("top",this._originElement);AC=this._du.getStyle("left",this._originElement)}else{AG=AH.top+"px";AC=AH.left+"px"}this._du.setStyles(this._element,{top:AG,left:AC,display:"block",zIndex:this._du.getNextHighestZIndex()-1});var AB=new h();if((!p.mac)&&(!p.firefox)){this._du.setStyle("opactity","0",this._element)}var z=this._du.getViewportDimension();if(z.width<430){z.width=430}if(z.height<380){z.height=380}this._cornerPos=this._du.getScrollOffset();this._du.setEmbedVisibility(true,[this._originElement]);this._du.setSelectVisibility(true);this._du.setIframeVisibility(true);var AA={height:z.height+"px",width:z.width+"px",left:this._cornerPos.scrollLeft+"px",top:this._cornerPos.scrollTop+"px"};this._actionComplete=false;var AE=function(){AF.onAnimationComplete.call(AF)};AB.animate(this._element,AA,"easeInOut",this._animationDuration,AE)}catch(AD){d("BannerTakeoverAction:: Error during show operation: "+AD)}}};W.prototype.hide=function(){try{d("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 z=this;this._du.removeEventListener("mousedown",function(){z.onMouseDown.call(z)},this._element);this._du.removeEventListener("mousemove",function(){z.onRollOver.call(z)},this._element);var AC=this._du.getOffset(this._originElement);var AE,AB;if((AC.top+AC.left)==0){AE=this._du.getStyle("top",this._originElement);AB=this._du.getStyle("left",this._originElement)}else{AE=AC.top+"px";AB=AC.left+"px"}if(AE=="auto"||AB=="auto"){AE=0;AB=0}var z=this;var AD={height:this._height+"px",width:this._width+"px",left:AB,top:AE};var AG=new h();var AA=function(){z._du.setStyle("display","none",z._element);z.onHideComplete.call(z)};AG.animate(this._element,AD,"easeInOut",this._animationDuration,AA)}catch(AF){d("BannerTakeoverAction:: Error during hide operation: "+AF);alert("TakeoverAction error: "+AF.message)}};W.prototype.populate=function(z){try{M.prototype.populate.call(this)}catch(AA){d("BannerTakeoverAction::Error during find operation: "+AA)}};W.prototype.onShowComplete=function(z){this._resizeUpdate();this._du.addResizeListener(this._resizeUpdate);this._du.setEmbedVisibility(true);this.dispatchEvent("onShowComplete",this)};W.prototype.onHideComplete=function(AA){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 z=this._du.getOffset(this._originElement);this._du.setStyles(this._element,{top:z.top+"px",left:z.left+"px",height:this._height+"px",width:this._width+"px",visibility:"visible",display:"none"});this.dispatchEvent("onHideComplete",this)};W.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()}};W.prototype.onRollOver=function(){this.dispatchEvent("onRollOver",this)};W.prototype.onRollOut=function(){this.dispatchEvent("onRollOut",this)};W.prototype.onMouseDown=function(){this.dispatchEvent("onMouseDown",this)};W.prototype.setOriginElement=function(z){this._originElement=z};W.prototype.getOriginElement=function(){return this._originElement};W.prototype.getDimensions=function(){var z=this._du.getDimension(this._originElement);return z};W.register=function(){videoegg.PluginRegistry.register(W);x(W,M)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(W.register)}else{W.register()}var t=function(){M.call(this);this._takeoverAction=null;this._takeover=null;this._swfElement=null;this._twigAbsoluteTimeout=null;this._isVisibleTimout=-1;this._originalElement=null;this._preloader=null;this._hiddenElements=null;this._adSpacer=null;this._TAKEOVER_PACKAGE="videoegg.takeover.banner.actions.transition"};t.identifier="banner";t.type="videoegg.displayunit";t.prototype.onAdManagerLoaded=function(){d("Banner::onAdManagerLoaded");if(this._isVisibleTimout!=-1){H(this._isVisibleTimout);this._isVisibleTimout=-1}};t.prototype.show=function(){if(this._enabled){d("Banner::show()");M.prototype.show.call(this);this._swfElement=this._du.createSWF(this._element,this._swf,this._data,this._id,this._config,this._RID);var AB=this._config.placement==videoegg.Constants.PLACEMENT_TWIG_BOTTOM||this._config.placement==videoegg.Constants.PLACEMENT_TWIG_BOTTOM;if(VE_$.browser.msie&&document.compatMode=="BackCompat"&&AB){var z=this;VE_$(window).resize(function(){VE_$(z._swfElement).width(VE_$(window).width());VE_$(window).scroll()})}d("Banner::show(), Setting origin and offset values");this._takeoverAction.setOriginElement(this._swfElement);d("Banner::show(), Values set");var AA=this;this._hiddenElements=y.getElementsByClassName("veignore");this._isVisibleTimout=e(function(){AA._du.setStyle("visibility","visible",AA._swfElement)},100);d("Banner:show(), Calling onShowComplete()");this.onShowComplete()}};t.prototype.hide=function(){d("Banner::hide");M.prototype.hide.call(this);if(this._isVisibleTimout!=-1){H(this._isVisibleTimout);this._isVisibleTimout=-1}this.onHideComplete()};t.prototype.create=function(){M.prototype.create.call(this);d("Banner::create, placement: ",this._config.placement);try{switch(this._config.placement){case videoegg.Constants.PLACEMENT_NORMAL:this._du.setStyles(this._element,{margin:"auto",textAlign:"center",padding:"0px",width:"100%"});break;case videoegg.Constants.PLACEMENT_TWIG:if(this.supportsPositionFixed()){this._adSpacer=this._du.createElement("ve_spacer","div");this._du.setStyles(this._adSpacer,{height:videoegg.Constants.TWIG_HEIGHT+"px"});this._du.insertBodyStart(this._adSpacer)}case videoegg.Constants.PLACEMENT_TWIG_BOTTOM:this._du.setStyles(this._element,{left:"0",height:videoegg.Constants.TWIG_HEIGHT+"px",width:"100%",padding:"0",margin:"0",zIndex:this._du.getNextHighestZIndex()+1});this.setTwigPositioning(this._element);if(this._config.placement==videoegg.Constants.PLACEMENT_TWIG){this._du.setStyles(this._element,{top:0})}else{this._du.setStyles(this._element,{bottom:0})}break}if(!this._config.iframeEnabled){var z=this._du.createElement("VE_IP_"+S._generateGUID(),"div");this._du.addElement(this._element,z);this._du.setStyle("width","100%",z);this._du.setStyle("textAlign","center",z);var AB=this._du.createElement("VE_IL_"+S._generateGUID(),"div");this._du.addElement(z,AB);if(this._config.placement==videoegg.Constants.PLACEMENT_NORMAL){this._du.setStyle("width",this._config.width+"px",AB);this._du.setStyle("height",this._config.height+"px",AB);this._du.setStyle("margin","auto",AB)}else{this._du.setStyle("width","100%",AB);this._du.setStyle("height",videoegg.Constants.TWIG_HEIGHT+"px",AB);this._du.setStyle("margin","0",AB);this._du.setStyle("padding","0",AB);this._du.setStyle("zIndex",this._du.getNextHighestZIndex()+1,AB)}this._du.setStyle("display","block",this._element);this._du.setStyle("display","none",AB);this._originalElement=this._element;this._element=AB}if(this._takeoverAction!=null){this._takeoverAction.create()}if(this._takeover!=null){this._takeover.create()}}catch(AA){d("Banner::Error during create: "+AA)}};t.prototype.setTwigPositioning=function(AA){if(this.supportsPositionFixed()){this._du.setStyles(AA,{position:"fixed"})}else{y.insertStart(document.body,AA);this._du.setStyles(AA,{position:"absolute"});var z=this;VE_$(window).scroll(function(){if(z._twigAbsoluteTimeout!=null){clearTimeout(z._twigAbsoluteTimeout);z._twigAbsoluteTimeout=null}z._du.setStyles(AA,{opacity:0});z._twigAbsoluteTimeout=setTimeout(function(){var AC=VE_$(document).scrollTop();var AD=VE_$(document).scrollLeft();var AB=AC-videoegg.Constants.TWIG_HEIGHT;if(z._config.placement===videoegg.Constants.PLACEMENT_TWIG_BOTTOM){AC+=VE_$(window).height()-videoegg.Constants.TWIG_HEIGHT;AB=AC+videoegg.Constants.TWIG_HEIGHT}z._twigAbsoluteTimeout=null;z._du.setStyles(AA,{top:AB,left:AD});new h().animate(AA,{top:AC,opacity:1},"easeinout",300,null)},800)})}VE_$(document).ready(function(){d("Setting zIndex on twig ad: ",AA);y.setStyles(AA,{zIndex:y.getNextHighestZIndex()})})};t.prototype.destroy=function(){d("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()};t.prototype.populate=function(AB){try{M.prototype.populate.call(this);if(this._width==null){this._width=616}if(this._height==null){this._height=70}this._data=AB.getInvite();var AA=AB.getTakeover();this._swf={};this._swf.id=S._generateGUID();this._swf.src=this._data.url;this._swf.width=this._width;this._swf.height=this._height;if(AA!=null){var AD=videoegg.PluginRegistry.locate("videoegg.takeover.banner.actions.transition",AA.transitionType);if(typeof (AD)!=undefined&&typeof (this._config.takeoverAction)=="undefined"){this._takeoverAction=new AD()}else{AD=videoegg.PluginRegistry.locate("videoegg.takeover.banner.actions.transition","default");this._takeoverAction=new AD()}this._takeoverAction.init(this._du.getRootElement(),S._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(AB);var z=this._takeoverAction.getDimensions();this._takeoverAction.setWidth(z.width);this._takeoverAction.setHeight(z.height);this._takeoverAction.addEventListener(this);this._swf={};this._swf.id="VE_INV_"+S._generateGUID();this._swf.src=this._data.url;this._swf.width=this._width;this._swf.height=this._height;AD=videoegg.PluginRegistry.locate("videoegg.displayunit.takeover","default");this._takeover=new AD();this._takeover.init(this._du.getRootElement(),S._generateGUID(),this._config,this._RID);this._takeover.setOriginElement(this._element);this._takeover.populate(AB);z=this._takeover.getDimensions();this._takeover.setWidth(z.width);this._takeover.setHeight(z.height);this._takeover.addEventListener(this)}}catch(AC){d("Banner::Error during populate: "+AC)}};t.prototype.onShowComplete=function(z){if(z==this._takeoverAction){this._takeover.show()}this.dispatchEvent("onShowComplete",this)};t.prototype.onHideComplete=function(z){d("Banner::onHideComplete");if(z==this._takeover){this.setEnabledForAllContainers(true);var AA=(this._hiddenElements)?this._hiddenElements.length:0;for(i=0;i<AA;i++){y.setStyle("display","block",this._hiddenElements[i])}this._takeoverAction.hide()}};t.prototype.onRollOver=function(z){if(z==this._takeoverAction){this._takeover.onCloseRollover()}};t.prototype.onRollOut=function(z){if(z==this._takeoverAction){this._takeover.onCloseRollout()}};t.prototype.onMouseDown=function(z){if(z==this._takeoverAction){this._takeover.hide()}};t.prototype.showTakeover=function(){d("Banner::showTakeover");if(this._enabled){if(this._isVisibleTimout!=-1){H(this._isVisibleTimout);this._isVisibleTimout=-1}this.setEnabledForAllContainers(false);this._takeoverAction.show();y.destroyElement(this._preloader);var z=(this._hiddenElements)?this._hiddenElements.length:0;for(i=0;i<z;i++){y.setStyle("display","none",this._hiddenElements[i])}}};t.prototype.hideInvite=function(){d("Banner::hideInvite()");if(this._config.placement!=videoegg.Constants.PLACEMENT_NORMAL){d("Banner::hideInvite() - hiding twig ad.");this._du.setStyle("display","none",this._swfElement.parentNode.parentNode.parentNode);this._du.destroyElement(this._swfElement);if(this._adSpacer!=null){this._du.setStyle("display","none",this._adSpacer)}}};t.prototype.supportsPositionFixed=function(){var AA=document.createElement("div");var z=false;try{AA=document.body.insertBefore(AA,document.body.firstChild);AA.style.position="fixed";AA.style.top="-10%";AA.style.left="-10%";if(AA.offsetLeft<0&&AA.offsetTop<0){z=true}}finally{document.body.removeChild(AA)}d("Banner::supportsPositionFixed: ",z);t.prototype.supportsPositionFixed=function(){return z};return t.prototype.supportsPositionFixed()};t.register=function(){videoegg.PluginRegistry.register(t);x(t,M)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(t.register)}else{t.register()}var f=[];var O=function(){d("DisplayManager::init");d("DisplayManager::EAP_VERSION = "+EAP_VERSION);this._isHostReady=true;this._isDataSet=false;this._displayList={};this._data=null;this._preloader;this._render();f.push(this)};O.prototype.preloadAssets=function(AA){d("DisplayManager::preloadingAssets");var AB=S._generateGUID();this._preloader=y.createElement("VE_PL_"+AB,"div");var z={};z.id="VE_PL_SWF_"+AB;z.src="http://core.videoegg.com/eap/"+EAP_VERSION+"/"+p.PLATFORM+"/swf/AssetPreloader.swf";z.width=1;z.height=1;z.flashvars={assetList:l.toJSON(AA)};y.createSWF(this._preloader,z,null,AB,{},AB);y.setStyle("position","fixed",this._preloader);y.setStyle("zIndex",y.getNextHighestZIndex(),this._preloader);y.setStyle("top","0px",this._preloader);y.setStyle("left","0px",this._preloader);y.insertStart(y.getRootElement(),this._preloader)};O.prototype.setData=function(AA,z){d("DisplayManager::setData");this._data=AA;this._isDataSet=true;if(z){this.preloadAssets(AA.getAssets())}this._render()};O.prototype.addContainer=function(z){if(this._displayList[z.getId()]==null){var AA=(z.getConfig()["unitId"]==null)?S._generateGUID():z.getConfig()["unitId"];this._displayList[AA]=z;z._owner_=this;z.setId(AA)}else{throw"DisplayContainer "+z.getId()+" has already been added to the display list. DisplayContainers can only be added once."}};O.prototype.getContainer=function(z){return this._displayList[z]};O.prototype.getDisplayContainers=function(){return this._displayList};O.prototype.clearDisplayList=function(){this._displayList={}};O.prototype.destroy=function(){for(var z in this._displayList){var AA=this._displayList[z];AA.destroy()}this.clearDisplayList()};O.prototype._render=function(){d("DisplayManager::_render");for(var z in this._displayList){var AA=this._displayList[z];AA.populate(this._data);AA.create();AA.show();AA.getUnit()._preloader=this._preloader}};var n={};n.locate=function(AC){for(var AA=0;AA<f.length;AA++){var z=f[AA];var AB=z.getUnit(AC);if(AB!=null){return AB}}return null};n.getAllContainers=function(){var AB=[];for(var AA=0;AA<f.length;AA++){var AC=f[AA].getDisplayContainers();for(var z in AC){AB.push(AC[z])}}return AB};var o={};var B=[];o.registerUnit=function(z){if(B[z.getId()]==null){d("UnitManager::Registering unit with id="+z.getId(),z);B[z.getId()]=z}else{throw"UnitManager::DisplayUnit "+z.getId()+" is already a registered unit. DisplayUnits can only be added once."}};o.unregisterUnit=function(z){if(B[z.getId()]){delete B[z.getId()]}};o.locate=function(z){d("UnitManager::locate registered object with id = "+z+": ",B[z]);return B[z]};o.register=function(){videoegg.UnitManager=o};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(o.register)}else{o.register()}var j=function(){t.call(this);this._TAKEOVER_PACKAGE="videoegg.takeover.actions.transition"};j.identifier="invite";j.type="videoegg.displayunit";j.register=function(){videoegg.PluginRegistry.register(j);x(j,t)};if(typeof (VE_initCustom)!="undefined"){VE_initCustom.push(j.register)}else{j.register()}var A=function(){W.call(this)};A.identifier="default";A.type="videoegg.takeover.actions.transition";A.prototype.create=function(){d("AdFrameTakeoverAction.create ()");W.prototype.create.call(this);var AA=this._du.createElement(this._id+"_corner","div");this._du.setStyles(AA,{position:"absolute",top:"0px",right:"0px",height:"53px",width:"53px",zIndex:"1"});this._du.addElement(this._element,AA);var z=this._du.createElement(this._id+"_cornerImg","img");this._du.setSource("http://core.videoegg.com/eap/"+EAP_VERSION+"/"+p.PLATFORM+"/media/takeover_btn.jpg",z);this._du.setStyles(z,{position:"absolute",right:"0px"});this._du.addElement(AA,z)};A.prototype.show=function(){d("AdFrameTakeoverAction.show ()");W.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 AA=new h();var z={height:"0px",width:"0px"};AA.animate(this._id+"_cornerImg",z,"easeInOut",this._animationDuration,function(){return true})};A.register=function(){videoegg.PluginRegistry.register(A);x(A,W)};if(typeof (VE_initCustom)!="undefined"){VE_initCustom.push(A.register)}else{A.register()}var Z=function(){M.call(this)};Z.identifier="alternate";Z.type="videoegg.displayunit";Z.prototype.show=function(){if(this._enabled){M.prototype.show.call(this);var z=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(z){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 AA=this._du.createIframe(S._generateGUID(),this._element);this._du.setSource(this._data.alternate,AA);this._du.setStyles(AA,{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"){d("Alternate::collapse");this._du.setStyle("display","none",this._parent)}}break;default:this._du.setStyle("display","none",this._parent);break}this.onShowComplete()}};Z.prototype.hide=function(){M.prototype.hide.call(this);this.onHideComplete()};Z.prototype.create=function(){M.prototype.create.call(this)};Z.prototype.destroy=function(){M.prototype.destroy.call(this)};Z.prototype.populate=function(z){try{d("Alternate:: populate");M.prototype.populate.call(this);this._data=z}catch(AA){d("Alternate::Error during find: "+AA)}};Z.prototype.onShowComplete=function(z){d("Alternate::onShowComplete");this.dispatchEvent("onShowComplete",this)};Z.prototype.onHideComplete=function(z){d("Alternate::onHideComplete");this.setEnabledForAllContainers(true);this.dispatchEvent("onHideComplete",this)};Z.register=function(){videoegg.PluginRegistry.register(Z);x(Z,M)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(Z.register)}else{Z.register()}var q=function(AA,AB,z){this._elementId=AA;this._id=null;this._config=null;this._RID=null;this._alternate=null;this._impl=null;this._owner_=null;this._enabled=true;this._width=AB;this._height=z;this._forcedType=null};q.prototype.populate=function(z){if(this._forcedType!=null){this._impl=s.createUnitFromType(this._forcedType,this._elementId,z,this._id,this._width,this._height,this._enabled,this._config,this._RID)}else{this._impl=s.createUnit(this._elementId,z,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(AA){this._impl.setWidth.call(this._impl,AA)};this["getWidth"]=function(){return this._impl.getWidth.call(this._impl)};this["setWidth"]=function(AA){this._impl.setWidth.call(this._impl,AA)};this["getConfig"]=function(){return this._impl.getConfig.call(this._impl)};this["setConfig"]=function(AA){this._impl.setConfig.call(this._impl,AA)};this["getEnabled"]=function(){return this._impl.getEnabled.call()};this["enabled"]=function(AA){this._impl.enabled.call(this._impl,AA)};delete this._enabled};q.prototype.getAlternate=function(){return this._alternate};q.prototype.setAlternate=function(z){this._alternate=z};q.prototype.isEnabled=function(){return this._enabled};q.prototype.enabled=function(z){this._enabled=z};q.prototype.getId=function(){return this._id};q.prototype.setId=function(z){if(this._owner_!=null){this._id=z}};q.prototype.getWidth=function(){return this._width};q.prototype.setWidth=function(z){this._width=z};q.prototype.getHeight=function(){return this._height};q.prototype.setHeight=function(z){this._height=z};q.prototype.setForcedType=function(z){this._forcedType=z};q.prototype.getUnit=function(){return this._impl};q.prototype.getConfig=function(){return this._config};q.prototype.setConfig=function(z){this._config=z};q.prototype.getRID=function(){return this._RID};q.prototype.setRID=function(z){this._RID=z};var s={};s.createUnit=function(AC,AB,z,AH,AD,AF,AA,AE){var AI=AB.getType();var AG;switch(AI){case ("BANNER"):AG="banner";break;case ("ADFRAMES"):default:AG="invite";break}return this.createUnitFromType(AG,AC,AB,z,AH,AD,AF,AA,AE)};s.createUnitFromType=function(AI,AD,AC,z,AJ,AF,AG,AB,AE){var AH=videoegg.PluginRegistry.locate("videoegg.displayunit",AI);var AA=new AH();AA.init(AD,z,AB,AE);AA.enabled(AG);AA.setWidth(AJ);AA.setHeight(AF);AA.populate(AC);return AA};var c=function(){t.call(this);this._takeoverBridgeSwf=null;this._TAKEOVER_PACKAGE="videoegg.takeover.banner.actions.transition";d("IFrameBanner.constuctor ()")};c.identifier="iframebanner";c.type="videoegg.displayunit";c.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 z=this;this._isVisibleTimout=e(function(){z._du.setStyle("visibility","visible",z._swfElement)},100);this.onShowComplete()}};c.prototype.populate=function(AC){d("IFrameBanner.populate ()");try{if(this._width==null){this._width=616}if(this._height==null){this._height=70}this.fullData=AC;this._data=AC.getInvite();this._swf={};this._swf.id=S._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 z={};for(var AB in this._config){z[AB]=this._config[AB]}if(z.width==null){z.width=this._width}if(z.height==null){z.height=this._height}z.ref="";var AA={config:z,RID:this._RID,unitID:this._id,adData:{takeover:{url:this.fullData.getTakeover()["url"],rawData:this.fullData.getTakeover()["rawData"],transitionType:this.fullData.getTakeover()["transitionType"]}}};top.VE_createBridge(AA)}catch(AD){d("IFrameBanner::Error during populate: "+AD)}};c.prototype.showTakeover=function(){d("IFrameBanner :: showTakeover, unitId:"+this._id);if(this._enabled){top.VE_showTakeover({unitId:this._id})}};c.prototype.sendMessage=function(AA,z){z.RID=this._RID;this._du.getElementById(this._bridgeSwfName).sendMessage(AA,z)};c.register=function(){videoegg.PluginRegistry.register(c);x(c,t)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(c.register)}else{c.register()}var Y=function(){t.call(this);this._TAKEOVER_PACKAGE="videoegg.takeover.banner.actions.transition";d("IFrameShim.constuctor ()")};Y.identifier="iframeshim";Y.type="videoegg.displayunit";Y.prototype.show=function(){d("IFrameShim.show ()");if(this._enabled){this.onShowComplete();d("IFrameShim.shown ()")}};Y.prototype.populate=function(AC){d("IFrameShim.populate ()");try{if(this._width==null){this._width=616}if(this._height==null){this._height=70}this._data=AC.getInvite();var AB=AC.getTakeover();d("IFrameShim.populate () : takeover is null? "+(AB==null));if(AB!=null){d("IFrameShim.populate () : creating holder");if(!AB.transitionType){AB.transitionType="default"}var AE=videoegg.PluginRegistry.locate(this._TAKEOVER_PACKAGE,AB.transitionType);this._takeoverAction=new AE();this._takeoverAction.init(this._du.getRootElement(),S._generateGUID(),this._config,this._RID);var AA=y.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(AA.height*0.5)+"px",this._element);this._du.setStyle("left",Math.floor(AA.width*0.5)+"px",this._element);this._takeoverAction.setOriginElement(this._element);this._takeoverAction.populate(AC);var z=this._takeoverAction.getDimensions();this._takeoverAction.setWidth(z.width);this._takeoverAction.setHeight(z.height);this._takeoverAction.addEventListener(this);AE=videoegg.PluginRegistry.locate("videoegg.displayunit.takeover","default");this._takeover=new AE();this._takeover.init(this._du.getRootElement(),S._generateGUID(),this._config,this._RID);this._takeover.setOriginElement(this._element);this._takeover.populate(AC);z=this._takeover.getDimensions();this._takeover.setWidth(z.width);this._takeover.setHeight(z.height);this._takeover.addEventListener(this)}}catch(AD){d("IFrameShim::Error during populate: "+AD)}};Y.prototype.onHideComplete=function(z){d("IFrameShim::onHideComplete");if(z==this._takeover){this.setEnabledForAllContainers(true);this._takeoverAction.hide()}};Y.register=function(){videoegg.PluginRegistry.register(Y);x(Y,t)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(Y.register)}else{Y.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._displayStartTime=null;this._billingStartTime=null;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 AA=this._du.createElement("takeover_close_btn_img_"+this._id,"div");if(p.ie){this._du.setStyle("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://core.videoegg.com/eap/"+EAP_VERSION+"/"+p.PLATFORM+"/media/close_btn.png',sizingMethod='scale')",AA)}else{this._du.setStyle("backgroundImage","url('http://core.videoegg.com/eap/"+EAP_VERSION+"/"+p.PLATFORM+"/media/close_btn.png')",AA)}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 z=this._du.createElement("takeover_close_highlight_"+this._id,"div");this._du.setStyles(z,{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(AA,{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,z);this._du.addElement(this._closeBtn,AA);this._du.addElement(this._closeDiv,this._closeBtn);this._du.addElement(this._element,this._closeDiv)};L.prototype.show=function(){d("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()+1});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}var z=y.copyProps({takeover:true},this._config);this._swfElement=this._du.createSWF(this._swfLayer,this._swf,this._data,this._id,z,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();this._displayStartTime=null;this._billingStartTime=null;this._takeoverShowing=true}};L.prototype.onTakeoverDisplay=function(){this._displayStartTime=new Date().getTime()};L.prototype.onBillingMetric=function(){this._billingStartTime=new Date().getTime()};L.prototype.hide=function(){if(this._destroyTimeout==-1||this._takeoverShowing){var AA=new Date().getTime();var AB=AA-this._takeoverStartTime;var AC={ccid:((this._config.CCID==null)||(isNaN(this._config.CCID)))?1:this._config.CCID,rid:this._RID,t:AB,tdisplay:this._displayStartTime==null?0:AA-this._displayStartTime,tbill:this._billingStartTime==null?0:AA-this._billingStartTime,version:3,area:this._config.area,si:this._config.site};var z=new a();z.send("tclose",AC);var AD=this;this._destroyTimeout=r(function(){if(AD._du.getElementById(AD._swf.id)){AD._du.destroyElement(AD._swf.id);AD._du.setStyle("display","none",AD._element);AD.destroyLayers();AD.onHideComplete();AD._destroyTimeout=-1}},100);this._du.removeEventListener("mousedown",function(AE){AD.hide.call(AD,AE)},this._backgroundDiv);this._du.removeEventListener("mousedown",function(AE){AD.hide.call(AD,AE)},this._closeDiv);this._du.removeEventListener("mousemove",function(AE){AD.onCloseRollover.call(AD,AE)},this._closeBtn);this._du.removeEventListener("mousemove",function(AE){AD.onCloseRollover.call(AD,AE)},this._closeDiv);this._du.removeEventListener("mousemove",function(AE){AD.onCloseRollover.call(AD,AE)},this._backgroundDiv)}};L.prototype.destroy=function(){M.prototype.destroy.call(this)};L.prototype.populate=function(z){try{M.prototype.populate.call(this);this._data=z.getTakeover();this._swf={};this._swf.id=S._generateGUID();this._swf.src=this._data.url;this._swf.width=this._width;this._swf.height=this._height}catch(AA){d("Takeover:: Error during find operation: "+AA)}};L.prototype.onShowComplete=function(z){d("Takeover :: onShowComplete");this._du.setStyle("visibility","visible",this._closeDiv);this.dispatchEvent("onShowComplete",this)};L.prototype.onHideComplete=function(z){this.dispatchEvent("onHideComplete",this);this._takeoverShowing=false;try{iab_rma_stop()}catch(AA){}};L.prototype.setOriginElement=function(z){this._originElement=z};L.prototype.getOriginElement=function(){return this._originElement};L.prototype.onTakeoverResize=function(AC){d("Takeover::onTakeoverResize: ");if(AC.width){var z=this._du.getElementById("takeover_close_btn_img_"+this._id);var AA=this._du.getElementById("takeover_close_highlight_"+this._id);var AB=Math.floor((this._width-AC.width)/2);this._du.setStyle("right",AB+"px",z);this._du.setStyle("right",AB+1+"px",AA);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(AA){var z=this._du.getElementById("takeover_close_highlight_"+this._id);this._du.setStyle("visibility","visible",z)};L.prototype.onCloseRollout=function(AA){var z=this._du.getElementById("takeover_close_highlight_"+this._id);this._du.setStyle("visibility","hidden",z)};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(z){};L.prototype.setInviteOffset=function(z){this._inviteOffset=z};L.register=function(){videoegg.PluginRegistry.register(L);x(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(z){};E.register=function(){videoegg.PluginRegistry.register(E);x(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;var z=y.copyProps({takeover:true},this._config);this._du.createSWF(this._element,this._swf,this._data,this._id,z,this._RID)}this._takeoverStartTime=new Date().getTime()};I.prototype.hide=function(){var AE=this;var AA=new Date().getTime();var AB=AA-this._takeoverStartTime;var AD={ccid:((this._config.CCID==null)||(isNaN(this._config.CCID)))?1:this._config.CCID,rid:this._RID,t:AB,version:3,area:this._config.area,si:this._config.site};var z=new a();z.send("tclose",AD);var AC=setTimeout(function(){if(AE._domUtilities.getElementById(AE._swf.id)){AE._domUtilities.destroyElement(AE._swf.id);AE._domUtilities.setStyle("display","none",AE._element);AE._domUtilities.setEmbedVisibility(false);AE.onHideComplete()}},100)};I.prototype.destroy=function(){M.prototype.destroy.call(this)};I.prototype.populate=function(z){try{M.prototype.populate.call(this);this._data=z.getTakeover();this._swf={};this._swf.id="SWF_INST_"+this._id;this._swf.src=this._data.url}catch(AA){d("CustomTakeover:: Error during populate operation: "+AA)}};I.prototype.onShowComplete=function(z){this.dispatchEvent("onShowComplete",this)};I.prototype.onHideComplete=function(z){this.dispatchEvent("onHideComplete",this)};I.prototype.setOriginElement=function(z){this._originElement=z};I.prototype.getOriginElement=function(){return this._originElement};I.prototype.getDimensions=function(){return this._du.getViewportDimension()};I.register=function(){videoegg.PluginRegistry.register(I);x(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(z){d("CustomTakeoverAction:: Error during create operation: "+z)}};P.prototype.show=function(){M.prototype.show.call(this)};P.prototype.hide=function(){M.prototype.hide.call(this)};P.prototype.populate=function(z){try{M.prototype.populate.call(this)}catch(AA){d("CustomTakeoverAction::Error during populate operation: "+AA)}};P.prototype.onShowComplete=function(z){this.dispatchEvent("onShowComplete",this)};P.prototype.onHideComplete=function(z){this.dispatchEvent("onHideComplete",this)};P.prototype.setOriginElement=function(z){this._originElement=z};P.prototype.getOriginElement=function(){return this._originElement};P.register=function(){videoegg.PluginRegistry.register(P);x(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);d("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(){d("FadeTakeoverAction.show ()");if(this._enabled){try{this._du.setStyle("visibility","hidden",this._originElement);this._du.setStyle("display","block",this._element);var z=this;setTimeout(function(){z.fadeIn()},this._speed)}catch(AA){d("FadeTakeoverAction:: Error during show operation: "+AA)}}};D.prototype.fadeIn=function(){if(this._opacity<this._endOpacity){this._opacity+=this._step;this._du.setStyle("opacity",this._opacity,this._element);var z=this;setTimeout(function(){z.fadeIn()},this._speed)}else{this.onShowComplete()}};D.prototype.hide=function(){try{d("FadeTakeoverAction::hide");var z=this;setTimeout(function(){z.fadeOut()},this._speed)}catch(AA){d("FadeTakeoverAction:: Error during hide operation: "+AA)}};D.prototype.fadeOut=function(){if(this._opacity>0){this._opacity-=this._step;this._du.setStyle("opacity",this._opacity,this._element);var z=this;setTimeout(function(){z.fadeOut()},this._speed)}else{this._opacity=this._startOpacity;this.onHideComplete()}};D.prototype.onShowComplete=function(z){this._du.setEmbedVisibility(true);this.dispatchEvent("onShowComplete",this)};D.prototype.onHideComplete=function(z){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(z){try{M.prototype.populate.call(this)}catch(AA){d("FadeTakeoverAction::Error during find operation: "+AA)}};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(z){this._originElement=z};D.prototype.getOriginElement=function(){return this._originElement};D.prototype.getDimensions=function(){var z=this._du.getDimension(this._originElement);return z};D.register=function(){videoegg.PluginRegistry.register(D);x(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=743;this._maxHeight=480;this._minWidth=588;this._minHeight=380;var z=this;this._resizeUpdate=function(){var AA=y.getPageDimension();if(AA.width<430){AA.width=430}if(AA.height<380){AA.height=380}y.setStyles(z._element,{top:0,left:0,height:AA.height,width:AA.width})}};R.identifier="pop";R.type="videoegg.takeover.banner.actions.transition";R.prototype.create=function(){M.prototype.create.call(this);d("PopTakeoverAction::create");if(p.ie){this._du.setStyles(this._element,{position:"absolute",backgroundColor:"#000000",filter:"alpha(opacity=80)"})}else{this._du.setStyles(this._element,{position:"absolute",backgroundColor:"#000000",opacity:".8"})}if(p.mac&&p.firefox){this._du.setStyle("backgroundImage","url('http://core.videoegg.com/eap/"+EAP_VERSION+"/"+p.PLATFORM+"/media/macFFBgHack.png')",this._element);this._du.setStyle("backgroundRepeat","repeat",this._element)}this._expandingDiv=this._du.createElement("VE_exp","div");this._expandingDiv.style.MozBorderRadius="10px";this._expandingDiv.style.WebkitBorderRadius="10px";this._du.insertBodyStart(this._expandingDiv)};R.prototype.show=function(){d("PopTakeoverAction::show");this._du.setStyle("visibility","hidden",this._originElement);this._du.setStyle("display","block",this._element);this._du.setStyle("zIndex",this._du.getNextHighestZIndex(),this._element);this._du.setEmbedVisibility(true,[this._originElement]);this._du.setSelectVisibility(true);this._du.setIframeVisibility(true);this._resizeUpdate();var AE=this._du.getViewportDimension();var AJ=this._du.getOffset(this._originElement);switch(this._config.placement){case videoegg.Constants.PLACEMENT_TWIG:AJ.top=AJ.top+10;AJ.left=AE.width/2;break;case videoegg.Constants.PLACEMENT_TWIG_BOTTOM:AJ.top=AJ.top+10;AJ.left=AE.width/2;break;default:AJ.top+=this._config.height/2;AJ.left+=this._config.width/2}d("PopTakeoverAction::takeover will grow from point:",AJ);this._originalState=!this._config.iframeEnabled?{position:"absolute",top:AJ.top,left:AJ.left,width:1,height:1,display:"block",backgroundColor:"black",opacity:".55",zIndex:this._du.getNextHighestZIndex()}:{position:"absolute",top:AE.height/2,left:AE.width/2,width:1,height:1,display:"block",backgroundColor:"black",opacity:".55",zIndex:this._du.getNextHighestZIndex()};this._du.setStyles(this._expandingDiv,this._originalState);d("PopTakeoverAction::page dims: ",AE);var z=this._maxWidth;var AK=this._maxHeight;if(AE.width<this._maxWidth||AE.height<this._maxHeight){var AG=1,AC=1;if(AE.width<this._maxWidth){AG=(AE.width-120)/this._maxWidth}if(AE.height<this._maxHeight){AC=AE.height/this._maxHeight}var AD=Math.min(AG,AC);if(AD==AG){AK*=AD;z=((AK*this._maxWidth)/this._maxHeight)}else{z*=AD;AK=(z*this._maxHeight)/this._maxWidth}if(AK<this._minHeight||z<this._minWidth){z=this._minWidth;AK=this._minHeight}}var AI=Math.max(Math.floor((AE.width-z)/2),0);var AF=Math.max(Math.floor((AE.height-AK)/2),0);var AH=y.getScrollOffset();var AB={width:Math.floor(z),height:Math.floor(AK),top:AF+AH.scrollTop,left:AI+AH.scrollLeft};d("PopTakeoverAction::animation params",AB);var AL=this;var AA=new h();AA.animate(this._expandingDiv,AB,"easeinout",400,function(){AL.onShowComplete()})};R.prototype.hide=function(){this._du.removeResizeListener(this._resizeUpdate);this._du.setStyle("display","none",this._element);this._du.setStyles(this._expandingDiv,this._originalState);this._du.setStyle("display","none",this._expandingDiv);this._du.setStyle("visibility","visible",this._originElement);this.onHideComplete()};R.prototype.populate=function(z){try{M.prototype.populate.call(this)}catch(AA){d("PopTakeoverAction::Error during find operation: "+AA)}};R.prototype.onShowComplete=function(z){this._du.setEmbedVisibility(true);this._du.addResizeListener(this._resizeUpdate);this.dispatchEvent("onShowComplete",this)};R.prototype.onHideComplete=function(z){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(z){this._originElement=z};R.prototype.getOriginElement=function(){return this._originElement};R.prototype.getDimensions=function(){var z=this._du.getDimension(this._originElement);return z};R.register=function(){videoegg.PluginRegistry.register(R);x(R,M)};if(typeof (VE_initDisplay)!="undefined"){VE_initDisplay.push(R.register)}else{R.register()}}()};