 if(typeof window.jQuery=="undefined"){
window.undefined=window.undefined;
var jQuery=function(a,c){
if(window==this||!this.init){
return new jQuery(a,c);
}
return this.init(a,c);
};
if(typeof $!="undefined"){
jQuery._$=$;
}
var $=jQuery;
jQuery.fn=jQuery.prototype={init:function(a,c){
a=a||document;
if(jQuery.isFunction(a)){
return new jQuery(document)[jQuery.fn.ready?"ready":"load"](a);
}
if(typeof a=="string"){
var m=/^[^<]*(<(.|\s)+>)[^>]*$/.exec(a);
if(m){
a=jQuery.clean([m[1]]);
}else{
return new jQuery(c).find(a);
}
}
return this.setArray(a.constructor==Array&&a||(a.jquery||a.length&&a!=window&&!a.nodeType&&a[0]!=undefined&&a[0].nodeType)&&jQuery.makeArray(a)||[a]);
},jquery:"1.1.3.1",size:function(){
return this.length;
},length:0,get:function(_6){
return _6==undefined?jQuery.makeArray(this):this[_6];
},pushStack:function(a){
var _8=jQuery(a);
_8.prevObject=this;
return _8;
},setArray:function(a){
this.length=0;
[].push.apply(this,a);
return this;
},each:function(fn,_b){
return jQuery.each(this,fn,_b);
},index:function(_c){
var _d=-1;
this.each(function(i){
if(this==_c){
_d=i;
}
});
return _d;
},attr:function(_f,_10,_11){
var obj=_f;
if(_f.constructor==String){
if(_10==undefined){
return this.length&&jQuery[_11||"attr"](this[0],_f)||undefined;
}else{
obj={};
obj[_f]=_10;
}
}
return this.each(function(_13){
for(var _14 in obj){
jQuery.attr(_11?this.style:this,_14,jQuery.prop(this,obj[_14],_11,_13,_14));
}
});
},css:function(key,_16){
return this.attr(key,_16,"curCSS");
},text:function(e){
if(typeof e=="string"){
return this.empty().append(document.createTextNode(e));
}
var t="";
jQuery.each(e||this,function(){
jQuery.each(this.childNodes,function(){
if(this.nodeType!=8){
t+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);
}
});
});
return t;
},wrap:function(){
var a,args=arguments;
return this.each(function(){
if(!a){
a=jQuery.clean(args,this.ownerDocument);
}
var b=a[0].cloneNode(true);
this.parentNode.insertBefore(b,this);
while(b.firstChild){
b=b.firstChild;
}
b.appendChild(this);
});
},append:function(){
return this.domManip(arguments,true,1,function(a){
this.appendChild(a);
});
},prepend:function(){
return this.domManip(arguments,true,-1,function(a){
this.insertBefore(a,this.firstChild);
});
},before:function(){
return this.domManip(arguments,false,1,function(a){
this.parentNode.insertBefore(a,this);
});
},after:function(){
return this.domManip(arguments,false,-1,function(a){
this.parentNode.insertBefore(a,this.nextSibling);
});
},end:function(){
return this.prevObject||jQuery([]);
},find:function(t){
var _20=jQuery.map(this,function(a){
return jQuery.find(t,a);
});
return this.pushStack(/[^+>] [^+>]/.test(t)||t.indexOf("..")>-1?jQuery.unique(_20):_20);
},clone:function(_22){
var _23=this.add(this.find("*"));
_23.each(function(){
this._$events={};
for(var _24 in this.$events){
this._$events[_24]=jQuery.extend({},this.$events[_24]);
}
}).unbind();
var r=this.pushStack(jQuery.map(this,function(a){
return a.cloneNode(_22!=undefined?_22:true);
}));
_23.each(function(){
var _27=this._$events;
for(var _28 in _27){
for(var _29 in _27[_28]){
jQuery.event.add(this,_28,_27[_28][_29],_27[_28][_29].data);
}
}
this._$events=null;
});
return r;
},filter:function(t){
return this.pushStack(jQuery.isFunction(t)&&jQuery.grep(this,function(el,_2c){
return t.apply(el,[_2c]);
})||jQuery.multiFilter(t,this));
},not:function(t){
return this.pushStack(t.constructor==String&&jQuery.multiFilter(t,this,true)||jQuery.grep(this,function(a){
return (t.constructor==Array||t.jquery)?jQuery.inArray(a,t)<0:a!=t;
}));
},add:function(t){
return this.pushStack(jQuery.merge(this.get(),t.constructor==String?jQuery(t).get():t.length!=undefined&&(!t.nodeName||t.nodeName=="FORM")?t:[t]));
},is:function(_30){
return _30?jQuery.multiFilter(_30,this).length>0:false;
},val:function(val){
return val==undefined?(this.length?this[0].value:null):this.attr("value",val);
},html:function(val){
return val==undefined?(this.length?this[0].innerHTML:null):this.empty().append(val);
},domManip:function(_33,_34,dir,fn){
var _37=this.length>1,a;
return this.each(function(){
if(!a){
a=jQuery.clean(_33,this.ownerDocument);
if(dir<0){
a.reverse();
}
}
var obj=this;
if(_34&&jQuery.nodeName(this,"table")&&jQuery.nodeName(a[0],"tr")){
obj=this.getElementsByTagName("tbody")[0]||this.appendChild(document.createElement("tbody"));
}
jQuery.each(a,function(){
fn.apply(obj,[_37?this.cloneNode(true):this]);
});
});
}};
jQuery.extend=jQuery.fn.extend=function(){
var _39=arguments[0],a=1;
if(arguments.length==1){
_39=this;
a=0;
}
var _3a;
while((_3a=arguments[a++])!=null){
for(var i in _3a){
_39[i]=_3a[i];
}
}
return _39;
};
jQuery.extend({noConflict:function(){
if(jQuery._$){
$=jQuery._$;
}
return jQuery;
},isFunction:function(fn){
return !!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/function/i.test(fn+"");
},isXMLDoc:function(_3d){
return _3d.tagName&&_3d.ownerDocument&&!_3d.ownerDocument.body;
},nodeName:function(_3e,_3f){
return _3e.nodeName&&_3e.nodeName.toUpperCase()==_3f.toUpperCase();
},each:function(obj,fn,_42){
if(obj.length==undefined){
for(var i in obj){
fn.apply(obj[i],_42||[i,obj[i]]);
}
}else{
for(var i=0,ol=obj.length;i<ol;i++){
if(fn.apply(obj[i],_42||[i,obj[i]])===false){
break;
}
}
}
return obj;
},prop:function(_45,_46,_47,_48,_49){
if(jQuery.isFunction(_46)){
_46=_46.call(_45,[_48]);
}
var _4a=/z-?index|font-?weight|opacity|zoom|line-?height/i;
return _46&&_46.constructor==Number&&_47=="curCSS"&&!_4a.test(_49)?_46+"px":_46;
},className:{add:function(_4b,c){
jQuery.each(c.split(/\s+/),function(i,cur){
if(!jQuery.className.has(_4b.className,cur)){
_4b.className+=(_4b.className?" ":"")+cur;
}
});
},remove:function(_4f,c){
_4f.className=c!=undefined?jQuery.grep(_4f.className.split(/\s+/),function(cur){
return !jQuery.className.has(c,cur);
}).join(" "):"";
},has:function(t,c){
return jQuery.inArray(c,(t.className||t).toString().split(/\s+/))>-1;
}},swap:function(e,o,f){
for(var i in o){
e.style["old"+i]=e.style[i];
e.style[i]=o[i];
}
f.apply(e,[]);
for(var i in o){
e.style[i]=e.style["old"+i];
}
},css:function(e,p){
if(p=="height"||p=="width"){
var old={},oHeight,oWidth,d=["Top","Bottom","Right","Left"];
jQuery.each(d,function(){
old["padding"+this]=0;
old["border"+this+"Width"]=0;
});
jQuery.swap(e,old,function(){
if(jQuery(e).is(":visible")){
oHeight=e.offsetHeight;
oWidth=e.offsetWidth;
}else{
e=jQuery(e.cloneNode(true)).find(":radio").removeAttr("checked").end().css({visibility:"hidden",position:"absolute",display:"block",right:"0",left:"0"}).appendTo(e.parentNode)[0];
var _5c=jQuery.css(e.parentNode,"position")||"static";
if(_5c=="static"){
e.parentNode.style.position="relative";
}
oHeight=e.clientHeight;
oWidth=e.clientWidth;
if(_5c=="static"){
e.parentNode.style.position="static";
}
e.parentNode.removeChild(e);
}
});
return p=="height"?oHeight:oWidth;
}
return jQuery.curCSS(e,p);
},curCSS:function(_5d,_5e,_5f){
var ret;
if(_5e=="opacity"&&jQuery.browser.msie){
ret=jQuery.attr(_5d.style,"opacity");
return ret==""?"1":ret;
}
if(_5e.match(/float/i)){
_5e=jQuery.styleFloat;
}
if(!_5f&&_5d.style[_5e]){
ret=_5d.style[_5e];
}else{
if(document.defaultView&&document.defaultView.getComputedStyle){
if(_5e.match(/float/i)){
_5e="float";
}
_5e=_5e.replace(/([A-Z])/g,"-$1").toLowerCase();
var cur=document.defaultView.getComputedStyle(_5d,null);
if(cur){
ret=cur.getPropertyValue(_5e);
}else{
if(_5e=="display"){
ret="none";
}else{
jQuery.swap(_5d,{display:"block"},function(){
var c=document.defaultView.getComputedStyle(this,"");
ret=c&&c.getPropertyValue(_5e)||"";
});
}
}
}else{
if(_5d.currentStyle){
var _63=_5e.replace(/\-(\w)/g,function(m,c){
return c.toUpperCase();
});
ret=_5d.currentStyle[_5e]||_5d.currentStyle[_63];
}
}
}
return ret;
},clean:function(a,doc){
var r=[];
doc=doc||document;
jQuery.each(a,function(i,arg){
if(!arg){
return;
}
if(arg.constructor==Number){
arg=arg.toString();
}
if(typeof arg=="string"){
var s=jQuery.trim(arg).toLowerCase(),div=doc.createElement("div"),tb=[];
var _6c=!s.indexOf("<opt")&&[1,"<select>","</select>"]||!s.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||(!s.indexOf("<thead")||!s.indexOf("<tbody")||!s.indexOf("<tfoot")||!s.indexOf("<colg"))&&[1,"<table>","</table>"]||!s.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!s.indexOf("<td")||!s.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!s.indexOf("<col")&&[2,"<table><colgroup>","</colgroup></table>"]||[0,"",""];
div.innerHTML=_6c[1]+arg+_6c[2];
while(_6c[0]--){
div=div.firstChild;
}
if(jQuery.browser.msie){
if(!s.indexOf("<table")&&s.indexOf("<tbody")<0){
tb=div.firstChild&&div.firstChild.childNodes;
}else{
if(_6c[1]=="<table>"&&s.indexOf("<tbody")<0){
tb=div.childNodes;
}
}
for(var n=tb.length-1;n>=0;--n){
if(jQuery.nodeName(tb[n],"tbody")&&!tb[n].childNodes.length){
tb[n].parentNode.removeChild(tb[n]);
}
}
}
arg=jQuery.makeArray(div.childNodes);
}
if(0===arg.length&&(!jQuery.nodeName(arg,"form")&&!jQuery.nodeName(arg,"select"))){
return;
}
if(arg[0]==undefined||jQuery.nodeName(arg,"form")||arg.options){
r.push(arg);
}else{
r=jQuery.merge(r,arg);
}
});
return r;
},attr:function(_6e,_6f,_70){
var fix=jQuery.isXMLDoc(_6e)?{}:jQuery.props;
if(fix[_6f]){
if(_70!=undefined){
_6e[fix[_6f]]=_70;
}
return _6e[fix[_6f]];
}else{
if(_70==undefined&&jQuery.browser.msie&&jQuery.nodeName(_6e,"form")&&(_6f=="action"||_6f=="method")){
return _6e.getAttributeNode(_6f).nodeValue;
}else{
if(_6e.tagName){
if(_70!=undefined){
_6e.setAttribute(_6f,_70);
}
if(jQuery.browser.msie&&/href|src/.test(_6f)&&!jQuery.isXMLDoc(_6e)){
return _6e.getAttribute(_6f,2);
}
return _6e.getAttribute(_6f);
}else{
if(_6f=="opacity"&&jQuery.browser.msie){
if(_70!=undefined){
_6e.zoom=1;
_6e.filter=(_6e.filter||"").replace(/alpha\([^)]*\)/,"")+(parseFloat(_70).toString()=="NaN"?"":"alpha(opacity="+_70*100+")");
}
return _6e.filter?(parseFloat(_6e.filter.match(/opacity=([^)]*)/)[1])/100).toString():"";
}
_6f=_6f.replace(/-([a-z])/ig,function(z,b){
return b.toUpperCase();
});
if(_70!=undefined){
_6e[_6f]=_70;
}
return _6e[_6f];
}
}
}
},trim:function(t){
return t.replace(/^\s+|\s+$/g,"");
},makeArray:function(a){
var r=[];
if(typeof a!="array"){
for(var i=0,al=a.length;i<al;i++){
r.push(a[i]);
}
}else{
r=a.slice(0);
}
return r;
},inArray:function(b,a){
for(var i=0,al=a.length;i<al;i++){
if(a[i]==b){
return i;
}
}
return -1;
},merge:function(_7b,_7c){
for(var i=0;_7c[i];i++){
_7b.push(_7c[i]);
}
return _7b;
},unique:function(_7e){
var r=[],num=jQuery.mergeNum++;
for(var i=0,fl=_7e.length;i<fl;i++){
if(num!=_7e[i].mergeNum){
_7e[i].mergeNum=num;
r.push(_7e[i]);
}
}
return r;
},mergeNum:0,grep:function(_81,fn,inv){
if(typeof fn=="string"){
fn=new Function("a","i","return "+fn);
}
var _84=[];
for(var i=0,el=_81.length;i<el;i++){
if(!inv&&fn(_81[i],i)||inv&&!fn(_81[i],i)){
_84.push(_81[i]);
}
}
return _84;
},map:function(_86,fn){
if(typeof fn=="string"){
fn=new Function("a","return "+fn);
}
var _88=[];
for(var i=0,el=_86.length;i<el;i++){
var val=fn(_86[i],i);
if(val!==null&&val!=undefined){
if(val.constructor!=Array){
val=[val];
}
_88=_88.concat(val);
}
}
return _88;
}});
new function(){
var b=navigator.userAgent.toLowerCase();
jQuery.browser={version:(b.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(b),opera:/opera/.test(b),msie:/msie/.test(b)&&!/opera/.test(b),mozilla:/mozilla/.test(b)&&!/(compatible|webkit)/.test(b)};
jQuery.boxModel=!jQuery.browser.msie||document.compatMode=="CSS1Compat";
jQuery.styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat",jQuery.props={"for":"htmlFor","class":"className","float":jQuery.styleFloat,cssFloat:jQuery.styleFloat,styleFloat:jQuery.styleFloat,innerHTML:"innerHTML",className:"className",value:"value",disabled:"disabled",checked:"checked",readonly:"readOnly",selected:"selected",maxlength:"maxLength"};
};
jQuery.each({parent:"a.parentNode",parents:"jQuery.parents(a)",next:"jQuery.nth(a,2,'nextSibling')",prev:"jQuery.nth(a,2,'previousSibling')",siblings:"jQuery.sibling(a.parentNode.firstChild,a)",children:"jQuery.sibling(a.firstChild)"},function(i,n){
jQuery.fn[i]=function(a){
var ret=jQuery.map(this,n);
if(a&&typeof a=="string"){
ret=jQuery.multiFilter(a,ret);
}
return this.pushStack(ret);
};
});
jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after"},function(i,n){
jQuery.fn[i]=function(){
var a=arguments;
return this.each(function(){
for(var j=0,al=a.length;j<al;j++){
jQuery(a[j])[n](this);
}
});
};
});
jQuery.each({removeAttr:function(key){
jQuery.attr(this,key,"");
this.removeAttribute(key);
},addClass:function(c){
jQuery.className.add(this,c);
},removeClass:function(c){
jQuery.className.remove(this,c);
},toggleClass:function(c){
jQuery.className[jQuery.className.has(this,c)?"remove":"add"](this,c);
},remove:function(a){
if(!a||jQuery.filter(a,[this]).r.length){
this.parentNode.removeChild(this);
}
},empty:function(){
while(this.firstChild){
this.removeChild(this.firstChild);
}
}},function(i,n){
jQuery.fn[i]=function(){
return this.each(n,arguments);
};
});
jQuery.each(["eq","lt","gt","contains"],function(i,n){
jQuery.fn[n]=function(num,fn){
return this.filter(":"+n+"("+num+")",fn);
};
});
jQuery.each(["height","width"],function(i,n){
jQuery.fn[n]=function(h){
return h==undefined?(this.length?jQuery.css(this[0],n):null):this.css(n,h.constructor==String?h:h+"px");
};
});
jQuery.extend({expr:{"":"m[2]=='*'||jQuery.nodeName(a,m[2])","#":"a.getAttribute('id')==m[2]",":":{lt:"i<m[3]-0",gt:"i>m[3]-0",nth:"m[3]-0==i",eq:"m[3]-0==i",first:"i==0",last:"i==r.length-1",even:"i%2==0",odd:"i%2","first-child":"a.parentNode.getElementsByTagName('*')[0]==a","last-child":"jQuery.nth(a.parentNode.lastChild,1,'previousSibling')==a","only-child":"!jQuery.nth(a.parentNode.lastChild,2,'previousSibling')",parent:"a.firstChild",empty:"!a.firstChild",contains:"(a.textContent||a.innerText||'').indexOf(m[3])>=0",visible:"\"hidden\"!=a.type&&jQuery.css(a,\"display\")!=\"none\"&&jQuery.css(a,\"visibility\")!=\"hidden\"",hidden:"\"hidden\"==a.type||jQuery.css(a,\"display\")==\"none\"||jQuery.css(a,\"visibility\")==\"hidden\"",enabled:"!a.disabled",disabled:"a.disabled",checked:"a.checked",selected:"a.selected||jQuery.attr(a,'selected')",text:"'text'==a.type",radio:"'radio'==a.type",checkbox:"'checkbox'==a.type",file:"'file'==a.type",password:"'password'==a.type",submit:"'submit'==a.type",image:"'image'==a.type",reset:"'reset'==a.type",button:"\"button\"==a.type||jQuery.nodeName(a,\"button\")",input:"/input|select|textarea|button/i.test(a.nodeName)"},"[":"jQuery.find(m[2],a).length"},parse:[/^\[ *(@)([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(\[)\s*(.*?(\[.*?\])?[^[]*?)\s*\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+(jQuery.chars=jQuery.browser.safari&&jQuery.browser.version<"3.0.0"?"\\w":"(?:[\\w\u0128-\uffff*_-]|\\\\.)")+"+)")],multiFilter:function(_a2,_a3,not){
var old,cur=[];
while(_a2&&_a2!=old){
old=_a2;
var f=jQuery.filter(_a2,_a3,not);
_a2=f.t.replace(/^\s*,\s*/,"");
cur=not?_a3=f.r:jQuery.merge(cur,f.r);
}
return cur;
},find:function(t,_a8){
if(typeof t!="string"){
return [t];
}
if(_a8&&!_a8.nodeType){
_a8=null;
}
_a8=_a8||document;
if(!t.indexOf("//")){
_a8=_a8.documentElement;
t=t.substr(2,t.length);
}else{
if(!t.indexOf("/")&&!_a8.ownerDocument){
_a8=_a8.documentElement;
t=t.substr(1,t.length);
if(t.indexOf("/")>=1){
t=t.substr(t.indexOf("/"),t.length);
}
}
}
var ret=[_a8],done=[],last;
while(t&&last!=t){
var r=[];
last=t;
t=jQuery.trim(t).replace(/^\/\//,"");
var _ab=false;
var re=new RegExp("^[/>]\\s*("+jQuery.chars+"+)");
var m=re.exec(t);
if(m){
var _ae=m[1].toUpperCase();
for(var i=0;ret[i];i++){
for(var c=ret[i].firstChild;c;c=c.nextSibling){
if(c.nodeType==1&&(_ae=="*"||c.nodeName.toUpperCase()==_ae.toUpperCase())){
r.push(c);
}
}
}
ret=r;
t=t.replace(re,"");
if(t.indexOf(" ")==0){
continue;
}
_ab=true;
}else{
re=/^((\/?\.\.)|([>\/+~]))\s*([a-z]*)/i;
if((m=re.exec(t))!=null){
r=[];
var _b1=m[4],mergeNum=jQuery.mergeNum++;
m=m[1];
for(var j=0,rl=ret.length;j<rl;j++){
if(m.indexOf("..")<0){
var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;
for(;n;n=n.nextSibling){
if(n.nodeType==1){
if(m=="~"&&n.mergeNum==mergeNum){
break;
}
if(!_b1||n.nodeName.toUpperCase()==_b1.toUpperCase()){
if(m=="~"){
n.mergeNum=mergeNum;
}
r.push(n);
}
if(m=="+"){
break;
}
}
}
}else{
r.push(ret[j].parentNode);
}
}
ret=r;
t=jQuery.trim(t.replace(re,""));
_ab=true;
}
}
if(t&&!_ab){
if(!t.indexOf(",")){
if(_a8==ret[0]){
ret.shift();
}
done=jQuery.merge(done,ret);
r=ret=[_a8];
t=" "+t.substr(1,t.length);
}else{
var re2=new RegExp("^("+jQuery.chars+"+)(#)("+jQuery.chars+"+)");
var m=re2.exec(t);
if(m){
m=[0,m[2],m[3],m[1]];
}else{
re2=new RegExp("^([#.]?)("+jQuery.chars+"*)");
m=re2.exec(t);
}
m[2]=m[2].replace(/\\/g,"");
var _b6=ret[ret.length-1];
if(m[1]=="#"&&_b6&&_b6.getElementById){
var oid=_b6.getElementById(m[2]);
if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2]){
oid=jQuery("[@id=\""+m[2]+"\"]",_b6)[0];
}
ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[];
}else{
for(var i=0;ret[i];i++){
var tag=m[1]!=""||m[0]==""?"*":m[2];
if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object"){
tag="param";
}
r=jQuery.merge(r,ret[i].getElementsByTagName(tag));
}
if(m[1]=="."){
r=jQuery.classFilter(r,m[2]);
}
if(m[1]=="#"){
var tmp=[];
for(var i=0;r[i];i++){
if(r[i].getAttribute("id")==m[2]){
tmp=[r[i]];
break;
}
}
r=tmp;
}
ret=r;
}
t=t.replace(re2,"");
}
}
if(t){
var val=jQuery.filter(t,r);
ret=r=val.r;
t=jQuery.trim(val.t);
}
}
if(t){
ret=[];
}
if(ret&&_a8==ret[0]){
ret.shift();
}
done=jQuery.merge(done,ret);
return done;
},classFilter:function(r,m,not){
m=" "+m+" ";
var tmp=[];
for(var i=0;r[i];i++){
var _c2=(" "+r[i].className+" ").indexOf(m)>=0;
if(!not&&_c2||not&&!_c2){
tmp.push(r[i]);
}
}
return tmp;
},filter:function(t,r,not){
var _c6;
while(t&&t!=_c6){
_c6=t;
var p=jQuery.parse,m;
for(var i=0;p[i];i++){
m=p[i].exec(t);
if(m){
t=t.substring(m[0].length);
m[2]=m[2].replace(/\\/g,"");
break;
}
}
if(!m){
break;
}
if(m[1]==":"&&m[2]=="not"){
r=jQuery.filter(m[3],r,true).r;
}else{
if(m[1]=="."){
r=jQuery.classFilter(r,m[2],not);
}else{
if(m[1]=="@"){
var tmp=[],type=m[3];
for(var i=0,rl=r.length;i<rl;i++){
var a=r[i],z=a[jQuery.props[m[2]]||m[2]];
if(z==null||/href|src/.test(m[2])){
z=jQuery.attr(a,m[2])||"";
}
if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not){
tmp.push(a);
}
}
r=tmp;
}else{
if(m[1]==":"&&m[2]=="nth-child"){
var num=jQuery.mergeNum++,tmp=[],test=/(\d*)n\+?(\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"n+"+m[3]||m[3]),first=(test[1]||1)-0,_c6=test[2]-0;
for(var i=0,rl=r.length;i<rl;i++){
var _ce=r[i],parentNode=_ce.parentNode;
if(num!=parentNode.mergeNum){
var c=1;
for(var n=parentNode.firstChild;n;n=n.nextSibling){
if(n.nodeType==1){
n.nodeIndex=c++;
}
}
parentNode.mergeNum=num;
}
var add=false;
if(first==1){
if(_c6==0||_ce.nodeIndex==_c6){
add=true;
}
}else{
if((_ce.nodeIndex+_c6)%first==0){
add=true;
}
}
if(add^not){
tmp.push(_ce);
}
}
r=tmp;
}else{
var f=jQuery.expr[m[1]];
if(typeof f!="string"){
f=jQuery.expr[m[1]][m[2]];
}
eval("f = function(a,i){return "+f+"}");
r=jQuery.grep(r,f,not);
}
}
}
}
}
return {r:r,t:t};
},parents:function(_d3){
var _d4=[];
var cur=_d3.parentNode;
while(cur&&cur!=document){
_d4.push(cur);
cur=cur.parentNode;
}
return _d4;
},nth:function(cur,_d7,dir,_d9){
_d7=_d7||1;
var num=0;
for(;cur;cur=cur[dir]){
if(cur.nodeType==1&&++num==_d7){
break;
}
}
return cur;
},sibling:function(n,_dc){
var r=[];
for(;n;n=n.nextSibling){
if(n.nodeType==1&&(!_dc||n!=_dc)){
r.push(n);
}
}
return r;
}});
jQuery.event={add:function(_de,_df,_e0,_e1){
if(jQuery.browser.msie&&_de.setInterval!=undefined){
_de=window;
}
if(!_e0.guid){
_e0.guid=this.guid++;
}
if(_e1!=undefined){
var fn=_e0;
_e0=function(){
return fn.apply(this,arguments);
};
_e0.data=_e1;
_e0.guid=fn.guid;
}
if(!_de.$events){
_de.$events={};
}
if(!_de.$handle){
_de.$handle=function(){
var val;
if(typeof jQuery=="undefined"||jQuery.event.triggered){
return val;
}
val=jQuery.event.handle.apply(_de,arguments);
return val;
};
}
var _e4=_de.$events[_df];
if(!_e4){
_e4=_de.$events[_df]={};
if(_de.addEventListener){
_de.addEventListener(_df,_de.$handle,false);
}else{
_de.attachEvent("on"+_df,_de.$handle);
}
}
_e4[_e0.guid]=_e0;
if(!this.global[_df]){
this.global[_df]=[];
}
if(jQuery.inArray(_de,this.global[_df])==-1){
this.global[_df].push(_de);
}
},guid:1,global:{},remove:function(_e5,_e6,_e7){
var _e8=_e5.$events,ret,index;
if(_e8){
if(_e6&&_e6.type){
_e7=_e6.handler;
_e6=_e6.type;
}
if(!_e6){
for(_e6 in _e8){
this.remove(_e5,_e6);
}
}else{
if(_e8[_e6]){
if(_e7){
delete _e8[_e6][_e7.guid];
}else{
for(_e7 in _e5.$events[_e6]){
delete _e8[_e6][_e7];
}
}
for(ret in _e8[_e6]){
break;
}
if(!ret){
if(_e5.removeEventListener){
_e5.removeEventListener(_e6,_e5.$handle,false);
}else{
_e5.detachEvent("on"+_e6,_e5.$handle);
}
ret=null;
delete _e8[_e6];
while(this.global[_e6]&&((index=jQuery.inArray(_e5,this.global[_e6]))>=0)){
delete this.global[_e6][index];
}
}
}
}
for(ret in _e8){
break;
}
if(!ret){
_e5.$handle=_e5.$events=null;
}
}
},trigger:function(_e9,_ea,_eb){
_ea=jQuery.makeArray(_ea||[]);
if(!_eb){
jQuery.each(this.global[_e9]||[],function(){
jQuery.event.trigger(_e9,_ea,this);
});
}else{
var val,ret,fn=jQuery.isFunction(_eb[_e9]||null);
_ea.unshift(this.fix({type:_e9,target:_eb}));
if(jQuery.isFunction(_eb.$handle)&&(val=_eb.$handle.apply(_eb,_ea))!==false){
this.triggered=true;
}
if(fn&&val!==false&&!jQuery.nodeName(_eb,"a")){
_eb[_e9]();
}
this.triggered=false;
}
},handle:function(_ed){
var val;
_ed=jQuery.event.fix(_ed||window.event||{});
var c=this.$events&&this.$events[_ed.type],args=[].slice.call(arguments,1);
args.unshift(_ed);
for(var j in c){
args[0].handler=c[j];
args[0].data=c[j].data;
if(c[j].apply(this,args)===false){
_ed.preventDefault();
_ed.stopPropagation();
val=false;
}
}
if(jQuery.browser.msie){
_ed.target=_ed.preventDefault=_ed.stopPropagation=_ed.handler=_ed.data=null;
}
return val;
},fix:function(_f1){
var _f2=_f1;
_f1=jQuery.extend({},_f2);
_f1.preventDefault=function(){
if(_f2.preventDefault){
return _f2.preventDefault();
}
_f2.returnValue=false;
};
_f1.stopPropagation=function(){
if(_f2.stopPropagation){
return _f2.stopPropagation();
}
_f2.cancelBubble=true;
};
if(!_f1.target&&_f1.srcElement){
_f1.target=_f1.srcElement;
}
if(jQuery.browser.safari&&_f1.target.nodeType==3){
_f1.target=_f2.target.parentNode;
}
if(!_f1.relatedTarget&&_f1.fromElement){
_f1.relatedTarget=_f1.fromElement==_f1.target?_f1.toElement:_f1.fromElement;
}
if(_f1.pageX==null&&_f1.clientX!=null){
var e=document.documentElement,b=document.body;
_f1.pageX=_f1.clientX+(e&&e.scrollLeft||b.scrollLeft);
_f1.pageY=_f1.clientY+(e&&e.scrollTop||b.scrollTop);
}
if(!_f1.which&&(_f1.charCode||_f1.keyCode)){
_f1.which=_f1.charCode||_f1.keyCode;
}
if(!_f1.metaKey&&_f1.ctrlKey){
_f1.metaKey=_f1.ctrlKey;
}
if(!_f1.which&&_f1.button){
_f1.which=(_f1.button&1?1:(_f1.button&2?3:(_f1.button&4?2:0)));
}
return _f1;
}};
jQuery.fn.extend({bind:function(_f4,_f5,fn){
return _f4=="unload"?this.one(_f4,_f5,fn):this.each(function(){
jQuery.event.add(this,_f4,fn||_f5,fn&&_f5);
});
},one:function(_f7,_f8,fn){
return this.each(function(){
jQuery.event.add(this,_f7,function(_fa){
jQuery(this).unbind(_fa);
return (fn||_f8).apply(this,arguments);
},fn&&_f8);
});
},unbind:function(_fb,fn){
return this.each(function(){
jQuery.event.remove(this,_fb,fn);
});
},trigger:function(_fd,_fe){
return this.each(function(){
jQuery.event.trigger(_fd,_fe,this);
});
},toggle:function(){
var a=arguments;
return this.click(function(e){
this.lastToggle=0==this.lastToggle?1:0;
e.preventDefault();
return a[this.lastToggle].apply(this,[e])||false;
});
},hover:function(f,g){
function handleHover(e){
var p=e.relatedTarget;
while(p&&p!=this){
try{
p=p.parentNode;
}
catch(e){
p=this;
}
}
if(p==this){
return false;
}
return (e.type=="mouseover"?f:g).apply(this,[e]);
}
return this.mouseover(handleHover).mouseout(handleHover);
},ready:function(f){
if(jQuery.isReady){
f.apply(document,[jQuery]);
}else{
jQuery.readyList.push(function(){
return f.apply(this,[jQuery]);
});
}
return this;
}});
jQuery.extend({isReady:false,readyList:[],ready:function(){
if(!jQuery.isReady){
jQuery.isReady=true;
if(jQuery.readyList){
jQuery.each(jQuery.readyList,function(){
this.apply(document);
});
jQuery.readyList=null;
}
if(jQuery.browser.mozilla||jQuery.browser.opera){
document.removeEventListener("DOMContentLoaded",jQuery.ready,false);
}
if(!window.frames.length){
jQuery(window).load(function(){
jQuery("#__ie_init").remove();
});
}
}
}});
new function(){
jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,keypress,keyup,error").split(","),function(i,o){
jQuery.fn[o]=function(f){
return f?this.bind(o,f):this.trigger(o);
};
});
if(jQuery.browser.mozilla||jQuery.browser.opera){
document.addEventListener("DOMContentLoaded",jQuery.ready,false);
}else{
if(jQuery.browser.msie){
document.write("<scr"+"ipt id=__ie_init defer=true "+"src=//:></script>");
var _109=document.getElementById("__ie_init");
if(_109){
_109.onreadystatechange=function(){
if(this.readyState!="complete"){
return;
}
jQuery.ready();
};
}
_109=null;
}else{
if(jQuery.browser.safari){
jQuery.safariTimer=setInterval(function(){
if(document.readyState=="loaded"||document.readyState=="complete"){
clearInterval(jQuery.safariTimer);
jQuery.safariTimer=null;
jQuery.ready();
}
},10);
}
}
}
jQuery.event.add(window,"load",jQuery.ready);
};
if(jQuery.browser.msie){
jQuery(window).one("unload",function(){
var _10a=jQuery.event.global;
for(var type in _10a){
var els=_10a[type],i=els.length;
if(i&&type!="unload"){
do{
els[i-1]&&jQuery.event.remove(els[i-1],type);
}while(--i);
}
}
});
}
jQuery.fn.extend({loadIfModified:function(url,_10e,_10f){
this.load(url,_10e,_10f,1);
},load:function(url,_111,_112,_113){
if(jQuery.isFunction(url)){
return this.bind("load",url);
}
_112=_112||function(){
};
var type="GET";
if(_111){
if(jQuery.isFunction(_111)){
_112=_111;
_111=null;
}else{
_111=jQuery.param(_111);
type="POST";
}
}
var self=this;
jQuery.ajax({url:url,type:type,data:_111,ifModified:_113,complete:function(res,_117){
if(_117=="success"||!_113&&_117=="notmodified"){
self.attr("innerHTML",res.responseText).evalScripts().each(_112,[res.responseText,_117,res]);
}else{
_112.apply(self,[res.responseText,_117,res]);
}
}});
return this;
},serialize:function(){
return jQuery.param(this);
},evalScripts:function(){
return this.find("script").each(function(){
if(this.src){
jQuery.getScript(this.src);
}else{
jQuery.globalEval(this.text||this.textContent||this.innerHTML||"");
}
}).end();
}});
jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){
jQuery.fn[o]=function(f){
return this.bind(o,f);
};
});
jQuery.extend({get:function(url,data,_11d,type,_11f){
if(jQuery.isFunction(data)){
_11d=data;
data=null;
}
return jQuery.ajax({type:"GET",url:url,data:data,success:_11d,dataType:type,ifModified:_11f});
},getIfModified:function(url,data,_122,type){
return jQuery.get(url,data,_122,type,1);
},getScript:function(url,_125){
return jQuery.get(url,null,_125,"script");
},getJSON:function(url,data,_128){
return jQuery.get(url,data,_128,"json");
},post:function(url,data,_12b,type){
if(jQuery.isFunction(data)){
_12b=data;
data={};
}
return jQuery.ajax({type:"POST",url:url,data:data,success:_12b,dataType:type});
},ajaxTimeout:function(_12d){
jQuery.ajaxSettings.timeout=_12d;
},ajaxSetup:function(_12e){
jQuery.extend(jQuery.ajaxSettings,_12e);
},ajaxSettings:{global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null},lastModified:{},ajax:function(s){
s=jQuery.extend({},jQuery.ajaxSettings,s);
if(s.data){
if(s.processData&&typeof s.data!="string"){
s.data=jQuery.param(s.data);
}
if(s.type.toLowerCase()=="get"){
s.url+=((s.url.indexOf("?")>-1)?"&":"?")+s.data;
s.data=null;
}
}
if(s.global&&!jQuery.active++){
jQuery.event.trigger("ajaxStart");
}
var _130=false;
var xml=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();
xml.open(s.type,s.url,s.async);
if(s.data){
xml.setRequestHeader("Content-Type",s.contentType);
}
if(s.ifModified){
xml.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");
}
xml.setRequestHeader("X-Requested-With","XMLHttpRequest");
if(s.beforeSend){
s.beforeSend(xml);
}
if(s.global){
jQuery.event.trigger("ajaxSend",[xml,s]);
}
var _132=function(_133){
if(xml&&(xml.readyState==4||_133=="timeout")){
_130=true;
if(ival){
clearInterval(ival);
ival=null;
}
var _134;
try{
_134=jQuery.httpSuccess(xml)&&_133!="timeout"?s.ifModified&&jQuery.httpNotModified(xml,s.url)?"notmodified":"success":"error";
if(_134!="error"){
var _135;
try{
_135=xml.getResponseHeader("Last-Modified");
}
catch(e){
}
if(s.ifModified&&_135){
jQuery.lastModified[s.url]=_135;
}
var data=jQuery.httpData(xml,s.dataType);
if(s.success){
s.success(data,_134);
}
if(s.global){
jQuery.event.trigger("ajaxSuccess",[xml,s]);
}
}else{
jQuery.handleError(s,xml,_134);
}
}
catch(e){
_134="error";
jQuery.handleError(s,xml,_134,e);
}
if(s.global){
jQuery.event.trigger("ajaxComplete",[xml,s]);
}
if(s.global&&!--jQuery.active){
jQuery.event.trigger("ajaxStop");
}
if(s.complete){
s.complete(xml,_134);
}
if(s.async){
xml=null;
}
}
};
var ival=setInterval(_132,13);
if(s.timeout>0){
setTimeout(function(){
if(xml){
xml.abort();
if(!_130){
_132("timeout");
}
}
},s.timeout);
}
try{
xml.send(s.data);
}
catch(e){
jQuery.handleError(s,xml,null,e);
}
if(!s.async){
_132();
}
return xml;
},handleError:function(s,xml,_13a,e){
if(s.error){
s.error(xml,_13a,e);
}
if(s.global){
jQuery.event.trigger("ajaxError",[xml,s,e]);
}
},active:0,httpSuccess:function(r){
try{
return !r.status&&location.protocol=="file:"||(r.status>=200&&r.status<300)||r.status==304||jQuery.browser.safari&&r.status==undefined;
}
catch(e){
}
return false;
},httpNotModified:function(xml,url){
try{
var _13f=xml.getResponseHeader("Last-Modified");
return xml.status==304||_13f==jQuery.lastModified[url]||jQuery.browser.safari&&xml.status==undefined;
}
catch(e){
}
return false;
},httpData:function(r,type){
var ct=r.getResponseHeader("content-type");
var data=!type&&ct&&ct.indexOf("xml")>=0;
data=type=="xml"||data?r.responseXML:r.responseText;
if(type=="script"){
jQuery.globalEval(data);
}
if(type=="json"){
data=eval("("+data+")");
}
if(type=="html"){
jQuery("<div>").html(data).evalScripts();
}
return data;
},param:function(a){
var s=[];
if(a.constructor==Array||a.jquery){
jQuery.each(a,function(){
s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value));
});
}else{
for(var j in a){
if(a[j]&&a[j].constructor==Array){
jQuery.each(a[j],function(){
s.push(encodeURIComponent(j)+"="+encodeURIComponent(this));
});
}else{
s.push(encodeURIComponent(j)+"="+encodeURIComponent(a[j]));
}
}
}
return s.join("&");
},globalEval:function(data){
if(window.execScript){
window.execScript(data);
}else{
if(jQuery.browser.safari){
window.setTimeout(data,0);
}else{
eval.call(window,data);
}
}
}});
jQuery.fn.extend({show:function(_148,_149){
return _148?this.animate({height:"show",width:"show",opacity:"show"},_148,_149):this.filter(":hidden").each(function(){
this.style.display=this.oldblock?this.oldblock:"";
if(jQuery.css(this,"display")=="none"){
this.style.display="block";
}
}).end();
},hide:function(_14a,_14b){
return _14a?this.animate({height:"hide",width:"hide",opacity:"hide"},_14a,_14b):this.filter(":visible").each(function(){
this.oldblock=this.oldblock||jQuery.css(this,"display");
if(this.oldblock=="none"){
this.oldblock="block";
}
this.style.display="none";
}).end();
},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){
return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle(fn,fn2):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){
jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();
});
},slideDown:function(_14e,_14f){
return this.animate({height:"show"},_14e,_14f);
},slideUp:function(_150,_151){
return this.animate({height:"hide"},_150,_151);
},slideToggle:function(_152,_153){
return this.animate({height:"toggle"},_152,_153);
},fadeIn:function(_154,_155){
return this.animate({opacity:"show"},_154,_155);
},fadeOut:function(_156,_157){
return this.animate({opacity:"hide"},_156,_157);
},fadeTo:function(_158,to,_15a){
return this.animate({opacity:to},_158,_15a);
},animate:function(prop,_15c,_15d,_15e){
return this.queue(function(){
var _15f=jQuery(this).is(":hidden"),opt=jQuery.speed(_15c,_15d,_15e),self=this;
for(var p in prop){
if(prop[p]=="hide"&&_15f||prop[p]=="show"&&!_15f){
return jQuery.isFunction(opt.complete)&&opt.complete.apply(this);
}
if(p=="height"||p=="width"){
opt.display=jQuery.css(this,"display");
opt.overflow=this.style.overflow;
}
}
if(opt.overflow!=null){
this.style.overflow="hidden";
}
this.curAnim=jQuery.extend({},prop);
jQuery.each(prop,function(name,val){
var e=new jQuery.fx(self,opt,name);
if(val.constructor==Number){
e.custom(e.cur(),val);
}else{
e[val=="toggle"?_15f?"show":"hide":val](prop);
}
});
});
},queue:function(type,fn){
if(!fn){
fn=type;
type="fx";
}
return this.each(function(){
if(!this.queue){
this.queue={};
}
if(!this.queue[type]){
this.queue[type]=[];
}
this.queue[type].push(fn);
if(this.queue[type].length==1){
fn.apply(this);
}
});
}});
jQuery.extend({speed:function(_166,_167,fn){
var opt=_166&&_166.constructor==Object?_166:{complete:fn||!fn&&_167||jQuery.isFunction(_166)&&_166,duration:_166,easing:fn&&_167||_167&&_167.constructor!=Function&&_167||(jQuery.easing.swing?"swing":"linear")};
opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:{slow:600,fast:200}[opt.duration])||400;
opt.old=opt.complete;
opt.complete=function(){
jQuery.dequeue(this,"fx");
if(jQuery.isFunction(opt.old)){
opt.old.apply(this);
}
};
return opt;
},easing:{linear:function(p,n,_16c,diff){
return _16c+diff*p;
},swing:function(p,n,_170,diff){
return ((-Math.cos(p*Math.PI)/2)+0.5)*diff+_170;
}},queue:{},dequeue:function(elem,type){
type=type||"fx";
if(elem.queue&&elem.queue[type]){
elem.queue[type].shift();
var f=elem.queue[type][0];
if(f){
f.apply(elem);
}
}
},timers:[],fx:function(elem,_176,prop){
var z=this;
var y=elem.style;
z.a=function(){
if(_176.step){
_176.step.apply(elem,[z.now]);
}
if(prop=="opacity"){
jQuery.attr(y,"opacity",z.now);
}else{
y[prop]=parseInt(z.now)+"px";
y.display="block";
}
};
z.max=function(){
return parseFloat(jQuery.css(elem,prop));
};
z.cur=function(){
var r=parseFloat(jQuery.curCSS(elem,prop));
return r&&r>-10000?r:z.max();
};
z.custom=function(from,to){
z.startTime=(new Date()).getTime();
z.now=from;
z.a();
jQuery.timers.push(function(){
return z.step(from,to);
});
if(jQuery.timers.length==1){
var _17d=setInterval(function(){
var _17e=jQuery.timers;
for(var i=0;i<_17e.length;i++){
if(!_17e[i]()){
_17e.splice(i--,1);
}
}
if(!_17e.length){
clearInterval(_17d);
}
},13);
}
};
z.show=function(){
if(!elem.orig){
elem.orig={};
}
elem.orig[prop]=jQuery.attr(elem.style,prop);
_176.show=true;
z.custom(0,this.cur());
if(prop!="opacity"){
y[prop]="1px";
}
jQuery(elem).show();
};
z.hide=function(){
if(!elem.orig){
elem.orig={};
}
elem.orig[prop]=jQuery.attr(elem.style,prop);
_176.hide=true;
z.custom(this.cur(),0);
};
z.step=function(_180,_181){
var t=(new Date()).getTime();
if(t>_176.duration+z.startTime){
z.now=_181;
z.a();
if(elem.curAnim){
elem.curAnim[prop]=true;
}
var done=true;
for(var i in elem.curAnim){
if(elem.curAnim[i]!==true){
done=false;
}
}
if(done){
if(_176.display!=null){
y.overflow=_176.overflow;
y.display=_176.display;
if(jQuery.css(elem,"display")=="none"){
y.display="block";
}
}
if(_176.hide){
y.display="none";
}
if(_176.hide||_176.show){
for(var p in elem.curAnim){
jQuery.attr(y,p,elem.orig[p]);
}
}
}
if(done&&jQuery.isFunction(_176.complete)){
_176.complete.apply(elem);
}
return false;
}else{
var n=t-this.startTime;
var p=n/_176.duration;
z.now=jQuery.easing[_176.easing](p,n,_180,(_181-_180),_176.duration);
z.a();
}
return true;
};
}});
}jQuery.iUtil={getPosition:function(e){
var x=0;
var y=0;
var es=e.style;
var _5=false;
if(jQuery(e).css("display")=="none"){
var _6=es.visibility;
var _7=es.position;
_5=true;
es.visibility="hidden";
es.display="block";
es.position="absolute";
}
var el=e;
while(el){
x+=el.offsetLeft+(el.currentStyle&&!jQuery.browser.opera?parseInt(el.currentStyle.borderLeftWidth)||0:0);
y+=el.offsetTop+(el.currentStyle&&!jQuery.browser.opera?parseInt(el.currentStyle.borderTopWidth)||0:0);
el=el.offsetParent;
}
el=e;
while(el&&el.tagName&&el.tagName.toLowerCase()!="body"){
x-=el.scrollLeft||0;
y-=el.scrollTop||0;
el=el.parentNode;
}
if(_5==true){
es.display="none";
es.position=_7;
es.visibility=_6;
}
return {x:x,y:y};
},getPositionLite:function(el){
var x=0,y=0;
while(el){
x+=el.offsetLeft||0;
y+=el.offsetTop||0;
el=el.offsetParent;
}
return {x:x,y:y};
},getSize:function(e){
var w=jQuery.css(e,"width");
var h=jQuery.css(e,"height");
var wb=0;
var hb=0;
var es=e.style;
if(jQuery(e).css("display")!="none"){
wb=e.offsetWidth;
hb=e.offsetHeight;
}else{
var _11=es.visibility;
var _12=es.position;
es.visibility="hidden";
es.display="block";
es.position="absolute";
wb=e.offsetWidth;
hb=e.offsetHeight;
es.display="none";
es.position=_12;
es.visibility=_11;
}
return {w:w,h:h,wb:wb,hb:hb};
},getSizeLite:function(el){
return {wb:el.offsetWidth||0,hb:el.offsetHeight||0};
},getClient:function(e){
var h,w,de;
if(e){
w=e.clientWidth;
h=e.clientHeight;
}else{
de=document.documentElement;
w=window.innerWidth||self.innerWidth||(de&&de.clientWidth)||document.body.clientWidth;
h=window.innerHeight||self.innerHeight||(de&&de.clientHeight)||document.body.clientHeight;
}
return {w:w,h:h};
},getScroll:function(e){
var t=0,l=0,w=0,h=0,iw=0,ih=0;
if(e&&e.nodeName.toLowerCase()!="body"){
t=e.scrollTop;
l=e.scrollLeft;
w=e.scrollWidth;
h=e.scrollHeight;
iw=0;
ih=0;
}else{
if(document.documentElement){
t=document.documentElement.scrollTop;
l=document.documentElement.scrollLeft;
w=document.documentElement.scrollWidth;
h=document.documentElement.scrollHeight;
}else{
if(document.body){
t=document.body.scrollTop;
l=document.body.scrollLeft;
w=document.body.scrollWidth;
h=document.body.scrollHeight;
}
}
iw=self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0;
ih=self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0;
}
return {t:t,l:l,w:w,h:h,iw:iw,ih:ih};
},getMargins:function(e,_19){
var el=jQuery(e);
var t=el.css("marginTop")||"";
var r=el.css("marginRight")||"";
var b=el.css("marginBottom")||"";
var l=el.css("marginLeft")||"";
if(_19){
return {t:parseInt(t)||0,r:parseInt(r)||0,b:parseInt(b)||0,l:parseInt(l)};
}else{
return {t:t,r:r,b:b,l:l};
}
},getPadding:function(e,_20){
var el=jQuery(e);
var t=el.css("paddingTop")||"";
var r=el.css("paddingRight")||"";
var b=el.css("paddingBottom")||"";
var l=el.css("paddingLeft")||"";
if(_20){
return {t:parseInt(t)||0,r:parseInt(r)||0,b:parseInt(b)||0,l:parseInt(l)};
}else{
return {t:t,r:r,b:b,l:l};
}
},getBorder:function(e,_27){
var el=jQuery(e);
var t=el.css("borderTopWidth")||"";
var r=el.css("borderRightWidth")||"";
var b=el.css("borderBottomWidth")||"";
var l=el.css("borderLeftWidth")||"";
if(_27){
return {t:parseInt(t)||0,r:parseInt(r)||0,b:parseInt(b)||0,l:parseInt(l)||0};
}else{
return {t:t,r:r,b:b,l:l};
}
},getPointer:function(_2d){
var x=_2d.pageX||(_2d.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft))||0;
var y=_2d.pageY||(_2d.clientY+(document.documentElement.scrollTop||document.body.scrollTop))||0;
return {x:x,y:y};
},traverseDOM:function(_30,_31){
_31(_30);
_30=_30.firstChild;
while(_30){
jQuery.iUtil.traverseDOM(_30,_31);
_30=_30.nextSibling;
}
},purgeEvents:function(_32){
jQuery.iUtil.traverseDOM(_32,function(el){
for(var _34 in el){
if(typeof el[_34]==="function"){
el[_34]=null;
}
}
});
},centerEl:function(el,_36){
var _37=jQuery.iUtil.getScroll();
var _38=jQuery.iUtil.getSize(el);
if(!_36||_36=="vertically"){
jQuery(el).css({top:_37.t+((Math.max(_37.h,_37.ih)-_37.t-_38.hb)/2)+"px"});
}
if(!_36||_36=="horizontally"){
jQuery(el).css({left:_37.l+((Math.max(_37.w,_37.iw)-_37.l-_38.wb)/2)+"px"});
}
},fixPNG:function(el,_3a){
var _3b=jQuery("img[@src*=\"png\"]",el||document),png;
_3b.each(function(){
png=this.src;
this.src=_3a;
this.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+png+"')";
});
}};
[].indexOf||(Array.prototype.indexOf=function(v,n){
n=(n==null)?0:n;
var m=this.length;
for(var i=n;i<m;i++){
if(this[i]==v){
return i;
}
}
return -1;
});
jQuery.fxCheckTag=function(e){
if(/^tr$|^td$|^tbody$|^caption$|^thead$|^tfoot$|^col$|^colgroup$|^th$|^body$|^header$|^script$|^frame$|^frameset$|^option$|^optgroup$|^meta$/i.test(e.nodeName)){
return false;
}else{
return true;
}
};
jQuery.fx.destroyWrapper=function(e,_3){
var c=e.firstChild;
var cs=c.style;
cs.position=_3.position;
cs.marginTop=_3.margins.t;
cs.marginLeft=_3.margins.l;
cs.marginBottom=_3.margins.b;
cs.marginRight=_3.margins.r;
cs.top=_3.top+"px";
cs.left=_3.left+"px";
e.parentNode.insertBefore(c,e);
e.parentNode.removeChild(e);
};
jQuery.fx.buildWrapper=function(e){
if(!jQuery.fxCheckTag(e)){
return false;
}
var t=jQuery(e);
var es=e.style;
var _9=false;
if(t.css("display")=="none"){
oldVisibility=t.css("visibility");
t.css("visibility","hidden").show();
_9=true;
}
var _a={};
_a.position=t.css("position");
_a.sizes=jQuery.iUtil.getSize(e);
_a.margins=jQuery.iUtil.getMargins(e);
var _b=e.currentStyle?e.currentStyle.styleFloat:t.css("float");
_a.top=parseInt(t.css("top"))||0;
_a.left=parseInt(t.css("left"))||0;
var _c="w_"+parseInt(Math.random()*10000);
var wr=document.createElement(/^img$|^br$|^input$|^hr$|^select$|^textarea$|^object$|^iframe$|^button$|^form$|^table$|^ul$|^dl$|^ol$/i.test(e.nodeName)?"div":e.nodeName);
jQuery.attr(wr,"id",_c);
var _e=jQuery(wr).addClass("fxWrapper");
var _f=wr.style;
var top=0;
var _11=0;
if(_a.position=="relative"||_a.position=="absolute"){
top=_a.top;
_11=_a.left;
}
_f.top=top+"px";
_f.left=_11+"px";
_f.position=_a.position!="relative"&&_a.position!="absolute"?"relative":_a.position;
_f.height=_a.sizes.hb+"px";
_f.width=_a.sizes.wb+"px";
_f.marginTop=_a.margins.t;
_f.marginRight=_a.margins.r;
_f.marginBottom=_a.margins.b;
_f.marginLeft=_a.margins.l;
_f.overflow="hidden";
if(jQuery.browser.msie){
_f.styleFloat=_b;
}else{
_f.cssFloat=_b;
}
if(jQuery.browser=="msie"){
es.filter="alpha(opacity="+0.999*100+")";
}
es.opacity=0.999;
e.parentNode.insertBefore(wr,e);
wr.appendChild(e);
es.marginTop="0px";
es.marginRight="0px";
es.marginBottom="0px";
es.marginLeft="0px";
es.position="absolute";
es.listStyle="none";
es.top="0px";
es.left="0px";
if(_9){
t.hide();
es.visibility=oldVisibility;
}
return {oldStyle:_a,wrapper:jQuery(wr)};
};
jQuery.fx.namedColors={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]};
jQuery.fx.parseColor=function(_12,_13){
if(jQuery.fx.namedColors[_12]){
return {r:jQuery.fx.namedColors[_12][0],g:jQuery.fx.namedColors[_12][1],b:jQuery.fx.namedColors[_12][2]};
}else{
if(result=/^rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)$/.exec(_12)){
return {r:parseInt(result[1]),g:parseInt(result[2]),b:parseInt(result[3])};
}else{
if(result=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)$/.exec(_12)){
return {r:parseFloat(result[1])*2.55,g:parseFloat(result[2])*2.55,b:parseFloat(result[3])*2.55};
}else{
if(result=/^#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])$/.exec(_12)){
return {r:parseInt("0x"+result[1]+result[1]),g:parseInt("0x"+result[2]+result[2]),b:parseInt("0x"+result[3]+result[3])};
}else{
if(result=/^#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/.exec(_12)){
return {r:parseInt("0x"+result[1]),g:parseInt("0x"+result[2]),b:parseInt("0x"+result[3])};
}else{
return _13==true?false:{r:255,g:255,b:255};
}
}
}
}
}
};
jQuery.fx.cssProps={borderBottomWidth:1,borderLeftWidth:1,borderRightWidth:1,borderTopWidth:1,bottom:1,fontSize:1,height:1,left:1,letterSpacing:1,lineHeight:1,marginBottom:1,marginLeft:1,marginRight:1,marginTop:1,maxHeight:1,maxWidth:1,minHeight:1,minWidth:1,opacity:1,outlineOffset:1,outlineWidth:1,paddingBottom:1,paddingLeft:1,paddingRight:1,paddingTop:1,right:1,textIndent:1,top:1,width:1,zIndex:1};
jQuery.fx.colorCssProps={backgroundColor:1,borderBottomColor:1,borderLeftColor:1,borderRightColor:1,borderTopColor:1,color:1,outlineColor:1};
jQuery.fx.cssSides=["Top","Right","Bottom","Left"];
jQuery.fx.cssSidesEnd={"borderWidth":["border","Width"],"borderColor":["border","Color"],"margin":["margin",""],"padding":["padding",""]};
jQuery.fn.extend({animate:function(_14,_15,_16,_17){
return this.queue(function(){
var opt=jQuery.speed(_15,_16,_17);
var e=new jQuery.fxe(this,opt,_14);
});
},pause:function(_1a,_1b){
return this.queue(function(){
var opt=jQuery.speed(_1a,_1b);
var e=new jQuery.pause(this,opt);
});
},stop:function(_1e){
return this.each(function(){
if(this.animationHandler){
jQuery.stopAnim(this,_1e);
}
});
},stopAll:function(_1f){
return this.each(function(){
if(this.animationHandler){
jQuery.stopAnim(this,_1f);
}
if(this.queue&&this.queue["fx"]){
this.queue.fx=[];
}
});
}});
jQuery.extend({pause:function(_20,_21){
var z=this,values;
z.step=function(){
if(jQuery.isFunction(_21.complete)){
_21.complete.apply(_20);
}
};
z.timer=setTimeout(function(){
z.step();
},_21.duration);
_20.animationHandler=z;
},easing:{linear:function(p,n,_25,_26,_27){
return ((-Math.cos(p*Math.PI)/2)+0.5)*_26+_25;
}},fxe:function(_28,_29,_2a){
var z=this,values;
var y=_28.style;
var _2d=jQuery.css(_28,"overflow");
var _2e=jQuery.css(_28,"display");
var _2f={};
z.startTime=(new Date()).getTime();
_29.easing=_29.easing&&jQuery.easing[_29.easing]?_29.easing:"linear";
z.getValues=function(tp,vp){
if(jQuery.fx.cssProps[tp]){
if(vp=="show"||vp=="hide"||vp=="toggle"){
if(!_28.orig){
_28.orig={};
}
var r=parseFloat(jQuery.curCSS(_28,tp));
_28.orig[tp]=r&&r>-10000?r:(parseFloat(jQuery.css(_28,tp))||0);
vp=vp=="toggle"?(_2e=="none"?"show":"hide"):vp;
_29[vp]=true;
_2f[tp]=vp=="show"?[0,_28.orig[tp]]:[_28.orig[tp],0];
if(tp!="opacity"){
y[tp]=_2f[tp][0]+(tp!="zIndex"&&tp!="fontWeight"?"px":"");
}else{
jQuery.attr(y,"opacity",_2f[tp][0]);
}
}else{
_2f[tp]=[parseFloat(jQuery.curCSS(_28,tp)),parseFloat(vp)||0];
}
}else{
if(jQuery.fx.colorCssProps[tp]){
_2f[tp]=[jQuery.fx.parseColor(jQuery.curCSS(_28,tp)),jQuery.fx.parseColor(vp)];
}else{
if(/^margin$|padding$|border$|borderColor$|borderWidth$/i.test(tp)){
var m=vp.replace(/\s+/g," ").replace(/rgb\s*\(\s*/g,"rgb(").replace(/\s*,\s*/g,",").replace(/\s*\)/g,")").match(/([^\s]+)/g);
switch(tp){
case "margin":
case "padding":
case "borderWidth":
case "borderColor":
m[3]=m[3]||m[1]||m[0];
m[2]=m[2]||m[0];
m[1]=m[1]||m[0];
for(var i=0;i<jQuery.fx.cssSides.length;i++){
var nmp=jQuery.fx.cssSidesEnd[tp][0]+jQuery.fx.cssSides[i]+jQuery.fx.cssSidesEnd[tp][1];
_2f[nmp]=tp=="borderColor"?[jQuery.fx.parseColor(jQuery.curCSS(_28,nmp)),jQuery.fx.parseColor(m[i])]:[parseFloat(jQuery.curCSS(_28,nmp)),parseFloat(m[i])];
}
break;
case "border":
for(var i=0;i<m.length;i++){
var _37=parseFloat(m[i]);
var _38=!isNaN(_37)?"Width":(!/transparent|none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(m[i])?"Color":false);
if(_38){
for(var j=0;j<jQuery.fx.cssSides.length;j++){
nmp="border"+jQuery.fx.cssSides[j]+_38;
_2f[nmp]=_38=="Color"?[jQuery.fx.parseColor(jQuery.curCSS(_28,nmp)),jQuery.fx.parseColor(m[i])]:[parseFloat(jQuery.curCSS(_28,nmp)),_37];
}
}else{
y["borderStyle"]=m[i];
}
}
break;
}
}else{
y[tp]=vp;
}
}
}
return false;
};
for(p in _2a){
if(p=="style"){
var _3a=jQuery.parseStyle(_2a[p]);
for(np in _3a){
this.getValues(np,_3a[np]);
}
}else{
if(p=="className"){
if(document.styleSheets){
for(var i=0;i<document.styleSheets.length;i++){
var _3c=document.styleSheets[i].cssRules||document.styleSheets[i].rules||null;
if(_3c){
for(var j=0;j<_3c.length;j++){
if(_3c[j].selectorText=="."+_2a[p]){
var _3e=new RegExp("."+_2a[p]+" {");
var _3f=_3c[j].style.cssText;
var _40=jQuery.parseStyle(_3f.replace(_3e,"").replace(/}/g,""));
for(np in _40){
this.getValues(np,_40[np]);
}
}
}
}
}
}
}else{
this.getValues(p,_2a[p]);
}
}
}
y.display=_2e=="none"?"block":_2e;
y.overflow="hidden";
z.step=function(){
var t=(new Date()).getTime();
if(t>_29.duration+z.startTime){
clearInterval(z.timer);
z.timer=null;
for(p in _2f){
if(p=="opacity"){
jQuery.attr(y,"opacity",_2f[p][1]);
}else{
if(typeof _2f[p][1]=="object"){
y[p]="rgb("+_2f[p][1].r+","+_2f[p][1].g+","+_2f[p][1].b+")";
}else{
y[p]=_2f[p][1]+(p!="zIndex"&&p!="fontWeight"?"px":"");
}
}
}
if(_29.hide||_29.show){
for(var p in _28.orig){
if(p=="opacity"){
jQuery.attr(y,p,_28.orig[p]);
}else{
y[p]="";
}
}
}
y.display=_29.hide?"none":(_2e!="none"?_2e:"block");
y.overflow=_2d;
_28.animationHandler=null;
if(jQuery.isFunction(_29.complete)){
_29.complete.apply(_28);
}
}else{
var n=t-this.startTime;
var pr=n/_29.duration;
for(p in _2f){
if(typeof _2f[p][1]=="object"){
y[p]="rgb("+parseInt(jQuery.easing[_29.easing](pr,n,_2f[p][0].r,(_2f[p][1].r-_2f[p][0].r),_29.duration))+","+parseInt(jQuery.easing[_29.easing](pr,n,_2f[p][0].g,(_2f[p][1].g-_2f[p][0].g),_29.duration))+","+parseInt(jQuery.easing[_29.easing](pr,n,_2f[p][0].b,(_2f[p][1].b-_2f[p][0].b),_29.duration))+")";
}else{
var _45=jQuery.easing[_29.easing](pr,n,_2f[p][0],(_2f[p][1]-_2f[p][0]),_29.duration);
if(p=="opacity"){
jQuery.attr(y,"opacity",_45);
}else{
y[p]=_45+(p!="zIndex"&&p!="fontWeight"?"px":"");
}
}
}
}
};
z.timer=setInterval(function(){
z.step();
},13);
_28.animationHandler=z;
},stopAnim:function(_46,_47){
if(_47){
_46.animationHandler.startTime-=100000000;
}else{
window.clearInterval(_46.animationHandler.timer);
_46.animationHandler=null;
jQuery.dequeue(_46,"fx");
}
}});
jQuery.parseStyle=function(_48){
var _49={};
if(typeof _48=="string"){
_48=_48.toLowerCase().split(";");
for(var i=0;i<_48.length;i++){
rule=_48[i].split(":");
if(rule.length==2){
_49[jQuery.trim(rule[0].replace(/\-(\w)/g,function(m,c){
return c.toUpperCase();
}))]=jQuery.trim(rule[1]);
}
}
}
return _49;
};jQuery.fn.fixPNG=function(){
if($.browser.msie&&$.browser.version<7){
this.each(function(){
if (this.style.filter.indexOf('Image')==-1) {
	png=this.src;
	this.src=(/hal9000/.test(window.location.host)? '/one' : '')+"/images/spacer.gif";
	this.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+png+"')";
}
});
}
};
jQuery.fn.fixBGPNG=function(){
if($.browser.msie){
this.each(function(){
if(this.currentStyle.backgroundImage!="none"){
var _1=this.currentStyle.backgroundImage;
_1=_1.substring(5,_1.length-2);
$(this).css({"backgroundImage":"none","filter":"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+_1+"')"});
}
});
}
};
jQuery.preloadImages=function(){
for(var i=0;i<arguments.length;i++){
jQuery("<img>").attr("src",arguments[i]);
}
};
(function($){
$.blockUI=function(_4,_5){
$.blockUI.impl.install(window,_4,_5);
};
$.unblockUI=function(){
$.blockUI.impl.remove(window);
};
$.fn.block=function(_6,_7){
return this.each(function(){
if(!this.$pos_checked){
if($.css(this,"position")=="static"){
this.style.position="relative";
}
this.$pos_checked=1;
}
$.blockUI.impl.install(this,_6,_7);
});
};
$.fn.unblock=function(){
return this.each(function(){
$.blockUI.impl.remove(this);
});
};
$.blockUI.defaults={pageMessage:"<h1>Please wait...</h1>",elementMessage:"",overlayCSS:{backgroundColor:"#fff",opacity:"0"},pageMessageCSS:{width:"250px",margin:"-50px 0 0 -125px",top:"50%",left:"50%",textAlign:"center",color:"#666",backgroundColor:"#fff"},elementMessageCSS:{width:"280px",padding:"5px",height:"15px",textAlign:"center",marginLeft:"-10px",marginTop:"-15px",color:"#666"}};
$.blockUI.impl={pageBlock:null,op8:window.opera&&window.opera.version()<9,ffLinux:$.browser.mozilla&&/Linux/.test(navigator.platform),ie6:$.browser.msie&&typeof XMLHttpRequest=="function",install:function(el,_9,_a){
var _b=(el==window),noalpha=this.op8||this.ffLinux;
if(_b&&this.pageBlock){
this.remove(window);
}
if(_9&&typeof _9=="object"&&!_9.jquery&&!_9.nodeType){
_a=_9;
_9=null;
}
_9=_9?(_9.nodeType?$(_9):_9):_b?$.blockUI.defaults.pageMessage:$.blockUI.defaults.elementMessage;
var _c=jQuery.extend({},_b?$.blockUI.defaults.pageMessageCSS:$.blockUI.defaults.elementMessageCSS);
_a=jQuery.extend(_c,_a||{});
var f=(this.ie6)?$("<iframe class=\"blockUI\" style=\"z-index:1000;border:none;margin:0;padding:0 position:absolute;width:100%;height:100%;top:0;left:0\" src=\"javascript:false;document.write('');\"></iframe>"):$("<div class=\"blockUI\" style=\"display:none\"></div>");
var w=$("<div class=\"blockUI\" style=\"z-index:1001;cursor:wait;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0\"></div>");
var m=_b?$("<div class=\"blockUI blockMsg\" style=\"z-index:1002;cursor:wait;padding:0;position:fixed\"></div>"):$("<div class=\"blockUI\" style=\"display:none;z-index:1002;cursor:wait;position:absolute\"></div>");
w.css("position",_b?"fixed":"absolute");
if(_9){
m.css(_a);
}
if(!noalpha){
w.css($.blockUI.defaults.overlayCSS).fadeTo("fast",0.75);
}
if(this.op8){
w.css({width:""+el.clientWidth,height:""+el.clientHeight});
}
if(this.ie6){
f.css("opacity","0.0");
}
$([f[0],w[0],m[0]]).appendTo(_b?"body":el);
if(_b){
this.pageBlock=m[0];
}
if(this.ie6||($.browser.msie&&!$.boxModel)){
if(_b&&$.boxModel&&document.body.offsetHeight<document.documentElement.clientHeight){
$("html,body").css("height","100%");
}
$.each([f,w,m],function(i){
var s=this[0].style;
s.position="absolute";
if(i<2){
_b?s.setExpression("height","document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + \"px\""):s.setExpression("height","this.parentNode.offsetHeight + \"px\"");
_b?s.setExpression("width","jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + \"px\""):s.setExpression("width","this.parentNode.offsetWidth + \"px\"");
}else{
_b?s.setExpression("top","(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + \"px\""):s.setExpression("top","this.parentNode.top");
s.marginTop=0;
}
});
}
this.bind(1,el);
m.append(_9).show();
if(_9.jquery){
_9.show();
}
_b?setTimeout(this.focus,10):this.center(m[0]);
if(this.op8){
this.simulate(true,el);
}
},remove:function(el){
this.bind(0,el);
var _13=el==window;
if(_13){
$("body").children().filter(".blockUI").remove();
this.pageBlock=null;
}else{
$(".blockUI",el).fadeOut("fast",function(){
$(this).remove();
});
}
if(this.op8){
this.simulate(false,el);
}
},handler:function(e){
if(e.keyCode&&e.keyCode==9){
return true;
}
if($(e.target).parents("div.blockMsg").length>0){
return true;
}
return $(e.target).parents().children().filter("div.blockUI").length==0;
},bind:function(b,el){
var _17=el==window;
if(!b&&(_17&&!this.pageBlock||!_17&&!el.$blocked)){
return;
}
if(!_17){
el.$blocked=b;
}
var $e=_17?$():$(el).find("a,:input");
$.each(["mousedown","mouseup","keydown","keypress","keyup","click"],function(i,o){
$e[b?"bind":"unbind"](o,$.blockUI.impl.handler);
});
},simulate:function(dis,el){
var _1d=el==window;
$(":input",_1d?"body":el).each(function(){
if(_1d&&$(this).parents("div.blockMsg").length>0){
return;
}
if(this.$orig_disabled==undefined){
this.$orig_disabled=this.disabled;
}
var d=dis||this.$orig_disabled;
if(d){
this.$orig_disabled=this.disabled;
}
this.disabled=d;
});
},focus:function(){
var v=$(":input:visible",$.blockUI.impl.pageBlock)[0];
if(v){
v.focus();
}
},center:function(el){
var p=el.parentNode,s=el.style;
var l=(this.sz(p,1)-this.sz(el,1))/2,t=(this.sz(p,0)-this.sz(el,0))/2;
s.left=l>0?(l+"px"):"0";
s.top=t>0?(t+"px"):"0";
},sz:function(el,w){
return parseInt($.css(el,(w?"width":"height")));
}};
})(jQuery);
jQuery.fn.ajaxSubmit=function(_25){
if(typeof _25=="function"){
_25={success:_25};
}
_25=jQuery.extend({url:this.attr("action")||"",method:this.attr("method")||"GET"},_25||{});
_25.success=_25.success||_25.after;
_25.beforeSubmit=_25.beforeSubmit||_25.before;
_25.type=_25.type||_25.method;
var a=this.formToArray(_25.semantic);
if(_25.beforeSubmit&&_25.beforeSubmit(a,this,_25)===false){
return this;
}
var q=jQuery.param(a);
if(_25.type.toUpperCase()=="GET"){
_25.url+=(_25.url.indexOf("?")>=0?"&":"?")+q;
_25.data=null;
}else{
_25.data=q;
}
var _28=this,callbacks=[];
if(_25.resetForm){
callbacks.push(function(){
_28.resetForm();
});
}
if(_25.clearForm){
callbacks.push(function(){
_28.clearForm();
});
}
if(!_25.dataType&&_25.target){
var _29=_25.success||function(){
};
callbacks.push(function(_2a,_2b){
jQuery(_25.target).attr("innerHTML",_2a).evalScripts().each(_29,[_2a,_2b]);
});
}else{
if(_25.success){
callbacks.push(_25.success);
}
}
_25.success=function(_2c,_2d){
for(var i=0,max=callbacks.length;i<max;i++){
callbacks[i](_2c,_2d);
}
};
jQuery.ajax(_25);
return this;
};
jQuery.fn.ajaxForm=function(_2f){
return this.each(function(){
jQuery("input:submit,input:image,button:submit",this).click(function(ev){
var _31=this.form;
_31.clk=this;
if(this.type=="image"){
if(ev.offsetX!=undefined){
_31.clk_x=ev.offsetX;
_31.clk_y=ev.offsetY;
}else{
if(typeof jQuery.fn.offset=="function"){
var _32=jQuery(this).offset();
_31.clk_x=ev.pageX-_32.left;
_31.clk_y=ev.pageY-_32.top;
}else{
_31.clk_x=ev.pageX-this.offsetLeft;
_31.clk_y=ev.pageY-this.offsetTop;
}
}
}
setTimeout(function(){
_31.clk=_31.clk_x=_31.clk_y=null;
},10);
});
}).submit(function(e){
jQuery(this).ajaxSubmit(_2f);
return false;
});
};
jQuery.fn.formToArray=function(_34){
var a=[];
if(this.length==0){
return a;
}
var _36=this[0];
var els=_34?_36.getElementsByTagName("*"):_36.elements;
if(!els){
return a;
}
for(var i=0,max=els.length;i<max;i++){
var el=els[i];
var n=el.name;
if(!n){
continue;
}
if(_34&&_36.clk&&el.type=="image"){
if(!el.disabled&&_36.clk==el){
a.push({name:n+".x",value:_36.clk_x},{name:n+".y",value:_36.clk_y});
}
continue;
}
var v=jQuery.fieldValue(el,true);
if(v===null){
continue;
}
if(v.constructor==Array){
for(var j=0,jmax=v.length;j<jmax;j++){
a.push({name:n,value:v[j]});
}
}else{
a.push({name:n,value:v});
}
}
if(!_34&&_36.clk){
var _3d=_36.getElementsByTagName("input");
for(var i=0,max=_3d.length;i<max;i++){
var _3f=_3d[i];
var n=_3f.name;
if(n&&!_3f.disabled&&_3f.type=="image"&&_36.clk==_3f){
a.push({name:n+".x",value:_36.clk_x},{name:n+".y",value:_36.clk_y});
}
}
}
return a;
};
jQuery.fn.formSerialize=function(_41){
return jQuery.param(this.formToArray(_41));
};
jQuery.fn.fieldSerialize=function(_42){
var a=[];
this.each(function(){
var n=this.name;
if(!n){
return;
}
var v=jQuery.fieldValue(this,_42);
if(v&&v.constructor==Array){
for(var i=0,max=v.length;i<max;i++){
a.push({name:n,value:v[i]});
}
}else{
if(v!==null&&typeof v!="undefined"){
a.push({name:this.name,value:v});
}
}
});
return jQuery.param(a);
};
jQuery.fn.fieldValue=function(_47){
var _48,cbName;
for(var i=0,max=this.length;i<max;i++){
var el=this[i];
var v=jQuery.fieldValue(el,_47);
if(v===null||typeof v=="undefined"||(v.constructor==Array&&!v.length)){
continue;
}
if(el.type!="checkbox"){
return v;
}
cbName=cbName||el.name;
if(cbName!=el.name){
return _48;
}
_48=_48||[];
_48.push(v);
}
return _48;
};
jQuery.fieldValue=function(el,_4d){
var n=el.name,t=el.type,tag=el.tagName.toLowerCase();
if(typeof _4d=="undefined"){
_4d=true;
}
if(_4d&&(!n||el.disabled||t=="reset"||(t=="checkbox"||t=="radio")&&!el.checked||(t=="submit"||t=="image")&&el.form&&el.form.clk!=el||tag=="select"&&el.selectedIndex==-1)){
return null;
}
if(tag=="select"){
var _4f=el.selectedIndex;
if(_4f<0){
return null;
}
var a=[],ops=el.options;
var one=(t=="select-one");
var max=(one?_4f+1:ops.length);
for(var i=(one?_4f:0);i<max;i++){
var op=ops[i];
if(op.selected){
var v=jQuery.browser.msie&&!(op.attributes["value"].specified)?op.text:op.value;
if(one){
return v;
}
a.push(v);
}
}
return a;
}
return el.value;
};
jQuery.fn.clearForm=function(){
return this.each(function(){
jQuery("input,select,textarea",this).clearFields();
});
};
jQuery.fn.clearFields=jQuery.fn.clearInputs=function(){
return this.each(function(){
var t=this.type,tag=this.tagName.toLowerCase();
if(t=="text"||t=="password"||tag=="textarea"){
this.value="";
}else{
if(t=="checkbox"||t=="radio"){
this.checked=false;
}else{
if(tag=="select"){
this.selectedIndex=-1;
}
}
}
});
};
jQuery.fn.resetForm=function(){
return this.each(function(){
if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){
this.reset();
}
});
};
$.fn.pager=function(_57,_58){
var _59={navId:"nav",navClass:"nav",navAttach:"append",highlightClass:"highlight",prevText:"&laquo;",nextText:"&raquo;",linkText:null,linkWrap:null,height:null};
if(_58){
$.extend(_59,_58);
}
return this.each(function(){
var me=$(this);
var _5b;
var i=0;
var _5d="#"+_59.navId;
function init(){
_5b=$(_57,me).not(_5d).size();
if(_59.height==null){
_59.height=getHighest();
}
if(_5b>1){
makeNav();
show();
highlight();
}
sizePanel();
if(_59.linkWrap!=null){
linkWrap();
}
}
function makeNav(){
var str="<div id=\""+_59.navId+"\" class=\""+_59.navClass+"\">";
str+="<a href=\"#\" rel=\"prev\">"+_59.prevText+"</a>";
for(var i=0;i<_5b;i++){
var j=i+1;
str+="<a href=\"#\" rel=\""+j+"\">";
str+=(_59.linkText==null)?j:_59.linkText[j-1];
str+="</a>";
}
str+="<a href=\"#\" rel=\"next\">"+_59.nextText+"</a>";
str+="</div>";
switch(_59.navAttach){
case "before":
$(me).before(str);
break;
case "after":
$(me).after(str);
break;
case "prepend":
$(me).prepend(str);
break;
default:
$(me).append(str);
break;
}
}
function show(){
$(me).find(_57).not(_5d).hide();
var _61=$(me).find(_57).not(_5d).get(i);
$(_61).show();
}
function highlight(){
if (_59.navId=='nav5') {	showhash = {display: 'inline'}; hidehash = {display: 'none'}; }
else {	showhash = {display:'inline'}; hidehash = {display:'none'}; }
if(i<1){
$(me).find(_5d).find("a").eq(0).css(hidehash);
}else{
$(me).find(_5d).find("a").eq(0).css(showhash);
}
if(i==_5b-1){
$(me).find(_5d).find("a").eq(_5b+1).css(hidehash);
}else{
$(me).find(_5d).find("a").eq(_5b+1).css(showhash);
}
$(me).find(_5d).find("a").removeClass(_59.highlightClass);
var _62=$(me).find(_5d).find("a").get(i+1);
$(_62).addClass(_59.highlightClass);
}
function sizePanel(){
return;
if($.browser.msie){
$(me).find(_57).not(_5d).css({height:_59.height});
}else{
$(me).find(_57).not(_5d).css({minHeight:_59.height});
}
}
function getHighest(){
var _63=0;
$(me).find(_57).not(_5d).each(function(){
if(this.offsetHeight>_63){
_63=this.offsetHeight;
}
});
_63=_63+"px";
return _63;
}
function getNavHeight(){
var nav=$(_5d).get(0);
return nav.offsetHeight;
}
function linkWrap(){
$(me).find(_5d).find("a").wrap(_59.linkWrap);
}
init();
$(this).find(_5d).find("a").click(function(){
if($(this).attr("rel")=="next"){
if(i+1<_5b){
i=i+1;
}
}else{
if($(this).attr("rel")=="prev"){
if(i>0){
i=i-1;
}
}else{
var j=$(this).attr("rel");
i=j-1;
}
}
show();
highlight();
this.blur();
return false;
});
});
};
(function(){
var $$;
$$=jQuery.fn.flash=function(_67,_68,_69,_6a){
var _6b=_69||$$.replace;
_68=$$.copy($$.pluginOptions,_68);
if(!$$.hasFlash(_68.version)){
if(_68.expressInstall&&$$.hasFlash(6,0,65)){
var _6c={flashvars:{MMredirectURL:location,MMplayerType:($.browser.msie?"ActiveX":"PlugIn"),MMdoctitle:jQuery("title").text()}};
}else{
if(_68.update){
_6b=_6a||$$.update;
}else{
return this;
}
}
}
_67=$$.copy($$.htmlOptions,_6c,_67);
return this.each(function(){
_6b.call(this,$$.copy(_67));
});
};
$$.copy=function(){
var _6d={},flashvars={};
for(var i=0;i<arguments.length;i++){
var arg=arguments[i];
if(arg==undefined){
continue;
}
jQuery.extend(_6d,arg);
if(arg.flashvars==undefined){
continue;
}
jQuery.extend(flashvars,arg.flashvars);
}
_6d.flashvars=flashvars;
return _6d;
};
$$.hasFlash=function(){
if(/hasFlash\=true/.test(location)){
return true;
}
if(/hasFlash\=false/.test(location)){
return false;
}
var pv=$$.hasFlash.playerVersion().match(/\d+/g);
var rv=String([arguments[0],arguments[1],arguments[2]]).match(/\d+/g)||String($$.pluginOptions.version).match(/\d+/g);
for(var i=0;i<3;i++){
pv[i]=parseInt(pv[i]||0);
rv[i]=parseInt(rv[i]||0);
if(pv[i]<rv[i]){
return false;
}
if(pv[i]>rv[i]){
return true;
}
}
return true;
};
$$.hasFlash.playerVersion=function(){
try{
try{
var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
try{
axo.AllowScriptAccess="always";
}
catch(e){
return "6,0,0";
}
}
catch(e){
}
return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1];
}
catch(e){
try{
if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
return (navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1];
}
}
catch(e){
}
}
return "0,0,0";
};
$$.htmlOptions={height:240,flashvars:{},pluginspage:"http://www.adobe.com/go/getflashplayer",src:"#",type:"application/x-shockwave-flash",width:320};
$$.pluginOptions={expressInstall:false,update:true,version:"6.0.65"};
$$.replace=function(_74){
this.innerHTML="<div class=\"alt\">"+this.innerHTML+"</div>";
jQuery(this).addClass("flash-replaced").prepend($$.transform(_74));
};
$$.update=function(_75){
var url=String(location).split("?");
url.splice(1,0,"?hasFlash=true&");
url=url.join("");
var msg="<p>This content requires the Flash Player. <a href=\"http://www.adobe.com/go/getflashplayer\">Download Flash Player</a>. Already have Flash Player? <a href=\""+url+"\">Click here.</a></p>";
this.innerHTML="<span class=\"alt\">"+this.innerHTML+"</span>";
jQuery(this).addClass("flash-update").prepend(msg);
};
function toAttributeString(){
var s="";
for(var key in this){
if(typeof this[key]!="function"){
s+=key+"=\""+this[key]+"\" ";
}
}
return s;
}
function toFlashvarsString(){
var s="";
for(var key in this){
if(typeof this[key]!="function"){
s+=key+"="+escape(this[key])+"&";
}
}
return s.replace(/&$/,"");
}
$$.transform=function(_7c){
if(_7c.flashvars){
_7c.flashvars.toString=toFlashvarsString;
}
if(typeof _7c.id=="undefined"){
if ($.browser.msie) _7c.id="flash-"+$("object").length;
else _7c.id="flash-"+$("embed").length;
}
var _7d="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" align=\"middle\" width=\""+_7c.width+"\" height=\""+_7c.height+"\" id=\""+_7c.id+"\">";
$.each(_7c,function(i,e){
if(i!="type"&&i!="pluginspage"&&i!="width"&&i!="height"&&i!="id"){
if(i=="src"){
i="movie";
}
_7d+="<param name=\""+i+"\" value=\""+e+"\" />";
}
});
_7d+="</object>";
_7c.name=_7c.id;
_7c.toString=toAttributeString;
var _80="<embed "+String(_7c)+"/>";
if($.browser.msie){
return _7d;
}
return _80;
};
if(window.attachEvent){
window.attachEvent("onbeforeunload",function(){
__flash_unloadHandler=function(){
};
__flash_savedUnloadHandler=function(){
};
});
}
})();
$.fn.flash.replace=function(_81){
jQuery(this).empty().addClass("flash-replaced").prepend(jQuery.fn.flash.transform(_81));
};

