/* /modules/articles/fandangosearch.js */
var returnval=false;function checkAndSubmitForm(){var B="";var C="";var D="0";var A=$("fandangosearch");B=A.location.value;if((B.length>=5)&&(C.length>=2)){A.action="http://www.fandango.com/redirect.aspx?searchby=location&location="+B+"&a="+D+"&dte=0";returnval=true}else{if(B.length>=5){A.action="http://www.fandango.com/redirect.aspx?searchby=location&location="+B+"&a="+D+"&dte=0";returnval=true}else{A.action="http://www.fandango.com/redirect.aspx?searchby=location&location="+B+"&a="+D+"&dte=0";returnval=true}}return returnval}addLoadEvent(function(){var A=$("fandangosearch");if(A){A.onsubmit=checkAndSubmitForm}});
/* /lib/ads.js */
var Ad=Class.create();Object.extend(Ad.prototype,{initialize:function(){this.space_id=document.config.ads.space_id;this.property_id=document.config.ads.property_id;this.location="";this.background="ffffff"},set_space_id:function(A){this.space_id=A},set_property_id:function(A){this.property_id=A},set_location:function(A){this.location=A},set_background:function(A){this.background=A},render:function(A){var B=["","ads",this.space_id,this.property_id,this.location,"r",this.background].join("/");A.innerHTML+='<iframe src="'+B+'" frameborder="0" scrolling="no"></iframe>'},render_full:function(A,B,D){var C=document.createElement("div");C.className="ad "+D;var E=document.createElement("div");this.render(E);C.appendChild(E);if(B){this.render_slug(C)}A.appendChild(C)},render_slug:function(A){var D=document.createElement("h3");var C=document.createElement("a");C.className="adlink";C.rel="external";C.href="/adinformation/";C.appendChild(document.createTextNode("Advertisement"));assign_handlers(C);D.appendChild(C);var B=document.createElement("label");B.appendChild(document.createTextNode(" - "));D.appendChild(B);var E=document.createElement("a");E.className="adlink";E.href="https://www.surveymonkey.com/s.aspx?sm=FyNNVDhj_2f2FNc2KVOHQ4eg_3d_3d ";E.target="_blank";E.appendChild(document.createTextNode("Ad Feedback"));assign_handlers(E);D.appendChild(E);A.appendChild(D)},render_script:function(){var A="http://pn1.adserver.yahoo.com/a?";A+=["bg="+this.background,"c=r","f="+this.space_id,"pn=comcast","rand="+(new Date()).getDate(),"p="+this.property_id,"l="+this.location].join("&");var B=document.createElement("script");B.src=A;document.body.appendChild(B);return B}});
/* /modules/inlinevideo.js */
var InlineVideo={anim:null,remove_ad:function(){var A=$("inlinevideo_ad");$A(document.getElementsByClassName("iab300x250",$("core"))).each(function(B){B.parentNode.removeChild(B)});while(A.childNodes.length>0){A.removeChild(A.childNodes[0])}},update_ad:function(A,F,B){var C=(typeof F=="undefined"||F==""||F==null);var E=$("inlinevideo_ad");this.remove_ad();if(C){A=250}A+=30;if(this.anim!=null){this.anim.oncomplete=function(){};this.anim.stop()}var D=Animator.interpolate.linear(Element.getDimensions(E).height,A,15);this.anim=new Animator(D,500);this.anim.onupdate=function(G){E.style.height=G+"px";return true};this.anim.oncomplete=function(){InlineVideo[C?"_insert_yahoo":"_insert_image"](E,F,B);this.anim=null};this.anim.run()},_insert_yahoo:function(A){var B=new Ad();B.set_location("LREC");B.render_full(A,true,"iab300x250")},_insert_image:function(A,G,B){var F=document.createElement("div");F.className="ad iab300x250";var D=document.createElement("a");D.href=B;D.rel="external track";assign_handlers(D);var E=document.createElement("img");E.src=G;D.appendChild(E);F.appendChild(D);var C=new Ad();C.render_slug(F);A.appendChild(F)}};
