/*
 *  Gatling Analytics
 *
 *  Copyright (c) 2010 Knewton
 *  Dual licensed under:
 *      MIT: http://www.opensource.org/licenses/mit-license.php
 *      GPLv3: http://www.opensource.org/licenses/gpl-3.0.html
 */
"use strict";(function(g){var q={},j=/<\/?\w+((\s+(\w|\w[\w\-]*\w)(\s*=\s*(?:\".*?\"|'.*?'|[^'\">\s]+))?)+\s*|\s*)\/?>/i,k=document.location.protocol==="https:",e={},r=[],o={path:undefined,globals:undefined,loaded:undefined,prefix:undefined,securePrefix:undefined,image:undefined,trackerID:undefined,ready:g.noop,params:undefined,replacements:undefined},a={trackerID:"%evo-tracker-id%"},m=new Image(),l=document.write,p;function i(t,u,v){if(e[t]===undefined){e[t]=g.extend(true,{},o,u);e[t].replacements=g.extend({},a,v);var s={};if(e[t].globals!==undefined){g.each(e[t].globals,function(){s[this]=true})}e[t].globals=s}}function c(t){if(t.attr("src")===undefined){t.appendTo("body")}else{var u,s=[];g.each(r,function(){if(this.regex.test(t.attr("src"))){u=this.listener}else{s.push(this)}});r=s;g.getScript(t.attr("src"),u)}}function d(s){if(!p){l.call(document,s);return}if(j.test(s)){var t=g(s);if(t.is("script")){c(t)}else{g("script",t).each(function(){c(g(this))})}t.not("script").appendTo("body")}else{l.call(document,s)}}function h(t){var s=[];g.each(t,function(u,v){s.push(u+"="+v)});return s.length>0?("?"+s.join("&")):""}function b(t){var s={};g.each(t.params,function(u,v){if(t.globals[u]===true){window[u]=v}else{s[u]=v}});return s}function f(t){var u="http"+(k?"s":"")+"://",s={};if(t.securePrefix!==undefined&&k){u+=t.securePrefix}else{if(t.prefix!==undefined){u+=t.prefix}}u+=t.path||t.image;t.params=b(t);t.params=g.extend(t.params,{trackerID:t.trackerID});g.each(t.params,function(v,w){if(t.replacements[v]){u=u.replace(t.replacements[v],w)}else{s[v]=w}});u+=h(s);p=true;if(t.path!==undefined){g.getScript(u,function(){if(g.isFunction(t.loaded)){t.loaded(t)}else{t.ready(t)}})}else{if(t.image!==undefined){m.src=u;if(g.isFunction(t.loaded)){t.loaded(t)}}}}function n(t,x,v,w,s){if(e[t]===undefined){return false}var u=g.extend(true,{},e[t]);u.params=w||{};u.ready=g.isFunction(v)?v:g.noop||function(){};u.trackerID=x;u.loaded=s||u.loaded;f(u);return u}g.extend(q,{defineTracker:i,createTracker:n,load:function(s){var t=[];g.each(s,function(){t.push(n(this.type,this.id,this.listener,this.params,this.loaded))});return t},scriptListener:function(s,t){r.push({regex:s,listener:t});return q}});i("marin",{path:"tracker.marinsm.com/tracker/%evo-tracker-id%.js",loaded:function(){try{_marinTrack.trackPage()}catch(s){}}});i("ga",{path:"google-analytics.com/ga.js",prefix:"www.",securePrefix:"ssl.",loaded:function(s){s.ready(s,_gat._getTracker(s.trackerID))}});i("fastclick",{prefix:"media.",securePrefix:"secure.",image:"fastclick.net/w/tre"});i("hubspot",{path:"%evo-tracker-id%/salog.js.aspx",globals:["hs_ppa","hs_portalid","hs_salog_version"]});i("googleAdds",{path:"www.googleadservices.com/pagead/conversion.js",globals:["google_conversion_id","google_conversion_language","google_conversion_format","google_conversion_color","google_conversion_label","google_conversion_value"]});i("googleAddsNoScript",{image:"www.googleadservices.com/pagead/conversion/%google_converstion_id%/?label=%google_conversion_label%&amp;guid=ON&amp;script=0"},{google_conversion_id:"%google_converstion_id%",google_conversion_label:"%google_conversion_label%"});i("chartbeat",{securePrefix:"s3.amazonaws.com/",path:"static.chartbeat.com/js/chartbeat.js",globals:["_sf_async_config"]});i("linkshare",{image:"track.linksynergy.com/ep"});i("facebook",{path:"ah8.facebook.com/js/conversions/tracking.js"});i("tellapal",{path:"widgets.tellapal.com/pending.gif"});i("bing",{path:"0.r.msn.com/scripts/microsoft_adcenterconversion.js",globals:["microsoft_adcenterconversion_domainid","microsoft_adcenterconversion_cp"]});i("yieldmanager",{image:"ad.yieldmanager.com/pixel"});i("adbrite",{image:"bstats.adbrite.com/click/bstats.gif"});i("adready",{image:"adready.com/ce/%account%/%page%/"},{account:"%account%",page:"%page%"});g.gatling=q;g.urlParam=function(s){var t=new RegExp("[\\?&]"+s+"=([^&#]*)").exec(window.location.href);return g.isArray(t)?t[1]:undefined};document.write=d;document.writeln=d;window._sf_startpt=(new Date()).getTime();g(function(){window._sf_endpt=(new Date()).getTime();g("a.deferred-script-load").each(function(){g.getScript(g(this).attr("href"))})})}(jQuery));
/*
 *  Remote Content Loader
 *
 *  Copyright (c) 2010 Knewton
 *  Dual licensed under:
 *      MIT: http://www.opensource.org/licenses/mit-license.php
 *      GPLv3: http://www.opensource.org/licenses/gpl-3.0.html
 */
"use strict";(function(b){var d=/___[0-9]*/,h=b('<iframe class="remoter-loader"></iframe>'),g={};function i(j){return b('meta[name="'+j+'"]').attr("content")}function c(j){var l=false,k=[].slice.apply(arguments);k.shift();b.each(k,function(){if(b(this).hasClass(j)){l=true;return false}});return l}function e(){b(".remoter-container").each(function(){var j=b(this),k=b(".remoter-deferred",j);if(k.length){if(c("effect-never-show",k,j)){return}else{if(c("effect-slide",k,j)){k.slideDown(g.effectSpeed)}else{if(c("effect-fade",k,j)){k.fadeIn(g.effectSpeed)}else{k.show()}}}b(".remoter-default:first",j).hide();j.removeClass("remoter-container")}})}function a(j){j.isReady=true;b.each(j.readyEvents,function(k,l){if(b.isFunction(l)){l.apply(j)}})}function f(k,j){if(k.isReady){j.apply(k)}else{k.readyEvents.push(j)}}b.extend(g,{effectSpeed:750,path:i("remoter-root"),include:function(j,l,k){h.clone().attr({id:l,src:(k||g.path)+j+".html"+window.location.search}).appendTo("body")},purgeLoader:function(j){b("#"+j+".remoter-loader").remove()},processLoader:function(k,j){b(".remoter-container").each(function(){var q=this.id.replace(d,""),l=b("#"+q,k),n=b("div:not(.ignore):not(.mboxDefault):visible:first",l),p=b(this),r,m;if(n.length>0){p.show();r=n.clone().hide();m=b(".content-target",r);if(c("clear-id",l,m,p)){r.attr("id","")}try{r.appendTo(p)}catch(o){r=b(r[0].outerHTML).appendTo(p)}b(".remoter-deferred:first",p).hide();b(".remoter-depend-"+q).show()}else{if(l.length>0&&b(".remoter-deferred",p).length>0){r=b(".remoter-deferred",p)}}if(r!==undefined){if(c("effect-never-show",l,r,m,p)){return}else{if(c("effect-slide",l,r,m,p)){r.slideDown(g.effectSpeed)}else{if(c("effect-fade",l,r,m,p)){r.fadeIn(g.effectSpeed)}else{r.show()}}}b(".remoter-default:first",p).hide();p.removeClass("remoter-container").trigger("remoter-content-load")}});if(j!==undefined){g.purgeLoader(j)}},interceptOnLoad:function(j){if(j.document.attachEvent){j.attachEvent("onload",function(){a(j)});j.isReady=false;j.readyEvents=[];j.reattachEvent=j.attachEvent;j.attachEvent=function(k,l){if(k==="onload"){f(j,l)}else{j.reattachEvent(k,l)}}}},loaderReady:function(k,j){if(k.addEventListener){k.addEventListener("load",j,false)}else{if(k.document.addEventListener){k.document.addEventListener("load",j,false)}else{if(k.document.attachEvent){k.attachEvent("onload",j)}}}}});b.remoter=g;b(function(){var j=i("remoter-loaders");if(j!==undefined){b.each(j.split(","),function(l,m){var k=m.split(":");g.include(k[0],k.length===2?k[1]:k[0])})}setTimeout(e,5000)})}(jQuery));
/*
 *  Landing Page Javascript
 *
 *  Copyright (c) 2010 Knewton
 *  Dual licensed under:
 *      MIT: http://www.opensource.org/licenses/mit-license.php
 *      GPLv3: http://www.opensource.org/licenses/gpl-3.0.html
 */
"use strict";(function(b){var c;window.chatPopup=function(){if(!c||c.closed){c=window.open("/chat","_blank","top=300,left=900,width=250,height=420,status=no,scrollbars=no,menubar=no,toolbar=no")}c.focus();return false};function a(){var d={file:"http://d3vqlmskuiv0xt.cloudfront.net/KnewtonExperience070109.flv",image:"/images/thumbnails/home_video.jpg",frontcolor:"ffffff",lightcolor:"00A5D3",controlbar:"over",stretching:"fill",skin:"/videos/overlay.swf"},f={allowfullscreen:"true",allowscriptaccess:"always",wmode:"transparent"},e={id:"video_con"};swfobject.embedSWF("/videos/player.swf","video_container","430","247","9","/expressInstall.swf",d,f,e)}b(function(){b.getScript("/assets/gatling/v3/standard.js");a()})}(jQuery));