jQuery.extend({
historyCurrentHash: undefined,
historyCallback: undefined,
historyInit: function(callback){
jQuery.historyCallback = callback;
var current_hash = location.hash;	
jQuery.historyCurrentHash = current_hash;
if(jQuery.browser.msie) {
if (jQuery.historyCurrentHash == '') {
jQuery.historyCurrentHash = '#';
}
$("body").prepend('<iframe id="jQuery_history" style="display: none;"></iframe>');
var ihistory = $("#jQuery_history")[0];
var iframe = ihistory.contentWindow.document;
iframe.open();
iframe.close();
iframe.location.hash = current_hash;
}
else if ($.browser.safari) {
// etablish back/forward stacks
jQuery.historyBackStack = [];
jQuery.historyBackStack.length = history.length;
jQuery.historyForwardStack = [];

jQuery.isFirst = true;
}
jQuery.historyCallback(current_hash.replace(/^#/, ''));
setInterval(jQuery.historyCheck, 100);
},
historyAddHistory: function(hash) {
jQuery.historyBackStack.push(hash);
jQuery.historyForwardStack.length = 0; // clear forwardStack (true click occured)
this.isFirst = true;
},

historyCheck: function(){
if(jQuery.browser.msie) {
var ihistory = $("#jQuery_history")[0];
var iframe = ihistory.contentDocument || ihistory.contentWindow.document;
var current_hash = iframe.location.hash;
if(current_hash != jQuery.historyCurrentHash) {

location.hash = current_hash;
jQuery.historyCurrentHash = current_hash;
jQuery.historyCallback(current_hash.replace(/^#/, ''));

}
} else if ($.browser.safari) {
if (!jQuery.dontCheck) {
var historyDelta = history.length - jQuery.historyBackStack.length;

if (historyDelta) { // back or forward button has been pushed
jQuery.isFirst = false;
if (historyDelta < 0) { // back button has been pushed
// move items to forward stack
for (var i = 0; i < Math.abs(historyDelta); i++) jQuery.historyForwardStack.unshift(jQuery.historyBackStack.pop());
} else { // forward button has been pushed
// move items to back stack
for (var i = 0; i < historyDelta; i++) jQuery.historyBackStack.push(jQuery.historyForwardStack.shift());
}
var cachedHash = jQuery.historyBackStack[jQuery.historyBackStack.length - 1];
if (cachedHash != undefined) {
jQuery.historyCurrentHash = location.hash;
jQuery.historyCallback(cachedHash);
}
} else if (jQuery.historyBackStack[jQuery.historyBackStack.length - 1] == undefined && !jQuery.isFirst) {
if (document.URL.indexOf('#') >= 0) {
jQuery.historyCallback(document.URL.split('#')[1]);
} else {
var current_hash = location.hash;
jQuery.historyCallback('');
}
jQuery.isFirst = true;
}
}
} else {
var current_hash = location.hash;
if(current_hash != jQuery.historyCurrentHash) {
jQuery.historyCurrentHash = current_hash;
jQuery.historyCallback(current_hash.replace(/^#/, ''));
}
}
},
historyLoad: function(hash){
var newhash;

if (jQuery.browser.safari) {
newhash = hash;
}
else {
newhash = '#' + hash;
location.hash = newhash;
}
jQuery.historyCurrentHash = newhash;

if(jQuery.browser.msie) {
var ihistory = $("#jQuery_history")[0];
var iframe = ihistory.contentWindow.document;
iframe.open();
iframe.close();
iframe.location.hash = newhash;
jQuery.historyCallback(hash);
}
else if (jQuery.browser.safari) {
jQuery.dontCheck = true;
this.historyAddHistory(hash);
var fn = function() {jQuery.dontCheck = false;};
window.setTimeout(fn, 200);
jQuery.historyCallback(hash);
location.hash = newhash;
}
else {
jQuery.historyCallback(hash);
}
}
});// dynamic css
function createStyleRule(selector, declaration) {
	if (!document.getElementsByTagName || !(document.createElement || document.createElementNS)) return;
	var agt = navigator.userAgent.toLowerCase();
	var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
	var is_iewin = (is_ie && (agt.indexOf("win") != -1));
	var is_iemac = (is_ie && (agt.indexOf("mac") != -1));
	if (is_iemac) return; // script doesn't work properly in IE/Mac
	var head = document.getElementsByTagName("head")[0]; 
	var style = (typeof document.createElementNS != "undefined") ?  document.createElementNS("http://www.w3.org/1999/xhtml", "style") : document.createElement("style");
	if (!is_iewin) {
		var styleRule = document.createTextNode(selector + " {" + declaration + "}");
		style.appendChild(styleRule); // bugs in IE/Win
	}
	style.setAttribute("type", "text/css");
	style.setAttribute("media", "screen"); 
	head.appendChild(style);
	if (is_iewin && document.styleSheets && document.styleSheets.length > 0) {
		var lastStyle = document.styleSheets[document.styleSheets.length - 1];
		if (typeof lastStyle.addRule == "object") { // bugs in IE/Mac and Safari
			lastStyle.addRule(selector, declaration);
		}
	}
}
if($.fn.flash.hasFlash(8)) {
	createStyleRule('#menu-main', ['vis', 'ibil', 'ity:hid', 'den;'].join(''));
}
createStyleRule('.post-hide', ['dis', 'pla', 'y:no', 'ne;'].join(''));
/* functions */
function one_globalz(){
	if ($('#right div.pager').length == 0) {
		$('#right').pager('dl', {navId:'nav5', navClass: 'pager'});
	}
	$('div.release-box a').unbind('mouseover').unbind('mouseout').hover(function(){
		$(this).stopAll().fadeTo(150, 0.7);
	}, function(){
		$(this).stopAll().fadeTo(90, 1);
	});
	$('#left a,#second a,#right a').not('[@rel]').not('[@href$=mp3]').not('.stbutton').unbind('click').bind('click', function(e){
		this.blur();
		if (this.hostname == location.hostname) {
			one_do_history_load(this.href);
			return false;
		}
	}).not('[@target]').each(function(){		
		if (this.hostname != location.hostname) {
			$(this).attr('target', '_blank');
		};
	}).each(function(){
		$(this).attr('rel', 'processed');
	});
	$("img[@src$=png]").fixPNG();
	$('a[@href$=mp3]:not([@rel])', '#right,#second').unbind('click').bind('click', function(){
		var $this = $(this);
		if ($this.parents('#second').length) {
			one_addtolist(this.href,$this.find('span').html());
		}
		else {
			one_addtolist(this.href,this.innerHTML);
		}
		this.blur();
		
		return false;
	}).each(function(){
		var $this = $(this);
		$this.attr('rel', 'processed');
		if ($this.find('img').length == 0) {
			$this.append($('<img>').attr({src: (/hal9000/.test(window.location.host)? '/one' : '')+'/images/clip.png', 'class': 'speaker'}))
		}
	});
	$('#second div.sizer').height(0);
	var s = $('#second')[0].offsetHeight;
	var r = $('#right')[0].offsetHeight;
	if ((r+40)>s) $('#second div.sizer').height(r-s+40);
	one_contact();
}

function one_contact(){
	$('#contactform').ajaxForm({
		dataType:  'json',
		beforeSubmit: function(formData, jqForm, options){
			ok = true;
			for(i=formData.length-1;i>=0;i--) {
				data = formData[i];
				if (!data.value || (data.name=='e-mail' && (/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/i.test(data.value)) == false)) {
					$('#'+data.name).addClass('error')[0].focus();
					ok = false;
				} else $('#'+data.name).removeClass('error');
			}
			if (ok) $('#contactform').block('<p>sending..</p>'); 
			else $('#contactform').unblock();
      return ok;
		},
		success: function(data){
			delay = 1500;
			if (data.status == 'ok') {
				$('#contactform').clearForm();
				msg = 'thanks for your message..';
				delay = 2500;
			} else if (data.status == 'notsent') {
				msg = 'error sending message, please try again..';
			} else if (data.status == 'email') {
				msg = 'please enter a valid e-mail..';
				$('#e-mail').addClass('error')[0].focus();
			}
			$('.blockUI p').html(msg);
			$('#contactform').pause(delay, function() {
				$(this).unblock();
			});
		}
	});
	$('form input:not([@type=submit]),form textarea').unbind('focus').unbind('blur').focus(function(){
		$(this).addClass('focus');
	}).blur(function(){
		$(this).removeClass('focus');
	});
	$('form input[@type=submit]').unbind('mouseover').unbind('mouseout').hover(function(){
		$(this).addClass('hover');
	}, function(){
		$(this).removeClass('hover');
	});
}
function one_load_page(url, func){
	if (typeof this.menuobj == 'undefined') {
		if ($.browser.msie) this.menuobj = window['menuswf'];
		else this.menuobj = document['menuswf'];
	}
	if (this.menuobj && this.menuobj.rebuild_menu) {
		this.menuobj.rebuild_menu(one_menu_active(url));
	}
	var now = new Date().getTime();
	if ($.browser.safari && now - $.timeBefore < 500) return;
	$.timeBefore = now;
	if (typeof this.preloader == 'undefined') this.preloader = $('<img>').attr({'src': '/images/loader-tan.gif', 'class': 'releases-louder'});
	if (/\?releases|\|releases/.test(url)) $('#releases-wrap').empty().html(this.preloader);
	else if (/\?cd|\|cd/.test(url)) $('div.release-right').empty().html(this.preloader);
	else $('#right').empty().html(this.preloader);
	$.getJSON(location.protocol+'//'+location.hostname+'/'+$.rs($.trim(url.replace('|', '?'))), function(res){
		if (res.status == 'ok') {
			$.each(res.div, function(i,n){
				$(n).empty().html(res.html[i]);
			})
		}
		//setTimeout(one_globalz, 50);
		one_globalz();
		if (typeof func == 'function') func();
	});
}
function one_history_load(hash){
	if($.trim(hash).length>1) {
		if (!$.first||hash!='index') one_load_page(hash);
	} else if (!$.first) {
		one_load_page('index.php');
	}
	$.first=false;
}

function one_do_history_load(url){
	$.historyLoad($.rs(url).replace(location.protocol+'//'+location.hostname+'/', '').replace('?','|'));
}

function one_addtolist(mp3,name){
	if (typeof this.mp3obj == 'undefined') {
		if ($.browser.msie) this.mp3obj = window['mp3player'];
		else this.mp3obj = document['mp3player'];
	}
	if (this.mp3obj) this.mp3obj.addtolist(mp3,name);
}

function one_init(){
	$.timeBefore = new Date().getTime();
	$.timeBefore = new Date().getTime();
	$('#header a').unbind('click').each(function(i){
		if (i==0) {
			$(this).bind('click', function(e){
				one_do_history_load(this.href+'index.php');
				this.blur();
				return false;
			});
		} else {
			$(this).bind('click', function(e){
				one_do_history_load(this.href)
				this.blur();
				return false;
			});
		}
	})
	$('#menu-main').remove();
	$('#left').flash(
		{ src: (/hal9000/.test(window.location.host)? '/one' : '')+'/swf/menu.swf', id: 'menuswf', width: 180, height: 75, flashvars: {active: one_menu_active() }, bgcolor: '#ffffff' },
		{ version: 8, expressInstall: false, update: false },
		function(htmlOptions){
			$(this).prepend('<div class="menu-main"></div>');
			$('div.menu-main')[0].innerHTML = jQuery.fn.flash.transform(htmlOptions);
		}
	);
	$('#player').flash(
		{ id: 'mp3player', src: (/hal9000/.test(window.location.host)? '/one' : '')+'/swf/player03.swf', width: 190, height: 80, allowScriptAccess: 'always', bgcolor: '#ffffff', wmode: 'transparent' },
		{ version: 8, expressInstall: false, update: false },
		function(htmlOptions){
			$(this)[0].innerHTML = jQuery.fn.flash.transform(htmlOptions);
		}
	);
	$('#reading-wrap').pager('>div', {navId:'nav1'});
	$('#listening-wrap').pager('>div', {navId:'nav2'});
	$('#surfing-wrap').pager('>div', {navId:'nav3'});	
	//$('#headerimg a').fixBGPNG();
	one_globalz();
	$.historyInit(one_history_load);
}

function one_menu_active(loc){
	if (typeof loc == 'undefined') var loc = window.location.href;
	if (loc.indexOf('links') != -1) return 1;
	else if (loc.indexOf('contact') != -1) return 2;
	else if (loc.indexOf('about') != -1) return 3;
	
	return 0;
}

$.extend({
	rs: function(str){
		while(str.charAt(str.length-1)=='/'){
			str=str.substr(0,str.length-1);
		}
		while(str.charAt(0)=='/'){
			str=str.substr(1,str.length-1);
		}
		return str;
	}
});

/* globalz */
$(window).ajaxError(function(req,set){
	alert('error loading page..');
});
if ($.browser.mozilla) $('html').css({overflow: "-moz-scrollbars-vertical"});
$.preloadImages('images/cover.png','/images/loader-tan.gif','/images/loader-slider.gif');
$.first = true;