var webUrl=window.location.href.split("/")[0]+"//"+window.location.href.split("/")[2]+"/";var webUrlSecure="https://"+window.location.href.split("/")[2]+"/";var webUrlUnsecure="http://"+window.location.href.split("/")[2]+"/";var webUrlMethod=(window.location.href.match(new RegExp("^https://")))?"https://":"http://";function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&e.getElementById){a=e.getElementById(f)}return a}function MM_showHideLayers(){var c,e,a,d,b=MM_showHideLayers.arguments;for(c=0;c<(b.length-2);c+=3){if((d=MM_findObj(b[c]))!=null){a=b[c+2];if(d.style){d=d.style;a=(a=="show")?"visible":(a=="hide")?"hidden":a}d.visibility=a}}}function CheckMultiple22(d,a){for(var b=0;b<d.length;b++){fldObj=d.elements[b];fldId=fldObj.id;if(fldId){var c=fldObj.id.indexOf(a);if(c!=-1){if(fldObj.checked){return true}}}}return false}function CheckForm22(a){if(a.email.value==""){alert("Please enter your email address.");a.email.focus();return false}return true}function showToolTip(c,d){if(document.all){c=event}$("bubble_tooltip_content").update(d).show();var a=Math.max(document.body.scrollTop,document.documentElement.scrollTop);if(navigator.userAgent.toLowerCase().indexOf("safari")>=0){a=0}var b=c.clientX-100;if(b<0){b=0}$("bubble_tooltip").setStyle($H({left:b+"px",top:c.clientY-$("bubble_tooltip").getHeight()-1+a+"px"}))}function hideToolTip(){$("bubble_tooltip").hide()}function isSelection(a){if(a.checked){$(a.parentNode).addClassName("selection")}else{$(a.parentNode).removeClassName("selection")}}function accordian(d){d=$(d);var b=1.2;var e=$(d.up().id+"-body");var a=null;var c=d.up(1);if(c.hasClassName("prevention")){return false}c.addClassName("prevention");if($(d.up().id+"-body").hasClassName("visible")){new Effect.Parallel([new Effect.BlindUp(d.up().id+"-body"),new Effect.Opacity(d.up().id+"-body",{from:1,to:0})],{duration:b,afterFinish:function(f){c.removeClassName("prevention")}});$(d.up().id+"-body").removeClassName("visible");return}c.select(".panel_body").each(function(f){if(f.hasClassName("visible")){a=f}});if(a==null){new Effect.Parallel([new Effect.BlindDown(e),new Effect.Opacity(e,{from:0,to:1})],{duration:b,afterFinish:function(f){c.removeClassName("prevention")}})}else{new Effect.Parallel([new Effect.BlindDown(e),new Effect.Opacity(e,{from:0,to:1}),new Effect.BlindUp(a),new Effect.Opacity(a,{from:1,to:0})],{duration:b,afterFinish:function(f){c.removeClassName("prevention")}});a.removeClassName("visible")}e.addClassName("visible")}var PosY=0;var LboxShow=function(){if(self.pageYOffset){PosY=self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){PosY=document.documentElement.scrollTop}else{if(document.body){PosY=document.body.scrollTop}}}$$("select, .sda embed, .sda object, .sdab embed, .sdab object").invoke("hide");$$("html, body").invoke("setStyle",{overflow:"hidden",height:"100%"});window.scrollTo(0,0);$("overlay","lightbox").invoke("show");return false};var LboxHide=function(){$$("#lightbox .swfloader").invoke("hide");$$("select, .sda embed, .sda object, .sdab embed, .sdab object").invoke("show");$$("html").invoke("setStyle",{overflow:"auto",height:"auto"});$$("body").invoke("setStyle",{overflow:"visible",height:"auto"});$("overlay","lightbox").invoke("hide");window.scrollTo(0,PosY);return false};function ajaxUpdate(g,f,c,d,b){var a={method:f,parameters:d,evalScripts:true};if(b!=undefined){["onLoading","onInteractive","onFailure","onSuccess","onComplete","onException"].each(function(h){if(b[h]!=undefined){a[h]=b[h]}})}var e=new Ajax.Updater({success:g},c,a)}function getHTML(d,a,b){var c=new Ajax.Updater({success:d},a,{method:"get",parameters:b,onFailure:reportError,evalScripts:true})}function reportError(a){alert("Sorry. There was an error.")}function doSearch(a){$("containResults").hide();$("loadings").show();ajaxUpdate("content_main","get",a+"&ajax=1","",{onComplete:function(){$("loadings").hide();pSetup()}});return false}var doSearch2=function(a){a.stop();$("containResults").hide();$("loadings").show();ajaxUpdate("content_main","get",a.element().href+"&ajax=1","",{onComplete:function(){$("loadings").hide();pSetup()}})};var showCart=function(){$("cart").show();return false};var hideCart=function(){$("cart").hide();return false};var viewCart=function(){$$(".viewBlockers a.opened").invoke("hide");$$("viewBlockers a.closed").invoke("show");if($("cart").visible()&&$("cart").hasClassName("opencart")){$("cart").hide().removeClassName("opencart").removeClassName("openblockers");$$(".viewCarts a.opened").invoke("hide");$$(".viewCarts a.closed").invoke("show");return false}else{return viewCartCall("cart",function(){$("cart").show().addClassName("opencart").removeClassName("openblockers");$$(".viewCarts a.opened").invoke("show");$$(".viewCarts a.closed").invoke("hide");$$("#cart .linkProfile").invoke("observe","click",openProfile);$$("#cart .scrollwithheading").each(function(c){var a=c.getHeight();var b=c.previous().getHeight();if(a<(250-b)){$("cart").setStyle({height:(a+b+10)+"px"})}else{$("cart").setStyle({height:"250px"});c.setStyle({height:(c.up().getHeight()-c.previous().getHeight()-35)+"px",overflow:"auto"})}})})}};var viewCartMain=function(){return viewCartCall("cart2",function(){$("cart2").show();$$("#cart2 .linkProfile").invoke("observe","click",openProfile);$$("#cart2 .scrollwithheading").each(function(c){var a=c.getHeight();var b=c.previous().getHeight();if(a<(250-b)){$("cart2").setStyle({height:(a+b+10)+"px"})}else{$("cart2").setStyle({height:"250px"});c.setStyle({height:(c.up().getHeight()-c.previous().getHeight()-35)+"px",overflow:"auto"})}})})};var viewCartCall=function(a,b){var c=new Ajax.Updater(a,webUrl+"drivers/apply.html",{method:"get",parameters:"ajax=1&test="+a,onComplete:b});return false};function addToCart(a,b){return addToCartCall(a,b,"cart")}function addToCartCall(b,c,a){var d=new Ajax.Updater(a,webUrl+"drivers/apply.html",{method:"get",parameters:"id="+b+"&fs_id="+c+"&ajax=1",onComplete:function(f,e){$$("#savejob.f"+c+" .closed").invoke("hide");$$("#savejob.f"+c+" .opened").invoke("show");updateCart(f,e)}});return false}function removeFromCart(c,b){var d=new Ajax.Updater(b,webUrl+"drivers/apply.html",{method:"get",parameters:"remove="+c+"&test="+b+"&ajax=1",onComplete:function(e,a){$$("#savejob.f"+c+" .closed").invoke("show");$$("#savejob.f"+c+" .opened").invoke("hide");updateCart(e,a)}});return false}var updateCart=function(b,a){return updateCartCall(b,a,"cart")};var updateCartCall=function(e,i,c){if(i!=undefined){var b=false;var h=null;var f=null;var d=null;var a=null;var g=null;if(i.count_cart!=undefined){$$(".cartContents").invoke("update",e.responseText);$$(".count_cart").invoke("update",i.count_cart);b=(i.count_cart>0)?true:false;h="viewCarts";f="viewBlockers";g="opencart"}else{if(i.blockers!=undefined){b=(i.blockers>0)?true:false;h="viewBlockers";f="viewCarts";g="openblockers"}}a=(b)?"opened":"closed";d=(b)?"closed":"opened";$(c).removeClassName("opencart").removeClassName("openblockers");$$("."+h+" a."+d).invoke("hide");$$("."+h+" a."+a).invoke("show");$$("."+f+" a.opened").invoke("hide");$$("."+f+" a.closed").invoke("show");if(b){$(c).show().addClassName(g);$$("#"+c+" .linkProfile").invoke("observe","click",openProfile);$$("#"+c+" .scrollwithheading").each(function(k){var j=k.getHeight();if(j<225){j+=45;$(c).setStyle({height:j+"px"})}else{$(c).setStyle({height:"250px"});k.setStyle({height:(k.up().getHeight()-k.previous().getHeight()-35)+"px",overflow:"auto"})}})}else{hideCart()}}};function viewBlockers(){return viewBlockersCall("cart")}function viewBlockersCall(a){$$(".viewCarts a.opened").invoke("hide");$$(".viewCarts a.closed").invoke("show");if(false){$(a).hide().removeClassName("opencart").removeClassName("openblockers");$$(".viewBlockers a.opened").invoke("hide");$$(".viewBlockers a.closed").invoke("show")}else{ajaxUpdate(a,"get",webUrl+"drivers/blockers.html","ajax=1",{onComplete:function(){$$(".viewBlockers a.opened").invoke("show");$$(".viewBlockers a.closed").invoke("hide");$(a).show().addClassName("openblockers").removeClassName("opencart");$$("#"+a+" .scrollwithheading").each(function(c){var b=c.getHeight();if(b<225){b+=45;$(a).setStyle({height:b+"px"})}else{$(a).setStyle({height:"250px"});c.setStyle({height:(c.up().getHeight()-c.previous().getHeight()-35)+"px",overflow:"auto"})}})}})}return false}function addToBlockers(a){var b=new Ajax.Request(webUrl+"drivers/blockers.html",{method:"get",parameters:"cID="+a+"&ajax=1",onComplete:updateBlockers});return false}function removeFromBlockers(a){var b=new Ajax.Request(webUrl+"drivers/blockers.html",{method:"get",parameters:"cID="+a+"&remove=1&ajax=1",onComplete:updateBlockers});return false}function updateBlockers(b,a){if((a!=undefined)&&(a.cID!=undefined)&&(a.cID!=null)&&(a.action!=undefined)&&(a.action!=null)){if(a.action=="add"){$$("#c"+a.cID).invoke("addClassName","blocked");$$(".profileBlock a.closed, .profileBlocked, #notBlockedProfile").invoke("hide");$$(".profileBlock a.opened, #profileUnBlock, #blockedProfile").invoke("show")}else{$$("#c"+a.cID).invoke("removeClassName","blocked");$$(".profileBlock a.closed, .profileBlocked, #notBlockedProfile").invoke("show");$$(".profileBlock a.opened, #profileUnBlock, #blockedProfile").invoke("hide")}$("prof11").update(b.responseText);updateCartCall(b,a,"prof11")}}var myLightWindow=null;function linkOffSite(b,c,a){return linkLightView(b,c,a,"external",null,null)}function linkOnSiteForm(c,d,a,b){return linkLightView(c,d,a,"page",b,"onSiteForm")}function linkLightView(e,f,b,c,d,a){if(myLightWindow==null){myLightWindow=new lightwindow()}myLightWindow.activateWindow({href:e.href,title:f,type:c,caption:b,form:d});return false}function changeTab(a,d){if($(a).up().hasClassName("prevention")){return false}$(a).up().addClassName("prevention");var c=$w($(a).className).find(function(f){return f.toLowerCase().startsWith("changetab")});if(c.length<1){alert("changeTab element must have a 'class' attribute of 'changetab{id}'");return false}var e=c.substr(9);if($(a).hasClassName("current")){$(a).up().removeClassName("prevention");return false}var b=(Object.isFunction(d))?true:false;$(e).up().immediateDescendants().each(function(f){if(f.id!=$(e).id){f.hide()}});$(a).up().immediateDescendants().invoke("removeClassName","current");$(a).addClassName("current");if(b){new d(e,{duration:0.4,afterFinish:function(f){$(a).up().removeClassName("prevention")}})}else{$(e).show();$(a).up().removeClassName("prevention")}}var linkProfileSetup=function(){$$(".linkProfile").invoke("observe","click",openProfile);$$(".sda a, .sdab a").invoke("observe","click",function(a){var b=decodeURIComponent(this.href.replace(/^.*__oadest=(.+)$/,"$1"));if(b.match(new RegExp("^"+webUrlUnsecure))||b.match(new RegExp("^"+webUrlSecure))){a.stop();Event.observe(window,"resize",pTester);if(this.href.match(/.*\/\?.*$/)){ajaxUpdate("lbContent","get",this.href+"&ajax=1&lightbox=1","",{onSuccess:LboxShow,onComplete:pTester})}else{ajaxUpdate("lbContent","get",this.href,"ajax=1&lightbox=1",{onSuccess:LboxShow,onComplete:pTester})}}});embedSWF()};var pTester=function(){makeScrollable("pb5");$$("#lightbox .swfloader").each(function(b){var a=b.readAttribute("flashparams");a=(a==null)?{}:a.toQueryParams();b.show();swfobject.embedSWF(b.readAttribute("rel"),b.id,String(b.readAttribute("swfWidth")),String(b.readAttribute("swfHeight")),String(b.readAttribute("swfVersion")),"/core/common/scripts/swfobject/expressInstall.swf",a,a)})};function makeScrollable(b){if(($(b)!=null)&&($("overlay")!=null)&&($("overlay").next()!=null)){var a=$("overlay").next().getHeight()-22-$(b).positionedOffset().top;$(b).setStyle({height:((a<=0)?0:a)+"px",overflow:"auto"})}}var openProfile=function(a){a.stop();Event.observe(window,"resize",pTester);$(this).addClassName(":visited");ajaxUpdate("lbContent","get",this.href,"ajax=1&lightbox=1",{onSuccess:LboxShow,onComplete:pTester})};function jobStatus(a){if(typeof(optVal)=="undefined"||a.value!=optVal){optVal=a.value;if(optVal==1){Form.getInputs("FormApp","checkbox","jbot")[0].checked=true;Form.getInputs("FormApp","checkbox","offers_public")[0].checked=true;Form.getInputs("FormApp","checkbox","offers_private")[0].checked=true;$("empOpts").show()}else{$("empOpts").hide();Form.getInputs("FormApp","checkbox","jbot")[0].checked=false;Form.getInputs("FormApp","checkbox","offers_public")[0].checked=false;Form.getInputs("FormApp","checkbox","offers_private")[0].checked=false}}}function rgAccountInfo(params){var reqMethod="post";if(params==undefined||params==null||!Object.isHash(params)){reqMethod="get";params=new Hash({})}params.set("ajax","1");params.set("m","5");var myAjax=new Ajax.Request("/drivers/index.html",{method:reqMethod,parameters:params,onSuccess:function(t,json){if((json!=undefined)){if(json.success!=undefined){if(json.success){var myJSONObject=eval("("+t.responseText+")");if(json.showQuickApply!=undefined&&json.showQuickApply&&myJSONObject.dQuickApply!=undefined){$$("#dQuickApply").invoke("update",myJSONObject.dQuickApply).invoke("show");pSetup()}else{$$("#dQuickApply").invoke("hide")}if(myJSONObject.dJobOptions!=undefined){$$("#dJobOptions").invoke("update",myJSONObject.dJobOptions)}}}}}});return false}function lads(divs){var re=/(.*?)(\d+)$/;var matches;var prefix;var zones=[];var i=0;for(i=0;i<divs.length;i++){if(re.test(divs[i].id)){matches=re.exec(divs[i].id);prefix=matches[1];zones.push(parseInt(matches[2]))}}if(zones.length>0){var myAjax=new Ajax.Request("/core/_rigmeup/js/fetcher.html",{method:"get",parameters:new Hash({s:zones.join("-")}),onComplete:function(t){if((t.headerJSON!=undefined)&&(t.headerJSON.success!=undefined)&&(t.headerJSON.success>0)){var myJSONObject=eval("("+t.responseText+")");for(i=0;i<zones.length;i++){var id=zones[i];var updates=(typeof(myJSONObject[id])!="undefined")?myJSONObject[id]:"";if($(prefix+id)!=null){$(prefix+id).update(updates)}}}pSetup()}})}}var embedSWF=function(){$$(".swfloader").each(function(b){var a=b.readAttribute("flashparams");a=(a==null)?{}:a.toQueryParams();swfobject.embedSWF(b.readAttribute("rel"),b.id,String(b.readAttribute("swfWidth")),String(b.readAttribute("swfHeight")),String(b.readAttribute("swfVersion")),"/core/common/scripts/swfobject/expressInstall.swf",a,a)})};var pSetup=function(){linkProfileSetup()};document.observe("dom:loaded",function(){pSetup();$$("#logo").invoke("observe","click",function(b){window.location.href=this.readAttribute("rel")});setTimeout(function(){lads($$(".sdab"));$$("img.pic1").each(function(b){b.observe("mouseover",contexter2);b.observe("mouseout",contexter3)})},25);var a=new Array();$$(".sortlist, .droplist").each(function(b){a.push(b.id)});$$(".sortlist").each(function(b){Sortable.create(b.id,{dropOnEmpty:true,containment:a,constraint:false,ghosting:true})});$$(".droplist").each(function(b){Droppables.add(b.id,{onDrop:function(c){alert("Dropped the "+c.id+" on me.")}})});$$("#friends").each(function(b){Sortable.create(b.id,{tag:"table",overlap:"horizontal",dropOnEmpty:true,containment:["friends","trash"],constraint:false,ghosting:true,hoverclass:"friendhover"})});a=$$("#dQuickApply,#dJobOptions");if(a.size()>0){rgAccountInfo(null)}});function contexter3(a){new Effect.Fade($("contexter"),{duration:0.5,queue:{position:"end",scope:"contexter",limit:2}})}function contexter4(f){var j=25;var c=25;var i=Event.pointer(f).x;var g=Event.pointer(f).y;var a=document.viewport.getDimensions();var h=document.viewport.getScrollOffsets();var d=$("contexter").getDimensions();var b={left:((i+d.width+j+c)>a.width?(i-d.width-c):(i+c))+"px",top:((g-h.top+d.height)>a.height&&(g-h.top)>d.height?(g-d.height):g)+"px"};$("contexter").setStyle(b)}function contexter2(g){var b=$("contexter");if(b==null){b=new Element("div",{id:"contexter",className:"niceTitle",style:"position:absolute;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);display:none"});$(document.body).insert(b)}Event.observe(Event.element(g),"mousemove",contexter4);Effect.Queues.get("contexter").each(function(e){e.cancel()});b.hide().update(Event.element(g).readAttribute("rel"));var k=25;var d=25;var j=Event.pointer(g).x;var h=Event.pointer(g).y;var a=document.viewport.getDimensions();var i=document.viewport.getScrollOffsets();var f=b.getDimensions();var c={left:((j+f.width+k+d)>a.width?(j-f.width-d):(j+d))+"px",top:((h-i.top+f.height)>a.height&&(h-i.top)>f.height?(h-f.height):h)+"px"};b.setStyle(c).setStyle({zIndex:250});new Effect.Appear(b,{duration:0.5,queue:{position:"end",scope:"contexter",limit:2}})}function contexter(b,c){var a=$("contexter");if(a==null){a=new Element("div",{id:"contexter",className:"contexter",style:"display:none"})}}Function.prototype.defaults=function(){var b=this;var a=Array(b.length-arguments.length).concat(Array.prototype.slice.apply(arguments));return function(){return b.apply(b,Array.prototype.slice.apply(arguments).concat(a.slice(arguments.length,a.length)))}};function xajax_replace(e,d,c,a,b){e=e==null?window.location.href:e;d=d==null?$H({}):d;c=c==null?"post":c;a=a!=null?a:function(f){if((b!=null)&&($(b)!=null)){$(b).update(f.responseText)}else{new Element("div").hide().update(f.responseText)}};d.set("xajaxr",new Date().getTime());new Ajax.Request(e,{method:c,parameters:d,evalScripts:true,onSuccess:a})}Effect.Corner=Class.create();Object.extend(Object.extend(Effect.Corner.prototype,Effect.Base.prototype),{hex2:function(a){var a=parseInt(a).toString(16);return(a.length<2)?"0"+a:a},gpc:function(b){for(;b&&b.nodeName.toLowerCase()!="html";b=b.parentNode){var a=Element.getStyle(b,"backgroundColor");if(a.indexOf("rgb")>=0){rgb=a.match(/\d+/g);return"#"+this.hex2(rgb[0])+this.hex2(rgb[1])+this.hex2(rgb[2])}if(a&&a!="transparent"){return a}}return"#ffffff"},getW:function(a){switch(this.fx){case"round":return Math.round(this.width*(1-Math.cos(Math.asin(a/this.width))));case"cool":return Math.round(this.width*(1+Math.cos(Math.asin(a/this.width))));case"sharp":return Math.round(this.width*(1-Math.cos(Math.acos(a/this.width))));case"bite":return Math.round(this.width*(Math.cos(Math.asin((this.width-a-1)/this.width))));case"slide":return Math.round(this.width*(Math.atan2(a,this.width/a)));case"jut":return Math.round(this.width*(Math.atan2(this.width,(this.width-a-1))));case"curl":return Math.round(this.width*(Math.atan(a)));case"tear":return Math.round(this.width*(Math.cos(a)));case"wicked":return Math.round(this.width*(Math.tan(a)));case"long":return Math.round(this.width*(Math.sqrt(a)));case"sculpt":return Math.round(this.width*(Math.log((this.width-a-1),this.width)));case"dog":return(a&1)?(a+1):this.width;case"dog2":return(a&2)?(a+1):this.width;case"dog3":return(a&3)?(a+1):this.width;case"fray":return(a%2)*this.width;case"notch":return this.width;case"bevel":return a+1}},initialize:function(b,m){b=$(b);m=(m||"").toLowerCase();var t=/keep/.test(m);var k=((m.match(/cc:(#[0-9a-f]+)/)||[])[1]);var a=((m.match(/sc:(#[0-9a-f]+)/)||[])[1]);this.width=parseInt((m.match(/(\d+)px/)||[])[1])||15;var n=/round|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dog/;this.fx=((m.match(n)||["round"])[0]);var c={T:0,B:1};var h={TL:/top|tl/.test(m),TR:/top|tr/.test(m),BL:/bottom|bl/.test(m),BR:/bottom|br/.test(m)};if(!h.TL&&!h.TR&&!h.BL&&!h.BR){h={TL:1,TR:1,BL:1,BR:1}}var q=document.createElement("div");q.style.overflow="hidden";q.style.height="1px";q.style.backgroundColor=a||"transparent";q.style.borderStyle="solid";var v={T:parseInt(Element.getStyle(b,"paddingTop"))||0,R:parseInt(Element.getStyle(b,"paddingRight"))||0,B:parseInt(Element.getStyle(b,"paddingBottom"))||0,L:parseInt(Element.getStyle(b,"paddingLeft"))||0};if(/MSIE/.test(navigator.userAgent)){b.style.zoom=1}if(!t){b.style.border="none"}q.style.borderColor=k||this.gpc(b.parentNode);var p=Element.getHeight(b);for(var r in c){var g=c[r];q.style.borderStyle="none "+(h[r+"R"]?"solid":"none")+" none "+(h[r+"L"]?"solid":"none");var x=document.createElement("div");var l=x.style;g?b.appendChild(x):b.insertBefore(x,b.firstChild);if(g&&p!="auto"){if(Element.getStyle(b,"position")=="static"){b.style.position="relative"}l.position="absolute";l.bottom=l.left=l.padding=l.margin="0";if(/MSIE/.test(navigator.userAgent)){l.setExpression("width","this.parentNode.offsetWidth")}else{l.width="100%"}}else{l.margin=!g?"-"+v.T+"px -"+v.R+"px "+(v.T-this.width)+"px -"+v.L+"px":(v.B-this.width)+"px -"+v.R+"px -"+v.B+"px -"+v.L+"px"}for(var s=0;s<this.width;s++){var f=Math.max(0,this.getW(s));var u=q.cloneNode(false);u.style.borderWidth="0 "+(h[r+"R"]?f:0)+"px 0 "+(h[r+"L"]?f:0)+"px";g?x.appendChild(u):x.insertBefore(u,x.firstChild)}}}});function coreRoundCorners(a,b){new Effect.Corner(a,b)}if(typeof org=="undefined"){var org=new Object()}if(typeof org.openx=="undefined"){org.openx=new Object()}if(typeof org.openx.util=="undefined"){org.openx.util=new Object()}if(typeof org.openx.SWFObjectUtil=="undefined"){org.openx.SWFObjectUtil=new Object()}org.openx.SWFObject=function(m,b,n,e,j,k,g,f,d,l){if(!document.getElementById){return}this.DETECT_KEY=l?l:"detectflash";this.skipDetect=org.openx.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(m){this.setAttribute("swf",m)}if(b){this.setAttribute("id",b)}if(n){this.setAttribute("width",n)}if(e){this.setAttribute("height",e)}if(j){this.setAttribute("version",new org.openx.PlayerVersion(j.toString().split(".")))}this.installedVer=org.openx.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){org.openx.SWFObject.doPrepUnload=true}if(k){this.addParam("bgcolor",k)}var a=g?g:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var i=(f)?f:window.location;this.setAttribute("xiRedirectUrl",i);this.setAttribute("redirectUrl","");if(d){this.setAttribute("redirectUrl",d)}};org.openx.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c[c.length]=b+"="+a[b]}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var f=this.getParams();for(var e in f){b+=[e]+'="'+f[e]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){b+='flashvars="'+d+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var e in c){b+='<param name="'+e+'" value="'+c[e]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new org.openx.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};org.openx.SWFObjectUtil.getPlayerVersion=function(){var f=new org.openx.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){f=new org.openx.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var b=1;var c=3;while(b){try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);f=new org.openx.PlayerVersion([c,0,0])}catch(d){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=new org.openx.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(d){if(f.major==6){return f}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(b!=null){f=new org.openx.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return f};org.openx.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};org.openx.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};org.openx.util={getRequestParameter:function(c){var d=document.location.search||document.location.hash;if(c==null){return d}if(d){var b=d.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==c){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};org.openx.SWFObjectUtil.cleanupSWFs=function(){var b=document.getElementsByTagName("OBJECT");for(var c=b.length-1;c>=0;c--){b[c].style.display="none";for(var a in b[c]){if(typeof b[c][a]=="function"){b[c][a]=function(){}}}}};if(org.openx.SWFObject.doPrepUnload){if(!org.openx.unloadSet){org.openx.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",org.openx.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",org.openx.SWFObjectUtil.prepUnload);org.openx.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=org.openx.util.getRequestParameter;var FlashObject=org.openx.SWFObject;var SWFObject=org.openx.SWFObject;document.mmm_fo=1;