
$.fn.hoverClass=function(c){return this.each(function(){$(this).hover(function(){$(this).addClass(c);},function(){$(this).removeClass(c);});});};$.fn.faux_corners=function(c){return this.each(function(){$(this).append('<span class="tl"></span><span class="tr"></span><span class="bl"></span><span class="br"></span>')});};jQuery.fn.highlightFade=function(settings){var o=(settings&&settings.constructor==String)?{start:settings}:settings||{};var d=jQuery.highlightFade.defaults;var i=o['interval']||d['interval'];var a=o['attr']||d['attr'];var ts={'linear':function(s,e,t,c){return parseInt(s+(c/t)*(e-s))},'sinusoidal':function(s,e,t,c){return parseInt(s+Math.sin(((c/t)*90)*(Math.PI/180))*(e-s))},'exponential':function(s,e,t,c){return parseInt(s+(Math.pow(c/t,2))*(e-s))}};var t=(o['iterator']&&o['iterator'].constructor==Function)?o['iterator']:ts[o['iterator']]||ts[d['iterator']]||ts['linear'];if(d['iterator']&&d['iterator'].constructor==Function)t=d['iterator'];return this.each(function(){if(!this.highlighting)this.highlighting={};var e=(this.highlighting[a])?this.highlighting[a].end:jQuery.highlightFade.getBaseValue(this,a)||[255,255,255];var c=jQuery.highlightFade.getRGB(o['start']||o['colour']||o['color']||d['start']||[255,255,128]);var s=jQuery.speed(o['speed']||d['speed']);var r=o['final']||(this.highlighting[a]&&this.highlighting[a].orig)?this.highlighting[a].orig:jQuery.curCSS(this,a);if(o['end']||d['end'])r=jQuery.highlightFade.asRGBString(e=jQuery.highlightFade.getRGB(o['end']||d['end']));if(typeof o['final']!='undefined')r=o['final'];if(this.highlighting[a]&&this.highlighting[a].timer)window.clearInterval(this.highlighting[a].timer);this.highlighting[a]={steps:((s.duration)/i),interval:i,currentStep:0,start:c,end:e,orig:r,attr:a};jQuery.highlightFade(this,a,o['complete'],t)})};jQuery.highlightFade=function(e,a,o,t){e.highlighting[a].timer=window.setInterval(function(){var newR=t(e.highlighting[a].start[0],e.highlighting[a].end[0],e.highlighting[a].steps,e.highlighting[a].currentStep);var newG=t(e.highlighting[a].start[1],e.highlighting[a].end[1],e.highlighting[a].steps,e.highlighting[a].currentStep);var newB=t(e.highlighting[a].start[2],e.highlighting[a].end[2],e.highlighting[a].steps,e.highlighting[a].currentStep);jQuery(e).css(a,jQuery.highlightFade.asRGBString([newR,newG,newB]));if(e.highlighting[a].currentStep++>=e.highlighting[a].steps){jQuery(e).css(a,e.highlighting[a].orig||'');window.clearInterval(e.highlighting[a].timer);e.highlighting[a]=null;if(o&&o.constructor==Function)o.call(e)}},e.highlighting[a].interval)};jQuery.highlightFade.defaults={start:[255,255,128],interval:50,speed:400,attr:'backgroundColor'};jQuery.highlightFade.getRGB=function(c,d){var result;if(c&&c.constructor==Array&&c.length==3)return c;if(result=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(result[1]),parseInt(result[2]),parseInt(result[3])];else if(result=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(result[1])*2.55,parseFloat(result[2])*2.55,parseFloat(result[3])*2.55];else if(result=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt("0x"+result[1]),parseInt("0x"+result[2]),parseInt("0x"+result[3])];else if(result=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt("0x"+result[1]+result[1]),parseInt("0x"+result[2]+result[2]),parseInt("0x"+result[3]+result[3])];else return jQuery.highlightFade.checkColorName(c)||d||null};jQuery.highlightFade.asRGBString=function(a){return"rgb("+a.join(",")+")"};jQuery.highlightFade.getBaseValue=function(e,a,b){var s,t;b=b||false;t=a=a||jQuery.highlightFade.defaults['attr'];do{s=jQuery(e).css(t||'backgroundColor');if((s!=''&&s!='transparent')||(e.tagName.toLowerCase()=="body")||(!b&&e.highlighting&&e.highlighting[a]&&e.highlighting[a].end))break;t=false}while(e=e.parentNode);if(!b&&e.highlighting&&e.highlighting[a]&&e.highlighting[a].end)s=e.highlighting[a].end;if(s==undefined||s==''||s=='transparent')s=[255,255,255];return jQuery.highlightFade.getRGB(s)};jQuery.highlightFade.checkColorName=function(c){if(!c)return null;switch(c.replace(/^\s*|\s*$/g,'').toLowerCase()){case'aqua':return[0,255,255];case'black':return[0,0,0];case'blue':return[0,0,255];case'fuchsia':return[255,0,255];case'gray':return[128,128,128];case'green':return[0,128,0];case'lime':return[0,255,0];case'maroon':return[128,0,0];case'navy':return[0,0,128];case'olive':return[128,128,0];case'purple':return[128,0,128];case'red':return[255,0,0];case'silver':return[192,192,192];case'teal':return[0,128,128];case'white':return[255,255,255];case'yellow':return[255,255,0]}};function bookmark(url,title){if((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion)>=4)){window.external.AddFavorite(url,title);}else if(navigator.appName=="Netscape"){window.sidebar.addPanel(title,url,"");}else{alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");}}
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(5($){$.x.17=$.x.T=5(e,f,g,h){1.O(5(){i((1.v.u()!="H"&&1.v.u()!="16")||1.l=="Z"||1.l=="V"||1.l=="S"||1.l=="Q"||1.l=="N"){y}e=e||"#M";f=f||2;j a=$(1);1.p=a.3("t-4")||"#r";1.q=a.3("4")||"#13";g=g||1.p;h=h||1.q;j b=Y;/*@X b=U;@*/i(b){j c=C.R("P");c.B="A";a.z(5(){$(1.m).3(1.m.n.o);$(1).3({8:g,4:h})}).w(5(){$(1.m).3(1.m.n.6);$(1).3({8:1.p,4:1.q})});c.n={6:{8:a.7().3("t-4")||"#r",L:f+"s"},o:{8:e}};$(c).3(c.n.6);i(a.7()[0].B=="A"){j d=a.7();d.K(a);d.7()[0].J(d[0])}a.I(c)}G{a.3({W:f+"s"});1.k={6:{F:"15",14:f+"s"},o:{D:e}};j d=a.7(),9;12{9=d.3("t-4")||"#r";d=d.7();i(d[0]==C)11}10(9=="E")i(9=="E")9="#r";1.k.6.D=9;a.3(1.k.6).z(5(){$(1).3(1.k.o).3({8:g,4:h})}).w(5(){$(1).3(1.k.6).3({8:1.p,4:1.q})})}});y 1}})(18);',62,71,'|this||css|color|function|off|parent|backgroundColor|parentBG|||||||||if|var|outlineCss|type|parentNode|borderCss|on|oldbgcolour|oldtextcolour|fff|px|background|toLowerCase|nodeName|blur|fn|return|focus|outline|className|document|outlineColor|transparent|outlineStyle|else|input|wrap|removeChild|after|padding|9cc|submit|each|span|reset|createElement|image|focusfields|true|radio|margin|cc_on|false|checkbox|while|break|do|000|outlineWidth|solid|textarea|focusFields|jQuery'.split('|'),0,{}))
function text_size(mode){if(mode=='bigger'){var date=new Date();date.setTime(date.getTime()+(7*24*60*60*1000));document.cookie="fmw_text=bigger;expires="+date+"; path=/; domain=en.findmyway.ca";$("body").addClass('bigger');$('#text_size').removeClass('bigger').addClass('normal').html('Decrease Text Size');}else{var date=new Date();date.setTime(date.getTime()+(7*24*60*60*1000));document.cookie="fmw_text=smaller;expires="+date+"; path=/; domain=en.findmyway.ca";$("body").removeClass('bigger');$('#text_size').removeClass('normal').addClass('bigger').html('Increase Text Size');}}
jQuery.fn.replace=function(){var stack=[];return this.domManip(arguments,true,1,function(a){this.parentNode.replaceChild(a,this);stack.push(a);}).pushStack(stack);};