/** * Helius Web Panel Core Scripts Copyright (C) 2011 Helius * Information Technology */ HWP.Core.startup=function(){jQuery(document).ready(function(){jQuery("a.new-window").click(function(evt){return evt.preventDefault(),evt.stopPropagation(),window.open(this.href),!1})})},window.innerShiv=function(){var d,r;return function(h,u){d||(d=document.createElement("div"),r=document.createDocumentFragment());var e=d.cloneNode(!0);e.innerHTML=h.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(u===!1)return e.childNodes;var f=r.cloneNode(!0),i=e.childNodes.length;while(i--)f.appendChild(e.firstChild);return f}}(),jQuery.fn.loadShiv=function(url,params,callback){var off,selector,self,type;return!this.length||typeof url!="string"?this:(off=url.indexOf(" "),off>=0&&(selector=url.slice(off,url.length),url=url.slice(0,off)),type="GET",params&&(jQuery.isFunction(params)?(callback=params,params=null):typeof params=="object"&&(params=jQuery.param(params,jQuery.ajaxSettings.traditional),type="POST")),self=this,jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){var shivved;if(status==="success"||status==="notmodified")shivved=jQuery(innerShiv((selector?"
":"")+res.responseText,!1)),selector&&(shivved=shivved.find(selector)),self.empty().append(shivved);callback&&self.each(callback,[res.responseText,status,res])}}),this)},define("core",[],function(){})