/* SWFObject v2.1 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();/** * SWFAddress 2.4: Deep linking for Flash and Ajax <http://www.asual.com/swfaddress/> * * SWFAddress is (c) 2006-2009 Rostislav Hristov and contributors * This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> * */if(typeof asual=="undefined"){var asual={}}if(typeof asual.util=="undefined"){asual.util={}}asual.util.Browser=new function(){var b=navigator.userAgent.toLowerCase(),a=/webkit/.test(b),e=/opera/.test(b),c=/msie/.test(b)&&!/opera/.test(b),d=/mozilla/.test(b)&&!/(compatible|webkit)/.test(b),f=parseFloat(c?b.substr(b.indexOf("msie")+4):(b.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1]);this.toString=function(){return"[class Browser]"};this.getVersion=function(){return f};this.isMSIE=function(){return c};this.isSafari=function(){return a};this.isOpera=function(){return e};this.isMozilla=function(){return d}};asual.util.Events=new function(){var c="DOMContentLoaded",j="onstop",k=window,h=document,b=[],a=asual.util,e=a.Browser,d=e.isMSIE(),g=e.isSafari();this.toString=function(){return"[class Events]"};this.addListener=function(n,l,m){b.push({o:n,t:l,l:m});if(!(l==c&&(d||g))){if(n.addEventListener){n.addEventListener(l,m,false)}else{if(n.attachEvent){n.attachEvent("on"+l,m)}}}};this.removeListener=function(p,m,n){for(var l=0,o;o=b[l];l++){if(o.o==p&&o.t==m&&o.l==n){b.splice(l,1);break}}if(!(m==c&&(d||g))){if(p.removeEventListener){p.removeEventListener(m,n,false)}else{if(p.detachEvent){p.detachEvent("on"+m,n)}}}};var i=function(){for(var m=0,l;l=b[m];m++){if(l.t!=c){a.Events.removeListener(l.o,l.t,l.l)}}};var f=function(){if(h.readyState=="interactive"){function l(){h.detachEvent(j,l);i()}h.attachEvent(j,l);k.setTimeout(function(){h.detachEvent(j,l)},0)}};if(d||g){(function(){try{if((d&&h.body)||!/loaded|complete/.test(h.readyState)){h.documentElement.doScroll("left")}}catch(m){return setTimeout(arguments.callee,0)}for(var l=0,m;m=b[l];l++){if(m.t==c){m.l.call(null)}}})()}if(d){k.attachEvent("onbeforeunload",f)}this.addListener(k,"unload",i)};asual.util.Functions=new function(){this.toString=function(){return"[class Functions]"};this.bind=function(f,b,e){for(var c=2,d,a=[];d=arguments[c];c++){a.push(d)}return function(){return f.apply(b,a)}}};var SWFAddressEvent=function(d){this.toString=function(){return"[object SWFAddressEvent]"};this.type=d;this.target=[SWFAddress][0];this.value=SWFAddress.getValue();this.path=SWFAddress.getPath();this.pathNames=SWFAddress.getPathNames();this.parameters={};var c=SWFAddress.getParameterNames();for(var b=0,a=c.length;b<a;b++){this.parameters[c[b]]=SWFAddress.getParameter(c[b])}this.parameterNames=c};SWFAddressEvent.INIT="init";SWFAddressEvent.CHANGE="change";SWFAddressEvent.INTERNAL_CHANGE="internalChange";SWFAddressEvent.EXTERNAL_CHANGE="externalChange";var SWFAddress=new function(){var _getHash=function(){var index=_l.href.indexOf("#");return index!=-1?_ec(_dc(_l.href.substr(index+1))):""};var _getWindow=function(){try{top.document;return top}catch(e){return window}};var _strictCheck=function(value,force){if(_opts.strict){value=force?(value.substr(0,1)!="/"?"/"+value:value):(value==""?"/":value)}return value};var _ieLocal=function(value,direction){return(_msie&&_l.protocol=="file:")?(direction?_value.replace(/\?/,"%3F"):_value.replace(/%253F/,"?")):value};var _searchScript=function(el){if(el.childNodes){for(var i=0,l=el.childNodes.length,s;i<l;i++){if(el.childNodes[i].src){_url=String(el.childNodes[i].src)}if(s=_searchScript(el.childNodes[i])){return s}}}};var _titleCheck=function(){if(_d.title!=_title&&_d.title.indexOf("#")!=-1){_d.title=_title}};var _listen=function(){if(!_silent){var hash=_getHash();var diff=!(_value==hash);if(_safari&&_version<523){if(_length!=_h.length){_length=_h.length;if(typeof _stack[_length-1]!=UNDEFINED){_value=_stack[_length-1]}_update.call(this,false)}}else{if(_msie&&diff){if(_version<7){_l.reload()}else{this.setValue(hash)}}else{if(diff){_value=hash;_update.call(this,false)}}}if(_msie){_titleCheck.call(this)}}};var _bodyClick=function(e){if(_popup.length>0){var popup=window.open(_popup[0],_popup[1],eval(_popup[2]));if(typeof _popup[3]!=UNDEFINED){eval(_popup[3])}}_popup=[]};var _swfChange=function(){for(var i=0,id,obj,value=SWFAddress.getValue(),setter="setSWFAddressValue";id=_ids[i];i++){obj=document.getElementById(id);if(obj){if(obj.parentNode&&typeof obj.parentNode.so!=UNDEFINED){obj.parentNode.so.call(setter,value)}else{if(!(obj&&typeof obj[setter]!=UNDEFINED)){var objects=obj.getElementsByTagName("object");var embeds=obj.getElementsByTagName("embed");obj=((objects[0]&&typeof objects[0][setter]!=UNDEFINED)?objects[0]:((embeds[0]&&typeof embeds[0][setter]!=UNDEFINED)?embeds[0]:null))}if(obj){obj[setter](value)}}}else{if(obj=document[id]){if(typeof obj[setter]!=UNDEFINED){obj[setter](value)}}}}};var _jsDispatch=function(type){this.dispatchEvent(new SWFAddressEvent(type));type=type.substr(0,1).toUpperCase()+type.substr(1);if(typeof this["on"+type]==FUNCTION){this["on"+type]()}};var _jsInit=function(){if(_util.Browser.isSafari()){_d.body.addEventListener("click",_bodyClick)}_jsDispatch.call(this,"init")};var _jsChange=function(){_swfChange();_jsDispatch.call(this,"change")};var _update=function(internal){_jsChange.call(this);if(internal){_jsDispatch.call(this,"internalChange")}else{_jsDispatch.call(this,"externalChange")}_st(_functions.bind(_track,this),10)};var _track=function(){var value=(_l.pathname+(/\/$/.test(_l.pathname)?"":"/")+this.getValue()).replace(/\/\//,"/").replace(/^\/$/,"");var fn=_t[_opts.tracker];if(typeof fn==FUNCTION){fn(value)}else{if(typeof _t.pageTracker!=UNDEFINED&&typeof _t.pageTracker._trackPageview==FUNCTION){_t.pageTracker._trackPageview(value)}else{if(typeof _t.urchinTracker==FUNCTION){_t.urchinTracker(value)}}}};var _htmlWrite=function(){var doc=_frame.contentWindow.document;doc.open();doc.write("<html><head><title>"+_d.title+"</title><script>var "+ID+' = "'+_getHash()+'";<\/script></head></html>');doc.close()};var _htmlLoad=function(){var win=_frame.contentWindow;var src=win.location.href;_value=(typeof win[ID]!=UNDEFINED?win[ID]:"");if(_value!=_getHash()){_update.call(SWFAddress,false);_l.hash=_ieLocal(_value,TRUE)}};var _load=function(){if(!_loaded){_loaded=TRUE;if(_msie&&_version<8){var frameset=_d.getElementsByTagName("frameset")[0];_frame=_d.createElement((frameset?"":"i")+"frame");if(frameset){frameset.insertAdjacentElement("beforeEnd",_frame);frameset[frameset.cols?"cols":"rows"]+=",0";_frame.src="javascript:false";_frame.noResize=true;_frame.frameBorder=_frame.frameSpacing=0}else{_frame.src="javascript:false";_frame.style.display="none";_d.body.insertAdjacentElement("afterBegin",_frame)}_st(function(){_events.addListener(_frame,"load",_htmlLoad);if(typeof _frame.contentWindow[ID]==UNDEFINED){_htmlWrite()}},50)}else{if(_safari){if(_version<418){_d.body.innerHTML+='<form id="'+ID+'" style="position:absolute;top:-9999px;" method="get"></form>';_form=_d.getElementById(ID)}if(typeof _l[ID]==UNDEFINED){_l[ID]={}}if(typeof _l[ID][_l.pathname]!=UNDEFINED){_stack=_l[ID][_l.pathname].split(",")}}}_st(_functions.bind(function(){_jsInit.call(this);_jsChange.call(this);_track.call(this)},this),1);if(_msie&&_version>=8){_d.body.onhashchange=_functions.bind(_listen,this);_si(_functions.bind(_titleCheck,this),50)}else{_si(_functions.bind(_listen,this),50)}}};var ID="swfaddress",FUNCTION="function",UNDEFINED="undefined",TRUE=true,FALSE=false,_util=asual.util,_browser=_util.Browser,_events=_util.Events,_functions=_util.Functions,_version=_browser.getVersion(),_msie=_browser.isMSIE(),_mozilla=_browser.isMozilla(),_opera=_browser.isOpera(),_safari=_browser.isSafari(),_supported=FALSE,_t=_getWindow(),_d=_t.document,_h=_t.history,_l=_t.location,_si=setInterval,_st=setTimeout,_dc=decodeURI,_ec=encodeURI,_frame,_form,_url,_title=_d.title,_length=_h.length,_silent=FALSE,_loaded=FALSE,_justset=TRUE,_juststart=TRUE,_ref=this,_stack=[],_ids=[],_popup=[],_listeners={},_value=_getHash(),_opts={history:TRUE,strict:TRUE};if(_msie&&_d.documentMode&&_d.documentMode!=_version){_version=_d.documentMode!=8?7:8}_supported=(_mozilla&&_version>=1)||(_msie&&_version>=6)||(_opera&&_version>=9.5)||(_safari&&_version>=312);if(_supported){if(_opera){history.navigationMode="compatible"}for(var i=1;i<_length;i++){_stack.push("")}_stack.push(_getHash());if(_msie&&_l.hash!=_getHash()){_l.hash="#"+_ieLocal(_getHash(),TRUE)}_searchScript(document);var _qi=_url?_url.indexOf("?"):-1;if(_qi!=-1){var param,params=_url.substr(_qi+1).split("&");for(var i=0,p;p=params[i];i++){param=p.split("=");if(/^(history|strict)$/.test(param[0])){_opts[param[0]]=(isNaN(param[1])?/^(true|yes)$/i.test(param[1]):(parseInt(param[1])!=0))}if(/^tracker$/.test(param[0])){_opts[param[0]]=param[1]}}}if(_msie){_titleCheck.call(this)}if(window==_t){_events.addListener(document,"DOMContentLoaded",_functions.bind(_load,this))}_events.addListener(_t,"load",_functions.bind(_load,this))}else{if((!_supported&&_l.href.indexOf("#")!=-1)||(_safari&&_version<418&&_l.href.indexOf("#")!=-1&&_l.search!="")){_d.open();_d.write('<html><head><meta http-equiv="refresh" content="0;url='+_l.href.substr(0,_l.href.indexOf("#"))+'" /></head></html>');_d.close()}else{_track()}}this.toString=function(){return"[class SWFAddress]"};this.back=function(){_h.back()};this.forward=function(){_h.forward()};this.up=function(){var path=this.getPath();this.setValue(path.substr(0,path.lastIndexOf("/",path.length-2)+(path.substr(path.length-1)=="/"?1:0)))};this.go=function(delta){_h.go(delta)};this.href=function(url,target){target=typeof target!=UNDEFINED?target:"_self";if(target=="_self"){self.location.href=url}else{if(target=="_top"){_l.href=url}else{if(target=="_blank"){window.open(url)}else{_t.frames[target].location.href=url}}}};this.popup=function(url,name,options,handler){try{var popup=window.open(url,name,eval(options));if(typeof handler!=UNDEFINED){eval(handler)}}catch(ex){}_popup=arguments};this.getIds=function(){return _ids};this.getId=function(index){return _ids[0]};this.setId=function(id){_ids[0]=id};this.addId=function(id){this.removeId(id);_ids.push(id)};this.removeId=function(id){for(var i=0;i<_ids.length;i++){if(id==_ids[i]){_ids.splice(i,1);break}}};this.addEventListener=function(type,listener){if(typeof _listeners[type]==UNDEFINED){_listeners[type]=[]}_listeners[type].push(listener)};this.removeEventListener=function(type,listener){if(typeof _listeners[type]!=UNDEFINED){for(var i=0,l;l=_listeners[type][i];i++){if(l==listener){break}}_listeners[type].splice(i,1)}};this.dispatchEvent=function(event){if(this.hasEventListener(event.type)){event.target=this;for(var i=0,l;l=_listeners[event.type][i];i++){l(event)}return TRUE}return FALSE};this.hasEventListener=function(type){return(typeof _listeners[type]!=UNDEFINED&&_listeners[type].length>0)};this.getBaseURL=function(){var url=_l.href;if(url.indexOf("#")!=-1){url=url.substr(0,url.indexOf("#"))}if(url.substr(url.length-1)=="/"){url=url.substr(0,url.length-1)}return url};this.getStrict=function(){return _opts.strict};this.setStrict=function(strict){_opts.strict=strict};this.getHistory=function(){return _opts.history};this.setHistory=function(history){_opts.history=history};this.getTracker=function(){return _opts.tracker};this.setTracker=function(tracker){_opts.tracker=tracker};this.getTitle=function(){return _d.title};this.setTitle=function(title){if(!_supported){return null}if(typeof title==UNDEFINED){return}if(title=="null"){title=""}title=_dc(title);_st(function(){_title=_d.title=title;if(_juststart&&_frame&&_frame.contentWindow&&_frame.contentWindow.document){_frame.contentWindow.document.title=title;_juststart=FALSE}if(!_justset&&_mozilla){_l.replace(_l.href.indexOf("#")!=-1?_l.href:_l.href+"#")}_justset=FALSE},10)};this.getStatus=function(){return _t.status};this.setStatus=function(status){if(!_supported){return null}if(typeof status==UNDEFINED){return}if(status=="null"){status=""}status=_dc(status);if(!_safari){status=_strictCheck((status!="null")?status:"",TRUE);if(status=="/"){status=""}if(!(/http(s)?:\/\//.test(status))){var index=_l.href.indexOf("#");status=(index==-1?_l.href:_l.href.substr(0,index))+"#"+status}_t.status=status}};this.resetStatus=function(){_t.status=""};this.getValue=function(){if(!_supported){return null}return _dc(_strictCheck(_ieLocal(_value,FALSE),FALSE))};this.setValue=function(value){if(!_supported){return null}if(typeof value==UNDEFINED){return}if(value=="null"){value=""}value=_ec(_dc(_strictCheck(value,TRUE)));if(value=="/"){value=""}if(_value==value){return}_justset=TRUE;_value=value;_silent=TRUE;_update.call(SWFAddress,true);_stack[_h.length]=_value;if(_safari){if(_opts.history){_l[ID][_l.pathname]=_stack.toString();_length=_h.length+1;if(_version<418){if(_l.search==""){_form.action="#"+_value;_form.submit()}}else{if(_version<523||_value==""){var evt=_d.createEvent("MouseEvents");evt.initEvent("click",TRUE,TRUE);var anchor=_d.createElement("a");anchor.href="#"+_value;anchor.dispatchEvent(evt)}else{_l.hash="#"+_value}}}else{_l.replace("#"+_value)}}else{if(_value!=_getHash()){if(_opts.history){_l.hash="#"+_dc(_ieLocal(_value,TRUE))}else{_l.replace("#"+_dc(_value))}}}if((_msie&&_version<8)&&_opts.history){_st(_htmlWrite,50)}if(_safari){_st(function(){_silent=FALSE},1)}else{_silent=FALSE}};this.getPath=function(){var value=this.getValue();if(value.indexOf("?")!=-1){return value.split("?")[0]}else{if(value.indexOf("#")!=-1){return value.split("#")[0]}else{return value}}};this.getPathNames=function(){var path=this.getPath(),names=path.split("/");if(path.substr(0,1)=="/"||path.length==0){names.splice(0,1)}if(path.substr(path.length-1,1)=="/"){names.splice(names.length-1,1)}return names};this.getQueryString=function(){var value=this.getValue(),index=value.indexOf("?");if(index!=-1&&index<value.length){return value.substr(index+1)}};this.getParameter=function(param){var value=this.getValue();var index=value.indexOf("?");if(index!=-1){value=value.substr(index+1);var p,params=value.split("&"),i=params.length,r=[];while(i--){p=params[i].split("=");if(p[0]==param){r.push(p[1])}}if(r.length!=0){return r.length!=1?r:r[0]}}};this.getParameterNames=function(){var value=this.getValue();var index=value.indexOf("?");var names=[];if(index!=-1){value=value.substr(index+1);if(value!=""&&value.indexOf("=")!=-1){var params=value.split("&"),i=0;while(i<params.length){names.push(params[i].split("=")[0]);i++}}}return names};this.onInit=null;this.onChange=null;this.onInternalChange=null;this.onExternalChange=null;(function(){var _args;if(typeof FlashObject!=UNDEFINED){SWFObject=FlashObject}if(typeof SWFObject!=UNDEFINED&&SWFObject.prototype&&SWFObject.prototype.write){var _s1=SWFObject.prototype.write;SWFObject.prototype.write=function(){_args=arguments;if(this.getAttribute("version").major<8){this.addVariable("$swfaddress",SWFAddress.getValue());((typeof _args[0]=="string")?document.getElementById(_args[0]):_args[0]).so=this}var success;if(success=_s1.apply(this,_args)){_ref.addId(this.getAttribute("id"))}return success}}if(typeof swfobject!=UNDEFINED){var _s2r=swfobject.registerObject;swfobject.registerObject=function(){_args=arguments;_s2r.apply(this,_args);_ref.addId(_args[0])};var _s2c=swfobject.createSWF;swfobject.createSWF=function(){_args=arguments;var swf=_s2c.apply(this,_args);if(swf){_ref.addId(_args[0].id)}return swf};var _s2e=swfobject.embedSWF;swfobject.embedSWF=function(){_args=arguments;if(typeof _args[8]==UNDEFINED){_args[8]={}}if(typeof _args[8].id==UNDEFINED){_args[8].id=_args[1]}_s2e.apply(this,_args);_ref.addId(_args[8].id)}}if(typeof UFO!=UNDEFINED){var _u=UFO.create;UFO.create=function(){_args=arguments;_u.apply(this,_args);_ref.addId(_args[0].id)}}if(typeof AC_FL_RunContent!=UNDEFINED){var _a=AC_FL_RunContent;AC_FL_RunContent=function(){_args=arguments;_a.apply(this,_args);for(var i=0,l=_args.length;i<l;i++){if(_args[i]=="id"){_ref.addId(_args[i+1])}}}}})()};var KpLangTable = {};
KpLangTable['de'] = {"﻿":"", "Login":"Anmelden", "Logout":"Abmelden", "Cancel":"Zur\u00fcck", "Yes":"Ja", "Nickname":"Spitzname ", "Do not use your full name or email address":"Benutze nicht deinen vollst\u00e4ndigen Namen oder E-mail Adresse", "Password":"Passwort", "Re-type Password":"Passwort wiederndung", "Secret Question":"Geheime Frage", "Secret Answer":"Geheime Antwort", "Age":"Alter", "Location":"Wohnort", "For example":"Zum Beispiel", "Login to view your gallery":"Anmeldung, um deine Galerie anzusehen", "Make a Picture":"Erstelle ein Bild ", "Make a Story":"Erstelle eine Geschichte ", "Make a Movie":"Erstelle einen Film", "Make a Card":"Erstelle eine Gru\u00dfkarte", "Make a Drawing":"Entwerfe eine Zeichnung ", "My Gallery":"Meine Galerie", "Shared Scenes":"Gemeinsame Szenen", "More":"Mehr", "Loading":"Laden", "Method":"Methode", "Change Your Look":"Andere dein Aussehen", "Mix it up":"Bringe es durcheinander", "My Favorites":"Meine Favoriten", "Save Your Scene":"Speichere dein Bild", "Save Scene":"Bild speichern", "Title":"Titel", "Pick a Scene":"W\u00e4hle ein Bild", "Print Scene":"Bild drucken", "Print":"Drucken", "Full Color":"Vollst\u00e4ndig in Farbe", "Coloring Book Page":"Design die Buchseite", "Full Page":"Vollansicht", "Medium Card":"Mittelgro\u00dfe Karte", "Small Card":"Kleine Karte", "Show a Friend":"Freund zeigen", "Name":"Name", "Move":"Verschieben", "Duration":"Bearbeitungszeit", "Destination":"Zeil", "Say":"Sage", "Show Title":"Filmtitel", "Start Song":"Lied anh\u00f6ren", "Fade to Black":"Ins Schwarze \u00fcbergehen", "My Stuff":"Mein Krempel", "Type here":"Schreibe hier", "Done":"Fertig", "Story Editor":"Geschichtenverfasser", "Add":"Hinzuf\u00fcgen", "To":"F\u00fcr", "From":"Von", "My friends":"Meine Freunde", "Choose a group":"Suche eine Gruppe aus", "None":"Kein", "Create a new group":"Erstelle eine neue Gruppe", "Join a group":"Schlie\u00dfe dich einer Gruppe an", "Boy":"Junge", "Girl":"M\u00e4dchen", "Save":"Speichern", "Tell a friend":"Erz\u00e4hle es einem Freund", "Tell a friend about Kerpoof":"Erz\u00e4hle einem Freund von Kerpoof", "How to play":"Wie es funktioniert", "For teachers":"F\u00fcr Lehrer", "Play Kerpoof":"Spiele Kerpoof", "Spotlight":"Blickpunkt", "First name":"Vorname", "Email address":"E-mail Adresse", "Optional Message":"Eine Nachricht hinterlassen", "Your name":"Dein Name", "Go":"Los"};
KpLangTable['es'] = {"﻿":"", "Login":"Entrar", "Logout":"Salir", "Cancel":"Cancelar", "Yes":"S\u00ed", "Nickname":"Apodo", "Do not use your full name or email address":"No uses tu nombre o tu correo electr\u00f3nico completo", "Password":"Contrase\u00f1a", "Re-type Password":"Reteclea la contrase\u00f1a", "Secret Question":"Pregunta secreta", "Secret Answer":"Respuesta secreta", "Age":"Edad", "Location":"Ubicaci\u00f3n", "For example: Boulder, Colorado":"Por ejemplo: Boulder, Colorado", "Login to view your gallery":"Entra para ver tu galer\u00eda", "Make a Picture":"Hacer un dibujo", "Make a Story":"Hacer una historia", "Make a Movie":"Hacer una pel\u00edcula", "Make a Card":"Hacer una tarjeta", "Make a Drawing":"Hacer un dibujo", "My Gallery":"Mi galer\u00eda", "Shared Scenes":"Escenas compartidas", "More":"M\u00e1s", "Loading":"Cargando", "Method":"M\u00e9todo", "Change Your Look":"Cambiar tu apariencia", "Mix it up =	Al azar":"", "My Favorites":"Mis objetos favoritos", "Save Your Scene":"Guardar tu escena", "Save Scene":"Guardar escena", "Title =	T\u00edtulo":"", "Pick a Scene":"Escojer una escena", "Print Scene":"Imprimir una escena", "Print":"Imprimir", "Full Color":"Color completo", "Coloring Book Page":"P\u00e1gina del libro para colorear", "Full Page":"La p\u00e1gina entera", "Medium Card":"La tarjeta de tama\u00f1o medio", "Small Card":"La tarjeta peque\u00f1a", "Show a Friend":"Mostrarle a un amigo", "Name":"Nombre", "Move":"Mover", "Duration":"Duraci\u00f3n", "Destination":"Destinaci\u00f3n", "Say":"Decir", "Show Title":"Mostrar el t\u00edtulo", "Start Song":"Empezar la canci\u00f3n", "Fade to Black":"Fundido en negro", "My Stuff":"Mis cosas", "Type here	= Escribe aqu\u00ed":"", "Done":"Terminar", "Story Editor":"Editar la historia", "Add":"A\u00f1adir", "To":"Para", "Name":"Nombre", "E-mail":"Correo electr\u00f3nico ", "From":"De", "Nickname":"Apodo", "Title":"Titulo", "My friends":"Mis amigos", "Choose a group":"Escoger un grupo", "None":"Ning\u00fan grupo", "Create a new group":"Crear un grupo nuevo", "Join a group":"Unirse al grupo", "Boy":"Chico", "Girl":"Chica", "Save":"Guardar", "Tell a friend":"Contarle a un amigo", "Tell a friend about Kerpoof":"Contarle a un amigo sobre Kerpoof", "Sign Up":"Registrarse", "My Account":"Mis Cosas", "How to Play":"C\u00f3mo Jugar", "For Teachers":"Para los Maestros", "For Parents":"Para los Padres", "Play Kerpoof":"Jugar al Kerpoof", "Spotlight":"El enfoque", "First name":"Nombre de amigo", "Email address":"Correo electr\u00f3nico", "Optional Message":"El mensaje opcional", "Your name":"Tu nombre", "Go":"Adelante", "Search":"Buscar", "Continue":"Continuar", "What's new":"Qu\u00e9 hay de nuevo", "About Kerpoof":"Qu\u00e9 es Kerpoof", "Membership":"Miembros", "Contact Us":"Cont\u00e1ctenos", "Privacy Policy":"Privacidad", "What's New":"Nuevo", "Buddy draw":"Dibujar con un amigo", "Emoticons":"Emoticonos", "Special effects":"Los efectos especiales", "Message board":"Mensajes", "Messages":"Tablero de mensajes", "Pick a Storyline":"Escoger el argumento", "Pick your First Page":"Escoger tu primera p\u00e1gina", "What's your favorite TV show":"Cu\u00e1l es tu programa de televisi\u00f3n favorito", "What's your favorite color":"Cu\u00e1l es tu color favorito", "What's your favorite animale":"Cu\u00e1l es tu animal favorito", "What's your pet's name":"C\u00f3mo se llama tu mascota", "Share with everyone":"Compartir con todos", "Share with your group":"Compartir con tu grupo"};
KpLangTable['fr'] = {"﻿":"", "Login":"Connecter", "Logout":"Sortir", "Cancel":"Annuler", "Yes	= Oui":"", "Nickname":"Surnom", "Do not use your full name or email address":"Ne pas utiliser votre nom complet ou adresse email", "Password":"Mot de passe", "Re-type Password":"Retaper le mot de passe", "Secret Question =	Question Secr\u00e8te":"", "Secret Answer =	R\u00e9ponse Secr\u00e8te":"", "Age":"\u00c2ge\t", "Location":"Endroit", "For example	= Par exemple":"", "Login to view your gallery":"Connecter pour voir votre galerie", "Make a Picture":"Cr\u00e9er une Photo", "Make a Story":"Cr\u00e9er un Conte", "Make a Movie":"Cr\u00e9er un Film", "Make a Card":"Cr\u00e9er une Carte de Voeux", "Make a Drawing":"Cr\u00e9er un Dessin ", "My Gallery":"Ma Galerie", "Shared Scenes":"Sc\u00e8nes Partag\u00e9es", "More":"Plus", "Loading	= En train de charger":"", "Method":"M\u00e9thode", "Change Your Look":"Changer l'apparence", "Mix it up	= M\u00e9langer":"", "My Favorites":"Mes Pr\u00e9f\u00e9r\u00e9s ", "Save Your Scene	= Sauvegarder Votre Sc\u00e8ne":"", "Save Scene":"Sauvegarder la sc\u00e8ne", "Title	= Titre":"", "Pick a Scene":"Choisir une sc\u00e8ne", "Print Scene	= Imprimer la sc\u00e8ne":"", "Print	= Imprimer  ":"", "Full Color ":"En Couleur", "Coloring Book Page":"Page de Coloriage", "Full Page =	Page Enti\u00e8re ":"", "Medium Card	= Moyenne Carte":"", "Small Card":"Petite Carte", "Show a Friend	= Montrer \u00e0 un ami":"", "Name":"Nom", "Move":"Bouger", "Duration":"Dur\u00e9e", "Destination	= Destination":"", "Say	= Dire":"", "Show Title":"Montrer le titre", "Start Song":"Commencer la chanson", "Fade to Black":"\u00C9teindre", "My Stuff":"Mes Affaires", "Type here":"Taper Ici", "Done":"Fini", "Story Editor":"R\u00e9dacteur de conte", "Add	= Ajouter":"", "To":"\u00e0", "From":"de ", "My friends":"Mes amis", "Choose a group":"Choisir un groupe", "None":"Aucun", "Create a new group":"Cr\u00e9er un nouveau groupe", "Join a group":"Joindre un groupe", "Boy	":"Gar\u00e7on", "Girl":"Fille", "Save":"Sauvegarder", "Tell a friend	= Dire \u00e0 un ami":"", "Tell a friend about Kerpoof	= Parler de Kerpoof \u00e0 un ami":"", "How to play	= Comment jouer":"", "For teachers":"Pour enseignants", "Play Kerpoof":"Jouer \u00e0 Kerpoof", "Spotlight =	Le feu des projecteurs":"", "First name":"Pr\u00e9nom", "Email address	= Adresse email":"", "Optional Message":"Message Facultatif", "Your name	= Votre nom":"", "Go":"Partez", "What's new":"Quoi de neuf", "Buddy draw":"Piocher un Copain", "Emoticons =	\u00C9moticons":"", "Special effects =	Effets sp\u00e9ciaux":"", "Message board =	Panneau d'affichage":""};
KpLangTable['it'] = {"﻿":"", "Login":"Accesso", "Logout":"Uscita", "Cancel":"Annulla", "Yes":"S\u00ec", "Nickname":"Soprannome", "Do not use your full name or email address":"Non usare il tuo nome o il tuo indirizzo e-mail", "Password":"Password", "Re-type Password":"Ridigita la password", "Secret Question":"Domanda segreta", "Secret Answer":"Risposta segreta", "Age":"Et\u00e0", "Location":"Citt\u00e0, nazione", "For example: Boulder, Colorado":"Ad esempio: Milano, Italia", "Login to view your gallery":"Inserisci i tuoi dati per accedere alla tua galleria", "Make a Picture":"Crea un'immagine", "Make a Story":"Crea una storia", "Make a Movie":"Crea un filmato", "My Gallery":"La mia galleria", "Shared Scenes":"Condividi le tue creazioni", "More":"Altro", "Loading":"Caricamento in corso", "Method":"Metodo", "Change Your Look":"Cambia il tuo aspetto", "Mix it up":"Mischia tutto", "My Favorites":"I miei preferiti", "Save Your Scene":"Salva la tua creazione", "Save Scene":"Salva la tua creazione", "Title":"Titolo", "Pick a Scene":"Scegli uno sfondo", "Print Scene":"Stampa la tua creazione", "Print":"Stampa", "Full Color":"A colori", "Coloring Book Page":"Pagina del libro da colorare", "Full Page":"Pagina intera", "Medium Card":"Cartoncino medio", "Small Card":"Cartoncino piccolo", "Show a Friend":"Invia a un amico", "Name":"Nome", "Move":"Sposta", "Duration":"Durata", "Destination":"Destinazione", "Say":"Quello che dice", "Show Title":"Mostra il titolo", "Start Song":"Avvia la musica", "Fade to Black":"Dissolvi in nero", "My Stuff":"La mia pagina", "Type here":"Digita qui", "Done":"Fine", "Story Editor":"Modifica la storia", "Add":"Aggiungi", "To":"A", "Name":"Nome", "E-mail":"E-mail", "From":"Da", "Nickname":"Soprannome ", "Title	= Titolo":"", "My friends":"I miei amici", "Choose a group":"Scegli un gruppo", "None":"Da solo", "Create a new group":"Crea un nuovo gruppo", "Join a group":"Partecipa a un gruppo", "Boy":"Maschio", "Girl":"Femmina", "Save":"Salva", "Tell a friend":"Racconta a un amico", "Tell a friend about Kerpoof":"Racconta di Kerpoof a un amico", "How to play":"Impara a giocare", "For teachers":"Per gli insegnanti", "Play Kerpoof":"Gioca in Kerproof", "Spotlight":"Alla ribalta", "First name":"Nome", "Email address":"Indirizzo e-mail", "Optional Message":"Messaggio opzionale", "Your name":"Il tuo nome", "Go":"Invia", "What's new":"Novit\u00e0", "Buddy draw":"Disegna con un amico", "Emoticons":"Emozioni", "Special effects":"Effetti speciali", "Message board":"Bacheca dei messaggi", "Messages":"Messaggi", "Pick a Storyline":"Scegli un tipo di storia", "Pick your First Page":"Scegli la prima pagina", "What's your favorite TV show":"Qual \u00e8 la tua trasmissione televisiva preferita", "What's your favorite color":"Qual \u00e8 il tuo colore preferito", "What's your favorite animal":"Qual \u00e8 il tuo animale preferito", "What's your pet's name":"Come si chiama il tuo animale domestico", "Share with everyone":"Condividi con tutti", "Share with your group":"Condividi con il tuo gruppo", "Make a Drawing":"Crea un disegno", "Make a Card":"Crea un cartoncino"};
KpLangTable['ru'] = {"﻿Login":"\u0412\u0445\u043e\u0434", "Logout":"\u0412\u044b\u0445\u043e\u0434", "Cancel":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c", "Yes":"\u0414\u0430", "Nickname":"\u041f\u0440\u043e\u0437\u0432\u0438\u0449\u0435", "Do not use your full name or email address":"\u041d\u0435\u0020\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0020\u0441\u0432\u043e\u0451\u0020\u043f\u043e\u043b\u043d\u043e\u0435\u0020\u0438\u043c\u044f\u0020\u0438\u043b\u0438\u0020\u0430\u0434\u0440\u0435\u0441\u0020\u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439\u0020\u043f\u043e\u0447\u0442\u044b", "Password":"\u041f\u0430\u0440\u043e\u043b\u044c", "Re-type Password":"\u0421\u043d\u043e\u0432\u0430\u0020\u0432\u0432\u0435\u0434\u0438\u0020\u043f\u0430\u0440\u043e\u043b\u044c", "Secret Question":"\u0422\u0430\u0439\u043d\u044b\u0439\u0020\u0432\u043e\u043f\u0440\u043e\u0441", "Secret Answer":"\u0422\u0430\u0439\u043d\u044b\u0439\u0020\u043e\u0442\u0432\u0435\u0442", "Age":"\u0412\u043e\u0437\u0440\u0430\u0441\u0442", "Location":"\u041c\u0435\u0441\u0442\u043e\u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435", "For example":"\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440", "Login to view your gallery":"\u0412\u043e\u0439\u0434\u0438\u0020\u0447\u0442\u043e\u0431\u044b\u0020\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c\u0020\u0441\u0432\u043e\u044e\u0020\u0433\u0430\u043b\u0435\u0440\u0435\u044e", "Make a Picture":"\u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0020\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443", "Make a Story":"\u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0020\u0440\u0430\u0441\u0441\u043a\u0430\u0437", "Make a Movie":"\u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0020\u0444\u0438\u043b\u044c\u043c", "Make a Card":"\u0441\u043e\u0437\u0434\u0430\u0442\u044c\u0020\u043e\u0442\u043a\u0440\u044b\u0442\u043a\u0443", "Make a Drawing":"\u0441\u043e\u0437\u0434\u0430\u0442\u044c\u0020\u0440\u0438\u0441\u0443\u043d\u043e\u043a", "My Gallery":"\u041c\u043e\u044f\u0020\u0433\u0430\u043b\u0435\u0440\u0435\u044f", "Shared Scenes":"\u041e\u0431\u0449\u0438\u0435\u0020\u043f\u0435\u0439\u0437\u0430\u0436\u0438", "More":"\u0415\u0449\u0451", "Loading":"\u0418\u0434\u0435\u0442\u0020\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430", "Method":"\u041c\u0435\u0442\u043e\u0434", "Change Your Look":"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c\u0020\u0441\u0432\u043e\u044e\u0020\u0432\u043d\u0435\u0448\u043d\u043e\u0441\u0442\u044c", "Mix it up":"\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u0430", "My Favorites":"\u041c\u043e\u0438\u0020\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438", "Save Your Scene":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0020\u0441\u0432\u043e\u044e\u0020\u0441\u0446\u0435\u043d\u0443", "Save Scene":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0020\u0441\u0446\u0435\u043d\u0443", "Title":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a", "Pick a Scene":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c\u0020\u043f\u0435\u0439\u0437\u0430\u0436", "Print Scene":"\u0420\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c\u0020\u043f\u0435\u0439\u0437\u0430\u0436", "Print":"\u0420\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c", "Full Color":"\u0412\u0441\u0435\u0020\u0446\u0432\u0435\u0442\u0430", "Coloring Book Page":"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u0020\u0440\u0430\u0441\u043a\u0440\u0430\u0441\u043a\u0438", "Full Page":"\u0412\u0441\u044f\u0020\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430", "Medium Card":"\u0421\u0440\u0435\u0434\u043d\u044f\u044f\u0020\u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430", "Small Card":"\u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f\u0020\u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430", "Show a Friend":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0020\u0434\u0440\u0443\u0433\u0443", "Name":"\u0418\u043c\u044f", "Move":"\u041f\u0435\u0440\u0435\u0434\u0432\u0438\u043d\u0443\u0442\u044c", "Duration":"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c", "Destination":"\u041f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435", "Say":"\u0421\u043a\u0430\u0437\u0430\u0442\u044c", "Show Title":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0020\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a", "Start Song":"\u041d\u0430\u0447\u0430\u0442\u044c\u0020\u043f\u0435\u0441\u043d\u044e", "Fade to Black":"\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0020\u0432\u0020\u0447\u0435\u0440\u043d\u044b\u0439\u0020\u0446\u0432\u0435\u0442", "My Stuff":"\u041c\u043e\u044f\u0020\u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f", "Type here":"\u041f\u0435\u0447\u0430\u0442\u0430\u0439\u0020\u0437\u0434\u0435\u0441\u044c", "Done":"\u0417\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c", "Story Editor":"\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0020\u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430", "Add":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c", "To":"\u041a\u043e\u043c\u0443", "From":"\u041e\u0442\u0020\u043a\u043e\u0433\u043e", "My friends":"\u041c\u043e\u0438\u0020\u0434\u0440\u0443\u0437\u044c\u044f", "Choose a group":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c\u0020\u0433\u0440\u0443\u043f\u043f\u0443", "None":"\u041d\u0438\u043a\u0430\u043a\u0443\u044e", "Create a new group":"\u0421\u043e\u0437\u0434\u0430\u0442\u044c\u0020\u043d\u043e\u0432\u0443\u044e\u0020\u0433\u0440\u0443\u043f\u043f\u0443", "Join a group":"\u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u0441\u044f\u0020\u043a\u0020\u0433\u0440\u0443\u043f\u043f\u0435", "Boy":"\u041c\u0430\u043b\u044c\u0447\u0438\u043a", "Girl":"\u0414\u0435\u0432\u043e\u0447\u043a\u0430", "Save":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c", "Tell a friend":"\u0420\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c\u0020\u0434\u0440\u0443\u0433\u0443", "Tell a friend about Kerpoof":"\u0420\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c\u0020\u0434\u0440\u0443\u0433\u0443\u0020\u043e\u0020\u041a\u0435\u0440\u043f\u0440\u0443\u0444\u0435", "How to play":"\u041a\u0430\u043a\u0020\u0438\u0433\u0440\u0430\u0442\u044c", "For teachers":"\u0414\u043b\u044f\u0020\u0443\u0447\u0438\u0442\u0435\u043b\u0435\u0439", "Play Kerpoof":"\u0418\u0433\u0440\u0430\u0442\u044c\u0020\u0432\u0020\u041a\u0435\u0440\u043f\u0440\u0443\u0444", "Spotlight":"\u041d\u043e\u0432\u0438\u043d\u043a\u0430", "First name":"\u0418\u043c\u044f", "Email address":"\u0410\u0434\u0440\u0435\u0441\u0020\u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439\u0020\u043f\u043e\u0447\u0442\u044b", "Optional Message":"\u041e\u0020\u0442\u0435\u0431\u0435\u0020\u0028\u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0029", "Your name":"\u0422\u0432\u043e\u0451\u0020\u0438\u043c\u044f", "Go":"\u0412\u043f\u0435\u0440\u0451\u0434", "What's new":"\u0427\u0442\u043e\u0020\u0435\u0441\u0442\u044c\u0020\u043d\u043e\u0432\u043e\u0433\u043e", "Buddy draw":"\u0420\u0438\u0441\u043e\u0432\u0430\u0442\u044c\u0020\u0441\u0020\u043f\u0440\u0438\u044f\u0442\u0435\u043b\u0435\u043c", "Emoticons":"\u0421\u043c\u0430\u0439\u043b\u0438\u043a\u0438", "Special effects":"\u0421\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435\u0020\u044d\u0444\u0444\u0435\u043a\u0442\u044b", "Message board":"\u0414\u043e\u0441\u043a\u0430\u0020\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439"};
KpLangTable['zh'] = {"﻿Login":"\u767b\u5f55", "Logout":"\u9000\u51fa", "Cancel":"\u53d6\u6d88", "Yes":"\u662f", "Nickname":"\u6635\u79f0", "Do not use your full name or email address":"\u4e0d\u8981\u7528\u5168\u540d\u6216\u0045\u006d\u0061\u0069\u006c\u5730\u5740", "Password":"\u5bc6\u7801", "Re-type Password":"\u91cd\u65b0\u8f93\u5165\u5bc6\u7801", "Secret Question":"\u9690\u79d8\u95ee\u9898", "Secret Answer":"\u9690\u79d8\u7b54\u6848", "Age":"\u5e74\u9f84", "Location":"\u6240\u5728\u5730", "For example: Boulder, Colorado":"\u4f8b\u5982\uff1a\u0042\u006f\u0075\u006c\u0064\u0065\u0072\u002c\u0020\u79d1\u5dde", "Login to view your gallery":"\u767b\u5165\u4f60\u7684\u753b\u5eca", "Make a Picture":"\u4f5c\u753b", "Make a Story":"\u5199\u6545\u4e8b", "Make a Movie":"\u5236\u4f5c\u7535\u5f71", "Make a Card":"\u5236\u4f5c\u5361\u7247", "Make a Drawing":"\u5236\u4f5c\u56fe\u7247", "My Gallery":"\u6211\u7684\u753b\u5eca", "Shared Scenes":"\u5171\u4eab", "More":"\u66f4\u591a", "Loading":"\u8f7d\u5165", "Method":"\u65b9\u6cd5", "Change Your Look":"\u4fee\u6539\u4f5c\u54c1", "Mix it up":"\u6df7\u8d77\u6765", "My Favorites":"\u6700\u559c\u6b22\u7684", "Save Your Scene":"\u4fdd\u5b58\u4f60\u7684\u4f5c\u54c1", "Save Scene":"\u4fdd\u5b58\u4f5c\u54c1", "Title":"\u9898\u76ee", "Pick a Scene":"\u9009\u62e9\u80cc\u666f", "Print Scene":"\u6253\u5370\u4f5c\u54c1", "Print":"\u6253\u5370", "Full Color":"\u5168\u90e8\u989c\u8272", "Coloring Book Page":"\u4e66\u9875\u6d82\u8272", "Full Page":"\u6574\u9875", "Medium Card":"\u4e2d\u5361", "Small Card":"\u5c0f\u5361", "Show a Friend":"\u8ba9\u670b\u53cb\u770b\u770b", "Name":"\u540d\u5b57", "Move":"\u79fb\u52a8", "Duration":"\u4e00\u6bb5\u65f6\u95f4", "Destination":"\u76ee\u7684\u5730", "Say":"\u8bf4", "Show Title":"\u770b\u770b\u540d\u5b57", "Start Song":"\u5f00\u59cb\u653e\u97f3\u4e50", "Fade to Black":"\u6162\u6162\u53d8\u9ed1\u8272", "My Stuff":"\u6211\u7684\u4e1c\u897f", "Type here":"\u8fd9\u513f\u8f93\u5165", "Done":"\u5b8c\u6210\u4e86", "Story Editor":"\u6545\u4e8b\u7f16\u8f91\u5668", "Add":"\u52a0\u5165", "To":"\u5230", "Name":"\u540d\u5b57", "E-mail":"\u0045\u006d\u0061\u0069\u006c", "From":"\u4ece", "Name":"\u540d\u5b57", "Nickname":"\u6635\u79f0", "Title":"\u4f5c\u54c1\u7684\u540d\u5b57", "My friends":"\u6211\u7684\u670b\u53cb", "Choose a group":"\u9009\u62e9\u4e00\u7ec4", "None":"\u6ca1\u6709\u7ec4", "Create a new group":"\u521b\u5efa\u65b0\u7684\u4e00\u7ec4", "Join a group":"\u52a0\u5165\u4e00\u7ec4", "Boy":"\u7537\u5b69", "Girl":"\u5973\u5b69", "Save":"\u4fdd\u5b58", "Tell a friend":"\u544a\u8bc9\u670b\u53cb", "Tell a friend about Kerpoof":"\u628a\u004b\u0065\u0072\u0070\u0072\u006f\u006f\u0066\u544a\u8bc9\u670b\u53cb", "How to play":"\u600e\u4e48\u73a9", "For teachers":"\u5bf9\u8001\u5e08\u6765\u8bf4", "Play Kerpoof":"\u5728\u004b\u0065\u0072\u0070\u006f\u006f\u0066\u4e0a\u73a9", "Spotlight":"\u5927\u5bb6\u6ce8\u610f", "First name":"\u540d\u5b57", "Email address":"\u0045\u006d\u0061\u0069\u006c\u5730\u5740", "Optional Message":"\u53ef\u9009\u4fe1\u606f", "Your name":"\u4f60\u7684\u540d\u5b57", "Go":"\u9001\u51fa", "What's new":"\u66f4\u65b0\u7684\u662f", "Buddy draw":"\u5408\u4f5c\u4f5c\u54c1", "Emoticons":"\u60c5\u7eea\u7b26\u53f7", "Special effects":"\u7279\u522b\u6548\u679c", "Message board":"\u4fe1\u606f\u7248", "Pick a Storyline":"\u80cc\u666f\u9009\u62e9", "Pick your First Page":"\u9009\u4f60\u7684\u9996\u9875", "What's your favorite TV show":"\u4ec0\u4e48\u662f\u4f60\u6700\u559c\u6b22\u7684\u7535\u89c6\u8282\u76ee", "What's your favorite color":"\u4ec0\u4e48\u662f\u4f60\u6700\u559c\u6b22\u7684\u989c\u8272", "What's your favorite animal":"\u6700\u559c\u6b22\u7684\u52a8\u7269\u662f\u4ec0\u4e48", "What's your pet's name":"\u4f60\u5ba0\u7269\u7684\u540d\u5b57\u662f\u4ec0\u4e48", "Share with everyone":"\u548c\u5176\u5b83\u4eba\u5171\u4eab", "Share with your group":"\u5c0f\u7ec4\u5171\u4eab"};

var ie=document.all;var nn6=document.getElementById&&!document.all;var opera=window.opera?true:false;var safari=(navigator.userAgent.toLowerCase().indexOf("safari")>0);var lin=(/Linux/i.test(navigator.userAgent));var CSSStrict=/css\dcompat/i.test(document.compatMode);var firefox=/firefox/i.test(navigator.userAgent);var ff1_5=/firefox.1\.5/i.test(navigator.userAgent);var ff2_0=/firefox.2\.0/i.test(navigator.userAgent);var ie6=/msie.6\./i.test(navigator.userAgent);var CB_IMAGE_PATH="/cb/images/cb/";var CB_IMAGEJS_PATH="/cb/dat/js/images/";var CB_SCENEJS_PATH="/cb/dat/js/scenes/";var CB_WS_IMAGEJS_PATH="dat/js/images/";var CB_WS_SCENEJS_PATH="dat/js/scenes/";var CB_BORDER_PATH="/cb/images/cb/borders/";var CB_BUTTON_PATH="/cb/images/cb/buttons/";var CB_MAIN_BORDER=CB_BORDER_PATH+'main_border_';var ENV={};ENV.creationTime=CurrentTime();ENV.uid=[];ENV.nn6=nn6;ENV.ie=ie;ENV.opera=opera;ENV.safari=safari;ENV.lin=lin;ENV.firefox=firefox;ENV.ff1_5=ff1_5;ENV.ff2_0=ff2_0;ENV.ie6=ie6;ENV.getWindowDims=function(){if(nn6){return{xmin:0,ymin:0,xmax:window.innerWidth,ymax:window.innerHeight,w:window.innerWidth,h:window.innerHeight};}
if(ie){return{xmin:0,ymin:0,xmax:document.body.offsetWidth-4,ymax:document.body.offsetHeight-4,w:document.body.offsetWidth-4,h:document.body.offsetHeight-4};}
return{xmin:0,ymin:0,xmax:window.innerWidth,ymax:window.innerHeight,w:window.innerWidth,h:window.innerHeight};}
ENV.setup_args=function(){var S=window.location.search;ENV.args=[];if(S.length>0){S=S.substring(1,S.length);var A=S.split('&');for(var i in A){var B=A[i].split('=');if(B.length==1){ENV.args['_'+B[0]]=true;}
else{ENV.args['_'+B[0]]=unescape(B[1]);}}}}
ENV.setup_args();if(ENV.args._log){aJaxPost('/live_log.php?ksid='+ENV.args._log+'&action=clear');puts('**** logging ****');}
if(ENV.args._hl){langCode=ENV.args._hl;}
ENV.godmode=true;function show_answer(loc,ele)
{var i,div;var on_not_off=false;if(ele&&ele.length&&document.getElementById('ans-'+ele).style.height=='')
on_not_off=true;div=document.getElementsByTagName("div");for(i=0;i<div.length;i++){if(div[i].id.match(/^ans-/)){div[i].style.height='0px';}}
if(ele&&ele.length&&!on_not_off){document.getElementById('ans-'+ele).style.height='';if(typeof pageTracker!="undefined"){pageTracker._trackPageview('/show_ans/'+loc+'/'+ele);}}}
window.deeplink=function(u){window.location.href='/#'+u;}
function readCookie(name)
{var nameEq=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;++i){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEq)==0)return c.substring(nameEq.length,c.length);}
return null;}
var wsd;wsd=readCookie('cbwscookie');if(wsd!=null)wsd='../'+wsd;function CurrentTime(){return(new Date()).getTime();}
function ElapsedTime(t0,t1){t1=t1||CurrentTime();t0=t0||ENV.creationTime||t1;return Math.abs(t1-t0);}
var _loc_warnings={};var _loc_warnings_only=false;function LW(){_loc_warnings_only=true;}
function AW(){_loc_warnings_only=false;}
var puts_message_count=0;function puts(s){if(!puts.backlog)puts.backlog=[];if(_loc_warnings_only){if(!(s.match(/LOC WARNING/))){return;}
if(_loc_warnings[s])return;_loc_warnings[s]=true;}
var add_caller_prefix=false;if(s){if(add_caller_prefix){var caller='unknown';try{caller=GetFunctionName(puts.caller);}catch(e){caller='unknown';};s='['+caller+'] '+s;}
puts.backlog[puts.backlog.length]=s;}
try{for(var i in puts.backlog)
{if(puts.backlog[i])
if(typeof println!='undefined'){println(puts.backlog[i]);}
puts.backlog[i]=null;}
puts.backlog=[];}
catch(e){};if(puts.backlog.length>0){setTimeout("puts()",1000);}
if(window.ENV&&ENV.args._log){aJaxPost('/live_log.php?ksid='+ENV.args._log+'&action=add&mnum='+(puts_message_count++)+'&txt='+escape(s));}
if(s&&window.console){eval("console."+"log("+"s"+")");}}
var EventLog={};EventLog.t0=CurrentTime();EventLog.event=[];EventLog.last_update=0;EventLog.add=function(s,level){level=level||"DEBUG";var t=ElapsedTime(EventLog.t0);var event={level:level,t:t,s:s,toString:EventLog.formatter}
EventLog.event.push(event);}
EventLog.report=function(s){EventLog.add(s,"REPORT");}
EventLog.formatter=function(){var zp='';for(var i=10;i<=1e7;i*=10){if(this.t<i)zp+='0';}
return(zp+this.t+': ['+this.level+'] '+this.s)}
EventLog.getReport=function(useTEpoch){var prev=EventLog.last_update;var next=EventLog.event.length;EventLog.last_update=next;var update=[];var t0=useTEpoch?EventLog.t0:0;for(var i=prev;i<next;i++){var e=EventLog.event[i];if(e.level=="REPORT"){update.push([t0+e.t,e.s])}}
return update;}
EventLog.dump=function(){for(var i in EventLog.event){puts('> '+EventLog.event[i].toString());}}
Function.prototype.method=function(name,func){this.prototype[name]=func;return this;};Function.method('inherits',function(parent){var d=0,p=(this.prototype=new parent());this.method('uber',function(name){var f,r,t=d,v=parent.prototype;if(t){while(t){v=v.constructor.prototype;t-=1;}
f=v[name];}else{f=p[name];if(f==this[name]){f=v[name];}}
d+=1;r=f.apply(this,Array.prototype.slice.apply(arguments,[1]));d-=1;return r;});return this;});Function.method('inherit_swiss',function(parent){for(var i=1;i<arguments.length;i+=1){var name=arguments[i];this.prototype[name]=parent.prototype[name];}
return this;});function isAlien(a){return isObject(a)&&typeof a.constructor!='function';}
function isArray(a){return isObject(a)&&a.constructor==Array;}
function isBoolean(a){return typeof a=='boolean';}
function isEmpty(o){var i,v;if(isObject(o)){for(i in o){v=o[i];if(isUndefined(v)&&isFunction(v)){return false;}}}
return true;}
function isFunction(a){return typeof a=='function';}
function isNull(a){return typeof a=='object'&&!a;}
function isNumber(a){return typeof a=='number'&&isFinite(a);}
function isObject(a){return(a&&typeof a=='object')||isFunction(a);}
function isString(a){return typeof a=='string';}
function isUndefined(a){return typeof a=='undefined';}
String.method('quote',function(){var c,i,l=this.length,o='"';for(i=0;i<l;i+=1){c=this.charAt(i);if(c>=' '){if(c=='\\'||c=='"'){o+='\\';}
o+=c;}else{switch(c){case'\b':o+='\\b';break;case'\f':o+='\\f';break;case'\n':o+='\\n';break;case'\r':o+='\\r';break;case'\t':o+='\\t';break;default:c=c.charCodeAt();o+='\\u00'+Math.floor(c/16).toString(16)+
(c%16).toString(16);}}}
return o+'"';}).method('trim',function(){return this.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1");});Math.limitPrecision=function(A,p){p=p||4;var B;if(isArray(A)){B=[];for(var i in A){B[i]=Math.limitPrecision(A[i],p);}}
else{if(isNaN(A)||A==Infinity)return A;if(A<0){return-Math.limitPrecision(-A,p);}
var S=A.toString();var E=S.split("e");var e=(E[1])?Math.floor(E[1]):0;var D=E[0].split(".");e+=D[0].length-1;var d=D[0];if(D[1])d+=D[1];var x=Math.round(d+'e'+(p-d.length));B=eval('('+x+'e'+(e+1-p)+')');}
return B;if(!Math.limitPrecision_LUT){Math.limitPrecision_LUT=[];for(var i=-15;i<15;i++){Math.limitPrecision_LUT[i]=eval('(1e'+i+')');puts('Math.limitPrecision_LUT['+i+'] = '+
Math.limitPrecision_LUT[i]);}}
p=p||2;var B;if(isArray(A)){B=[];for(var i in A){B[i]=Math.limitPrecision(A[i],p);}}
else{B=Math.limitPrecision_LUT[-p]*Math.round(A*Math.limitPrecision_LUT[p]);}
return B;}
function stripLeadingUnderscores(obj,recurse)
{var stripped_obj={};var stripped_attr;for(var attr in obj){if(attr.match(/^_/)){stripped_attr=attr.substr(1,attr.length-1);}
else{stripped_attr=attr;}
if(recurse&&isObject(obj[attr])){stripped_obj[stripped_attr]=stripLeadingUnderscores(obj[attr],true);}
else{stripped_obj[stripped_attr]=obj[attr];}}
return stripped_obj;}
function applyStyle(O,style){for(k in style){O.style[k]=style[k];}}
function GetFunctionName(fn)
{var m=fn.toString().match(/^\s*function\s+([^\s\(]+)/);return m?m[1]:"";}
function GetMasterImage(index,onload,ttl,ontimeout)
{var path=(index<1000000)?wsd+CB_WS_IMAGEJS_PATH+"kpimg"+index+".js":CB_IMAGEJS_PATH+"kpimg"+index+".js";EventLog.add('Issued get-master-image('+index+')');_load_object(path,function(o)
{EventLog.add('get-master-image('+index+') callback');onload(o);},ttl,ontimeout);}
var flashElement=null;var AS={};AS.call=function(varargin)
{if(!flashElement){flashElement=(ie)?window["kerpoof_application"]:document["kerpoof_application"];}
if(arguments.length<1){puts("AS.call() requires at least one argument.");return null;}
var f=arguments[0];var A=[];for(var i=1;i<arguments.length;i++){A.push(arguments[i]);}
var rval=flashElement["AS_export_request"]("call",f,JSON.arrayToJSON(A,true));puts('rval = '+rval);return rval;}
AS.get=function(f)
{if(!flashElement){flashElement=(ie)?window["kerpoof_application"]:document["kerpoof_application"];}
if(arguments.length!=1){puts("AS.get() requires one argument.");return null;}
var rval=flashElement["AS_export_request"]("get",f,"");puts('rval = '+rval);rval=JSON.assignFrom(rval);return rval;}
AS.set=function(f,val)
{if(!flashElement){flashElement=(ie)?window["kerpoof_application"]:document["kerpoof_application"];}
if(arguments.length!=2){puts("AS.set() requires two arguments.");return null;}
flashElement["AS_export_request"]("set",f,JSON.arrayToJSON([val]));return;}
window.onbeforeunload=function(){try{AS.call('on_before_unload')}catch(e){}};function DM(){AS.call('mem_watch');}
function DL(){AS.call('listener_watch');}
function _Flash_Async_Call(f,serialized_args,cbindex)
{try{if(!flashElement){flashElement=(ie)?window["kerpoof_application"]:document["kerpoof_application"];}
var cbhook=function(args){try{var json=JSON.arrayToJSON(arguments,true);flashElement["ajax_handler"](cbindex,json);}catch(e){puts('_Flash_Async_Call::cbhook caught: '+e.message);puts(e);}}
var deser_args=JSON.assignFrom(serialized_args);var A=[cbhook];for(var i=0;i<deser_args.length;i++){A.push(deser_args[i]);}
var js_function=window[f];if(js_function==null){throw(Error("There is no JavaScript function '"+f+"'"));}
js_function.apply(null,A);}catch(e){puts(e);puts('_Flash_Async_Call caught: '+e.message);}}
function _getLangCode(){return langCode;}
function _setLangCode(lang){langCode=lang;}
function gets(s,lang){lang=lang||_getLangCode();if(lang=='en'||!KpLangTable||!KpLangTable[lang]){return s;}
if(!KpLangTable[lang][s]){return s;}
return KpLangTable[lang][s];}
function _Flash_GetENV(){return(JSON.objectToJSON(ENV));}
function _Flash_GetLangTable(){return(JSON.objectToJSON(KpLangTable));}
function _Flash_Track(push_google,a,t,data)
{if(push_google){pageTracker._trackPageview(a);}}
var flashIframe;function _Flash_addIFrame(url,style)
{puts('addIFrame: '+url);flashIframe=document.createElement("iframe");if(ie){flashIframe.frameBorder="no";}
flashIframe.id='altframe';_Flash_updateIFrame(url,style);document.body.appendChild(flashIframe);}
function _Flash_updateIFrame(url,style)
{puts('updateIFrame: '+url);if(url)flashIframe.src=url;if(style)applyStyle(flashIframe,style);}
function _Flash_delIFrame()
{puts('delIFrame');if(flashIframe)document.body.removeChild(flashIframe);flashIframe=null;}
function _Flash_LimitPrecision(x,p)
{return Math.limitPrecision(x,p);}
function _Flash_GetMasterImage(onload,index)
{GetMasterImage(index,function(o){onload(stripLeadingUnderscores(o));});}
function _Flash_GetMasterImageArray(onload,indices)
{GetMasterImageArray(indices,function(o_array){for(ii in o_array){o_array[ii]=stripLeadingUnderscores(o_array[ii]);}
onload(o_array);});}
function _Flash_GetImageAssoc(onload,index,sceneIndex)
{var path=(sceneIndex<1000000)?wsd+CB_WS_SCENEJS_PATH+"scene"+sceneIndex+"/"+"kpimgassoc"+index+".js":CB_SCENEJS_PATH+"scene"+sceneIndex+"/"+"kpimgassoc"+index+".js";EventLog.add('Issued get-image-assoc('+index+')');_load_object(path,function(o)
{EventLog.add('get-image_assoc('+index+') callback');onload(o);});}
function _Flash_GetBaseScene(onload,index)
{var path=(index<1000000)?wsd+CB_WS_SCENEJS_PATH+"kpscene"+index+".js":CB_SCENEJS_PATH+"kpscene"+index+".js";_load_object(path,onload);}
var SCENE_CACHE={};function _Flash_GetSceneData(onload,scene)
{puts('GSD for scene: '+scene);if(isNaN(parseInt(scene))){ReconstituteScene(scene,onload,true);}
else{GetBaseScene(scene,onload,true);}}
function _Flash_GetBaseImages(onload,sceneIndex)
{EventLog.add('Issued get-sceneobjset');var path=(sceneIndex<1000000)?wsd+CB_WS_SCENEJS_PATH+"kpsceneobjset"+
sceneIndex+".js":CB_SCENEJS_PATH+"kpsceneobjset"+
sceneIndex+".js";_load_object(path,onload);}
function _Flash_GetSceneAssoc(onload,sceneIndex)
{_ImageDAO._getSceneAssoc(function(s){var m=JSON.assignFrom(s);puts(m);var A={};A.weightedCategories=m['categories'];A.advertisersByCategory=m['advertisers'];onload(A);},sceneIndex,wsd);}
function _Flash_SaveSceneAssoc(A,sceneIndex)
{var assoc={};assoc['categories']=A.weightedCategories;assoc['advertisers']=A.advertisersByCategory;var assocStr=JSON.objectToJSON(assoc);_ImageDAO._saveSceneAssoc(function(s){puts(s);},assocStr,sceneIndex,wsd);}
function GetMasterImageArray(A,onload,ttl,ontimeout,o_array){if(A.length==0){onload([]);return;}
if(!o_array){o_array=[];var A_copy=[];for(var i in A){A_copy[i]=A[i];}
var A2=A_copy;}
else{var A2=A;}
if(A2.length==1){GetMasterImage(A2[0],function(o){o_array.push(o);onload(o_array);},ttl,ontimeout);}
else{var a=A2.shift();GetMasterImage(a,function(o){o_array.push(o);GetMasterImageArray(A2,onload,ttl,ontimeout,o_array);},ttl,ontimeout);}}
function GetImageAssoc(mi,sceneIndex,ttl,ontimeout)
{var path=(sceneIndex<1000000)?wsd+CB_WS_SCENEJS_PATH+"scene"+sceneIndex+"/"+"kpimgassoc"+mi._masterIndex+".js":CB_SCENEJS_PATH+"scene"+sceneIndex+"/"+"kpimgassoc"+mi._masterIndex+".js";EventLog.add('Issued get-image-assoc('+mi._masterIndex+')');_load_object(path,function(o)
{EventLog.add('get-image_assoc('+mi._masterIndex+') callback');var L=new CbWeightedList();for(var i in o){var a=o[i];L.add(a[0],a[1],a[2]?a[2]:null);}
mi._imageAssoc=L;},ttl,ontimeout);}
function GetBaseScene(index,onload,fromFlash)
{var path=(index<1000000)?wsd+CB_WS_SCENEJS_PATH+"kpscene"+index+".js":CB_SCENEJS_PATH+"kpscene"+index+".js";if(fromFlash){_load_object(path,function(o){try{onload(o);}
catch(e){puts('get base threw: '+e);};});return;}
_load_object(path,function(o){try{onload(o,function(){page.canvas.source_scene={sceneName:""+index,userScene:false};});}catch(e){puts('get base threw: '+e);};});}
function ReconstituteScene(sceneName,onload,fromFlash)
{try{if(SCENE_CACHE[sceneName]){var s=SCENE_CACHE[sceneName];var scene=JSON.assignFrom(s);if(!fromFlash){for(var i=0;i<scene.length;++i){var el=scene[i];if(el._tp==0){try{_bootstrap.sceneIndex=el._ix;}catch(e){};}}}
setTimeout(function()
{if(fromFlash){puts('-- CACHE --');puts('-- s --');puts(s);puts('-- scene --');puts(scene);onload(scene);}
else{onload(scene,function(){page.canvas.source_scene={sceneName:sceneName,userScene:true};});}},100);return;}
_ImageDAO._getJsonScene(sceneName,function(s){try{if(s){var scene=JSON.assignFrom(s);if(!fromFlash){for(var i=0;i<scene.length;++i){var el=scene[i];if(el._tp==0){try{_bootstrap.sceneIndex=el._ix;}catch(e){};}}}
if(fromFlash){puts('-- s --');puts(s);puts('-- scene --');puts(scene);onload(scene);}
else{onload(scene,function(){page.canvas.source_scene={sceneName:sceneName,userScene:true};});}}
else{ENV.args._scene="1000000";try{_bootstrap.sceneIndex=1000000;}catch(e){};GetBaseScene(100000,onload);}}catch(e){puts('recon threw: '+e);if(page&&page.canvas&&page.canvas.source_scene){page.canvas.source_scene={sceneName:"",userScene:false}}};});}catch(e){puts('recon threw: '+e);}}
function SparseMap(){this.map=new Object();}
SparseMap.prototype.add=function(k,o)
{this.map[k]=o;}
SparseMap.prototype.remove=function(k)
{delete this.map[k];}
SparseMap.prototype.get=function(k)
{return(k!==null&&this.map[k])?this.map[k]:null;}
SparseMap.prototype.first=function()
{return this.get(this.nextKey());}
SparseMap.prototype.next=function(k)
{return this.get(this.nextKey(k));}
SparseMap.prototype.nextKey=function(k)
{for(var i in this.map){if(!k)return i;if(k==i)k=null;}
return null;}
var _load_object_MUTEX_ID=0;function _load_object(src,onload,ttl,ontimeout)
{var PC=src.split('/');var FC=PC[PC.length-1].split('.');var name=FC[0];var script=null;var head=document.getElementsByTagName('head')[0];var logEvents=false;new Mutex({id:++_load_object_MUTEX_ID,exec:function(){if(logEvents)EventLog.add('enter mutex: _load_object '+src);if(!_load_object.callback_queue)_load_object.callback_queue=[];if(!_load_object.callback_queue[name]){_load_object.callback_queue[name]=[0];script=document.createElement('script');script.type='text/javascript';script.src=src;script.defer=false;}
if(logEvents)EventLog.add('Scheduling load_object for '+name);var callback_obj={onload:function(s){if(onload)onload(s);},ontimeout:ontimeout};if(ttl){setTimeout(function(){new Mutex({id:++_load_object_MUTEX_ID,exec:function(){if(logEvents)EventLog.add('enter mutex: ontimeout '+name);if(callback_obj.ontimeout){try{callback_obj.ontimeout();}
catch(e){}
callback_obj.onload=null;--_load_object.callback_queue[name][0];if(!_load_object.callback_queue[name][0]){if(logEvents)EventLog.add('Finished _load_object '+name);delete _load_object[name];delete _load_object.callback_queue[name];}
try{head.removeChild(script);}catch(e){}}
else{if(logEvents)EventLog.add(' -- ignoring timeout, object already loaded');}
if(logEvents)EventLog.add('exit mutex: ontimeout '+name);}});},ttl)}
var q=_load_object.callback_queue[name];++q[0];q[q.length]=callback_obj;_load_object[name]=_load_object[name]||function(s){new Mutex({id:++_load_object_MUTEX_ID,exec:function(){if(logEvents)EventLog.add('enter mutex: onload '+name);for(var i in _load_object.callback_queue[name]){if(i!=0){if(logEvents)EventLog.add('Exec onload for '+name);if(_load_object.callback_queue[name][i].onload){try{_load_object.callback_queue[name][i].onload(s);}
catch(e){if(logEvents)EventLog.add('_load_object.'+name+' onload exception.')}}
_load_object.callback_queue[name][i].ontimeout=null;delete _load_object.callback_queue[name][i];}}
--_load_object.callback_queue[name][0];if(!_load_object.callback_queue[name][0]){if(logEvents)EventLog.add('Finished _load_object '+name);delete _load_object[name];delete _load_object.callback_queue[name];}
try{head.removeChild(script);}catch(e){}
if(logEvents)EventLog.add('exit mutex: onload '+name);}});}
if(script)head.appendChild(script);if(logEvents)EventLog.add('exit mutex: _load_object '+name);}});}
function Mutex(cmdObject,methodName){methodName=methodName||"exec";if(!Mutex.Wait)Mutex.Wait=new SparseMap();Mutex.SLICE=function(cmdID,startID){Mutex.Wait.get(cmdID).attempt(Mutex.Wait.get(startID));}
this.attempt=function(start){for(var j=start;j;j=Mutex.Wait.next(j.c.id)){if(j.enter||(j.number&&(j.number<this.number||(j.number==this.number&&j.c.id<this.c.id))))
return setTimeout("Mutex.SLICE("+this.c.id+","+j.c.id+")",5);}
this.c[this.methodID]();this.number=0;Mutex.Wait.remove(this.c.id);return false;}
this.c=cmdObject;this.methodID=methodName;Mutex.Wait.add(this.c.id,this);this.enter=true;this.number=(new Date()).getTime();this.enter=false;this.attempt(Mutex.Wait.first());}
function OnContentLoad(doc,f)
{if(ie){doc.onreadystatechange=function(){if(doc.readyState=="complete"){f();}}}
else{doc.addEventListener("DOMContentLoaded",f,null);}}
function dump_stack()
{if(nn6&&window.console){eval('console.'+'trace()');return;}
try{throw new Error("Stack Dump");}
catch(e){puts();puts(e.stack);puts();}}
var JSON={};JSON.quote_all_identifiers=false;(function(){var m={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};var s={array:function(x){var a=['['],b,f,i,l=x.length,v;for(i=0;i<l;i+=1){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=='string'){if(b){a[a.length]=',';}
a[a.length]=v;b=true;}}}
a[a.length]=']';return a.join('');},'boolean':function(x){return String(x);},'null':function(x){return"null";},number:function(x){return isFinite(x)?String(x):'null';},object:function(x){if(x){if(x instanceof Array){return s.array(x);}
var a=['{'],b,f,i,v;for(i in x){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=='string'){if(b){a[a.length]=',';}
if(!JSON.quote_all_identifiers&&/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(i))
a.push(i,':',v);else
a.push(s.string(i),':',v);b=true;}}}
a[a.length]='}';return a.join('');}
return'null';},string:function(x){if(/[\"\\\x00-\x1f]/.test(x))
{x=x.replace(/([\x00-\x1f\\\"])/g,function(a,b){var c=m[b];if(c){return c;}
c=b.charCodeAt();return'\\u00'+
Math.floor(c/16).toString(16)+
(c%16).toString(16);});}
return'"'+x+'"';}};JSON.objectToJSON=function(o,escpae){JSON.quote_all_identifiers=escape?true:false;return s.object(o);};JSON.arrayToJSON=function(o,escape){JSON.quote_all_identifiers=escape?true:false;return s.array(o);};})();JSON.safelyAssignFrom=function(s){try{if(/[()=]/.test(s)){return false;}
return(eval('('+s+')'));}catch(e){return false;}};JSON.assignFrom=function(s){try{return(eval('('+s+')'));}catch(e){return false;}};function cbNewWindow(url,bars,w,h,aspect)
{if(bars===null)bars=2;bars=2;var options="";var add_option=function(key,value){if(options.length>0){options+=","}
if(value==null){options+=key+"=1"}
else if(value==true){options+=key+"=1"}
else if(value==false){options+=key+"=0"}
else{options+=key+"="+value;}}
add_option("resizable");add_option("fullscreen",true);switch(bars){case 0:add_option("menubar",false);add_option("toolbar",false);add_option("location",false);add_option("scrollbars",true);add_option("status",false);break;case 1:add_option("menubar",true);add_option("toolbar",ie?true:false);add_option("location",false);add_option("scrollbars",true);add_option("status",false);break;case 3:add_option("menubar",false);add_option("toolbar",ie?true:false);add_option("location",false);add_option("scrollbars",true);add_option("status",false);break;default:add_option("menubar",true);add_option("toolbar",true);add_option("location",true);add_option("scrollbars",true);add_option("status",true);break;}
var maxh=window.screen.availHeight;var maxw=window.screen.availWidth;if(h!==null)h=Math.min(h,maxh);if(w!==null)w=Math.min(w,maxw);if(isString(h)){h=parseFloat(h)/100*maxh;}
if(isString(w)){w=parseFloat(w)/100*maxw;}
var vwaste=50;if(aspect){if(h!==null){w=aspect*(h-vwaste);}
else if(w!==null){h=w/aspect+vwaste;}
else{if(aspect<maxw/(maxh-vwaste)){h=maxh;w=aspect*(h-vwaste);}
else{w=maxw;h=w/aspect+vwaste;}}}
w=Math.floor(w);h=Math.floor(h);add_option("height",h);add_option("width",w);var newwindow;if(url.match(/^mailto:/)){newwindow=window.open(url);if(newwindow&&newwindow.open&&!newwindow.closed){newwindow.close();}}
else{newwindow=window.open(url,"_blank"+Math.floor(Math.random()*50000),options);}
return newwindow;}
function _newWin(url,bars,h,w,aspect)
{var newwindow=cbNewWindow(url,bars,h,w,aspect);return(newwindow!=null);}
function cbChangeWindowLocation(newUrl,KSID,moveParent)
{if(KSID==null){KSID='';}
ENV.enable_autosave=false;ENV.write_on_unload=false;SHIELD_ON();var canvas=page.canvas;var sceneName=canvas.getLabel();var hideList=[];if(canvas.last_autosave&&canvas.last_autosave.sceneName&&canvas.last_autosave.sceneName.length>0)
{hideList.push(canvas.last_autosave.sceneName);}
if(canvas.source_scene&&canvas.source_scene.userScene&&canvas.source_scene.sceneName&&canvas.source_scene.sceneName.length>0)
{hideList.push(canvas.source_scene.sceneName);}
newUrl=newUrl.replace(/INS_SCENE_NAME/,sceneName);var redirect=function(){setTimeout(function(){if(SPONSORED){window.location=newUrl;return;}else{if(self){if(self.opener&&moveParent){self.opener.location=newUrl;}
self.close();}
window.close();}
setTimeout(function(){window.location=newUrl;},100);},250);}
redirect();}
function _ahb(callback,query)
{aJaxHeartBeat(query);}
function aJaxHeartBeat(query){var objXMLHttp=null;if(window.XMLHttpRequest){objXMLHttp=new XMLHttpRequest();}else if(window.ActiveXObject){objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");}
if(objXMLHttp){objXMLHttp.open("GET","keepalive?rnd="+Math.floor(Math.random()*1000000)+"&"+query,true);objXMLHttp.send(null);}else{}}
function aJaxPost(url,paramObj,callback,obj){var params='?rnd='+Math.floor(Math.random()*1000);for(var i in paramObj){var val=paramObj[i];if((typeof val=='string'||typeof val=='number')&&(typeof i=='string'||typeof i=='number')){params+="&"+escape(i)+"="+escape(val);}}
var objXMLHttp=null;if(window.XMLHttpRequest){objXMLHttp=new XMLHttpRequest();}else if(window.ActiveXObject){objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");}
var handleAjax=function(){if(objXMLHttp.readyState==4){if(objXMLHttp.status==200){if(typeof callback=='function'){callback(objXMLHttp.responseText,obj);}}else{puts("AJAX Error: Server returned '"+objXMLHttp.status+"' for url '"+url+"'");}}}
objXMLHttp.onreadystatechange=handleAjax;if(objXMLHttp){objXMLHttp.open("POST",url,true);objXMLHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");objXMLHttp.setRequestHeader("Content-length",params.length);objXMLHttp.setRequestHeader("Connection","close");objXMLHttp.send(params);}}
function getUserAgent(){return navigator.userAgent;}
function getWindowSearch(){return window.location.search;}
function getWindowLocation(){return window.location+"";}
function _Flash_isCreatePage(callback){if(_homePageLoad){callback({"_homePageLoad":true});}else{callback({"_homePageLoad":false});}}
function _pngie6(){var tmp;tmp=document.body.getElementsByTagName('img');for(var i=0;i<tmp.length;i++){if(tmp[i].style&&ie){_iePng(tmp[i]);}}}
function _iePng(obj){obj.style.width=obj.offsetWidth+"px";obj.style.height=obj.offsetHeight+"px";if(!obj.style.behavior){obj.style.behavior='url("htc/pngbehavior.htc")';}}
function detectFlash(){var _flashinstalled=0;var _flashversion=0;if(navigator.plugins&&navigator.plugins.length){x=navigator.plugins["Shockwave Flash"];if(x){_flashinstalled=2;if(x.description){y=x.description;_flashversion=y.match(/(\d+)\./)[1];}}else{_flashinstalled=1;}
if(navigator.plugins["Shockwave Flash 2.0"]){_flashinstalled=2;_flashversion=2;}}else if(navigator.mimeTypes&&navigator.mimeTypes.length){x=navigator.mimeTypes['application/x-shockwave-flash'];if(x&&x.enabledPlugin)_flashinstalled=2;else _flashinstalled=1;}else{for(var i=14;i>0;i--){flashVersion=0;try{var flash=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);flashVersion=i;return i;}
catch(e){}}}
if(_flashinstalled==1){return-1;}else if(_flashinstalled==2){return _flashversion;}else{return 0;}}
