(function($){$.fn.lazyload=function(options){var settings={threshold:0,failurelimit:0,event:"scroll",effect:"show",container:window};if(options){$.extend(settings,options);}
var elements=this;if("scroll"==settings.event){$(settings.container).bind("scroll",function(event){var counter=0;elements.each(function(){if(!$.belowthefold(this,settings)&&!$.rightoffold(this,settings)){$(this).trigger("appear");}else{if(counter++>settings.failurelimit){return false;}}});var temp=$.grep(elements,function(element){return!element.loaded;});elements=$(temp);});}
return this.each(function(){var self=this;$(self).attr("original",$(self).attr("src"));if("scroll"!=settings.event||$.belowthefold(self,settings)||$.rightoffold(self,settings)){if(settings.placeholder){$(self).attr("src",settings.placeholder);}else{$(self).removeAttr("src");}
self.loaded=false;}else{self.loaded=true;}
$(self).one("appear",function(){if(!this.loaded){$("<img />").bind("load",function(){$(self).hide().attr("src",$(self).attr("original"))
[settings.effect](settings.effectspeed);self.loaded=true;}).attr("src",$(self).attr("original"));};});if("scroll"!=settings.event){$(self).bind(settings.event,function(event){if(!self.loaded){$(self).trigger("appear");}});}});};$.belowthefold=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).height()+$(window).scrollTop();}
else{var fold=$(settings.container).offset().top+$(settings.container).height();}
return fold<=$(element).offset().top-settings.threshold;};$.rightoffold=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).width()+$(window).scrollLeft();}
else{var fold=$(settings.container).offset().left+$(settings.container).width();}
return fold<=$(element).offset().left-settings.threshold;};$.extend($.expr[':'],{"below-the-fold":"$.belowthefold(a, {threshold : 0, container: window})","above-the-fold":"!$.belowthefold(a, {threshold : 0, container: window})","right-of-fold":"$.rightoffold(a, {threshold : 0, container: window})","left-of-fold":"!$.rightoffold(a, {threshold : 0, container: window})"});})(jQuery);;(function(a){a.fn.hoverIntent=function(k,j){var l={sensitivity:7,interval:100,timeout:0};l=a.extend(l,j?{over:k,out:j}:k);var n,m,h,d;var e=function(f){n=f.pageX;m=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-n)+Math.abs(d-m))<l.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return l.over.apply(f,[g])}else{h=n;d=m;f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}};var i=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return l.out.apply(f,[g])};var b=function(q){var o=(q.type=="mouseover"?q.fromElement:q.toElement)||q.relatedTarget;while(o&&o!=this){try{o=o.parentNode}catch(q){o=this}}if(o==this){return false}var g=jQuery.extend({},q);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(q.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){i(g,f)},l.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);(function(b){b.fn.superfish=function(k){var g=b.fn.superfish,j=g.c,f=b(['<span class="',j.arrowClass,'"> &#187;</span>'].join("")),i=function(){var c=b(this),l=d(c);clearTimeout(l.sfTimer);c.showSuperfishUl().siblings().hideSuperfishUl()},e=function(){var c=b(this),m=d(c),l=g.op;clearTimeout(m.sfTimer);m.sfTimer=setTimeout(function(){l.retainPath=(b.inArray(c[0],l.$path)>-1);c.hideSuperfishUl();if(l.$path.length&&c.parents(["li.",l.hoverClass].join("")).length<1){i.call(l.$path)}},l.delay)},d=function(c){var l=c.parents(["ul.",j.menuClass,":first"].join(""))[0];g.op=g.o[l.serial];return l},h=function(c){c.addClass(j.anchorClass).append(f.clone())};return this.each(function(){var c=this.serial=g.o.length;var m=b.extend({},g.defaults,k);m.$path=b("li."+m.pathClass,this).slice(0,m.pathLevels).each(function(){b(this).addClass([m.hoverClass,j.bcClass].join(" ")).filter("li:has(ul)").removeClass(m.pathClass)});g.o[c]=g.op=m;b("li:has(ul)",this)[(b.fn.hoverIntent&&!m.disableHI)?"hoverIntent":"hover"](i,e).each(function(){if(m.autoArrows){h(b(">a:first-child",this))}}).not("."+j.bcClass).hideSuperfishUl();var l=b("a",this);l.each(function(n){var o=l.eq(n).parents("li");l.eq(n).focus(function(){i.call(o)}).blur(function(){e.call(o)})});m.onInit.call(this)}).each(function(){var c=[j.menuClass];if(g.op.dropShadows&&!(b.browser.msie&&b.browser.version<7)){c.push(j.shadowClass)}b(this).addClass(c.join(" "))})};var a=b.fn.superfish;a.o=[];a.op={};a.IE7fix=function(){var c=a.op;if(b.browser.msie&&b.browser.version>6&&c.dropShadows&&c.animation.opacity!=undefined){this.toggleClass(a.c.shadowClass+"-off")}};a.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};a.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:false,dropShadows:false,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};b.fn.extend({hideSuperfishUl:function(){var e=a.op,d=(e.retainPath===true)?e.$path:"";e.retainPath=false;var c=b(["li.",e.hoverClass].join(""),this).add(this).not(d).removeClass(e.hoverClass).find(">ul").hide().css("visibility","hidden");e.onHide.call(c);return this},showSuperfishUl:function(){var e=a.op,d=a.c.shadowClass+"-off",c=this.addClass(e.hoverClass).find(">ul:hidden").css("visibility","visible");a.IE7fix.call(c);e.onBeforeShow.call(c);c.animate(e.animation,e.speed,function(){a.IE7fix.call(c);e.onShow.call(c)});return this}})})(jQuery);(function(a){a.fn.supersubs=function(b){var c=a.extend({},a.fn.supersubs.defaults,b);return this.each(function(){var d=a(this);var e=a.meta?a.extend({},c,d.data()):c;var f=a('<li id="menu-fontsize">&#8212;</li>').css({padding:0,position:"absolute",top:"-999em",width:"auto"}).appendTo(d).width();a("#menu-fontsize").remove();$ULs=d.find("ul");$ULs.each(function(l){var k=$ULs.eq(l);var j=k.children();var g=j.children("a");var m=j.css("white-space","nowrap").css("float");var h=k.add(j).add(g).css({"float":"none",width:"auto"}).end().end()[0].clientWidth/f;h+=e.extraWidth;if(h>e.maxWidth){h=e.maxWidth}else{if(h<e.minWidth){h=e.minWidth}}h+="em";k.css("width",h);j.css({"float":m,width:"100%","white-space":"normal"}).each(function(){var n=a(">ul",this);var i=n.css("left")!==undefined?"left":"right";n.css(i,h)})})})};a.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0}})(jQuery);;var triggers;var useBSNns;if(useBSNns)
{if(typeof(bsn)=="undefined")
bsn={}
var _bsn=bsn;}
else
{var _bsn=this;}
_bsn.resizr={isNarrow:false,nThreshold:920}
_bsn.resizr.onresize=function()
{var w=Number(window.innerWidth);if(!w)
w=document.body.clientWidth;if(w<this.nThreshold&&!this.isNarrow)
{$("body").addClass("narrow");this.isNarrow=true;}else if(w>900&&this.isNarrow){$("body").removeClass("narrow");this.isNarrow=false;}}
document.getElementsByTagName('html')[0].className='js';try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}
var style={bg:function(){if($(window).height()>$('body').height()){$('body').height($(window).height());}}};Array.prototype.inArray=function(value){var i;for(i=0;i<this.length;i++)
{if(this[i]==value)
{return true;}}
return false;};function sec2hms(secs)
{var hours=""+Math.floor(secs/(60*60));var divisor_for_minutes=secs%(60*60);var minutes=""+Math.floor(divisor_for_minutes/60);var divisor_for_seconds=divisor_for_minutes%60;var seconds=""+Math.ceil(divisor_for_seconds);var obj={"h":(hours!=0)?(hours<10)?'0'+hours+':':hours+':':hours='',"m":(minutes<10)?'0'+minutes+':':minutes+':',"s":(seconds<10)?'0'+seconds:seconds};return obj;}
$.fn.extend({_remove:$.fn.remove,remove:function(){if(arguments[0]&&arguments[0].constructor==Number)
return this.each(function(){var $this=$(this).fadeOut(arguments[0],function(){$this.remove();});});else
return this._remove.apply(this,arguments);}});function showArray(array){var msg="";for(x=0;x<array.length;x++)
{msg=msg+array[x]+"\n";;}
alert('Array: '+msg);}
Array.prototype.getIndexByItem=function(aItem)
{for(I=0;I<this.length;I++)
{if(this[I]==aItem)return I}
return-1;}
$(function(){triggers=$("a[href].trigger").overlay({expose:{color:'#333',loadSpeed:200,opacity:0.6},top:'center',closeOnClick:false,api:true});$('button.close').live("click",function(){return false;});var text="";$("input:radio").click(function(){text=$(this).parent().text();$("input.clear").focus().val('');});$("input.keywords, input.clear").click(function(){$(this).val('');});function featureHighlight(table_class){$("td."+table_class).click(function(){if(table_class!='guest'){window.location=$("td."+table_class+"Signup").find("a.signup").attr("href");}}).hover(function(){window.status='Done Right';$("td."+table_class).addClass('hilight-low');$("td."+table_class+"Signup").addClass('hilight-low');$("th."+table_class+"Header").addClass('hilight-low');$(this).siblings().addClass('hilight-low');$(this).addClass('hilight-bright');},function(){$("td."+table_class).removeClass('hilight-low');$("td."+table_class+"Signup").removeClass('hilight-low');$("th."+table_class+"Header").removeClass('hilight-low');$(this).siblings().removeClass('hilight-low');$(this).removeClass('hilight-bright');});}
$("tr").hover(function(){$(this).find('div.tooltip').fadeIn(500);},function(){$(this).find('div.tooltip').fadeOut(500);});$("td.featureList").hover(function(){$(this).addClass('hilight-low');$(this).siblings().addClass('hilight-low');},function(){$(this).removeClass('hilight-low');$(this).siblings().removeClass('hilight-low');});featureHighlight('premium');featureHighlight('student');featureHighlight('free');featureHighlight('guest');$('ul#main-menu').supersubs({minWidth:18,maxWidth:27,extraWidth:1}).superfish();$('ul#sub-menu').supersubs({minWidth:18,maxWidth:27,extraWidth:1}).superfish();$("img.ll").lazyload({threshold:1000});style.bg();$(window).resize(function(){style.bg
_bsn.resizr.onresize();});});