function Querystring(a){this.params={};if(a==null)a=location.search.substring(1,location.search.length);if(a.length!=0){a=a.replace(/\+/g," ");a=a.split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=decodeURIComponent(c[0]);c=c.length==2?decodeURIComponent(c[1]):d;this.params[d]=c}}}Querystring.prototype.get=function(a,b){var c=this.params[a];return c!=null?c:b};Querystring.prototype.contains=function(a){return this.params[a]!=null};
Querystring.prototype.set=function(a,b){this.params[a]=b};Querystring.prototype.toString=function(){var a="";for(var b in this.params)a+="&"+encodeURIComponent(b)+"="+encodeURIComponent(this.params[b]);if(a.length)a=a.substr(1);return a};Yunno=window.Yunno||{};Yunno.StopLoading=function(){if(window.stop!==undefined)window.stop();else document.execCommand!==undefined&&document.execCommand("Stop",false)};
Yunno.GetHashURL=function(a){if(!a)return null;if(a&&a.length>2&&a.substr(0,2)=="#!"){var b="";if(a.substr(0,3)=="#!/")b=Yunno.Global.SiteURL+a.substring(3);else if(a.substr(0,2)=="#!")b=Yunno.Global.SiteURL+a.substring(3);return b}return null};
Yunno.Moreize=function(a,b){var c=document.getElementById(a),d="",g=0,h=0;b=b||180;for(var k=0;k<c.childNodes.length;++k){var f=c.childNodes[k],e=f.innerText||f.textContent||f.nodeValue||f.data;if(f.innerHTML||!e){var j=document.createElement("div");j.appendChild(f.cloneNode(true));e=j.innerHTML;d+=j.innerHTML;if(h==0&&g+e.length>b){d+='<span class="YMoreHidden">';h=1}delete j}else if(e)if(h==0&&g+e.length>b){d+=e.substring(0,b-g);d+='<span class="YMoreHidden">';d+=e.substring(b-g);h=1}else d+=e;
if(e)g+=e.length}if(h)d+='<a href="javascript:" onclick="Yunno.UI.Toggle(this, 1); return false;" class="toggle-more"> (less)</a></span><a href="javascript:" onclick="Yunno.UI.Toggle(this); return false;" class="toggle-more"> ... (more)</a>';c.innerHTML=d};Yunno.AddReturnURL=function(a){a=a.href;var b="";if(a.indexOf("?")>=0)b=a.substr(a.indexOf("?")+1);b=new Querystring(b);b.set("ReturnURL",location.pathname+location.search);location.href=a+"?"+b.toString();return true};
Yunno.Global={SiteURL:window.location.protocol+"//"+window.location.host+"/",SecureSiteURL:"https://"+window.location.host+"/"};
Yunno.CheckURL=function(){var a=Yunno.GetHashURL(window.location.hash);if(a){Yunno.Stop=true;window.onerror=function(){};if(window.location.replace)setTimeout(function(){window.location.replace(a)},10);else{document.write(unescape('%3Cmeta http-equiv="refresh" content="0;url='+a+'"%3E'));var b=setInterval(function(){try{clearInterval(b);if(document.body)document.body.style.display="none"}catch(c){}},10)}}};
Yunno.AddHandler=function(a,b,c){if(a.addEventListener)a.addEventListener(b,c,false);else if(a.attachEvent)a.attachEvent("on"+b,c);else a["on"+b]=c};Yunno.OnReady=function(a){var b=a;if(typeof b=="string")b=function(){eval(a)};if(document.addEventListener)document.addEventListener("DOMContentLoaded",b,false);else{if(!Yunno._ieCBL)Yunno._ieCBL=[];Yunno._ieCBL[Yunno._ieCBL.length]=b}};Yunno.EnsureReady=function(a){var b=a;if(typeof b=="string")b=function(){eval(a)};if(Yunno.Ready)return b();else Yunno.OnReady(b)};
Yunno.XD={GetXD:function(){try{return parent.frames.yo_channel.window}catch(a){return null}},GetXDURL:function(){return Yunno.XD.GetXD().XD},GetXDFrame:function(){if(!Yunno.XD.Frame)Yunno.XD.Frame=$("#xdframe");return Yunno.XD.Frame},SyncURL:function(){if(Yunno.IsEmbedded&&Yunno.XD&&Yunno.XD.GetXD()&&Yunno.XD.GetXD().XDLoads&&!Yunno.XD.GetXD().XDLoads[window])Yunno.XD.GetXD().XDLoads[window]=1;else Yunno.UI.SetAjaxURL()},RunCommand:function(a){Yunno.XD.GetXDFrame();var b=Yunno.XD.GetXDFrame().clone().attr("src",
Yunno.XD.GetXDURL()+"?"+a);b.load(function(){setTimeout(function(){b.remove()},0)});b.appendTo($("#xdcomm"));window.console&&console.log(Yunno.XD.GetXDURL()+"?"+a)},StartSizeTimer:function(a){a=a||250;setInterval(Yunno.XD.SetSize,a)},SetSize:function(){if(!Yunno.XD.SetSize.Document){Yunno.XD.SetSize.Document=$("body");Yunno.XD.SetSize.Width=null;Yunno.XD.SetSize.Height=null}new Querystring;var a,b;a=Yunno.XD.SetSize.Document.width();b=Yunno.XD.SetSize.Document.height()+15;if(a!=Yunno.XD.SetSize.Width||
b!=Yunno.XD.SetSize.Height){var c=new Querystring("");Yunno.XD.SetSize.Width=a;Yunno.XD.SetSize.Height=b;c.set("cmd","size");c.set("w",a);c.set("h",b);Yunno.XD.RunCommand(c.toString())}},SetHash:function(a){new Querystring;var b=new Querystring("");b.set("cmd","sethash");b.set("h",a);Yunno.XD.RunCommand(b.toString())},HandleCommand:function(){var a=new Querystring,b=a.get("cmd");if(b){b=b.toLowerCase();switch(b){case "size":b=parent.parent.YunnoLoader.FindFrameElement(parent);if(!b)return;b.style.width=
a.get("w")+"px";b.style.height=a.get("h")+"px";b.style.visibility="visible";break;case "sethash":parent.parent.YunnoLoader.SetHash(a.get("h"));break;default:}}}};$r=Yunno.OnReady;$d=Yunno.EnsureReady;if(!document.addEventListener){document.write('<script type="text/javascript" id="__ie_onload" defer="defer" src="javascript:void(0)"><\/script>');var ieload=document.getElementById("__ie_onload");ieload.onreadystatechange=function(){if(this.readyState=="complete"&&Yunno._ieCBL)for(i in Yunno._ieCBL)Yunno._ieCBL[i]()}}
Yunno.OnReady(function(){Yunno.Ready=true});

