function $import(n,t){var i;t?(i=document.createElement("link"),i.type="text/css",i.rel="stylesheet",i.href=n):(i=document.createElement("script"),i.setAttribute("src",n),i.setAttribute("type","text/javascript")),document.getElementsByTagName("head")[0].appendChild(i)}function getConvexHull(n){var u,f,r,i,o,t,e;for(o in n)t=n[o],(t[0]>u||!u)&&(r=t,u=t[0]),(t[0]<f||!f)&&(i=t,f=t[0]);return e=[].concat(buildConvexHull([i,r],n),buildConvexHull([r,i],n))}function buildConvexHull(n,t){allBaseLines.push(n);var r=[],i=findMostDistantPointFromBaseLine(n,t);return i.maxPoint.length?(r=r.concat(buildConvexHull([n[0],i.maxPoint],i.newPoints)),r=r.concat(buildConvexHull([i.maxPoint,n[1]],i.newPoints))):[n]}function getDistant(n,t){var r=t[1][0]-t[0][0],i=t[0][1]-t[1][1];return i*(n[0]-t[0][0])+r*(n[1]-t[0][1])}function findMostDistantPointFromBaseLine(n,t){var u=0,f=[],e=[],o,i,r;for(o in t){i=t[o],r=getDistant(i,n);if(r>0)e.push(i);else continue;r>u&&(u=r,f=i)}return{maxPoint:f,newPoints:e}}var regSplt,sNotEmpty,trimage,$G,allBaseLines;(function(n){n.fn.hoverIntent=function(t,i){var r={sensitivity:7,interval:100,timeout:0};r=n.extend(r,i?{over:t,out:i}:t);var o,s,e,u,f=function(n){o=n.pageX,s=n.pageY},c=function(t,i){i.hoverIntent_t=clearTimeout(i.hoverIntent_t);if(Math.abs(e-o)+Math.abs(u-s)<r.sensitivity)return n(i).unbind("mousemove",f),i.hoverIntent_s=1,r.over.apply(i,[t]);e=o,u=s,i.hoverIntent_t=setTimeout(function(){c(t,i)},r.interval)},l=function(n,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=0,r.out.apply(t,[n])},h=function(t){var o=jQuery.extend({},t),i=this;i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t)),t.type=="mouseenter"?(e=o.pageX,u=o.pageY,n(i).bind("mousemove",f),i.hoverIntent_s!=1&&(i.hoverIntent_t=setTimeout(function(){c(o,i)},r.interval))):(n(i).unbind("mousemove",f),i.hoverIntent_s==1&&(i.hoverIntent_t=setTimeout(function(){l(o,i)},r.timeout)))};return this.bind("mouseenter",h).bind("mouseleave",h)}})(jQuery),function(n){jQuery.browser.mobile=/android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(n.substr(0,4))}(navigator.userAgent||navigator.vendor||window.opera),function(){function n(){this.shapeStack=[],this.lineStack=[]}window.$demo=new n}(),$demo.drawShape=function(n,t){var s,a,o,u,l,e,f,c,h;for($demo.paper||($demo.paper=isCanvas?$("#raph canvas")[0].getContext("2d"):Raphael("raph",500,400)),u=0;a=t[u];u++)s=$(a).offset(),$demo.shPts.push([s.left-n.left+4,s.top-n.top+4]);var r=getConvexHull($demo.shPts),v=r[0],i=[];for(r.length>0&&(isCanvas?i.push("M"+r[0][0][0]):i.push(r[0][0][0]),i.push(r[0][0][1])),u=1;o=r[u];u++)isCanvas||i.push("L"),i.push(o[0][0]),i.push(o[0][1]);isCanvas||i.push("L"),i.push(r[0][0][0]),i.push(r[0][0][1]);if(isCanvas)for(l=function(n,t){var i=$demo.paper,u=i.fillStyle,f=i.strokeStyle,r;for(i.fillStyle=$demo.shClr[t],i.strokeStyle="#FFAB34",i.lineWidth=2,i.beginPath(),i.moveTo(n[0],n[1]),r=2;r<n.length-1;r+=2)i.lineTo(n[r],n[r+1]);i.fill(),i.stroke(),i.closePath(),i.fillStyle=u,i.strokeStyle=f},e=$demo.shapeStack,e.push(i),f=e.length-1;f>=0;f--)l(e[f],f);else c=i.join(" "),h=$demo.paper.path(c).attr({stroke:"#FFAB34","stroke-width":"2px"}),h.attr("fill",$demo.shClr[++$demo.lastSh]),h.toBack()},$demo.drawConnect=function(n,t){var r,u,i;$demo.paper||($demo.paper=isCanvas?$("#raph canvas")[0].getContext("2d"):Raphael("raph",500,400)),r=function(t){var r=t.parent(),l=r.height(),e=r.width(),o=r.offset(),u=o.left-n.left,a=o.top-n.top,i=[];isCanvas?i.push(u+e/2+4):i.push("M"+(u+e/2+4)),i.push(a+l/2+4),isCanvas||i.push("L");var v=t.height(),c=t.width(),f=t.offset(),h=f.left-n.left,s=f.top-n.top;return i.push(h+c/2+4),i.push(s+v/2+4),i},u=function(n){var t=$demo.paper,i=t.strokeStyle;t.strokeStyle="#23316D",t.lineWidth=2,t.beginPath(),t.moveTo(n[0],n[1]),t.lineTo(n[2],n[3]),t.fill(),t.stroke(),t.closePath(),t.strokeStyle=i},$demo.paper&&t.each(function(){var i=r($(this)),t;isCanvas?(t=$demo.lineStack,t.push(i)):$demo.paper.path(i.join(" ")).attr({stroke:"#23316D","stroke-width":"2px"})});if(isCanvas)for(i=$demo.lineStack.length-1;i>=0;i--)u($demo.lineStack[i])},$demo.startPulse=function(n){$(n).animate({backgroundColor:"#DF8A03"},680,function(){$(n).animate({backgroundColor:"#FFBE40"},800)}),$demo.pulse=setTimeout('$demo.startPulse("#lh")',4e3)},$demo.slideSwitch=function(n){var t=$("#"+n+" IMG.active"),i;t.length==0&&(t=$("#"+n+" IMG:last")),t.stop(!0,!0),i=t.next().length?t.next():$("#"+n+" IMG:first"),i.stop(!0,!0),t.addClass("last-active"),i.css({opacity:0}).addClass("active").animate({opacity:1},2e3,function(){t.removeClass("active last-active")})},$demo.getColors=function(n){return{backgroundColor:n.css("backgroundColor"),borderTopColor:n.css("borderTopColor"),borderRightColor:n.css("borderRightColor"),borderBottomColor:n.css("borderBottomColor"),borderLeftColor:n.css("borderLeftColor")}},$(function(){function f(t){var r={pos1:{dtl1:"410px",dtl2:"718px",dtl3:"1078px"},pos2:{dtl1:"1084px",dtl2:"410px",dtl3:"762px"},pos3:{dtl1:"726px",dtl2:"1016px",dtl3:"410px"}},i;for(i in r[t])$("#"+i).stop(!0,!0).animate({top:r[t][i]},800*n)}function it(n){var i=$(n.currentTarget).offset(),t;$(".sub").each(function(){if(this!=n.currentTarget){var f=$(this).offset(),u=f.top-i.top,r=f.left-i.left;u>-12&&r>-12&&u<66&&r<106&&$(this).stop(!0,!0).css(vt)}}),$(n.currentTarget).stop(!0,!0).animate({width:"100px",height:"60px",borderTopLeftRadius:"22px",borderTopRightRadius:"22px",borderBottomLeftRadius:"22px",borderBottomRightRadius:"22px"},400,function(){$(this).children("p").fadeIn(400)});while(t=$openSubs.pop())t!=n.currentTarget&&$(t).trigger("click");$openSubs.push(n.currentTarget)}function ft(n){var r=$(n.target),u=r.is("p")?r.parent()[0]:n.target,i=jQuery.inArray(u,$openSubs),t;i!=-1&&$openSubs.splice(i,1),$(n.currentTarget).stop(!0,!0).children("p:first").fadeOut(200,function(){$(this).parent().css({width:"",height:"",borderTopLeftRadius:"",borderTopRightRadius:"",borderBottomLeftRadius:"",borderBottomRightRadius:""},500)}),t=$(n.currentTarget).offset(),$(".sub").each(function(){var u=$(this).offset(),r=u.top-t.top,i=u.left-t.left;r>-12&&i>-12&&r<66&&i<106&&($(this).stop(!0,!0).css(st),$(this).children("div").length?$(this).stop(!0,!0).css(ht):$(this).stop(!0,!0).css(kt))})}function pt(n){n.stopPropagation(),$(n.currentTarget).width()==4?it(n):$(n.currentTarget).is(":animated")||ft(n)}function r(n){$("#actExpl div").hide(function(){$("#"+n).show()})}var n=1,a,bt,s;window.isMob=jQuery.browser.mobile,window.isCanvas=function(){var n=document.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))}(),$demo.subsDefClr=$demo.getColors($("#fSub")),a={top:"245px",left:"232px",width:"163px",height:"95px"},isCanvas||$import("/scripts/raphael-2.0.js"),$import("scripts/jquery-ColorPlugin.min.js"),$openSubs=[];var st={width:"4px",height:"4px",paddingTop:"4px",paddingRight:"4px",paddingBottom:"4px",paddingLeft:"4px"},ht={color:"#ffffff",backgroundColor:"#67A819",borderBottomColor:"#0F6905",borderRightColor:"#127D06",borderLeftColor:"#57C703",borderTopColor:"#A7E009"},kt={backgroundColor:"",borderBottomColor:"",borderRightColor:"",borderLeftColor:"",borderTopColor:""},u="transparent",vt={width:"0px",height:"0px",paddingTop:"0px",paddingRight:"0px",paddingBottom:"0px",paddingLeft:"0px",backgroundColor:u,borderBottomColor:u,borderTopColor:u,borderLeftColor:u,borderRightColor:u},yt={};$.extend(yt,st),bt={over:it,timeout:500,out:ft},$(".sub").click(pt),$("#lh").hoverIntent(function(n){$(this)[0]==n.target&&$(n.target).css({backgroundColor:"#DF8A03"})},function(n){$(this)[0]==n.target&&$(n.target).css({backgroundColor:"#FFBE40"})}),s=$("#canvas").offset(),$("#s2").data("tLoc",{left:"160px",top:"90px"}),$("#s4").data("tLoc",{left:"30px",top:"200px"}),$("#s6").data("tLoc",{left:"160px",top:"200px"}),$("#s4").data("sLoc",{left:"680px",top:"200px"}),$("#s6").data("sLoc",{left:"810px",top:"90px"}),$("#s8").data("sLoc",{left:"810px",top:"200px"});var o={},l,e,dt=function(n,t){l=n,e=t,o[n]=setInterval(function(){$(l).is(":animated")||(clearInterval(o[n]),o[n]=null,delete o[n],e&&e(),e=l=null)},500)},t=function(t){$("#drill .slide").fadeOut(400*n,function(){$("#slides").append($(this));var i=$("#slides #sld"+t).fadeIn(1200*n);$("#drill").append(i)})},i,c=0,wt=0;$demo.lhGrow=function(){var t=typeof Raphael!="undefined";if(t||isCanvas){try{$demo.paper||($demo.paper=isCanvas?$("#raph canvas")[0].getContext("2d"):Raphael("raph",500,400))}catch(r){}i.fadeIn(700*n,function(){++c,c==i.length&&(++wt%3==0&&$("#lhExp > p:visible").next().fadeIn(400),$demo.drawShape(s,i),i=i.children("div"),c=0,i.length?$demo.lhGrow():(isCanvas&&$demo.drawConnect(s,i),$("#next").fadeIn(800*n).click(b),$("#prev").fadeIn(800*n).click(w)))}),$demo.drawConnect(s,i),i.each(function(){$(this).children("div").length&&$(this).each(function(){$(this).animate(ht,1300*n)})})}else setTimeout("$demo.lhGrow()",500)};var h=function(){$("#raph").show(),$demo.paper&&(isCanvas?$demo.paper.clearRect(0,0,500,400):$demo.paper.clear()),$demo.shPts=[],$demo.shClr=["#F8EA8F","#F4DB52","#F0CA1C","#F7A41D","#F68002","#F65303"],$demo.shPts=[],$demo.lastSh=-1,$("#demo").css({"background-image":"","background-position-x:":""}),$(".sub").each(function(){$(this).css($demo.subsDefClr).hide()}),$("#lh").css({overflow:"visible"}),$("#lhArrow").show(),$("#lhExp > *").hide(),i=$("#lh > div"),$Demo=new Grammit._Demo,$Demo.overRides(),f("pos1"),$("#subExp").hide(),$("#next,#prev").fadeOut(800*n),$("#lastSplash").hide(),$("#slideshow img").removeClass("hide"),isMob||($demo.slideInt=setInterval("$demo.slideSwitch('slideshow')",6e3)),$("#st2 img:first,#st3 img:first").stop(!0,!0).show(),$("#st2 img:first, #st3 img:first").stop(!0,!0).fadeOut(1e4),$("#st1, #lh").click(p),$("#readMore").qtip({content:{text:'<iframe src="/beta.aspx" scrolling="no" />',title:{text:"Beta Sign Up",button:"close"}},position:{target:$(document.body),my:"center center",at:"center center"},show:{solo:!0,event:"click"},hide:{event:"click"},style:{tip:!1,classes:"ui-tooltip-green",width:"572px",height:"320px"}})},p=function(){$("#st2 img:first").stop(!0,!0).fadeOut(2e3),$("#st3 img:first").stop(!0,!0).fadeOut(2e3),$("#lhArrow").hide(),$("#lh").css({cursor:"default"}).stop(!0,!0).animate({backgroundColor:"#C5D2DC",borderTopColor:"#06486D",borderRightColor:"#06486D",borderBottomColor:"#06486D",borderLeftColor:"#06486D"},400,function(){$("#lhExp :first-child").fadeIn(400*n)}).unbind("click"),$("#st1").css({cursor:"default"}).unbind("click"),t("2"),clearTimeout($demo.pulse),$("#tStrt,#tEnd").fadeOut(900*n),$("#slideshow").fadeOut(800*n),clearInterval($demo.slideInt),$("#lh").animate({left:"-=258"},700*n,function(){$("#subExp").fadeIn(800*n,function(){$demo.lhGrow()})})},w=function(){$("#next,#prev").stop(!0,!0).unbind("click").fadeOut(400*n),t("1"),$("#lh").stop(!0,!0).animate({left:"+=258",backgroundColor:"#FFBE40",borderTopColor:"#06486D",borderRightColor:"#06486D",borderBottomColor:"#06486D",borderLeftColor:"#06486D"},400,function(){$(this).css({cursor:"pointer"}).click(p),h()}),$("#tStrt,#tEnd").fadeIn(900*n),$("#slideshow").fadeIn(800*n),isMob||($demo.slideInt=setInterval("$demo.slideSwitch('slideshow')",6e3))},b=function(){$("#next,#prev").stop(!0,!0).unbind("click").fadeOut(400*n),t(3),$("#lh, #raph").animate({left:"-=40"},700*n),$("#lhExp > *").stop(!0,!0).fadeOut(400*n),$("#cSrc1").fadeIn(400*n,function(){$("#cSrc2").fadeIn(400*n,function(){$("#cSrc3").fadeIn(400*n,function(){$("#cSrc1,#cSrc3").fadeOut(800*n),$("#pgBefT").fadeIn(500*n),$("#cSrc2").animate({left:"330px",width:"240px",height:"180px",top:"119px"},1200*n,function(){$("#next").fadeIn(500*n).click(y),$("#prev").fadeIn(500*n).click(ut)})})})})},ut=function(){$("#next,#prev").stop(!0,!0).unbind("click").fadeOut(400*n),t(2),$("#lh").stop(!0,!0).animate({left:"+=40"},100*n),$(".cSrc").hide(),$("#cSrc2").css({left:"372px",top:"138px",width:"164px",height:"120px"}),$("#pgBefT").hide(),$("#lhExp > *").fadeIn(400*n),$("#next").fadeIn(800*n).click(b),$("#prev").fadeIn(800*n).click(w)},y=function(){$("#next,#prev").stop(!0,!0).unbind("click").fadeOut(400*n),$("#pgBefT").hide(),$("#st1 img:first").stop(!0,!0).fadeOut(2e3),$("#st2 img:first").stop(!0,!0).fadeIn(2e3),t(4);var s=$("div.sub").filter(function(){return!$(this).children("div").length}),h=s.length,c=0,i=$("#cSrc2"),o=i.position(),u=i.height()-20,r=i.width()-20,e=$("#demo").offset();s.each(function(){var t=$(this).offset();$(this).clone(!1).appendTo("#demo").css({top:t.top-e.top,left:t.left-e.left,display:"block"}).animate({top:o.top+u/2+(Math.floor(Math.random()*u)-u/2),left:o.left+r/2+(Math.floor(Math.random()*r)-r/2)},1400*n,function(){$(this).fadeOut(400*n,function(){$(this).remove()}),++c==h&&($("#pgBefore").fadeOut(400*n),$("#pgAfter").fadeIn(800*n,function(){$("#subExp").fadeOut(600*n),$("#raph").hide(),$("#lh").fadeOut(500*n),i.animate({top:"64px",left:"25px",width:"372px",height:"279px"},400*n,function(){$("#pgAftT").fadeIn(600*n),$("#next").click(tt).fadeIn(600*n),$("#prev").click(nt).fadeIn(600*n),f("pos2")})}))})}),$("area").each(function(){$(this).qtip({content:{text:$(this).attr("alt"),title:{text:$(this).attr("title")}},position:{my:"bottom center",at:"top center"},style:{tip:!0,classes:"ui-tooltip-loog",border:{width:3,radius:8,color:"#6699CC"},width:240}})})},nt=function(){$("#next,#prev").stop(!0,!0).unbind("click").fadeOut(400*n),$("#st1 img:first").stop(!0,!0).fadeIn(2e3),$("#st2 img:first").stop(!0,!0).fadeOut(2e3),$(".qtip.ui-tooltip").qtip("hide"),$("#pgBefT").show(),$("#pgAftT").hide(),f("pos1"),$("#lh").fadeIn(800*n,function(){$("#raph").fadeIn(800*n)}),t(3),$("#cSrc2").animate({left:"330px",top:"119px",width:"240px",height:"180px"},400*n),$("#pgBefore").fadeIn(800*n),$("#pgAfter").fadeOut(800*n),$("#next").stop(!0,!0).fadeIn(800*n).click(y),$("#prev").stop(!0,!0).fadeIn(800*n).click(ut)};var tt=function(){$("#next,#prev").stop(!0,!0).unbind("click").stop(!0,!0).fadeOut(400*n),t(5),$(".qtip").qtip("hide"),$("#pgAftT, #raph").fadeOut(600*n),$("#cSrc2").fadeOut(1200*n),$("#gramDemo").fadeIn(1200*n),$("#actExpl").show(),r("demoExpl"),$("#next").click(k).fadeIn(800*n),$("#prev").click(g).fadeIn(800*n)},g=function(){$("#prev, #next").stop(!0,!0).unbind("click"),t(4),$("#actExpl").hide(),$("#gramDemo").fadeOut(800*n,function(){$("#cSrc2, #pgAftT").fadeIn(800*n)}),$("#next").click(tt).fadeIn(800*n),$("#prev").click(nt).fadeIn(800*n)},k=function(){$("#next,#prev").stop(!0,!0).unbind("click").stop(!0,!0).fadeOut(400*n),t(6),r("dtlTryFunc"),$("#smartSyntax").click(function(){$G.syntax(),r("dtlSyntax")}),$("#yonder").click(function(){$G.yonder(),r("dtlYonder")}),$("#bho,#bhoBrow").click(function(){$Demo.createActs.call($Demo),r("dtlAct")}),$("#next").click(v).fadeIn(800*n),$("#prev").click(d).fadeIn(800*n)},d=function(){$("#prev, #next").stop(!0,!0).unbind("click"),$("#bho, #smartSyntax, #yonder").unbind("click"),t(5),r("demoExpl"),$G.unsyntax(),$Demo.clearActs.call($Demo),$("#next").click(k).fadeIn(800*n),$("#prev").click(g).fadeIn(800*n)},v=function(){$("#next,#prev").stop(!0,!0).unbind("click").fadeOut(400*n),t(8),$("#actExpl").hide(),$("#gramDemo").fadeOut(400*n),$("#pgAfter").show(),$("#cSrc2").fadeIn(1e3*n),f("pos3"),$("#st2 img:first").stop(!0,!0).fadeOut(2e3),$("#st3 img:first").stop(!0,!0).fadeIn(2e3),$("#teachDtl").fadeIn(1800*n,function(){$("#webOverlay").fadeIn(800*n),$(this).animate({top:"84px",left:"169px",width:"380px",height:"220px"},1400*n)}),$("#next").click(ct).fadeIn(800*n),$("#prev").click(ot).fadeIn(800*n)},ot=function(){$("#next,#prev").stop(!0,!0).unbind("click").fadeOut(400*n),t(6),r("demoExpl"),$("#gramDemo").fadeIn(400*n),$("#cSrc2").hide(),f("pos2"),$("#st2 img:first").stop(!0,!0).fadeIn(2e3),$("#st3 img:first").stop(!0,!0).fadeOut(2e3),$("#teachDtl").fadeOut(1800*n,function(){$("#webOverlay").fadeOut(800*n),$(this).css(a,400*n)}),$("#next").click(v).fadeIn(800*n),$("#prev").click(d).fadeIn(800*n)},ct=function(){$("#next,#prev").stop(!0,!0).unbind("click").fadeOut(400*n),t(9),$("#cSrc2").hide(),$("#pgAfter").stop(!0,!0).fadeOut(800*n),$("#teachDtl").stop(!0,!0).fadeOut(800*n),$("#webOverlay").stop(!0,!0).fadeOut(800*n),$("#chat").fadeIn(1e3),$("#next").click(rt).fadeIn(800*n),$("#prev").click(et).fadeIn(800*n)},et=function(){$("#next,#prev").stop(!0,!0).unbind("click").fadeOut(400*n),t(8),$("#cSrc2").show(),$("#pgAfter").stop(!0,!0).show(),$("#teachDtl").stop(!0,!0).fadeIn(400*n),$("#webOverlay").stop(!0,!0).fadeIn(800*n),$("#chat").fadeOut(600),$("#next").click(ct).fadeIn(800*n),$("#prev").click(ot).fadeIn(800*n)},rt=function(){$("#next,#prev").stop(!0,!0).unbind("click").fadeOut(400*n),t(10),$("#chat").stop(!0,!0).fadeOut(1e3*n),$("#lastSplash").fadeIn(1500*n),$("#reset").click(at).fadeIn(400*n),$("#prev").click(lt).fadeIn(800*n)},lt=function(){$("#next,#prev").stop(!0,!0).unbind("click").fadeOut(400*n),$("#reset").stop(!0,!0).unbind("click").fadeOut(200*n),t(9),$("#chat").stop(!0,!0).fadeIn(1e3*n),$("#lastSplash").hide(),$("#demo").css({"background-image":"","background-position-x:":""}),$("#next").click(rt).fadeIn(800*n),$("#prev").click(et).fadeIn(800*n)},at=function(){$(this).fadeOut(1e3*n).unbind("click"),t(1),$("#prev").unbind("click"),$('[id$="Peg"]').remove(),$('[class="sub"]').fadeIn(400*n),h(),$("#lh").show().animate({left:"+=298"},600*n).css({backgroundColor:"#FFBE40"}),$("#teachDtl").css(a),$(".cSrc").hide(),$("#pgAfter").hide(),$("#pgBefore").show(),$("#cSrc2").css({left:"372px",top:"138px",width:"164px",height:"120px"}),$("#st1 img:first").stop(!0,!0).fadeIn(),$("#st2 img:first").stop(!0,!0).fadeIn(),$("#st3 img:first").stop(!0,!0).fadeIn(),$("#tStrt,#tEnd").fadeIn(),$("#slideshow").fadeIn(),isMob||($demo.slideInt=setInterval("$demo.slideSwitch('slideshow')",6e3))};t("1"),h(),$("#body").supersleight&&$("#demoHdr ul,#footImg, #pgAftT, #blurb, #lhArrow, #next, #readMore").supersleight({shim:"/images/x.gif"})}),Type.registerNamespace("Grammit"),$G=Grammit,$G.getRPID=function(){return grPgID},regSplt=/&[a-z]{2,4};|\s*\.*[0-9]+(?:[\.,][0-9]+)*\s*|\s*(?:[A-Z]\.){2,}\s*|\s*([^\s0-9a-zA-Z\u00e1\u00e9\u00ed\u00f3\u00fa\u00fc\u00e4\u00f1\u00e3\u00f0\u00fd\u00c1\u00c9\u00cd\u00d3\u00da\u00d1\u00c0\u00c2\u00c3\u00c4\u00c8\u00ca\u00cb\u00cc\u00ce\u00cf\u00d9\u00db\u00dc\u00dd])\1*\s*|\s*[0-9a-zA-Z\u00e1\u00e9\u00ed\u00f3\u00fa\u00fc\u00e4\u00f1\u00e3\u00f0\u00fd\u00c1\u00c9\u00cd\u00d3\u00da\u00d1\u00c0\u00c2\u00c3\u00c4\u00c8\u00ca\u00cb\u00cc\u00ce\u00cf\u00d9\u00db\u00dc\u00dd]+\s*|^\s+/g,sNotEmpty=/\S+?/,window.$grBasePath="http://loogla.com/",trimage=new RegExp("BsB|[\n\r\t]"),Grammit._Demo=function(){this._formatted=!1,this.feedback='<p>Students can explore subjects in more detail, see their complete history on the Learning Horizon and do related practice activities to reinforce their skills.</p><p><br />Each subject requires a set number of tries to "pass" the activity, and will show you your total score towards that goal in the feedback window.</p>',this._actList=null,this._actVars=null},Grammit._Demo.prototype={initActs:function(){this._actVars=[{grmID:"gr19",subName:"Present Hypothesis"},{grmID:"gr2",subName:"Demonstrative Pronouns (This, These)"},{grmID:"gr29",subName:"Inside Joke"},{grmID:"gr44",subName:"Vocabulary level 14 (of 100)"}];var t="Randomly selected feedback image.  You can add your own to your profile!",n="<br><br>\r\n<div style='width:17.4%' class='grActPass'></div>\r\n<div style='width:17.4%' class='grActPass'></div>\r\n<div style='width:17.4%' class='grActFail'></div>\r\n<div class='grActMin'></div>\r\n<div style='width:17.4%' class='grActFail'></div>\r\n<div style='width:17.4%' class='grActFail'></div>\r\n";this._actList=[{ActType:2,CompCreate:['$grCreate(grSys.Extended.UI.DropDownBehavior,{"id":"grAct586_7pop","dropDownControl":$get(\'actPnl_grAct586_7\'),"highlightBackgroundColor":"#c9cfd2"}, {}, null, $AM.avElm); '],HTML:"<div id=\"actPnl_grAct586_7\" class=\"grAct grDDAct\" style=\"width:260px;\">\r\n<div id='grActPr586_7' class='grActPrompt'><div class='grHdrCont'>Which conjugation of the verb&nbsp;<b>ser</b>&nbsp;should be used here?</div><div style='clear:both'></div></div>\t<div id=\"grDdc7_0\" class=\"grDDActChoice\">son</div><span id=\"grDdc7_0\"></span><div id=\"grDdc7_1\" class=\"grDDActChoice\">sean</div><span id=\"grDdc7_1\"></span><div id=\"grDdc7_2\" class=\"grDDActChoice\">ser\u00edan</div><span id=\"grDdc7_2\"></span><div id=\"grDdc7_3\" class=\"grDDActChoice\">eran</div><span id=\"grDdc7_3\"></span><div id='actPnl_grAct586_7_fc' class='grActFoot' style='text-align:center;'>Creator Info:</div><table class='grActBar' cellSpacing='0'><tr><td><div class='grClk' onclick=\"JavaScript: $GP.takeLoadNote(null, [{desc:'Subject: Present Hypothesis',cat:'sub',id:17946},{desc:'Activity: Multiple Choice on Conditional',cat:'act',id:586}]);  \"><img title=\"You don't have any Sticky Notes for this object, but you can make one.\" src='/images/notepad.png'/></div></td><td style='text-align:right;width:100%;'><a href='/copyright.aspx' target='_blank'>Copyright</a> | <a href='/badAct.aspx?act=586&p=35649&nd=14&ct=' target='_blank'>Report Problem</a><br />See this subject on your <a href='/learn/Learning_Horizon.aspx?g=5411' target='_blank'><b>Learning Horizon</b></a></td></tr></table>\r\n</div>",GramID:"gr19",ActID:586,SubID:17946,Init:"grWriteFlash($get('actPnl_grAct586_7_fc'), 'actPnl_grAct586_7_flex', 'actFoot586', 'ActivityFooter_Demo', 'userGuid=5276de5d-fce6-49d7-8c47-7ac3a530a4ef&userName=admin1&points=19637&rtmpServer=lobo&actID=586&canRate=False&', '254', '78', '/flash/', '#FFFFFF'); setTimeout('$get(\"'+$AM.avElm.id+'\").click()', 10);  $AM.actComp.addSubmitter($get('grDdc7_0',$AM.actCont));  $AM.actComp.addSubmitter($get('grDdc7_1',$AM.actCont));  $AM.actComp.addSubmitter($get('grDdc7_2',$AM.actCont));  $AM.actComp.addSubmitter($get('grDdc7_3',$AM.actCont)); ",vars:'{"grRoot":7,"subjunctive":10,"conditional":19}',Feedback:['Sorry. &nbsp;This sentence structure is known as a "Hypothesis in the Present"&nbsp;(if this then that) and it follows the basic form:</p>\r\n<p>\r\n\t\u00a0</p>\r\n<div style="font-family: Arial, Verdana, sans-serif; font-size: 16px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; min-height: 14px; ">\r\n\t<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\r\n\t\tSi [subjuctive] + [conditional]</p>\r\n\t<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\r\n\t\t\u00a0</p>\r\n\t<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\r\n\t\tSince&nbsp;<b>fuera</b>&nbsp;is in the subjunctive, the correct answer was&nbsp;<b>ser\u00edan</b>&nbsp;in the conditional.<div style=\'text-align:center; padding:12px 0 0 0\'>\r\n<img src=\'http://loogla.com/Assets/feedback/neg/24.jpg\' height=\'150\' title=\''+t+"' />\r\n<div style='width:380px;' class='grActStats' title='To complete this subject, you need to get at least 3 correct activities out of your last 5 attempts.  You have passed 2.'>\r\n<span style='color:#999;'>Results for subject:</span>Present Hypothesis"+n+"</div>\r\n<div id='subHis_43' class='grLGItem' onclick=\"$GP.showPopup($get('gr7'), 2, 'Demo!', '', $Demo.feedback);\"><i>Detail</i></div>\r\n<div class='grClk' ><img title='You don't have any Sticky Notes for this object, but you can make one.' src='http://loogla.com/images/notepad.png'></div>\r\n</div>",'Sorry. &nbsp;This sentence structure is known as a "Hypothesis in the Present"&nbsp;(if this then that) and it follows the basic form:</p>\r\n<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\r\n\tSi [subjuctive] + [conditional]</p>\r\n<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\r\n\t\u00a0</p>\r\n<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\r\n\tSince&nbsp;<b>fuera</b>&nbsp;is in the subjunctive, the correct answer was&nbsp;<b>ser\u00edan</b>&nbsp;in the conditional.<div style=\'text-align:center; padding:12px 0 0 0\'>\r\n<img src=\'http://loogla.com/Assets/feedback/neg/24.jpg\' height=\'150\' title=\''+t+"' />\r\n<div style='width:380px;' class='grActStats' title='To complete this subject, you need to get at least 3 correct activities out of your last 5 attempts.  You have passed 2.'>\r\n<span style='color:#999;'>Results for subject:</span>Present Hypothesis"+n+"</div>\r\n<div id='subHis_43' class='grLGItem' onclick=\"$GP.showPopup($get('gr7'), 2, 'Demo!', '', $Demo.feedback);\"><i>Detail</i></div>\r\n<div class='grClk' ><img title='You don't have any Sticky Notes for this object, but you can make one.' src='http://loogla.com/images/notepad.png'></div>\r\n</div>","Excellent work. \u00a0A hypothesis in the present (if this then that) follows the basic form</p>\r\n<p>\r\n\t\u00a0</p>\r\n<p>\r\n\tSi [subjuctive] + [conditional]<div style='text-align:center; padding:12px 0 0 0'>\r\n<img src='http://loogla.com/Assets/feedback/pos/14.jpg' height='150' title='"+t+"' />\r\n<div style='width:380px;' class='grActStats' title='To complete this subject, you need to get at least 3 correct activities out of your last 5 attempts.  You have passed 2.'>\r\n<span style='color:#999;'>Results for subject:</span>Present Hypothesis"+n+"</div>\r\n<div id='subHis_43' class='grLGItem' onclick=\"$GP.showPopup($get('gr7'), 2, 'Demo!', '', $Demo.feedback);\"><i>Detail</i></div>\r\n<div class='grClk' ><img title='You don't have any Sticky Notes for this object, but you can make one.' src='http://loogla.com/images/notepad.png'></div>\r\n</div>",'Sorry. &nbsp;This sentence structure is known as a "Hypothesis in the Present"&nbsp;(if this then that) and it follows the basic form:</p>\r\n<p>\r\n\t\u00a0</p>\r\n<p>\r\n\tSi [subjuctive] + [conditional]</p>\r\n<div style="font-family: Arial, Verdana, sans-serif; font-size: 16px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; min-height: 14px; ">\r\n\t<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\r\n\t\t\u00a0</p>\r\n\t<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\r\n\t\tSince&nbsp;<b>fuera</b>&nbsp;is in the subjunctive, the correct answer was&nbsp;<b>ser\u00edan</b>&nbsp;in the conditional.<div style=\'text-align:center; padding:12px 0 0 0\'>\r\n<img src=\'http://loogla.com/Assets/feedback/neg/24.jpg\' height=\'150\' title=\''+t+"' />\r\n<div style='width:380px;' class='grActStats' title='To complete this subject, you need to get at least 3 correct activities out of your last 5 attempts.  You have passed 2.'>\r\n<span style='color:#999;'>Results for subject:</span>Present Hypothesis"+n+"</div>\r\n<div id='subHis_43' class='grLGItem' onclick=\"$GP.showPopup($get('gr7'), 2, 'Demo!', '', $Demo.feedback);\"><i>Detail</i></div>\r\n<div class='grClk' ><img title='You don't have any Sticky Notes for this object, but you can make one.' src='http://loogla.com/images/notepad.png'></div>\r\n</div>"],Exp:["false","false","true","false",null],css:'{"grRoot":1,"subjunctive":1,"conditional":0}',SL:!0,eval:!1,Ct:""},{ActType:1,CompCreate:['$grCreate(grSys.Extended.UI.PopupControlBehavior,{"id":"grAct496_1pop","PopupControlID":"actPnl_grAct496_1","Position":2,"OffsetY":48}, {}, null, $AM.avElm); ','$grCreate(grSys.Extended.UI.FloatingBehavior,{"handle":$get(\'grActPr496_1\'),"id":"grDrggrAct496_1"}, {}, null, $AM.actCont); '],HTML:"<div id=\"actPnl_grAct496_1\" class=\"grAct grTBA\">\r\n<div id='grActPr496_1' class='grActPrompt'><div class='grHdrCont'>Mini Lecci\u00f3n sobre Demonstrative Pronouns (This, These)</div><div style='clear:both'></div></div>\t<div id=\"grCont1\" class=\"grCont\">Lesson Loading...</div><div class='grDoneCont'><div class='grLGItem autoWid' id='grDone'>Close and record in Learning Horizon</div></div><div id='actPnl_grAct496_1_fc' class='grActFoot' style='text-align:center;'>Creator Info:</div><table class='grActBar' cellSpacing='0'><tr><td><div class='grClk' onclick=\"JavaScript: $GP.takeLoadNote(null, [{desc:'Subject: Demonstrative Pronouns (This, These)',cat:'sub',id:2745},{desc:'Activity: Mini Lesson',cat:'act',id:496}]);  \"><img title=\"You don't have any Sticky Notes for this object, but you can make one.\" src='/images/notepad.png'/></div></td><td style='text-align:right;width:100%;'><a href='/copyright.aspx' target='_blank'>Copyright</a> | <a href='/badAct.aspx?act=496&p=35649&nd=4&ct=' target='_blank'>Report Problem</a><br />See this subject on your <a href='/learn/Learning_Horizon.aspx?g=550' target='_blank'><b>Learning Horizon</b></a></td></tr></table>\r\n</div>",GramID:"gr1",ActID:496,SubID:2745,Init:"grWriteFlash($get('actPnl_grAct496_1_fc'), 'actPnl_grAct496_1_flex', 'actFoot496', 'ActivityFooter_Demo', 'userGuid=6b20b2f6-d26c-4d38-9c8a-4854d88f2151&userName=jpeck&points=3105&rtmpServer=lobo&actID=496&canRate=True&', '254', '78', '/flash/', '#FFFFFF'); $removeHandler(document.body,'click',$find('grAct496_1pop')._bodyClickHandler); $find('grAct496_1pop')._bodyClickHandler=null; \r\n var grAct496_1pop = $find('grAct496_1pop'); $AM.actComp.addSubmitter($get('grDone',$get('actPnl_grAct496_1'))); \r\n $AM.dynPop('grAct496_1pop', 'grCont1','form=txt&rand=-853&act=496&gram=1&s=2745', 'services/grammitService.asmx','GetActContent','$GP.grPopupLoaded'); \r\n",vars:"{}",Feedback:["Lesson learned:)<div style='text-align:center; padding:12px 0 0 0'>\r\n<img src='http://loogla.com/Assets/feedback/pos/6.jpg' height='150' title='"+t+"' />\r\n<div style='width:380px;' class='grActStats' title='To complete this subject, you need to get at least 3 correct activities out of your last 5 attempts.  You have passed 2.'>\r\n<span style='color:#999;'>Results for subject:</span>Demonstrative Pronouns (This, These)"+n+"</div>\r\n<div id='subHis_43' class='grLGItem' onclick=\"$GP.showPopup($get('gr1'), 2, 'Demo!', '', $Demo.feedback);\"><i>Detail</i></div>\r\n<div class='grClk' ><img title='You don't have any Sticky Notes for this object, but you can make one.' src='http://loogla.com/images/notepad.png'></div>\r\n</div>","Demonstrative Pronouns (This, These)<div style='text-align:center; padding:12px 0 0 0'>\r\n<img src='http://loogla.com/Assets/feedback/pos/14.jpg' height='150' title='"+t+"' />\r\n<div style='width:380px;' class='grActStats' title='To complete this subject, you need to get at least 3 correct activities out of your last 5 attempts.  You have passed 2.'>\r\n<span style='color:#999;'>Results for subject:</span>Demonstrative Pronouns (This, These)"+n+"</div>\r\n<div id='subHis_43' class='grLGItem' onclick=\"$GP.showPopup($get('gr1'), 2, 'Demo!', '', $Demo.feedback);\"><i>Detail</i></div>\r\n<div class='grClk' ><img title='You don't have any Sticky Notes for this object, but you can make one.' src='http://loogla.com/images/notepad.png'></div>\r\n</div>"],Exp:["true"],css:'{"grRoot":1}',SL:!1,eval:!1,Ct:""},{ActType:2,CompCreate:['$grCreate(grSys.Extended.UI.DropDownBehavior,{"id":"grAct597_29pop","dropDownControl":$get(\'actPnl_grAct597_29\'),"highlightBackgroundColor":"#c9cfd2"}, {}, null, $AM.avElm); '],HTML:"<div id=\"actPnl_grAct597_29\" class=\"grAct grDDAct\" style=\"width:260px;\">\r\n<div id='grActPr597_29' class='grActPrompt'><div class='grHdrCont'>Which of the following\u00a0is <strong>not </strong>a way to say \"inside joke\"?</div><div style='clear:both'></div></div>\t<div id=\"grDdc29_0\" class=\"grDDActChoice\">co\u00f1a interna</div><span id=\"grDdc29_0\"></span><div id=\"grDdc29_1\" class=\"grDDActChoice\">chiste adentro</div><span id=\"grDdc29_1\"></span><div id=\"grDdc29_2\" class=\"grDDActChoice\">chiste interno</div><span id=\"grDdc29_2\"></span><div id=\"grDdc29_3\" class=\"grDDActChoice\">chiste local</div><span id=\"grDdc29_3\"></span><div id='actPnl_grAct597_29_fc' class='grActFoot' style='text-align:center;'>Creator Info:</div><table class='grActBar' cellSpacing='0'><tr><td><div class='grClk' onclick=\"JavaScript: $GP.takeLoadNote(null, [{desc:'Subject: Inside Joke',cat:'sub',id:17947},{desc:'Activity: Multiple Choice',cat:'act',id:597}]);  \"><img title=\"You don't have any Sticky Notes for this object, but you can make one.\" src='/images/notepad.png'/></div></td><td style='text-align:right;width:100%;'><a href='/copyright.aspx' target='_blank'>Copyright</a> | <a href='/badAct.aspx?act=597&p=35649&nd=48&ct=' target='_blank'>Report Problem</a><br />See this subject on your <a href='/learn/Learning_Horizon.aspx?g=5353' target='_blank'><b>Learning Horizon</b></a></td></tr></table>\r\n</div>",GramID:"gr29",ActID:597,SubID:17947,Init:"grWriteFlash($get('actPnl_grAct597_29_fc'), 'actPnl_grAct597_29_flex', 'actFoot597', 'ActivityFooter_Demo', 'userGuid=5276de5d-fce6-49d7-8c47-7ac3a530a4ef&userName=admin1&points=19637&rtmpServer=lobo&actID=597&canRate=False&', '254', '78', '/flash/', '#FFFFFF'); setTimeout('$get(\"'+$AM.avElm.id+'\").click()', 10);  $AM.actComp.addSubmitter($get('grDdc29_0',$AM.actCont));  $AM.actComp.addSubmitter($get('grDdc29_1',$AM.actCont));  $AM.actComp.addSubmitter($get('grDdc29_2',$AM.actCont));  $AM.actComp.addSubmitter($get('grDdc29_3',$AM.actCont)); ",vars:'{"adj":30}',Feedback:["Sorry this answer is one of the correct ways to say \"inside joke\". The only incorrect answer is \"chiste adentro\" which is incorrect because adentro refers to a physical location, not a conceptual \"inside\".<div style='text-align:center; padding:12px 0 0 0'>\r\n<img src='http://loogla.com/Assets/feedback/neg/19.jpg' height='150' title='"+t+"' />\r\n<div style='width:380px;' class='grActStats' title='To complete this subject, you need to get at least 3 correct activities out of your last 5 attempts.  You have passed 2.'>\r\n<span style='color:#999;'>Results for subject:</span>Inside Joke"+n+"</div>\r\n<div id='subHis_43' class='grLGItem' onclick=\"$GP.showPopup($get('gr29'), 2, 'Demo!', '', $Demo.feedback);\"><i>Detail</i></div>\r\n<div class='grClk' ><img title='You don't have any Sticky Notes for this object, but you can make one.' src='http://loogla.com/images/notepad.png'></div>\r\n</div>","Perfect.\u00a0 You wouldn't use the adjective \"adentro\" in this case.\u00a0 Even though the literal translation is \"inside\", it refers to the physical location of things.\u00a0\u00a0 You should use \"interno\" when speaking about conceptual ideas.<div style='text-align:center; padding:12px 0 0 0'>\r\n<img src='http://loogla.com/Assets/feedback/pos/2.jpg' height='150' title='"+t+"' />\r\n<div style='width:380px;' class='grActStats' title='To complete this subject, you need to get at least 3 correct activities out of your last 5 attempts.  You have passed 2.'>\r\n<span style='color:#999;'>Results for subject:</span>Inside Joke"+n+"</div>\r\n<div id='subHis_43' class='grLGItem' onclick=\"$GP.showPopup($get('gr29'), 2, 'Demo!', '', $Demo.feedback);\"><i>Detail</i></div>\r\n<div class='grClk' ><img title='You don't have any Sticky Notes for this object, but you can make one.' src='http://loogla.com/images/notepad.png'></div>\r\n</div>","Sorry this answer is one of the correct ways to say \"inside joke\". Co\u00f1a is another way to say joke.\u00a0 The only incorrect answer is \"chiste adentro\" which is incorrect because adentro refers to a physical location, not a conceptual \"inside\".<div style='text-align:center; padding:12px 0 0 0'>\r\n<img src='http://loogla.com/Assets/feedback/neg/2.jpg' height='150' title='"+t+"' />\r\n<div style='width:380px;' class='grActStats' title='To complete this subject, you need to get at least 3 correct activities out of your last 5 attempts.  You have passed 2.'>\r\n<span style='color:#999;'>Results for subject:</span>Inside Joke"+n+"</div>\r\n<div id='subHis_43' class='grLGItem' onclick=\"$GP.showPopup($get('gr29'), 2, 'Demo!', '', $Demo.feedback);\"><i>Detail</i></div>\r\n<div class='grClk' ><img title='You don't have any Sticky Notes for this object, but you can make one.' src='http://loogla.com/images/notepad.png'></div>\r\n</div>","Sorry this answer is one of the correct ways to say \"inside joke\" that is used especially in Mexico.\u00a0 The only incorrect answer is \"chiste adentro\" which is incorrect because adentro refers to a physical location, not a conceptual \"inside\".<div style='text-align:center; padding:12px 0 0 0'>\r\n<img src='http://loogla.com/Assets/feedback/neg/2.jpg' height='150' title='"+t+"' />\r\n<div style='width:380px;' class='grActStats' title='To complete this subject, you need to get at least 3 correct activities out of your last 5 attempts.  You have passed 2.'>\r\n<span style='color:#999;'>Results for subject:</span>Inside Joke"+n+"</div>\r\n<div id='subHis_43' class='grLGItem' onclick=\"$GP.showPopup($get('gr29'), 2, 'Demo!', '', $Demo.feedback);\"><i>Detail</i></div>\r\n<div class='grClk' ><img title='You don't have any Sticky Notes for this object, but you can make one.' src='http://loogla.com/images/notepad.png'></div>\r\n</div>"],Exp:["false","true","false","false",null],css:'{"grRoot":0,"adj":0}',SL:!0,eval:!1,Ct:""},{ActType:13,CompCreate:['$grCreate(grSys.Extended.UI.PopupControlBehavior,{"id":"grAct59601_44pop","PopupControlID":"actPnl_grAct59601_44","Position":2,"OffsetY":48}, {}, null, $AM.avElm); ','$grCreate(grSys.Extended.UI.FloatingBehavior,{"handle":$get(\'grActPr59601_44\'),"id":"grDrggrAct59601_44"}, {}, null, $AM.actCont); '],HTML:'<div id="actPnl_grAct59601_44" class="grAct" style="width:390px;">\r\n<div id=\'grActPr59601_44\' class=\'grActPrompt\'><div class=\'grHdrCont\'>Quiz Vocabulario</div><div style=\'clear:both\'></div></div>\t<div id="grCont44" class="grCont"></div>\r\n</div>',GramID:"gr44",ActID:59601,SubID:8,Init:'$removeHandler(document.body,\'click\',$find(\'grAct59601_44pop\')._bodyClickHandler); $find(\'grAct59601_44pop\')._bodyClickHandler=null; \r\nGrammit.AM.grAct59601_44VWord = function(){ return {"Sub":82,"Syn":["acaparador","agiotador","agiotista","aprovechado","aprovech\u00f3n","aviador","explotador","logrero","tibur\u00f3n","usurario","usurero"],"oDef":"","RTMP":"","vUsrID":"","vUsrNm":"","iSrc":"/assets/Flash_Cards/5276de5d-fce6-49d7-8c47-7ac3a530a4ef_59601.jpg","iUsrID":"5276de5d-fce6-49d7-8c47-7ac3a530a4ef","iUsrNm":"admin1","vUni":false,"iUni":true,"pro":"","Cop":"                                                                                                                                                                                                                                                               ","pt":null,"pNt":"","wNt":"","tNt":"","L":2,"R":"pulpo","mwPOS":"m","tPOS":"m","T":"octopus","Tid":59601,"mw":142807,"voc":282,"Perc":14,"Cog":33,"Dif":80}; }; function grAct59601_44init(ev){var cnt=$get(\'grCont44\', $get(\'actPnl_grAct59601_44\')); \r\ncnt.innerHTML=\'\';\r\ngrWriteFlash(cnt, \r\n\'grAct59601_44holder\',\r\n\'grFlAct_grAct59601_44\',\r\n\'vocab\',\r\n\'vFunc=Grammit.AM.grAct59601_44VWord&actID=actPnl_grAct59601_44&gramID=44&eval=False\',\'360\',\'320\',\r\n\'/Flash/\',\r\n\'#FFFFFF\');\r\n    $find(\'grAct59601_44pop\').remove_shown(grAct59601_44init); }$find(\'grAct59601_44pop\').add_shown(grAct59601_44init); ',vars:"{}",Feedback:[],Exp:[],css:'{"grRoot":0}',SL:!0,eval:!1,Ct:""}]},createActs:function(){var n,i,t;$G.unsyntax(),this.initActs();if(!this._formatted){for(n=0;n<this._actList.length;n++){for(i=this._actList[n].Feedback,t=0;t<i.length;t++)i[t]=String.format(i[t],this._actVars[n].subName,this._actVars[n].grmID);this._actList[n].GramID=this._actVars[n].grmID}this._formatted=!0,Grammit.AM.createActs(this._actList)}},clearActs:function(){this._formatted&&(Grammit.AM.clearActs(),this._formatted=!1)},overRides:function(){Grammit.Activity.prototype.submit=function(n){n&&n.stopPropagation();var r=-1,t=!1,i;switch(this._type){case 2:r=n.target.id.split("_")[1],t=eval(this._expr[r]),i=this._strings[r];break;case 4:case 1:case 3:case 6:t=eval(this._expr[0]),i=t?this._strings[0]:this._strings[1]}i||(i=t?Grammit.AM._defCor:Grammit.AM._defInCor),$GP.showPopup(this._gram,2,t?"Muy Bien!":"Lo Siento","",i),$removeHandler(n.target,"click",this._submitDelegate),this.dispose()},$AM.dynPop=function(n,t,i,r,u){var e=$find(n);e._dynamicPopulateBehavior||(e._DynamicContextKey=i,e._DynamicServicePath=$grBasePath+r,e._DynamicServiceMethod=u,e._DynamicControlID=t,e._dynamicPopulateBehavior=$create(Sys.Extended.UI.DynamicPopulateBehavior,{id:e.get_id()+"_DynamicPopulateBehavior",ContextKey:i,ServicePath:$grBasePath+r,ServiceMethod:u,ClearContentsDuringUpdate:!1},null,null,$get(t)))},Grammit._PM.prototype.takeLoadNote=function(n){$GP.showPopup(n,1,"Integrated Notes","","All notes in Loogla are context sensitive so they organize themselves and are ready when you need them next.  In addition to normal notes, you can create questions for teachers and new mnemonics to help you remember.",[])}},sessReq:function(){$GP.showPopup($get("demo"),1,"Tutoring On-Demand","","The pool of teachers who create activities like this one are available on demand for further help.  If they aren't available at that moment, you always schedule an appointment.",[])},bioReq:function(){$GP.showPopup($get("demo"),1,"Get to know your Tutors","","<br />You can click on an instructors bio page to see their full history, credentials, intro video, and interactive scheduling calendar.<br />",[])},rate:function(){$GP.showPopup($get("demo"),1,"Ratings System","","As part of the extensive rating and points system, you can rate every activity you do to alter the author's chances to have their activities shown again.",[])},pointsReq:function(){$GP.showPopup($get("demo"),1,"Points","","<p>Instructors earn points based on community appreciation of their feedback, activities, forums and other contributions to Loogla</p><p><br />Points help in determining which activities you see.</p>",[])}},Type.registerNamespace("Loogla.Services"),Loogla.Services.grammitService=function(){},Loogla.Services.grammitService.Popup=function(n){var u=n.split("_");switch(u[0]){case"voc":$GP.showPopup($get("demo"),2,"<p>Personal Vocabulary Lists",null,"<p>Do memory building exercises and activities using your vocab lists plus thousands of other words at your difficulty level. Our Smart-Pacing algorithm maximizes their inclusion into long-term memory!</p>",null);break;case"flaDel":$GP.showPopup($get("demo"),2,"Adios Flashcard!",null,"Since this is a demo, there wasn't anything to delete.  If you were a member you could use the Flashcard studio to manage all your image, text and video flashcards",null)}},Loogla.Services.grammitService.NotYonder=function(n,t){$GP.showPopup($("#gr"+t)[0],2,"Yonder no Longer!",null,'<p><strong>Demo Mode</strong></p><p>Normally you wouldn\'t have to read this annoying popup and the word you clicked would be added to your Learning Horizon so it is no longer "yonder" (fun to say), that is to say, no longer beyond your Learning Horizon vocab profile.</p>',null)},$G=Grammit,$G.syntax=function(){$G.unsyntax(),$G.syntaxCB([{g:1,bg:null,c:"#2C00FE",bd:null,bs:null,i:null,t:null,r:null},{g:3,bg:"",c:"#008800",bd:"#20C604",bs:"solid",i:"1",t:null,r:null},{g:4,bg:null,c:"#2C00FE",bd:null,bs:null,i:null,t:null,r:null},{g:5,bg:null,c:"#2C00FE",bd:null,bs:null,i:null,t:null,r:null},{g:8,bg:null,c:"#A9367E",bd:null,bs:null,i:null,t:null,r:null},{g:9,bg:null,c:"#A9367E",bd:null,bs:null,i:null,t:null,r:null},{g:10,bg:"",c:"#008800",bd:"#20C604",bs:"dashed",i:"3",t:null,r:null},{g:11,bg:null,c:"#A9367E",bd:null,bs:null,i:null,t:null,r:null},{g:12,bg:null,c:"#A9367E",bd:null,bs:null,i:null,t:null,r:null},{g:14,bg:null,c:"#A9367E",bd:null,bs:null,i:null,t:null,r:null},{g:15,bg:null,c:"#2C00FE",bd:null,bs:null,i:null,t:null,r:null},{g:16,bg:null,c:"#A9367E",bd:null,bs:null,i:null,t:null,r:null},{g:17,bg:null,c:"#2C00FE",bd:null,bs:null,i:null,t:null,r:null},{g:18,bg:null,c:"#A9367E",bd:null,bs:null,i:null,t:null,r:null},{g:19,bg:"",c:"#008800",bd:"#20C604",bs:"solid",i:"13",t:null,r:null},{g:20,bg:null,c:"#2C00FE",bd:null,bs:null,i:null,t:null,r:null},{g:23,bg:"",c:"#008800",bd:"#20C604",bs:"solid",i:"1",t:null,r:null},{g:25,bg:"",c:"#008800",bd:"#20C604",bs:"solid",i:"17",t:null,r:null},{g:26,bg:null,c:"#2C00FE",bd:null,bs:null,i:null,t:null,r:null},{g:27,bg:"",c:"#E77D01",bd:null,bs:null,i:null,t:null,r:null},{g:29,bg:null,c:"#2C00FE",bd:null,bs:null,i:null,t:null,r:null},{g:30,bg:null,c:"#2C00FE",bd:null,bs:null,i:null,t:null,r:null},{g:33,bg:null,c:"#2C00FE",bd:null,bs:null,i:null,t:null,r:null},{g:34,bg:"",c:"#008800",bd:"#20C604",bs:"solid",i:"1",t:null,r:null},{g:36,bg:"",c:"#008800",bd:"#20C604",bs:"solid",i:"17",t:null,r:null},{g:37,bg:"",c:"#008800",bd:"#20C604",bs:"solid",i:"17",t:null,r:null},{g:39,bg:null,c:"#A9367E",bd:null,bs:null,i:null,t:null,r:null},{g:40,bg:null,c:"#A9367E",bd:null,bs:null,i:null,t:null,r:null},{g:41,bg:null,c:"#A9367E",bd:null,bs:null,i:null,t:null,r:null},{g:43,bg:null,c:"#2C00FE",bd:null,bs:null,i:null,t:null,r:null},{g:44,bg:null,c:"#2C00FE",bd:null,bs:null,i:null,t:null,r:null},{g:45,bg:"",c:"#008800",bd:"#20C604",bs:"solid",i:"1",t:null,r:null},{g:46,bg:null,c:"#2C00FE",bd:null,bs:null,i:null,t:null,r:null}])},$G.yonder=function(){$G.unsyntax(),$G.syntaxCB([{g:9,bg:"#006A9E",c:"#fff",bd:null,bs:null,i:null,t:"prayer:  Difficulty: 22",r:"p"},{g:12,bg:"#004F75",c:"#fff",bd:null,bs:null,i:null,t:"page:  Difficulty: 6",r:"p"},{g:20,bg:"#00496E",c:"#fff",bd:null,bs:null,i:null,t:"dynamic:  Difficulty: 3",r:"p"},{g:26,bg:"#005078",c:"#fff",bd:null,bs:null,i:null,t:"subject, topic:  Difficulty: 7",r:"p"},{g:29,bg:"#006596",c:"#fff",bd:null,bs:null,i:null,t:"joke:  Difficulty: 19",r:"p"},{g:44,bg:"#33BCFF",c:"#fff",bd:null,bs:null,i:null,t:"octopus:  Difficulty: 80",r:"p"}])},$G.syntaxCB=function(n){var f,r,u,t,o;for($GP.hidePopup(),f=0;r=n[f];f++){u=$get("gr"+r.g);if(!u)continue;t=u.style;function s(n){var t=e(n,"font-size"),i;return t.indexOf("em")>-1?(i=e(document.body,"font-size"),i=i.indexOf("pt")>-1?Math.round(parseInt(i)*96/72):h(n.parentNode),t=Math.round(i*parseFloat(t))):t.indexOf("pt")>-1&&(t=Math.round(parseInt(t)*96/72)),parseInt(t)}function e(n,t){var f=!1,r,u;if(n.currentStyle){r=t.split("-"),u=new String("");for(i in r)u+=i>0?r[i].substr(0,1).toUpperCase()+r[i].substr(1):r[i];f=n.currentStyle[u]}else window.getComputedStyle&&(f=window.getComputedStyle(n,null).getPropertyValue(t));return f}function h(n){var t,i;return n=n||document.body,t=document.createElement("div"),t.className="defaultEm",t.appendChild(document.createTextNode("M")),n.appendChild(t),i=t.offsetHeight,n.removeChild(t),i}o=s(u),t.lineHeight=o+6+"px",r.bg&&(t.background=r.bg),r.bd&&(t.borderBottomColor=r.bd,t.borderBottomWidth="1px",t.paddingBottom="3px"),r.bs&&(t.borderBottomStyle=r.bs),r.c&&(t.color=r.c),r.t&&(u.title=r.t),r.r&&(t.cursor="pointer");if(r.i){t.backgroundImage="url('"+$grBasePath+"images/syntax/"+r.i+".png')",t.backgroundRepeat="no-repeat",t.backgroundPosition="bottom left",t.backgroundColor="#fff";switch(r.i){case"17":case"1":case"13":case"23":case"24":t.backgroundPosition="bottom center";break;case"3":case"4":t.backgroundPosition="bottom left";break;case"2":t.backgroundPosition="bottom right"}}}},$G.unsyntax=function(){for(var r=document.getElementsByTagName("g"),i,n,t=0;t<r.length;t++)i=r[t],n=i.style,n.cursor=n.color=n.borderBottomColor=n.borderColor=n.borderBottomWidth=n.borderBottomStyle=n.backgroundImage=n.paddingBottom=n.lineHeight=n.backgroundColor="",i.title=""},allBaseLines=[],Sys&&Sys.Application&&Sys.Application.notifyScriptLoaded()
