(function(){if(typeof jQuery!="undefined"){var _jQuery=jQuery}var jQuery=window.jQuery=function(a,c){if(window==this||!this.init){return new jQuery(a,c)}return this.init(a,c)};if(typeof $!="undefined"){var _$=$}window.$=jQuery;var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;jQuery.fn=jQuery.prototype={init:function(a,c){a=a||document;if(typeof a=="string"){var m=quickExpr.exec(a);if(m&&(m[1]||!c)){if(m[1]){a=jQuery.clean([m[1]],c)}else{var tmp=document.getElementById(m[3]);if(tmp){if(tmp.id!=m[3]){return jQuery().find(a)}else{this[0]=tmp;this.length=1;return this}}else{a=[]}}}else{return new jQuery(c).find(a)}}else{if(jQuery.isFunction(a)){return new jQuery(document)[jQuery.fn.ready?"ready":"load"](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.2",size:function(){return this.length},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num]},pushStack:function(a){var ret=jQuery(a);ret.prevObject=this;return ret},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(fn,args){return jQuery.each(this,fn,args)},index:function(obj){var pos=-1;this.each(function(i){if(this==obj){pos=i}});return pos},attr:function(key,value,type){var obj=key;if(key.constructor==String){if(value==undefined){return this.length&&jQuery[type||"attr"](this[0],key)||undefined}else{obj={};obj[key]=value}}return this.each(function(index){for(var prop in obj){jQuery.attr(type?this.style:this,prop,jQuery.prop(this,obj[prop],type,index,prop))}})},css:function(key,value){return this.attr(key,value,"curCSS")},text:function(e){if(typeof e!="object"&&e!=null){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},wrapAll:function(html){if(this[0]){jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild){elem=elem.firstChild}return elem}).append(this)}return this},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html)})},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html)})},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 data=jQuery.map(this,function(a){return jQuery.find(t,a)});return this.pushStack(/[^+>] [^+>]/.test(t)||t.indexOf("..")>-1?jQuery.unique(data):data)},clone:function(events){var ret=this.map(function(){return this.outerHTML?jQuery(this.outerHTML)[0]:this.cloneNode(true)});if(events===true){var clone=ret.find("*").andSelf();this.find("*").andSelf().each(function(i){var events=jQuery.data(this,"events");for(var type in events){for(var handler in events[type]){jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data)}}})}return ret},filter:function(t){return this.pushStack(jQuery.isFunction(t)&&jQuery.grep(this,function(el,index){return t.apply(el,[index])})||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(expr){return expr?jQuery.multiFilter(expr,this).length>0:false},hasClass:function(expr){return this.is("."+expr)},val:function(val){if(val==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,a=[],options=elem.options,one=elem.type=="select-one";if(index<0){return null}for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){var val=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one){return val}a.push(val)}}return a}else{return this[0].value.replace(/\r/g,"")}}}else{return this.each(function(){if(val.constructor==Array&&/radio|checkbox/.test(this.type)){this.checked=(jQuery.inArray(this.value,val)>=0||jQuery.inArray(this.name,val)>=0)}else{if(jQuery.nodeName(this,"select")){var tmp=val.constructor==Array?val:[val];jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,tmp)>=0||jQuery.inArray(this.text,tmp)>=0)});if(!tmp.length){this.selectedIndex=-1}}else{this.value=val}}})}},html:function(val){return val==undefined?(this.length?this[0].innerHTML:null):this.empty().append(val)},replaceWith:function(val){return this.after(val).remove()},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(fn){return this.pushStack(jQuery.map(this,function(elem,i){return fn.call(elem,i,elem)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(args,table,dir,fn){var clone=this.length>1,a;return this.each(function(){if(!a){a=jQuery.clean(args,this.ownerDocument);if(dir<0){a.reverse()}}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(a[0],"tr")){obj=this.getElementsByTagName("tbody")[0]||this.appendChild(document.createElement("tbody"))}jQuery.each(a,function(){if(jQuery.nodeName(this,"script")){if(this.src){jQuery.ajax({url:this.src,async:false,dataType:"script"})}else{jQuery.globalEval(this.text||this.textContent||this.innerHTML||"")}}else{fn.apply(obj,[clone?this.cloneNode(true):this])}})})}};jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},a=1,al=arguments.length,deep=false;if(target.constructor==Boolean){deep=target;target=arguments[1]||{}}if(al==1){target=this;a=0}var prop;for(;a<al;a++){if((prop=arguments[a])!=null){for(var i in prop){if(target==prop[i]){continue}if(deep&&typeof prop[i]=="object"&&target[i]){jQuery.extend(target[i],prop[i])}else{if(prop[i]!=undefined){target[i]=prop[i]}}}}}return target};var expando="jQuery"+(new Date()).getTime(),uuid=0,win={};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep){window.jQuery=_jQuery}return jQuery},isFunction:function(fn){return !!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/function/i.test(fn+"")},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body},globalEval:function(data){data=jQuery.trim(data);if(data){if(window.execScript){window.execScript(data)}else{if(jQuery.browser.safari){window.setTimeout(data,0)}else{eval.call(window,data)}}}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase()},cache:{},data:function(elem,name,data){elem=elem==window?win:elem;var id=elem[expando];if(!id){id=elem[expando]=++uuid}if(name&&!jQuery.cache[id]){jQuery.cache[id]={}}if(data!=undefined){jQuery.cache[id][name]=data}return name?jQuery.cache[id][name]:id},removeData:function(elem,name){elem=elem==window?win:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id]){break}if(!name){jQuery.removeData(elem)}}}else{try{delete elem[expando]}catch(e){if(elem.removeAttribute){elem.removeAttribute(expando)}}delete jQuery.cache[id]}},each:function(obj,fn,args){if(args){if(obj.length==undefined){for(var i in obj){fn.apply(obj[i],args)}}else{for(var i=0,ol=obj.length;i<ol;i++){if(fn.apply(obj[i],args)===false){break}}}}else{if(obj.length==undefined){for(var i in obj){fn.call(obj[i],i,obj[i])}}else{for(var i=0,ol=obj.length,val=obj[0];i<ol&&fn.call(val,i,val)!==false;val=obj[++i]){}}}return obj},prop:function(elem,value,type,index,prop){if(jQuery.isFunction(value)){value=value.call(elem,[index])}var exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i;return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(prop)?value+"px":value},className:{add:function(elem,c){jQuery.each((c||"").split(/\s+/),function(i,cur){if(!jQuery.className.has(elem.className,cur)){elem.className+=(elem.className?" ":"")+cur}})},remove:function(elem,c){elem.className=c!=undefined?jQuery.grep(elem.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 parPos=jQuery.css(e.parentNode,"position")||"static";if(parPos=="static"){e.parentNode.style.position="relative"}oHeight=e.clientHeight;oWidth=e.clientWidth;if(parPos=="static"){e.parentNode.style.position="static"}e.parentNode.removeChild(e)}});return p=="height"?oHeight:oWidth}return jQuery.curCSS(e,p)},curCSS:function(elem,prop,force){var ret,stack=[],swap=[];function color(a){if(!jQuery.browser.safari){return false}var ret=document.defaultView.getComputedStyle(a,null);return !ret||ret.getPropertyValue("color")==""}if(prop=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(elem.style,"opacity");return ret==""?"1":ret}if(prop.match(/float/i)){prop=styleFloat}if(!force&&elem.style[prop]){ret=elem.style[prop]}else{if(document.defaultView&&document.defaultView.getComputedStyle){if(prop.match(/float/i)){prop="float"}prop=prop.replace(/([A-Z])/g,"-$1").toLowerCase();var cur=document.defaultView.getComputedStyle(elem,null);if(cur&&!color(elem)){ret=cur.getPropertyValue(prop)}else{for(var a=elem;a&&color(a);a=a.parentNode){stack.unshift(a)}for(a=0;a<stack.length;a++){if(color(stack[a])){swap[a]=stack[a].style.display;stack[a].style.display="block"}}ret=prop=="display"&&swap[stack.length-1]!=null?"none":document.defaultView.getComputedStyle(elem,null).getPropertyValue(prop)||"";for(a=0;a<swap.length;a++){if(swap[a]!=null){stack[a].style.display=swap[a]}}}if(prop=="opacity"&&ret==""){ret="1"}}else{if(elem.currentStyle){var newProp=prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});ret=elem.currentStyle[prop]||elem.currentStyle[newProp];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var style=elem.style.left;var runtimeStyle=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;elem.style.left=ret||0;ret=elem.style.pixelLeft+"px";elem.style.left=style;elem.runtimeStyle.left=runtimeStyle}}}}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"){arg=arg.replace(/(<(\w+)[^>]*?)\/>/g,function(m,all,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area)$/i)?m:all+"></"+tag+">"});var s=jQuery.trim(arg).toLowerCase(),div=doc.createElement("div"),tb=[];var wrap=!s.indexOf("<opt")&&[1,"<select>","</select>"]||!s.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||s.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[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><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+arg+wrap[2];while(wrap[0]--){div=div.lastChild}if(jQuery.browser.msie){if(!s.indexOf("<table")&&s.indexOf("<tbody")<0){tb=div.firstChild&&div.firstChild.childNodes}else{if(wrap[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])}}if(/^\s/.test(arg)){div.insertBefore(doc.createTextNode(arg.match(/^\s*/)[0]),div.firstChild)}}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(elem,name,value){var fix=jQuery.isXMLDoc(elem)?{}:jQuery.props;if(name=="selected"&&jQuery.browser.safari){elem.parentNode.selectedIndex}if(fix[name]){if(value!=undefined){elem[fix[name]]=value}return elem[fix[name]]}else{if(jQuery.browser.msie&&name=="style"){return jQuery.attr(elem.style,"cssText",value)}else{if(value==undefined&&jQuery.browser.msie&&jQuery.nodeName(elem,"form")&&(name=="action"||name=="method")){return elem.getAttributeNode(name).nodeValue}else{if(elem.tagName){if(value!=undefined){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode){throw"type property can't be changed"}elem.setAttribute(name,value)}if(jQuery.browser.msie&&/href|src/.test(name)&&!jQuery.isXMLDoc(elem)){return elem.getAttribute(name,2)}return elem.getAttribute(name)}else{if(name=="opacity"&&jQuery.browser.msie){if(value!=undefined){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseFloat(value).toString()=="NaN"?"":"alpha(opacity="+value*100+")")}return elem.filter?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100).toString():""}name=name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase()});if(value!=undefined){elem[name]=value}return elem[name]}}}}},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(first,second){if(jQuery.browser.msie){for(var i=0;second[i];i++){if(second[i].nodeType!=8){first.push(second[i])}}}else{for(var i=0;second[i];i++){first.push(second[i])}}return first},unique:function(first){var r=[],done={};try{for(var i=0,fl=first.length;i<fl;i++){var id=jQuery.data(first[i]);if(!done[id]){done[id]=true;r.push(first[i])}}}catch(e){r=first}return r},grep:function(elems,fn,inv){if(typeof fn=="string"){fn=eval("false||function(a,i){return "+fn+"}")}var result=[];for(var i=0,el=elems.length;i<el;i++){if(!inv&&fn(elems[i],i)||inv&&!fn(elems[i],i)){result.push(elems[i])}}return result},map:function(elems,fn){if(typeof fn=="string"){fn=eval("false||function(a){return "+fn+"}")}var result=[];for(var i=0,el=elems.length;i<el;i++){var val=fn(elems[i],i);if(val!==null&&val!=undefined){if(val.constructor!=Array){val=[val]}result=result.concat(val)}}return result}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",styleFloat:jQuery.browser.msie?"styleFloat":"cssFloat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,innerHTML:"innerHTML",className:"className",value:"value",disabled:"disabled",checked:"checked",readonly:"readOnly",selected:"selected",maxlength:"maxLength"}});jQuery.each({parent:"a.parentNode",parents:"jQuery.dir(a,'parentNode')",next:"jQuery.nth(a,2,'nextSibling')",prev:"jQuery.nth(a,2,'previousSibling')",nextAll:"jQuery.dir(a,'nextSibling')",prevAll:"jQuery.dir(a,'previousSibling')",siblings:"jQuery.sibling(a.parentNode.firstChild,a)",children:"jQuery.sibling(a.firstChild)",contents:"jQuery.nodeName(a,'iframe')?a.contentDocument||a.contentWindow.document:jQuery.makeArray(a.childNodes)"},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(jQuery.unique(ret))}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},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){jQuery.removeData(this);this.parentNode.removeChild(this)}},empty:function(){jQuery("*",this).each(function(){jQuery.removeData(this)});while(this.firstChild){this.removeChild(this.firstChild)}}},function(i,n){jQuery.fn[i]=function(){return this.each(n,arguments)}});jQuery.each(["Height","Width"],function(i,name){var n=name.toLowerCase();jQuery.fn[n]=function(h){return this[0]==window?jQuery.browser.safari&&self["inner"+name]||jQuery.boxModel&&Math.max(document.documentElement["client"+name],document.body["client"+name])||document.body["client"+name]:this[0]==document?Math.max(document.body["scroll"+name],document.body["offset"+name]):h==undefined?(this.length?jQuery.css(this[0],n):null):this.css(n,h.constructor==String?h:h+"px")}});var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");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)",has:"jQuery.find(m[3],a).length",header:"/h\\d/i.test(a.nodeName)",animated:"jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length"}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r)}return cur},find:function(t,context){if(typeof t!="string"){return[t]}if(context&&!context.nodeType){context=null}context=context||document;var ret=[context],done=[],last;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false;var re=quickChild;var m=re.exec(t);if(m){var nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++){for(var c=ret[i].firstChild;c;c=c.nextSibling){if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName.toUpperCase())){r.push(c)}}}ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0){continue}foundToken=true}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var nodeName=m[2],merge={};m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling){if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id]){break}if(!nodeName||n.nodeName.toUpperCase()==nodeName.toUpperCase()){if(m=="~"){merge[id]=true}r.push(n)}if(m=="+"){break}}}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length)}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]]}else{re2=quickClass;m=re2.exec(t)}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2]){oid=jQuery('[@id="'+m[2]+'"]',elem)[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[3]?m[3]: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&&context==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 pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass){tmp.push(r[i])}}return tmp},filter:function(t,r,not){var last;while(t&&t!=last){last=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|selected/.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 merge={},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,last=test[2]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling){if(n.nodeType==1){n.nodeIndex=c++}}merge[id]=true}var add=false;if(first==1){if(last==0||node.nodeIndex==last){add=true}}else{if((node.nodeIndex+last)%first==0){add=true}}if(add^not){tmp.push(node)}}r=tmp}else{var f=jQuery.expr[m[1]];if(typeof f!="string"){f=jQuery.expr[m[1]][m[2]]}f=eval("false||function(a,i){return "+f+"}");r=jQuery.grep(r,f,not)}}}}}return{r:r,t:t}},dir:function(elem,dir){var matched=[];var cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1){matched.push(cur)}cur=cur[dir]}return matched},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType==1&&++num==result){break}}return cur},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&(!elem||n!=elem)){r.push(n)}}return r}});jQuery.event={add:function(element,type,handler,data){if(jQuery.browser.msie&&element.setInterval!=undefined){element=window}if(!handler.guid){handler.guid=this.guid++}if(data!=undefined){var fn=handler;handler=function(){return fn.apply(this,arguments)};handler.data=data;handler.guid=fn.guid}var parts=type.split(".");type=parts[0];handler.type=parts[1];var events=jQuery.data(element,"events")||jQuery.data(element,"events",{});var handle=jQuery.data(element,"handle",function(){var val;if(typeof jQuery=="undefined"||jQuery.event.triggered){return val}val=jQuery.event.handle.apply(element,arguments);return val});var handlers=events[type];if(!handlers){handlers=events[type]={};if(element.addEventListener){element.addEventListener(type,handle,false)}else{element.attachEvent("on"+type,handle)}}handlers[handler.guid]=handler;this.global[type]=true},guid:1,global:{},remove:function(element,type,handler){var events=jQuery.data(element,"events"),ret,index;if(typeof type=="string"){var parts=type.split(".");type=parts[0]}if(events){if(type&&type.type){handler=type.handler;type=type.type}if(!type){for(type in events){this.remove(element,type)}}else{if(events[type]){if(handler){delete events[type][handler.guid]}else{for(handler in events[type]){if(!parts[1]||events[type][handler].type==parts[1]){delete events[type][handler]}}}for(ret in events[type]){break}if(!ret){if(element.removeEventListener){element.removeEventListener(type,jQuery.data(element,"handle"),false)}else{element.detachEvent("on"+type,jQuery.data(element,"handle"))}ret=null;delete events[type]}}}for(ret in events){break}if(!ret){jQuery.removeData(element,"events");jQuery.removeData(element,"handle")}}},trigger:function(type,data,element,donative,extra){data=jQuery.makeArray(data||[]);if(!element){if(this.global[type]){jQuery("*").add([window,document]).trigger(type,data)}}else{var val,ret,fn=jQuery.isFunction(element[type]||null),evt=!data[0]||!data[0].preventDefault;if(evt){data.unshift(this.fix({type:type,target:element}))}if(jQuery.isFunction(jQuery.data(element,"handle"))){val=jQuery.data(element,"handle").apply(element,data)}if(!fn&&element["on"+type]&&element["on"+type].apply(element,data)===false){val=false}if(evt){data.shift()}if(extra&&extra.apply(element,data)===false){val=false}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(element,"a")&&type=="click")){this.triggered=true;element[type]()}this.triggered=false}return val},handle:function(event){var val;event=jQuery.event.fix(event||window.event||{});var parts=event.type.split(".");event.type=parts[0];var c=jQuery.data(this,"events")&&jQuery.data(this,"events")[event.type],args=Array.prototype.slice.call(arguments,1);args.unshift(event);for(var j in c){args[0].handler=c[j];args[0].data=c[j].data;if(!parts[1]||c[j].type==parts[1]){var tmp=c[j].apply(this,args);if(val!==false){val=tmp}if(tmp===false){event.preventDefault();event.stopPropagation()}}}if(jQuery.browser.msie){event.target=event.preventDefault=event.stopPropagation=event.handler=event.data=null}return val},fix:function(event){var originalEvent=event;event=jQuery.extend({},originalEvent);event.preventDefault=function(){if(originalEvent.preventDefault){originalEvent.preventDefault()}originalEvent.returnValue=false};event.stopPropagation=function(){if(originalEvent.stopPropagation){originalEvent.stopPropagation()}originalEvent.cancelBubble=true};if(!event.target&&event.srcElement){event.target=event.srcElement}if(jQuery.browser.safari&&event.target.nodeType==3){event.target=originalEvent.target.parentNode}if(!event.relatedTarget&&event.fromElement){event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement}if(event.pageX==null&&event.clientX!=null){var e=document.documentElement,b=document.body;event.pageX=event.clientX+(e&&e.scrollLeft||b.scrollLeft||0);event.pageY=event.clientY+(e&&e.scrollTop||b.scrollTop||0)}if(!event.which&&(event.charCode||event.keyCode)){event.which=event.charCode||event.keyCode}if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey}if(!event.which&&event.button){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)))}return event}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data)})},one:function(type,data,fn){return this.each(function(){jQuery.event.add(this,type,function(event){jQuery(this).unbind(event);return(fn||data).apply(this,arguments)},fn&&data)})},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn)})},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn)})},triggerHandler:function(type,data,fn){if(this[0]){return jQuery.event.trigger(type,data,this[0],false,fn)}},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){bindReady();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()})}}}});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)}});var readyBound=false;function bindReady(){if(readyBound){return }readyBound=true;if(jQuery.browser.mozilla||jQuery.browser.opera){document.addEventListener("DOMContentLoaded",jQuery.ready,false)}else{if(jQuery.browser.msie){document.write("<script id=__ie_init defer=true src=//:><\/script>");var script=document.getElementById("__ie_init");if(script){script.onreadystatechange=function(){if(this.readyState!="complete"){return }jQuery.ready()}}script=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)}jQuery.fn.extend({load:function(url,params,callback){if(jQuery.isFunction(url)){return this.bind("load",url)}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off)}callback=callback||function(){};var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=null}else{params=jQuery.param(params);type="POST"}}var self=this;jQuery.ajax({url:url,type:type,data:params,complete:function(res,status){if(status=="success"||status=="notmodified"){self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText)}setTimeout(function(){self.each(callback,[res.responseText,status,res])},13)}});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(i,val){return{name:elem.name,value:val}}):{name:elem.name,value:val}}).get()}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});var jsc=(new Date).getTime();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type})},getScript:function(url,callback){return jQuery.get(url,null,callback,"script")},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={}}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type})},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings)},ajaxSettings:{global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null},lastModified:{},ajax:function(s){var jsonp,jsre=/=(\?|%3F)/g,status,data;s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));if(s.data&&s.processData&&typeof s.data!="string"){s.data=jQuery.param(s.data)}var q=s.url.indexOf("?");if(q>-1){s.data=(s.data?s.data+"&":"")+s.url.slice(q+1);s.url=s.url.slice(0,q)}if(s.dataType=="jsonp"){if(!s.data||!s.data.match(jsre)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?"}s.dataType="json"}if(s.dataType=="json"&&s.data&&s.data.match(jsre)){jsonp="jsonp"+jsc++;s.data=s.data.replace(jsre,"="+jsonp);s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();window[jsonp]=undefined;try{delete window[jsonp]}catch(e){}}}if(s.dataType=="script"&&s.cache==null){s.cache=false}if(s.cache===false&&s.type.toLowerCase()=="get"){s.data=(s.data?s.data+"&":"")+"_="+(new Date()).getTime()}if(s.data&&s.type.toLowerCase()=="get"){s.url+="?"+s.data;s.data=null}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}if(!s.url.indexOf("http")&&s.dataType=="script"){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(!jsonp&&(s.success||s.complete)){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script)}}}head.appendChild(script);return }var requestDone=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 onreadystatechange=function(isTimeout){if(!requestDone&&xml&&(xml.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xml)&&"error"||s.ifModified&&jQuery.httpNotModified(xml,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xml,s.dataType)}catch(e){status="parsererror"}}if(status=="success"){var modRes;try{modRes=xml.getResponseHeader("Last-Modified")}catch(e){}if(s.ifModified&&modRes){jQuery.lastModified[s.url]=modRes}if(!jsonp){success()}}else{jQuery.handleError(s,xml,status)}complete();if(s.async){xml=null}}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0){setTimeout(function(){if(xml){xml.abort();if(!requestDone){onreadystatechange("timeout")}}},s.timeout)}}try{xml.send(s.data)}catch(e){jQuery.handleError(s,xml,null,e)}if(!s.async){onreadystatechange()}return xml;function success(){if(s.success){s.success(data,status)}if(s.global){jQuery.event.trigger("ajaxSuccess",[xml,s])}}function complete(){if(s.complete){s.complete(xml,status)}if(s.global){jQuery.event.trigger("ajaxComplete",[xml,s])}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}}},handleError:function(s,xml,status,e){if(s.error){s.error(xml,status,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 xmlRes=xml.getResponseHeader("Last-Modified");return xml.status==304||xmlRes==jQuery.lastModified[url]||jQuery.browser.safari&&xml.status==undefined}catch(e){}return false},httpData:function(r,type){var ct=r.getResponseHeader("content-type");var xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0;var data=xml?r.responseXML:r.responseText;if(xml&&data.documentElement.tagName=="parsererror"){throw"parsererror"}if(type=="script"){jQuery.globalEval(data)}if(type=="json"){data=eval("("+data+")")}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("&").replace(/%20/g,"+")}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):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(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):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(speed,callback){return this.animate({height:"show"},speed,callback)},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback)},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback)},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback)},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback)},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback)},animate:function(prop,speed,easing,callback){var opt=jQuery.speed(speed,easing,callback);return this[opt.queue===false?"each":"queue"](function(){opt=jQuery.extend({},opt);var hidden=jQuery(this).is(":hidden"),self=this;for(var p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden){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"}opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val)){e[val=="toggle"?hidden?"show":"hide":val](prop)}else{var parts=val.toString().match(/^([+-]?)([\d.]+)(.*)$/),start=e.cur(true)||0;if(parts){end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=end+unit;start=(end/e.cur(true))*start;self.style[name]=start+unit}if(parts[1]){end=((parts[1]=="-"?-1:1)*end)+start}e.custom(start,end,unit)}else{e.custom(start,val,"")}}});return true})},queue:function(type,fn){if(!fn){fn=type;type="fx"}if(!arguments.length){return queue(this[0],type)}return this.each(function(){if(fn.constructor==Array){queue(this,type,fn)}else{queue(this,type).push(fn);if(queue(this,type).length==1){fn.apply(this)}}})},stop:function(){var timers=jQuery.timers;return this.each(function(){for(var i=0;i<timers.length;i++){if(timers[i].elem==this){timers.splice(i--,1)}}}).dequeue()}});var queue=function(elem,type,array){if(!elem){return }var q=jQuery.data(elem,type+"queue");if(!q||array){q=jQuery.data(elem,type+"queue",array?jQuery.makeArray(array):[])}return q};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length){q[0].apply(this)}})};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};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(this).dequeue();if(jQuery.isFunction(opt.old)){opt.old.apply(this)}};return opt},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum}},timers:[],fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig){options.orig={}}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.apply(this.elem,[this.now,this])}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width"){this.elem.style.display="block"}},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null){return this.elem[this.prop]}var r=parseFloat(jQuery.curCSS(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.css(this.elem,this.prop))||0},custom:function(from,to,unit){this.startTime=(new Date()).getTime();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(){return self.step()}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timers.length==1){var timer=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1)}}if(!timers.length){clearInterval(timer)}},13)}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height"){this.elem.style[this.prop]="1px"}jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(){var t=(new Date()).getTime();if(t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){this.elem.style.display="none"}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.attr(this.elem.style,p,this.options.orig[p])}}}if(done&&jQuery.isFunction(this.options.complete)){this.options.complete.apply(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};jQuery.fx.step={scrollLeft:function(fx){fx.elem.scrollLeft=fx.now},scrollTop:function(fx){fx.elem.scrollTop=fx.now},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now)},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit}};jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem){with(jQuery.browser){var absolute=jQuery.css(elem,"position")=="absolute",parent=elem.parentNode,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&!absolute&&parseInt(version)<522;if(elem.getBoundingClientRect){box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));if(msie){var border=jQuery("html").css("borderWidth");border=(border=="medium"||jQuery.boxModel&&parseInt(version)>=7)&&2||border;add(-border,-border)}}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&/^t[d|h]$/i.test(parent.tagName)||!safari2){border(offsetParent)}if(safari2&&!absolute&&jQuery.css(offsetParent,"position")=="absolute"){absolute=true}offsetParent=offsetParent.offsetParent}while(parent.tagName&&/^body|html$/i.test(parent.tagName)){if(/^inline|table-row.*$/i.test(jQuery.css(parent,"display"))){add(-parent.scrollLeft,-parent.scrollTop)}if(mozilla&&jQuery.css(parent,"overflow")!="visible"){border(parent)}parent=parent.parentNode}if(safari&&absolute){add(-doc.body.offsetLeft,-doc.body.offsetTop)}}results={top:top,left:left}}}return results;function border(elem){add(jQuery.css(elem,"borderLeftWidth"),jQuery.css(elem,"borderTopWidth"))}function add(l,t){left+=parseInt(l)||0;top+=parseInt(t)||0}}})();eval(function(D,A,F,B,C,E){C=function(G){return(G<A?"":C(parseInt(G/A)))+((G=G%A)>35?String.fromCharCode(G+29):G.toString(36))};if(!"".replace(/^/,String)){while(F--){E[C(F)]=B[F]||C(F)}B=[function(G){return E[G]}];C=function(){return"\\w+"};F=1}while(F--){if(B[F]){D=D.replace(new RegExp("\\b"+C(F)+"\\b","g"),B[F])}}return D}("4.2V=q(e){7(/^3k$|^3h$|^3i$|^3y$|^3A$|^3v$|^37$|^38$|^3t$|^4n$|^4a$|^4b$|^48$|^46$|^3D$|^44$|^4d$/i.1I(e.2d))B 1b;u B 1D};4.f.4k=q(e,V){6 c=e.4l;6 Y=c.1f;Y.L=V.L;Y.1E=V.R.t;Y.1K=V.R.l;Y.1N=V.R.b;Y.1O=V.R.r;Y.K=V.K+'S';Y.J=V.J+'S';e.21.2B(c,e);e.21.4m(e)};4.f.4i=q(e){7(!4.2V(e))B 1b;6 t=4(e);6 H=e.1f;6 1Y=1b;7(t.N('1S')=='15'){2E=t.N('1X');t.N('1X','1R').1y();1Y=1D}6 v={};v.L=t.N('L');v.26=4.2W.3T(e);v.R=4.2W.43(e);6 24=e.2k?e.2k.2l:t.N('3S');v.K=D(t.N('K'))||0;v.J=D(t.N('J'))||0;6 2m='3R'+D(27.3Q()*2R);6 14=1v.3U(/^3V$|^3Y$|^3X$|^3W$|^3P$|^3O$|^2f$|^3H$|^3G$|^3F$|^3E$|^3I$|^3J$|^3N$/i.1I(e.2d)?'3L':e.2d);4.1r(14,'3K',2m);6 3Z=4(14).40('4h');6 E=14.1f;6 K=0;6 J=0;7(v.L=='28'||v.L=='1Z'){K=v.K;J=v.J}E.K=K+'S';E.J=J+'S';E.L=v.L!='28'&&v.L!='1Z'?'28':v.L;E.2F=v.26.4g+'S';E.2G=v.26.4f+'S';E.1E=v.R.t;E.1O=v.R.r;E.1N=v.R.b;E.1K=v.R.l;E.1W='1R';7(4.2i.2A){E.2l=24}u{E.4j=24}7(4.2i==\"2A\"){H.4c=\"45(P=\"+0.2z*2s+\")\"}H.P=0.2z;e.21.2B(14,e);14.41(e);H.1E='1h';H.1O='1h';H.1N='1h';H.1K='1h';H.L='1Z';H.49='15';H.K='1h';H.J='1h';7(1Y){t.1q();H.1X=2E}B{v:v,36:4(14)}};4.f.1p={35:[0,d,d],39:[2w,d,d],3a:[2D,2D,3d],34:[0,0,0],3c:[0,0,d],3b:[2y,42,42],3e:[0,d,d],33:[0,0,1l],31:[0,1l,1l],32:[2e,2e,2e],3C:[0,2s,0],3u:[3f,3s,2q],3w:[1l,0,1l],3x:[3B,2q,47],3z:[d,2u,0],3r:[3q,50,3j],3g:[1l,0,0],3l:[3p,3o,3n],3m:[3M,0,1z],4s:[d,0,d],5q:[d,5p,0],5o:[0,12,0],5n:[5r,0,5s],5v:[2w,2t,2u],5u:[5m,5l,2t],5e:[2x,d,d],5c:[2r,5b,2r],5f:[1z,1z,1z],4o:[d,5j,5i],5x:[d,d,2x],5w:[0,d,0],5B:[d,0,d],5N:[12,0,0],5L:[0,0,12],5S:[12,12,0],5M:[d,2y,0],5O:[d,1C,5R],5Q:[12,0,12],5K:[d,0,0],5I:[1C,1C,1C],5A:[d,d,d],5y:[d,d,0]};4.f.16=q(M,2p){7(4.f.1p[M])B{r:4.f.1p[M][0],g:4.f.1p[M][1],b:4.f.1p[M][2]};u 7(x=/^1a\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)$/.1B(M))B{r:D(x[1]),g:D(x[2]),b:D(x[3])};u 7(x=/1a\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)$/.1B(M))B{r:I(x[1])*2.55,g:I(x[2])*2.55,b:I(x[3])*2.55};u 7(x=/^#([a-1k-1j-9])([a-1k-1j-9])([a-1k-1j-9])$/.1B(M))B{r:D(\"1i\"+x[1]+x[1]),g:D(\"1i\"+x[2]+x[2]),b:D(\"1i\"+x[3]+x[3])};u 7(x=/^#([a-1k-1j-9]{2})([a-1k-1j-9]{2})([a-1k-1j-9]{2})$/.1B(M))B{r:D(\"1i\"+x[1]),g:D(\"1i\"+x[2]),b:D(\"1i\"+x[3])};u B 2p==1D?1b:{r:d,g:d,b:d}};4.f.2J={4C:1,4B:1,4F:1,4G:1,4J:1,4I:1,2F:1,J:1,4H:1,4A:1,1N:1,1K:1,1O:1,1E:1,4p:1,4t:1,4u:1,4y:1,P:1,4x:1,4w:1,4v:1,4K:1,4L:1,52:1,51:1,4Z:1,K:1,2G:1,1P:1};4.f.2L={4Y:1,53:1,54:1,58:1,57:1,M:1,4X:1};4.f.1t=['4W','4P','4O','4N'];4.f.22={'23':['1u','2Q'],'1F':['1u','2h'],'1A':['1A',''],'1G':['1G','']};4.4M.2j({4Q:q(W,1m,C,1M){B A.1s(q(){6 1H=4.1m(1m,C,1M);6 e=1o 4.30(A,1H,W)})},2g:q(1m,1M){B A.1s(q(){6 1H=4.1m(1m,1M);6 e=1o 4.2g(A,1H)})},4R:q(O){B A.2o(q(){7(A.X)4.25(A,O)})},4V:q(O){B A.2o(q(){7(A.X)4.25(A,O);7(A.1s&&A.1s['f'])A.1s.f=[]})}});4.2j({2g:q(8,k){6 z=A,2Z;z.O=q(){7(4.2X(k.1U))k.1U.2H(8)};z.1n=2n(q(){z.O()},k.T);8.X=z},C:{2M:q(p,n,2S,2U,T){B((-27.4T(p*27.4S)/2)+0.5)*2U+2S}},30:q(8,k,W){6 z=A,2Z;6 y=8.1f;6 2K=4.N(8,\"1W\");6 1c=4.N(8,\"1S\");6 h={};z.1V=(1o 2T()).2Y();k.C=k.C&&4.C[k.C]?k.C:'2M';z.1T=q(o,F){7(4.f.2J[o]){7(F=='1y'||F=='1q'||F=='2I'){7(!8.18)8.18={};6 r=I(4.10(8,o));8.18[o]=r&&r>-2R?r:(I(4.N(8,o))||0);F=F=='2I'?(1c=='15'?'1y':'1q'):F;k[F]=1D;h[o]=F=='1y'?[0,8.18[o]]:[8.18[o],0];7(o!='P')y[o]=h[o][0]+(o!='1P'&&o!='2b'?'S':'');u 4.1r(y,\"P\",h[o][0])}u{h[o]=[I(4.10(8,o)),I(F)||0]}}u 7(4.f.2L[o])h[o]=[4.f.16(4.10(8,o)),4.f.16(F)];u 7(/^1A$|1G$|1u$|1F$|23$/i.1I(o)){6 m=F.11(/\\s+/g,' ').11(/1a\\s*\\(\\s*/g,'1a(').11(/\\s*,\\s*/g,',').11(/\\s*\\)/g,')').4E(/([^\\s]+)/g);4U(o){1x'1A':1x'1G':1x'23':1x'1F':m[3]=m[3]||m[1]||m[0];m[2]=m[2]||m[0];m[1]=m[1]||m[0];G(6 i=0;i<4.f.1t.17;i++){6 U=4.f.22[o][0]+4.f.1t[i]+4.f.22[o][1];h[U]=o=='1F'?[4.f.16(4.10(8,U)),4.f.16(m[i])]:[I(4.10(8,U)),I(m[i])]}2N;1x'1u':G(6 i=0;i<m.17;i++){6 2a=I(m[i]);6 1J=!56(2a)?'2Q':(!/4q|15|1R|4r|4z|5a|5h|5E|5G|5H|5D/i.1I(m[i])?'2h':1b);7(1J){G(6 j=0;j<4.f.1t.17;j++){U='1u'+4.f.1t[j]+1J;h[U]=1J=='2h'?[4.f.16(4.10(8,U)),4.f.16(m[i])]:[I(4.10(8,U)),2a]}}u{y['5C']=m[i]}}2N}}u{y[o]=F}B 1b};G(p 1g W){7(p=='1f'){6 Q=4.20(W[p]);G(1e 1g Q){A.1T(1e,Q[1e])}}u 7(p=='5g'){7(1v.1L)G(6 i=0;i<1v.1L.17;i++){6 19=1v.1L[i].19||1v.1L[i].5k||1Q;7(19){G(6 j=0;j<19.17;j++){7(19[j].5t=='.'+W[p]){6 1d=1o 5d('\\.'+W[p]+' {');6 Z=19[j].1f.5z;6 Q=4.20(Z.11(1d,'').11(/}/g,''));G(1e 1g Q){A.1T(1e,Q[1e])}}}}}}u{A.1T(p,W[p])}}y.1S=1c=='15'?'2P':1c;y.1W='1R';z.O=q(){6 t=(1o 2T()).2Y();7(t>k.T+z.1V){2C(z.1n);z.1n=1Q;G(p 1g h){7(p==\"P\")4.1r(y,\"P\",h[p][1]);u 7(29 h[p][1]=='2f')y[p]='1a('+h[p][1].r+','+h[p][1].g+','+h[p][1].b+')';u y[p]=h[p][1]+(p!='1P'&&p!='2b'?'S':'')}7(k.1q||k.1y)G(6 p 1g 8.18)7(p==\"P\")4.1r(y,p,8.18[p]);u y[p]=\"\";y.1S=k.1q?'15':(1c!='15'?1c:'2P');y.1W=2K;8.X=1Q;7(4.2X(k.1U))k.1U.2H(8)}u{6 n=t-A.1V;6 1w=n/k.T;G(p 1g h){7(29 h[p][1]=='2f'){y[p]='1a('+D(4.C[k.C](1w,n,h[p][0].r,(h[p][1].r-h[p][0].r),k.T))+','+D(4.C[k.C](1w,n,h[p][0].g,(h[p][1].g-h[p][0].g),k.T))+','+D(4.C[k.C](1w,n,h[p][0].b,(h[p][1].b-h[p][0].b),k.T))+')'}u{6 2c=4.C[k.C](1w,n,h[p][0],(h[p][1]-h[p][0]),k.T);7(p==\"P\")4.1r(y,\"P\",2c);u y[p]=2c+(p!='1P'&&p!='2b'?'S':'')}}}};z.1n=2n(q(){z.O()},13);8.X=z},25:q(8,O){7(O)8.X.1V-=4D;u{59.2C(8.X.1n);8.X=1Q;4.5F(8,\"f\")}}});4.20=q(Z){6 Q={};7(29 Z=='5J'){Z=Z.5P().2v(';');G(6 i=0;i<Z.17;i++){1d=Z[i].2v(':');7(1d.17==2){Q[4.2O(1d[0].11(/\\-(\\w)/g,q(m,c){B c.4e()}))]=4.2O(1d[1])}}}B Q};",62,365,"||||jQuery||var|if|elem|||||255||fx||props|||options||||tp||function||||else|oldStyle||result|||this|return|easing|parseInt|wrs|vp|for|es|parseFloat|left|top|position|color|css|step|opacity|newStyles|margins|px|duration|nmp|old|prop|animationHandler|cs|styles|curCSS|replace|128||wr|none|parseColor|length|orig|cssRules|rgb|false|oldDisplay|rule|np|style|in|0px|0x|F0|fA|139|speed|timer|new|namedColors|hide|attr|queue|cssSides|border|document|pr|case|show|211|margin|exec|192|true|marginTop|borderColor|padding|opt|test|sideEnd|marginLeft|styleSheets|callback|marginBottom|marginRight|zIndex|null|hidden|display|getValues|complete|startTime|overflow|visibility|restoreStyle|absolute|parseStyle|parentNode|cssSidesEnd|borderWidth|oldFloat|stopAnim|sizes|Math|relative|typeof|floatVal|fontWeight|pValue|nodeName|169|object|pause|Color|browser|extend|currentStyle|styleFloat|wid|setInterval|each|notColor|107|144|100|230|140|split|240|224|54|999|msie|insertBefore|clearInterval|245|oldVisibility|height|width|apply|toggle|cssProps|oldOverflow|colorCssProps|linear|break|trim|block|Width|10000|firstNum|Date|delta|fxCheckTag|iUtil|isFunction|getTime|values|fxe|darkcyan|darkgrey|darkblue|black|aqua|wrapper|col|colgroup|azure|beige|brown|blue|220|cyan|189|darkred|td|tbody|54|tr|darksalmon|darkviolet|122|150|233|153|darkorchid|183|th|darkkhaki|tfoot|darkmagenta|darkolivegreen|caption|darkorange|thead|85|darkgreen|option|table|form|button|iframe|ul|dl|id|div|148|ol|textarea|select|random|w_|float|getSize|createElement|img|hr|input|br|wrapEl|addClass|appendChild||getMargins|optgroup|alpha|frameset||frame|listStyle|header|script|filter|meta|toUpperCase|wb|hb|fxWrapper|buildWrapper|cssFloat|destroyWrapper|firstChild|removeChild|body|lightpink|maxHeight|transparent|dotted|fuchsia|maxWidth|minHeight|paddingBottom|outlineWidth|outlineOffset|minWidth|dashed|lineHeight|borderLeftWidth|borderBottomWidth|100000000|match|borderRightWidth|borderTopWidth|letterSpacing|fontSize|bottom|paddingLeft|paddingRight|fn|Left|Bottom|Right|animate|stop|PI|cos|switch|stopAll|Top|outlineColor|backgroundColor|textIndent||right|paddingTop|borderBottomColor|borderLeftColor||isNaN|borderTopColor|borderRightColor|window|solid|238|lightgreen|RegExp|lightcyan|lightgrey|className|double|193|182|rules|216|173|indigo|green|215|gold|75|130|selectorText|lightblue|khaki|lime|lightyellow|yellow|cssText|white|magenta|borderStyle|outset|groove|dequeue|ridge|inset|silver|string|red|navy|orange|maroon|pink|toLowerCase|purple|203|olive".split("|"),0,{}));jQuery.fn.ajaxSubmit=function(options){if(typeof options=="function"){options={success:options}}options=jQuery.extend({url:this.attr("action")||window.location,type:this.attr("method")||"GET"},options||{});var a=this.formToArray(options.semantic);if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){return this}var veto={};jQuery.event.trigger("form.submit.validate",[a,this,options,veto]);if(veto.veto){return this}var q=jQuery.param(a);if(options.type.toUpperCase()=="GET"){options.url+=(options.url.href.indexOf("?")>=0?"&":"?")+q;options.data=null}else{options.data=q}var $form=this,callbacks=[];if(options.resetForm){callbacks.push(function(){$form.resetForm()})}if(options.clearForm){callbacks.push(function(){$form.clearForm()})}if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data,status){jQuery(options.target).attr("innerHTML",data).evalScripts().each(oldSuccess,[data,status])})}else{if(options.success){callbacks.push(options.success)}}options.success=function(data,status){for(var i=0,max=callbacks.length;i<max;i++){callbacks[i](data,status)}};var files=jQuery("input:file",this).fieldValue();var found=false;for(var j=0;j<files.length;j++){if(files[j]){found=true}}if(options.iframe||found){fileUpload()}else{jQuery.ajax(options)}jQuery.event.trigger("form.submit.notify",[this,options]);return this;function fileUpload(){var form=$form[0];var opts=jQuery.extend({},jQuery.ajaxSettings,options);var id="jqFormIO"+jQuery.fn.ajaxSubmit.counter++;var $io=jQuery('<iframe id="'+id+'" name="'+id+'" />');var io=$io[0];var op8=jQuery.browser.opera&&window.opera.version()<9;if(jQuery.browser.msie||op8){io.src='javascript:false;document.write("");'}$io.css({position:"absolute",top:"-1000px",left:"-1000px"});form.method="POST";form.encoding?form.encoding="multipart/form-data":form.enctype="multipart/form-data";var xhr={responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){}};var g=opts.global;if(g&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}if(g){jQuery.event.trigger("ajaxSend",[xhr,opts])}var cbInvoked=0;var timedOut=0;setTimeout(function(){$io.appendTo("body");io.attachEvent?io.attachEvent("onload",cb):io.addEventListener("load",cb,false);form.action=opts.url;var t=form.target;form.target=id;if(opts.timeout){setTimeout(function(){timedOut=true;cb()},opts.timeout)}form.submit();form.target=t},10);function cb(){if(cbInvoked++){return }io.detachEvent?io.detachEvent("onload",cb):io.removeEventListener("load",cb,false);var ok=true;try{if(timedOut){throw"timeout"}var data,doc;doc=io.contentWindow?io.contentWindow.document:io.contentDocument?io.contentDocument:io.document;xhr.responseText=doc.body?doc.body.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(opts.dataType=="json"||opts.dataType=="script"){var ta=doc.getElementsByTagName("textarea")[0];data=ta?ta.value:xhr.responseText;if(opts.dataType=="json"){eval("data = "+data)}else{jQuery.globalEval(data)}}else{if(opts.dataType=="xml"){data=xhr.responseXML;if(!data&&xhr.responseText!=null){data=toXml(xhr.responseText)}}else{data=xhr.responseText}}}catch(e){ok=false;jQuery.handleError(opts,xhr,"error",e)}if(ok){opts.success(data,"success");if(g){jQuery.event.trigger("ajaxSuccess",[xhr,opts])}}if(g){jQuery.event.trigger("ajaxComplete",[xhr,opts])}if(g&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}if(opts.complete){opts.complete(xhr,ok?"success":"error")}setTimeout(function(){$io.remove();xhr.responseXML=null},100)}function toXml(s,doc){if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM");doc.async="false";doc.loadXML(s)}else{doc=(new DOMParser()).parseFromString(s,"text/xml")}return(doc&&doc.documentElement&&doc.documentElement.tagName!="parsererror")?doc:null}}};jQuery.fn.ajaxSubmit.counter=0;jQuery.fn.ajaxForm=function(A){return this.each(function(){jQuery("input:submit,input:image,button:submit",this).click(function(C){var B=this.form;B.clk=this;if(this.type=="image"){if(C.offsetX!=undefined){B.clk_x=C.offsetX;B.clk_y=C.offsetY}else{if(typeof jQuery.fn.offset=="function"){var D=jQuery(this).offset();B.clk_x=C.pageX-D.left;B.clk_y=C.pageY-D.top}else{B.clk_x=C.pageX-this.offsetLeft;B.clk_y=C.pageY-this.offsetTop}}}setTimeout(function(){B.clk=B.clk_x=B.clk_y=null},10)})}).submit(function(B){jQuery(this).ajaxSubmit(A);return false})};jQuery.fn.formToArray=function(L){var K=[];if(this.length==0){return K}var B=this[0];var F=L?B.getElementsByTagName("*"):B.elements;if(!F){return K}for(var G=0,I=F.length;G<I;G++){var C=F[G];var D=C.name;if(!D){continue}if(L&&B.clk&&C.type=="image"){if(!C.disabled&&B.clk==C){K.push({name:D+".x",value:B.clk_x},{name:D+".y",value:B.clk_y})}continue}var M=jQuery.fieldValue(C,true);if(M===null){continue}if(M.constructor==Array){for(var E=0,A=M.length;E<A;E++){K.push({name:D,value:M[E]})}}else{K.push({name:D,value:M})}}if(!L&&B.clk){var H=B.getElementsByTagName("input");for(var G=0,I=H.length;G<I;G++){var J=H[G];var D=J.name;if(D&&!J.disabled&&J.type=="image"&&B.clk==J){K.push({name:D+".x",value:B.clk_x},{name:D+".y",value:B.clk_y})}}}return K};jQuery.fn.formSerialize=function(A){return jQuery.param(this.formToArray(A))};jQuery.fn.fieldSerialize=function(B){var A=[];this.each(function(){var F=this.name;if(!F){return }var D=jQuery.fieldValue(this,B);if(D&&D.constructor==Array){for(var E=0,C=D.length;E<C;E++){A.push({name:F,value:D[E]})}}else{if(D!==null&&typeof D!="undefined"){A.push({name:this.name,value:D})}}});return jQuery.param(A)};jQuery.fn.fieldValue=function(F){for(var E=[],C=0,A=this.length;C<A;C++){var D=this[C];var B=jQuery.fieldValue(D,F);if(B===null||typeof B=="undefined"||(B.constructor==Array&&!B.length)){continue}B.constructor==Array?jQuery.merge(E,B):E.push(B)}return E};jQuery.fieldValue=function(A,G){var C=A.name,L=A.type,M=A.tagName.toLowerCase();if(typeof G=="undefined"){G=true}if(G&&(!C||A.disabled||L=="reset"||L=="button"||(L=="checkbox"||L=="radio")&&!A.checked||(L=="submit"||L=="image")&&A.form&&A.form.clk!=A||M=="select"&&A.selectedIndex==-1)){return null}if(M=="select"){var H=A.selectedIndex;if(H<0){return null}var J=[],B=A.options;var E=(L=="select-one");var I=(E?H+1:B.length);for(var D=(E?H:0);D<I;D++){var F=B[D];if(F.selected){var K=jQuery.browser.msie&&!(F.attributes.value.specified)?F.text:F.value;if(E){return K}J.push(K)}}return J}return A.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 B=this.type,A=this.tagName.toLowerCase();if(B=="text"||B=="password"||A=="textarea"){this.value=""}else{if(B=="checkbox"||B=="radio"){this.checked=false}else{if(A=="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()}})};jQuery.extend(jQuery.fn,{validate:function(B){var C=new jQuery.validator(B,this[0]);if(C.settings.onsubmit){this.find("input.cancel:submit").click(function(){this.form.cancel=true});this.submit(function(D){if(C.settings.debug){D.preventDefault()}if(this.cancel||C.form()){this.cancel=false;if(C.settings.submitHandler){C.settings.submitHandler(C.currentForm);return false}return true}else{C.focusInvalid();return false}})}C.settings.onblur&&C.elements.blur(function(){C.settings.onblur.call(C,this)});C.settings.onkeyup&&C.elements.keyup(function(){C.settings.onkeyup.call(C,this)});var A=jQuery([]);C.elements.each(function(){if(C.checkable(this)){A.push(C.checkableGroup(this))}});C.settings.onchange&&A.click(function(){C.settings.onchange.call(C,this)});return C},push:function(A){return this.setArray(jQuery.merge(this.get(),A))}});jQuery.extend(jQuery.expr[":"],{blank:"!jQuery.trim(a.value)",filled:"!!jQuery.trim(a.value)",unchecked:"!a.checked"});String.format=function(A,B){if(arguments.length==1){return function(C){return String.format(A,C)}}if(arguments.length>2){B=jQuery.makeArray(arguments).slice(1)}if(B.constructor!=Array){B=[B]}jQuery.each(B,function(C,D){A=A.replace(new RegExp("\\{"+C+"\\}"),D)});return A};jQuery.validator=function(A,B){this.settings=jQuery.extend({},jQuery.validator.defaults,A);this.currentForm=B;this.labelContainer=this.settings.errorLabelContainer;this.errorContext=this.labelContainer.length&&this.labelContainer||jQuery(B);this.containers=this.settings.errorContainer.add(this.settings.errorLabelContainer);this.submitted={};this.reset();this.refresh()};jQuery.extend(jQuery.validator,{defaults:{messages:{},errorClass:"error",errorElement:"label",focusInvalid:true,errorContainer:jQuery([]),errorLabelContainer:jQuery([]),onsubmit:true,ignore:[],onblur:function(A){if(!this.checkable(A)&&(A.name in this.submitted||!this.required(A))){this.element(A)}},onkeyup:function(A){if(A.name in this.submitted||A==this.lastElement){this.element(A)}},onchange:function(A){if(A.name in this.submitted){this.element(A)}}},setDefaults:function(A){jQuery.extend(jQuery.validator.defaults,A)},messages:{required:"This field is required.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",dateDE:"Bitte geben Sie ein gültiges Datum ein.",number:"Please enter a valid number.",numberDE:"Bitte geben Sie eine Nummer ein.",digits:"Please enter only digits",creditcard:"Please enter a valid credit card.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxLength:String.format("Please enter a value no longer than {0} characters."),minLength:String.format("Please enter a value of at least {0} characters."),rangeLength:String.format("Please enter a value between {0} and {1} characters long."),rangeValue:String.format("Please enter a value between {0} and {1}."),maxValue:String.format("Please enter a value less than or equal to {0}."),minValue:String.format("Please enter a value greater than or equal to {0}.")},prototype:{form:function(){this.prepareForm();for(var B=0,A;A=this.elements[B];B++){this.check(A)}jQuery.extend(this.submitted,this.errorMap);return this.valid()},element:function(B){B=this.clean(B);this.lastElement=B;this.prepareElement(B);var A=this.check(B);this.showErrors();return A},showErrors:function(A){if(A){jQuery.extend(this.errorMap,A);for(name in A){this.errorList.push({message:A[name],element:jQuery("[@name="+name+"]:first",this.currentForm)[0]})}this.successList=jQuery.grep(this.successList,function(B){return !(B.name in A)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){if(jQuery.fn.resetForm){jQuery(this.currentForm).resetForm()}this.prepareForm();this.hideErrors();this.elements.removeClass(this.settings.errorClass)},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){this.showErrors();return this.errorList.length==0},focusInvalid:function(){if(this.settings.focusInvalid){try{jQuery(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus()}catch(A){}}},findLastActive:function(){var A=this.lastActive;return A&&jQuery.grep(this.errorList,function(B){return B.element.name==A.name}).length==1&&A},refresh:function(){var A=this;A.rulesCache={};this.elements=jQuery(this.currentForm).find("input, select, textarea, button").not(":submit").not(":reset").not(this.settings.ignore).filter(function(){!this.name&&A.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in A.rulesCache||!A.rules(this).length){return false}A.rulesCache[this.name]=A.rules(this);return true});this.elements.focus(function(){A.lastActive=this;if(A.settings.focusCleanup){jQuery(this).removeClass(A.settings.errorClass);A.errorsFor(this).hide()}})},clean:function(A){return jQuery(A)[0]},errors:function(){return jQuery(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(A){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=jQuery([]);this.toHide=jQuery([])},prepareForm:function(){this.reset();this.toHide=this.errors().push(this.containers)},prepareElement:function(A){this.reset();this.toHide=this.errorsFor(this.clean(A))},check:function(C){C=this.clean(C);jQuery(C).removeClass(this.settings.errorClass);var F=this.rulesCache[C.name];for(var B=0,E;E=F[B++];){try{var A=jQuery.validator.methods[E.method].call(this,jQuery.trim(C.value),C,E.parameters);if(A===-1){break}if(!A){jQuery(C).addClass(this.settings.errorClass);this.formatAndAdd(E,C);return false}}catch(D){this.settings.debug&&window.console&&console.error("exception occured when checking element "+C.id+", check the '"+E.method+"' method");throw D}}if(F.length&&this.settings.success){this.successList.push(C)}return true},message:function(C,B){var A=this.settings.messages[C];return A&&(A.constructor==String?A:A[B])},formatAndAdd:function(C,A){var B=this.message(A.name,C.method)||A.title||jQuery.validator.messages[C.method]||"<strong>Warning: No message defined for "+A.name+"</strong>";if(typeof B=="function"){B=B.call(this,C.parameters,A)}this.errorList.push({message:B,element:A});this.errorMap[A.name]=B;this.submitted[A.name]=B},addWrapper:function(A){if(this.settings.wrapper){A.push(A.parents(this.settings.wrapper))}return A},defaultShowErrors:function(){for(var C=0,A;A=this.errorList[C];C++){this.showLabel(A.element,A.message)}if(this.errorList.length){this.toShow.push(this.containers)}for(var C=0,B;B=this.successList[C];C++){this.showLabel(B)}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},showLabel:function(B,C){var A=this.errorsFor(B);if(A.length){A.removeClass().addClass(this.settings.errorClass);if(this.settings.overrideErrors||A.attr("generated")){A.html(C)}}else{A=jQuery("<"+this.settings.errorElement+"></"+this.settings.errorElement+">").attr({"for":this.idOrName(B),generated:true}).addClass(this.settings.errorClass).html(C||"");if(this.settings.wrapper){A=A.hide().show().wrap("<"+this.settings.wrapper+">").parent()}if(!this.labelContainer.append(A).length){this.settings.errorPlacement?this.settings.errorPlacement(A,jQuery(B)):A.insertAfter(B)}}if(!C&&this.settings.success){A.text("");typeof this.settings.success=="string"?A.addClass(this.settings.success):this.settings.success(A)}this.toShow.push(A)},errorsFor:function(A){return this.errors().filter("[@for="+this.idOrName(A)+"]")},idOrName:function(A){return this.checkable(A)?A.name:A.id||A.name},rules:function(B){var C=this.data(B);if(!C){return[]}var D=[];if(typeof C=="string"){var A={};A[C]=true;C=A}jQuery.each(C,function(E,F){D[D.length]={method:E,parameters:F}});return D},data:function(A){return this.settings.rules?this.settings.rules[A.name]:this.settings.meta?jQuery(A).data()[this.settings.meta]:jQuery(A).data()},checkable:function(A){return/radio|checkbox/i.test(A.type)},checkableGroup:function(A){return jQuery(A.form||document).find('[@name="'+A.name+'"]')},getLength:function(B,A){switch(A.nodeName.toLowerCase()){case"select":return jQuery("option:selected",A).length;case"input":if(this.checkable(A)){return this.checkableGroup(A).filter(":checked").length}}return B.length},depend:function(B,A){return this.dependTypes[typeof B]?this.dependTypes[typeof B](B,A):true},dependTypes:{"boolean":function(B,A){return B},string:function(B,A){return !!jQuery(B,A.form).length},"function":function(B,A){return B(A)}},required:function(A){return !jQuery.validator.methods.required.call(this,jQuery.trim(A.value),A)}},methods:{required:function(C,B,D){if(!this.depend(D,B)){return -1}switch(B.nodeName.toLowerCase()){case"select":var A=jQuery("option:selected",B);return A.length>0&&(B.type=="select-multiple"||(jQuery.browser.msie&&!(A[0].attributes.value.specified)?A[0].text:A[0].value).length>0);case"input":if(this.checkable(B)){return this.getLength(C,B)>0}default:return C.length>0}},minLength:function(B,A,C){return this.required(A)||this.getLength(B,A)>=C},maxLength:function(B,A,C){return this.required(A)||this.getLength(B,A)<=C},rangeLength:function(C,A,D){var B=this.getLength(C,A);return this.required(A)||(B>=D[0]&&B<=D[1])},minValue:function(B,A,C){return this.required(A)||B>=C},maxValue:function(B,A,C){return this.required(A)||B<=C},rangeValue:function(B,A,C){return this.required(A)||(B>=C[0]&&B<=C[1])},email:function(B,A){return this.required(A)||/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/i.test(B)},url:function(B,A){return this.required(A)||/^(https?|ftp):\/\/[A-Z0-9](\.?[A-Z0-9ÄÜÖ][A-Z0-9_\-ÄÜÖ]*)*(\/([A-Z0-9ÄÜÖ][A-Z0-9_\-\.ÄÜÖ]*)?)*(\?([A-Z0-9ÄÜÖ][A-Z0-9_\-\.%\+=&ÄÜÖ]*)?)?$/i.test(B)},date:function(B,A){return this.required(A)||!/Invalid|NaN/.test(new Date(B))},dateISO:function(B,A){return this.required(A)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(B)},dateDE:function(B,A){return this.required(A)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(B)},number:function(B,A){return this.required(A)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(B)},numberDE:function(B,A){return this.required(A)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(B)},digits:function(B,A){return this.required(A)||/^\d+$/.test(B)},creditcard:function(E,B){if(this.required(B)){return true}var F=0,D=0,A=false;E=E.replace(/\D/g,"");for(n=E.length-1;n>=0;n--){var C=E.charAt(n);var D=parseInt(C,10);if(A){if((D*=2)>9){D-=9}}F+=D;A=!A}return(F%10)==0},accept:function(B,A,C){C=typeof C=="string"?C:"png|jpe?g|gif";return this.required(A)||B.match(new RegExp(".("+C+")$"))},equalTo:function(B,A,C){return B==jQuery(C).val()}},addMethod:function(A,C,B){jQuery.validator.methods[A]=C;jQuery.validator.messages[A]=B}});if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(K,B,L,D,H,I,F,E,C,J){if(!document.getElementById){return }this.DETECT_KEY=J?J:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(K){this.setAttribute("swf",K)}if(B){this.setAttribute("id",B)}if(L){this.setAttribute("width",L)}if(D){this.setAttribute("height",D)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(I){this.addParam("bgcolor",I)}var A=F?F:"high";this.addParam("quality",A);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var G=(E)?E:window.location;this.setAttribute("xiRedirectUrl",G);this.setAttribute("redirectUrl","");if(C){this.setAttribute("redirectUrl",C)}};deconcept.SWFObject.prototype={useExpressInstall:function(A){this.xiSWFPath=!A?"expressinstall.swf":A;this.setAttribute("useExpressInstall",true)},setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(B,A){this.params[B]=A},getParams:function(){return this.params},addVariable:function(B,A){this.variables[B]=A},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var C=new Array();var B;var A=this.getVariables();for(B in A){C[C.length]=B+"="+A[B]}return C},getSWFHTML:function(){var B="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}var D=this.getVariablePairs().join("&");B='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+"?"+D+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';B+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var F=this.getParams();for(var E in F){B+=[E]+'="'+F[E]+'" '}if(D.length>0){B+='flashvars="'+D+'"'}B+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}B='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';B+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();for(var E in C){B+='<param name="'+E+'" value="'+C[E]+'" />'}var A=this.getVariablePairs().join("&");if(A.length>0){B+='<param name="flashvars" value="'+A+'" />'}B+="</object>"}return B},write:function(B){if(this.getAttribute("useExpressInstall")){var A=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(A)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof B=="string")?document.getElementById(B):B;$(C).html(this.getSWFHTML());return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var E=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){E=new deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var B=1;var C=3;while(B){try{C++;B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+C);E=new deconcept.PlayerVersion([C,0,0])}catch(D){B=null}}}else{try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(D){try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");E=new deconcept.PlayerVersion([6,0,21]);B.AllowScriptAccess="always"}catch(D){if(E.major==6){return E}}try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(D){}}if(B!=null){E=new deconcept.PlayerVersion(B.GetVariable("$version").split(" ")[1].split(","))}}}return E};deconcept.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(C){var D=document.location.search||document.location.hash;if(C==null){return D}if(D){var B=D.substring(1).split("&");for(var A=0;A<B.length;A++){if(B[A].substring(0,B[A].indexOf("="))==C){return B[A].substring((B[A].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var B=document.getElementsByTagName("OBJECT");for(var C=B.length-1;C>=0;C--){B[C].style.display="none";for(var A in B[C]){if(typeof B[C][A]=="function"){B[C][A]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(A){return document.all[A]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;if(window.DM_tag){DM_addToLoc("category",commercialNode);var DM_CSID="J05531";var DM_UIDS=3;var DM_CHN=document.location.hostname;var DM_PIX="pix01.revsci.net";var DM_BPIX="pix01.revsci.net";var DM_UIDD=document.location.hostname;DM_addToLoc("category",commercialNode);DM_tag()}var Psyclone=window.Psyclone||{};Psyclone.namespace=function(D){if(!D||!D.length){return null}var C=D.split(".");var A=Psyclone;for(var B=(C[0]=="Psyclone")?1:0;B<C.length;++B){A[C[B]]=A[C[B]]||{};A=A[C[B]]}return A};Psyclone.namespace("Component");Psyclone.namespace("Widget");Psyclone.namespace("Util");Psyclone.Util.DisableContextMenu=function(A){document.oncontextmenu=function(D){if(!D){D=window.event}var B=(D.target)?D.target:D.srcElement;for(var C=0;C<A.length;C++){if(B.className.indexOf(A[C])!=-1||B.parentNode.className.indexOf(A[C])!=-1){B=null;return false}}}};Psyclone.Util.DisableContextMenu(["peekOff","peekSelected","ctrl","thpButton","quickGuide","next","prev"]);(function(){try{document.execCommand("BackgroundImageCache",false,true)}catch(A){}})();$.fn.center=function(A){return this.each(function(){if(!A&&this.nodeName=="DIV"&&!this.offsetWidth&&!this.offsetHeight){var C=this;setTimeout(function(){$(C).center(true)},13)}else{var D=this.style;var E=this.parentNode;if($.css(E,"position")=="static"){E.style.position="relative"}D.position="absolute";D.left=(($.css(E,"width")-$.css(this,"width"))/2)+"px";var B=getScrollTop();D.top=(B+180)+"px"}})};function detectProxy(A){if(typeof (proxyUrl)!="undefined"){var B=proxyUrl+"?url="+encodeURIComponent(A);return B}else{return A}}function getRealTopByObj(A){yPos=0;if(A){yPos=A.offsetTop;tempEl=A.offsetParent;while(tempEl!==null){yPos+=tempEl.offsetTop;tempEl=tempEl.offsetParent}}return yPos}function getRealTop(A){thisObj=A;yPos=getRealTopByObj(A);return yPos}function getRealLeftByObj(A){xPos=0;if(A){xPos=A.offsetLeft;tempEl=A.offsetParent;while(tempEl!==null){xPos+=tempEl.offsetLeft;tempEl=tempEl.offsetParent}}return xPos}function getRealLeft(A){thisObj=A;xPos=getRealLeftByObj(A);return xPos}function GetObjPos(B){var C=0,A=0;var D=null;if(B){C=B.offsetLeft;A=B.offsetTop;D=B.offsetParent;while(D!==null){C+=D.offsetLeft;A+=D.offsetTop;D=D.offsetParent}}return[C,A]}function GetPos(A){var C=0;var B=0;if(A.offsetParent){C=A.offsetLeft;B=A.offsetTop;while(A==A.offsetParent){C+=A.offsetLeft;B+=A.offsetTop}}return[C,B]}function evalScripts(html){var re=/<script.*?>([\s\S]*?)<\//igm;var match;while(match=re.exec(html)){eval(match[1])}}function hasFlash(B){var A=deconcept.SWFObjectUtil.getPlayerVersion();if(document.getElementById&&(A.major===0)){document.getElementById(B).innerHTML="<a href='http://www.adobe.com/go/getflashplayer'><img src='http://bc.Psyclone.com/media/nw_flash_install_ccol.jpg' border=0></a>"}else{if(document.getElementById&&(A.major>0&&A.major<8)){document.getElementById(B).innerHTML="<a href='http://www.adobe.com/go/getflashplayer'><img src='http://bc.Psyclone.com/media/nw_flash_upgrade_ccol.jpg' border=0></a>"}else{return true}}return false}var Paths={Current:null,InferRootPath:function(){var A=window.location.pathname;A=A.substring(0,A.lastIndexOf("/"));if(A.indexOf("/id")>-1){A=A.substring(0,A.indexOf("/id"))}if(A.indexOf("/profile")>-1){A=A.substring(0,A.indexOf("/profile"))}return window.location.protocol+"//"+window.location.host+A},Init:function(){var A=Paths.InferRootPath();this.RootPath=A;this.FilePath=A;this.StaticContentRoot=A;this.RegistrationHost=A;this.SearchHost=A;if(typeof (rootpath)!="undefined"){this.RootPath=rootpath}if(typeof (filepath)!="undefined"){this.FilePath=filepath}if(typeof (staticContentRoot)!="undefined"){this.StaticContentRoot=staticContentRoot}if(typeof (registrationHost)!="undefined"){this.RegistrationHost=registrationHost}if(typeof (searchHost)!="undefined"){this.SearchHost=searchHost}}};Paths.Current=new Paths.Init();function setHome(A){if($.browser.msie){A.style.behavior="url(#default#homepage)";A.setHomePage("http://www.Psyclone.com");return false}return true}function RegexValidate(A,C){if(C!=null&&C.length>0){var B=new RegExp(C);return A.match(B)}else{return false}}function StringTrim(A){A=A.replace(/^\s+/g,"");return A.replace(/\s+$/g,"")}function getScrollTop(){if(document.documentElement&&document.documentElement.scrollTop){return document.documentElement.scrollTop}else{if(document.body){return document.body.scrollTop}else{if(window.pageYOffset){return window.pageYOffset}}}return 0}function getScrollLeft(){if(document.documentElement&&document.documentElement.scrollLeft){return document.documentElement.scrollLeft}else{if(document.body){return document.body.scrollLeft}else{if(window.pageXOffset){return window.pageXOffset}}}return 0}function Omniture_SendExpandedSubchannelLink(){Omniture_SendMicroData("Expanded Subchannel Link","event21")}function Omniture_SendDLData(){Omniture_SendMicroData("Dynamic Lead","event20")}function BindTHPTracking(){$("div.TopHeadlines a").unbind();$("div.convWisdom a").unbind();$("div.TopHeadlines a").click(function(){Omniture_SendMicroData("Breaking News","event18")});$("div.convWisdom a").click(function(){Omniture_SendMicroData("Conventional Wisdom","event19")})}function Omniture_SendMicroData(B,A){if(A){s.linkTrackVars="events";s.linkTrackEvents=A;s.events=A}s.tl(this,"o",B)}/*$(document).ready(function(){$("#subNavExpanded a").click(function(){Omniture_SendExpandedSubchannelLink()})});*/function translateToHCode(){if(typeof (nw_section)!="undefined"){nw_section=nw_section.replace(/\//," - ")}if(typeof (nw_subsection)!="undefined"){nw_subsection=nw_subsection.replace(/\//," - ")}if(typeof (nw_page_name)!="undefined"){s.pageName=nw_page_name.replace(/<[a-zA-Z\/][^>]*>/g,"");s.pageName=s.pageName.replace(/\;jsessionid\=.{23}/g,"")}else{s.pageName="nw - "+document.location.pathname+" - "+document.title;s.pageName=s.pageName.replace(/<[a-zA-Z\/][^>]*>/g,"");s.pageName=s.pageName.replace(/\;jsessionid\=.{23}/g,"")}if(typeof (nw_channel)!="undefined"){s.channel=(nw_channel.indexOf("nw - ")>=0)?nw_channel:"nw - "+nw_channel}else{if(typeof (nw_section)!="undefined"){s.channel=(nw_section.indexOf("nw - ")>=0)?nw_section.split("/")[0]:"nw - "+nw_section.split("/")[0]}else{if(typeof (nw_hierarchy)!="undefined"){s.channel=(nw_hierarchy.indexOf("nw - ")>=0)?nw_hierarchy.split("|")[0]:"nw - "+nw_hierarchy.split("|")[0]}else{s.channel="nw - nocategory"}}}s.server="Psyclone.com";s.pageType="";if(typeof (nw_sectionfront)!="undefined"){nw_sectionfront=nw_sectionfront.toLowerCase();s.prop1=(nw_sectionfront.indexOf("nw - ")>=0)?nw_sectionfront:"nw - "+nw_sectionfront}if(typeof (nw_subsection)!="undefined"){nw_subsection=nw_subsection.toLowerCase();s.prop2=(nw_subsection.indexOf("nw - ")>=0)?nw_subsection:"nw - "+nw_subsection}if(typeof (nw_content_type)!="undefined"){s.prop3=nw_content_type.toLowerCase()}if(typeof (nw_source)!="undefined"){s.prop4=nw_source.toLowerCase()}else{s.prop4="Psyclone.com"}if(typeof (nw_author)!="undefined"){s.prop5=nw_author.toLowerCase()}if(typeof (nw_search_keywords)!="undefined"){s.prop6=nw_search_keywords.toLowerCase()}if(typeof (nw_search_type)!="undefined"){s.prop7=nw_search_type.toLowerCase()}s.prop8="";s.prop9="";s.prop10="";s.prop11="";if(typeof (nw_content_id)!="undefined"){s.prop12=nw_content_id;if(typeof (nw_application)!="undefined"&&nw_application){s.prop13=""}if(typeof (nw_headline)!="undefined"&&nw_content_id!=""){s.prop13=nw_headline+" - "+nw_content_id}}if(typeof (nw_page_num)!="undefined"){s.prop14=nw_page_num}if(typeof (nw_printed)!="undefined"){s.prop19="printed page"}if(typeof (nw_search_result_count)!="undefined"){s.prop21=nw_search_result_count}if(typeof (nw_blog_name)!="undefined"){s.prop25=nw_blog_name}if(typeof (nw_application)!="undefined"){s.prop32=nw_application}s.campaign="";s.state="";s.zip="";s.events="";s.products="";s.purchaseID="";s.eVar1="";s.eVar2="";s.eVar3="";s.eVar4="";s.eVar5="";s.eVar6="";s.eVar7="";s.eVar8="";s.eVar9="";s.eVar10="";if(typeof (nw_hierarchy)!="undefined"){s.hier1=nw_hierarchy.toLowerCase()}else{s.hier1="nocategory"}s.hier2="Psyclone.com|"+s.hier1}function AddHandler(F,B,C,E){var D=function(G){F[C](G,E)};if(F.addEventListener){F.addEventListener(B,D,false)}else{if(F.attachEvent){F.attachEvent("on"+B,D)}else{var A=F["on"+B];if(A){D=function(G){A(G);F[C](G,E)}}F["on"+B]=D}}}function GetEventXY(A){if(A===null){A=window.event}return[A.clientX+document.documentElement.scrollLeft,A.clientY+document.documentElement.scrollTop]}function getMouseY(A){if(A===null){A=event}return A.clientY+document.documentElement.scrollTop}function getMouseX(A){if(A===null){A=event}return A.clientX+document.documentElement.scrollLeft}function getPointerX(A){return((A!==null)?A.pageX:getMouseX(window.event))}function getPointerY(A){return((A!==null)?A.pageY:getMouseY(window.event))}function quickReadDelayedAdCall(){if(document.getElementById("wpni_adi_468x60_quickread")){placeAd2("module/quickread","468x60|quickread","AJAX","")}}function quickReadAdCall(){window.setTimeout(quickReadDelayedAdCall,250)}function quickGuideDelayeAddCall(){if(document.getElementById("wpni_adi_88x31_quickguide")){placeAd2("module/quickguide","88x31|quickguide","AJAX","")}}function quickGuideAdCall(){window.setTimeout(quickGuideDelayeAddCall,250)}function travelingHomepageAdTarget(){return'<div id="slug_88x31_thp" class="sponsoredAd" style="float:right;margin:0 13px 0 0;width:160px;"><div id="wpni_adi_88x31_thp" class="sponsorship" style="float:right;"><xsl:text> </xsl:text></div><div class="sponsoredAdText" style="color:#868685;font-size:0.8em;margin:5px 2px 0 0;">Sponsored by</div></div>'}function travelingHomepageDelayedAdCall(){if(document.getElementById("wpni_adi_88x31_thp")){placeAd2("module/travelinghomepage","88x31|thp","AJAX","")}}function travelingHomepageAdCall(){window.setTimeout(travelingHomepageDelayedAdCall,250)}function peekAdCall(D){if(typeof (placeAd2)=="function"){var A="";var C="";var B=D.split(":");if(B.length>1){A=B[1]}if(B.length>2){C=B[2]}if(C===""&&typeof (commercialNode)!="undefined"){C=commercialNode}placeAd2(C,"88x31|"+A,false,"")}return false}function multimediaAdCall(){if(document.getElementById("wpni_adi_leaderboard")){placeAd2(commercialNode,"leaderboard","AJAX","")}if(document.getElementById("wpni_adi_articleFlex")){placeAd2(commercialNode,"articleFlex","AJAX","")}}Psyclone.Component.BoxCollection={init:function(){$(".boxCollection").each(function(A){var B={node:this,defaultBox:$("div.box",this).slice(0,1),content:$("div.box div.content",this),tabRoot:$("div.tabs",this),tabs:$("div.tabs ul li",this)};Psyclone.Component.BoxCollection.setHandler(B)})},setHandler:function(A){$(A.tabs).each(function(B){$("span a",this).click(function(){if($(A.tabs).length==1){return }Psyclone.Component.BoxCollection.toggleTab(B,A);var D=RegexValidate(this.id,"[0-9]+");var F="box_"+D;var E=document.getElementById(F);if(E){if($(E).css("display")=="block"){return }Psyclone.Component.BoxCollection.getBoxFromCollection(A,E)}else{var C=Paths.Current.RootPath+"id/"+D+"/output/ajaxbox";if($(A.node).hasClass("BoxCollectionAlt")){C+="/alt/1"}var G=Psyclone.Component.BoxCollection.setCurrentBox;Psyclone.Component.BoxCollection.ajaxRequest(C,G,A)}return false})})},toggleTab:function(A,B){$(B.tabs).removeClass("current").removeClass("lcurrent").removeClass("prior").removeClass("midcurrent").removeClass("fcurrent").removeClass("fprior");if(A==0){$(B.tabs[A]).addClass("fcurrent")}if(A!=0&&A!=B.tabs.length-1){$(B.tabs[A]).addClass("midcurrent");if(A==1){$(B.tabs[0]).addClass("fprior");return }$(B.tabs[A-1]).addClass("prior")}if(A==$(B.tabs).length-1){$(B.tabs[A]).addClass("lcurrent");if(B.tabs.length==2){$(B.tabs[A-1]).addClass("fprior");return }$(B.tabs[A-1]).addClass("prior")}},setCurrentBox:function(B,A){$("div.box",B.node).css("display","none");$(B.node).append(A)},getBoxFromCollection:function(B,A){$("div.box",B.node).css("display","none");$(A).css("display","block")},ajaxRequest:function(A,C,B){$.ajax({dataType:"html",url:detectProxy(A),success:function(D){C(B,D);Psyclone.Widget.QuickRead("","","")},error:function(D){}})}};Psyclone.Component.DynamicLead={showLightBox:true,showPreview:true,showCaption:true,globalSlidePause:8500,globalTitleTransition:400,onClick:null,isAnimating:false,transitionTimeoutId:null,init:function(){var A=document.getElementById("dynamicLead");A={imageDeck:$(".imageDeck",this),mainArtLink:$(".imageDeck a.mainArt",this),mainArtImg:$(".imageDeck a.mainArt img",this),overlay:$(".imageDeck #dlOverlay",this),overlayXOffset:$(".imageDeck").width(),caption:$(".imageDeck #dlOverlay .caption",this),rubric:null,title:null,deck:null,source:null,titlePause:250,currentIndex:0,lightBox:$("div.bot div.lightBox a",this),mainNav:$("div.bot ol.mainNav",this),subNav:$("div.bot ol.subNav",this),back:$("div.bot ol.mainNav li a.back",this),pausePlay:$("div.bot ol.mainNav li a.pausePlay",this),next:$("div.bot ol.mainNav li a.next",this),isPaused:false,slides:[]};this.globalSlidePause=this.globalSlidePause*1000;this.globalTitleTransition=this.globalTitleTransition*1000;this.getSlidePreviews(A);this.getMainContent(A);this.getLightBox(A);this.playPauseHandler(A);this.previousHandler(A);this.nextHandler(A);this.start(A);A.onselectstart=function(){return false}},getSlidePreviews:function(A){$("li",A.subNav).each(function(B){if(Psyclone.Component.DynamicLead.showCaption){$("a",this).mouseover(function(H){if(document.getElementById("dlLightBox")){return }var I=GetObjPos(this);var E=GetObjPos(A.dl);var G=(I[0]-E[0])+E[0]-50;var F=I[1]-145;if(B!==A.currentIndex){var D=$(this).siblings(".slideContent").html();var C='<div class="dlPreview transp" style="left:'+G+"px;top:"+F+'px;"><div class="slideContent">'+D+"</div></div>";$(C).appendTo("body")}$(this).mouseout(function(J){$("div.dlPreview").remove();return false});return false})}$("a",this).click(function(C){if(B==A.currentIndex){return }Psyclone.Component.DynamicLead.showSelected(B,A);return false})})},getMainContent:function(A){$("li",A.subNav).each(function(D){var C=this;C={url:$("div.slideContent a.thumbArtLink",this).attr("href"),rubric:$("div.slideContent h6.rubric",this).text(),title:$("div.slideContent h2.title a",this).text(),deck:$("div.slideContent p.deck",this).text(),deckShort:$("div.slideContent p.deckShort",this).text(),source:$("div.slideContent p.source",this).text(),imageSrc:$("div.slideContent div.mainArtLink img",this).attr("src"),thumbSrc:$("div.slideContent a.thumbArtLink img",this).attr("src"),overlaySrc:$("div.slideContent img.overlayArtLink",this).attr("src"),date:$("div.slideContent p.date",this).text()};if(Psyclone.Component.DynamicLead.GB){var E=/[-]{1}thumb8+/i;var B=C.imageSrc.replace(E,"-dynamiclead");C.imageSrc=B}var F=new Image();F.src=C.imageSrc;A.slides.push(C)})},getLightBox:function(A){if(this.showLightBox){$(A.lightBox).click(function(G){if(document.getElementById("dlLightBox")){return }$(this).addClass("selected");var C="<ul>";for(var D=0;D<=5;D++){if(D%3==2){var F='<li class="last">'}else{var F="<li>"}if(A.slides[D]!=null){F+='<div class="imageDeck"><img id="'+D+'" class="dlLbItem" width="100" src="'+A.slides[D].thumbSrc+'" alt="'+A.slides[D].title+'" /></div><h6 id="'+D+'" class="title dlLbItem">'+A.slides[D].title+'</h6><p id="'+D+'" class="dlLbItem">'+A.slides[D].deckShort+'</p><p class="date">'+A.slides[D].date+"</p>"}else{F+="&nbsp;"}F+="</li>";C+=F}C+="</ul>";var H=GetObjPos(this);var J=GetObjPos(A.dl);var B=H[0]-89;var I=H[1]-296;var E='<div id="dlLightBox" class="dlLightBox transp" style="left:'+B+"px;top:"+I+'px"><span class="close">&#xA0;</span>'+C+"</div>";$(E).appendTo("body");$(document).one("click",function(K){$(A.lightBox).removeClass("selected");$("#dlLightBox").remove();return false});$(".dlLbItem").click(function(){if(parseInt(this.id)==A.currentIndex){return }A.animating=false;Psyclone.Component.DynamicLead.showSelected(parseInt(this.id),A);$(A.lightBox).removeClass("selected");$("#dlLightBox").remove()});return false})}else{$(A.lightBox).parent("div.lightBox").css({visibility:"hidden"})}},setMainArtContent:function(A){$(A.mainArtLink).attr("href",A.slides[A.currentIndex].url);$(A.mainArtImg).attr({src:A.slides[A.currentIndex].imageSrc,alt:A.slides[A.currentIndex].title})},setOverlayContent:function(B)
{
var A='<h6 class="rubric"><a href="'+B.slides[B.currentIndex].url+'">'+B.slides[B.currentIndex].rubric+" </a></h6>";
A+='<h2 class="title"><a href="'+B.slides[B.currentIndex].url+'">'+B.slides[B.currentIndex].title+'</a></h2>';
A+='<p class="deck"><a href="'+B.slides[B.currentIndex].url+'">'+B.slides[B.currentIndex].deck+"</a></p>";
A+='<p class="source"><a href="'+B.slides[B.currentIndex].url+'">'+B.slides[B.currentIndex].source+"</a></p>";
return A
},playPauseHandler:function(A){$(A.pausePlay).click(function(){if($(this).hasClass("pause")){Psyclone.Component.DynamicLead.pause(A)}else{Psyclone.Component.DynamicLead.play(A)}return false})},previousHandler:function(A){$(A.back).one("click",function(){if(Psyclone.Component.DynamicLead.isAnimating){return }Psyclone.Component.DynamicLead.isAnimating=true;$(A.overlay).dequeue();Psyclone.Component.DynamicLead.showPrevious(A);return false})},nextHandler:function(A){$(A.next).one("click",function(){if(Psyclone.Component.DynamicLead.isAnimating){return }Psyclone.Component.DynamicLead.isAnimating=true;Psyclone.Component.DynamicLead.showNext(A);return false})},start:function(A){$("li",A.subNav).slice(A.currentIndex,A.currentIndex+1).children("a").removeClass("selected").css({"background-position":"center "+(-90-(A.currentIndex*15))+"px"});this.setMainArtContent(A);var B=this.setOverlayContent(A);$(A.caption).html(B);if(this.onClick!=null){$(A.imageDeck).find("a").click(function(){Psyclone.Component.DynamicLead.onClick()})}$(A.overlay).fadeOut();this.resetOverlayPos(A);$(A.mainArtLink).fadeIn(500,function(){Psyclone.Component.DynamicLead.slideTransition(A)})},showSelected:function(A,B){this.goTo(A,B)},showPrevious:function(A){if(A.currentIndex==0){this.goTo(A.slides.length-1,A)}else{this.goTo(A.currentIndex-1,A)}},showNext:function(A){if(A.currentIndex==(A.slides.length-1)){this.goTo(0,A)}else{this.goTo(A.currentIndex+1,A)}},play:function(A){A.isPaused=false;$(A.pausePlay).addClass("pause").removeClass("play");this.goNext(A)},pause:function(A){A.isPaused=true;$(A.pausePlay).addClass("play").removeClass("pause");this.clearInterval(A)},slideTransition:function(A){if(A.currentIndex%3==0){this.slideOverlayRightLeft(A)}else{if(A.currentIndex%3==1){this.slideOverlayBottomTop(A)}else{this.slideOverlayLeftRight(A)}}Psyclone.Component.DynamicLead.setNextTransition(A)},slideOverlayRightLeft:function(A){window.setTimeout(function(){$(A.overlay).animate({left:0+"px"},Psyclone.Component.DynamicLead.globalTitleTransition,function(){A.animating=false;Psyclone.Component.DynamicLead.hideOverlayLeftRight(A)})},A.titlePause)},slideOverlayBottomTop:function(A){window.setTimeout(function(){$(A.overlay).animate({top:-14+"px"},Psyclone.Component.DynamicLead.globalTitleTransition,function(){A.animating=false;Psyclone.Component.DynamicLead.hideOverlayTopBottom(A)})},A.titlePause)},slideOverlayLeftRight:function(A){window.setTimeout(function(){$(A.overlay).animate({left:0+"px"},Psyclone.Component.DynamicLead.globalTitleTransition,function(){A.animating=false;Psyclone.Component.DynamicLead.hideOverlayRightLeft(A)})},A.titlePause)},setNextTransition:function(A){if(A.slides.length==1){return }if(!A.isPaused){this.transitionTimeoutId=window.setTimeout(function(){Psyclone.Component.DynamicLead.goNext(A)},Psyclone.Component.DynamicLead.globalSlidePause)}},goNext:function(A){if(A.currentIndex==(A.slides.length-1)){Psyclone.Component.DynamicLead.goTo(0,A)}else{Psyclone.Component.DynamicLead.goTo(null,A)}},goTo:function(A,B){Psyclone.Component.DynamicLead.clearInterval(B);if(A!=null){$("li",B.subNav).slice(B.currentIndex,B.currentIndex+1).children("a").removeClass("selected").css({"background-position":"center "+(-(B.currentIndex*15))+"px"});if(A!==0){$("li",B.subNav).slice(A,A+1).children("a").addClass("selected").css({"background-position":"center "+(-90-(A*15))+"px"})}else{$("li a",B.subNav).slice(B.slides.length-1,B.slides.length).removeClass("selected").css({"background-position":"center "+(-(B.slides.length*15))+"px"});$("li",B.subNav).slice(A,A+1).children("a").addClass("selected").css({"background-position":"center "+(-90-(A*15))+"px"})}B.currentIndex=A}else{$("li",B.subNav).slice(B.currentIndex,B.currentIndex+1).children("a").removeClass("selected").css({"background-position":"center "+(-(B.currentIndex*15))+"px"});$("li",B.subNav).slice(B.currentIndex+1,B.currentIndex+2).children("a").addClass("selected").css({"background-position":"center "+(-90-((B.currentIndex+1)*15))+"px"});B.currentIndex++}this.fadeOutSlide(B)},hideOverlayRightLeft:function(B,A){$("span.close",B.overlay).one("click",function(){$(B.overlay).animate({left:-(B.overlayXOffset)+"px"},Psyclone.Component.DynamicLead.globalTitleTransition);return false})},hideOverlayTopBottom:function(B,A){$("span.close",B.overlay).one("click",function(){$(B.overlay).animate({top:0+"px"},Psyclone.Component.DynamicLead.globalTitleTransition);return false})},hideOverlayLeftRight:function(B,A){$("span.close",B.overlay).one("click",function(){$(B.overlay).animate({left:B.overlayXOffset+"px"},Psyclone.Component.DynamicLead.globalTitleTransition);return false})},clearInterval:function(A){window.clearTimeout(this.transitionTimeoutId);this.transitionTimeoutId=null},fadeOutSlide:function(A){$(A.overlay).fadeOut(function(){var B=Psyclone.Component.DynamicLead.setOverlayContent(A);$(A.caption).html(B);Psyclone.Component.DynamicLead.resetOverlayPos(A)}).siblings(A.mainArtLink).fadeOut(350,function(){Psyclone.Component.DynamicLead.setMainArtContent(A);Psyclone.Component.DynamicLead.fadeOutComplete(A)})},fadeOutComplete:function(A){$(A.mainArtLink).fadeIn(300,function(){Psyclone.Component.DynamicLead.slideTransition(A);Psyclone.Component.DynamicLead.isAnimating=false;Psyclone.Component.DynamicLead.previousHandler(A);Psyclone.Component.DynamicLead.nextHandler(A)})},resetOverlayPos:function(A){if(A.currentIndex%3==0){$(A.overlay).css({left:A.overlayXOffset+"px",top:-14+"px",display:"block"})}else{if(A.currentIndex%3==1){$(A.overlay).css({left:0+"px",top:0+"px",display:"block"})}else{$(A.overlay).css({left:(-(A.overlayXOffset))+"px",top:-14+"px",display:"block"})}}}};Psyclone.Widget.SiteMap={init:function(){Psyclone.Widget.SiteMap.wireToggle();Psyclone.Widget.SiteMap.wireExpandAll();Psyclone.Widget.SiteMap.wireCollapseAll()},wireToggle:function(){$("#sitemap a.expander").click(function(){Psyclone.Widget.SiteMap.toggle(this)})},wireExpandAll:function(){$("#sitemap-container li.expand a").click(function(){Psyclone.Widget.SiteMap.expandAll();Psyclone.Widget.SiteMap.enableExpandAll(false);Psyclone.Widget.SiteMap.enableCollapseAll(true)})},wireCollapseAll:function(){$("#sitemap-container li.collapse a").click(function(){Psyclone.Widget.SiteMap.collapseAll();Psyclone.Widget.SiteMap.enableExpandAll(true);Psyclone.Widget.SiteMap.enableCollapseAll(false)})},checkState:function(){if($("#sitemap ul:visible").length==0){Psyclone.Widget.SiteMap.enableExpandAll(true);Psyclone.Widget.SiteMap.enableCollapseAll(false);return }if($("#sitemap ul:visible").length==$("#sitemap ul").length){Psyclone.Widget.SiteMap.enableExpandAll(false);Psyclone.Widget.SiteMap.enableCollapseAll(true);return }if($("#sitemap ul:visible").length>0){Psyclone.Widget.SiteMap.enableExpandAll(true);Psyclone.Widget.SiteMap.enableCollapseAll(true);return }},enableExpandAll:function(A){$("#sitemap-container li.expand").toggle()},enableCollapseAll:function(A){$("#sitemap-container li.collapse").toggle()},toggle:function(A){$(A).parents("div.sitemapSection").children("ul").toggle();Psyclone.Widget.SiteMap.toggleImage(A,null)},expand:function(A){$(A).parents("div.sitemapSection").children("ul").show();Psyclone.Widget.SiteMap.toggleImage(A,"expand")},collapse:function(A){$(A).parents("div.sitemapSection").children("ul").hide();Psyclone.Widget.SiteMap.toggleImage(A,"collapse")},expandAll:function(){$("#sitemap a.expander").each(function(){Psyclone.Widget.SiteMap.expand(this)})},collapseAll:function(){$("#sitemap a.expander").each(function(){Psyclone.Widget.SiteMap.collapse(this)})},toggleImage:function(A,B){$(A).parents("div.sitemapSection").children("a.expander").children("img").attr("src",Psyclone.Widget.SiteMap.getImage(A,B))},getImage:function(B,C){var E="embed_collapse_all_right.gif";var A="embed_see_all_down.gif";var D=$(B).parents("div.sitemapSection").children("a.expander").children("img").attr("src");if(D.indexOf(E)>0){if(C&&C=="collapse"){return D}return D.replace(E,A)}else{if(C&&C=="expand"){return D}return D.replace(A,E)}return""}};Psyclone.Widget.Peek={strQueryParam:"/output/thepeek",strLoadingImg:"",intRequestTimeout:500000,arrSections:[],init:function(A,B){$("div.ThePeek").each(function(C){var D=this;D={peekId:this.id,tabs:$("div.box div.content div.peekBox div.content div.sectionWrapper ul.peekSections li",this).slice(0),sections:$("div.box div.content div.peekBox div.content div.sectionWrapper ul.peekSections",this),content:$("div.box div.content div.peekBox div.content div.contentWrapper div.peekContent",this),initHeight:$("div.box div.content div.peekBox div.content div.sectionWrapper ul.peekSections",this).height()};Psyclone.Widget.Peek.setHandler(D)})},setHandler:function(A){$("a",A.tabs).click(function(){$(this).blur();if($(this).attr("class")=="selected"){return false}$(A.tabs).removeClass("peekSelected").addClass("peekOff");$(A.tabs).children("a").removeClass("selected");if(A.peekId=="mmWrapper"){Psyclone.Widget.Peek.strQueryParam="/output/multimediaguide";$("../../li",this).removeClass("lightTan");$("../../li:even",this).slice(1).addClass("medTan")}$(this).parent("li").removeClass("peekOff").addClass("peekSelected");$(this).addClass("selected");Psyclone.Widget.Peek.getAjaxRequest(this,A);Omniture_SendMicroData("What's Inside - "+this.innerHTML,"event17");return false})},getAjaxRequest:function(B,A){$.ajax({beforeSend:function(){$(A.content).empty();$(A.content).append('<div class="loading peekld"><span>Loading</span></div>')},url:detectProxy(B+this.strQueryParam),success:function(C){$(A.content).html(C);Psyclone.Widget.QuickRead("","","");peekAdCall(B.id)},error:function(){$(A.content).html("<span class='peekError'>We are currently unable to return the requested content. Please try again later.</span>")}})}};Psyclone.Widget.TipStrip={init:function(){$("#tipStripBox .content ul li a.next, #tipStripBox .content ul li a.prev").click(function(){var B=$("#tipStripBox .content");var A=$(this).attr("href");Psyclone.Widget.TipStrip.getAjaxRequest(B,A);return false})},getAjaxRequest:function(B,A){$.ajax({beforeSend:function(){$("ul li div",B).empty().append('<div class="loading"><span>Loading</span></div>')},url:detectProxy(A+"/output/ajaxtipstrip"),success:function(C){$(B).html(C);Psyclone.Widget.TipStrip.init();Psyclone.Widget.QuickRead("","","")},error:function(C,D){$("ul li div",B).empty().append('<div class="ajaxErrorMsg">We are currently unable to return the requested content. Please try again later.</div>')}})}};Psyclone.Widget.TravelHp={init:function(){$("div.travelHp").each(function(B){var A=this;A={isActive:false,thp:this,isOpen:false,isCleared:true,control:[$("div.box div.content div.thpBut a",this),$("div.thpTab div.tabBot a",this)],content:$("div.box div.content",this),scrollBut:null,activeControl:null,colWrapper:$("div.box div.content div.thpColWrapper",this)};Psyclone.Widget.TravelHp.controller(A)})},controller:function(A){$(A.control).each(function(B){$(this).attr("href",rootpath+"id/"+pid).click(function(C){Psyclone.Widget.TravelHp.checkSocialNet(C);if(!$(this).hasClass("ctrl")||$(this).attr("href")=="#"){return false}if(!A.isOpen&&A.isCleared){$(this).removeClass("ctrl")}A.isActive=true;A.activeControl=this;A.scrollBut=getRealTop(A.thp);Psyclone.Widget.TravelHp.handlerThp(A);return false})})},checkSocialNet:function(A){if($(".SocialLinksDiv").css("display")=="block"){$(".SocialLinksDiv").fadeOut(250,function(){Psyclone.Widget.SocialNetwork.isActive=false})}if(document.getElementById("dialog")){var B={mPos:GetEventXY(A),dBoxHt:parseFloat($("#dialog div").height()),dBoxWt:parseFloat($("#dialog div").width()),dBoxPos:GetObjPos(document.getElementById("dialog"))};Psyclone.Widget.DialogBox.hideDBox_OnClick(A,Psyclone.Widget.DialogBox.currentBox,B)}},handlerThp:function(A){if(A.isOpen&&!A.isCleared){var B=navigator.userAgent.toLowerCase();if($(A.thp).attr("id")=="ThpBottom"){if(B.indexOf("msie")==-1){window.scrollTo(0,A.scrollBut-600)}}B=null;setTimeout(function(){Psyclone.Widget.TravelHp.shrinkThp(A)},500)}else{Psyclone.Widget.TravelHp.growThp(A);Omniture_SendMicroData("Traveling Homepage","event15",$(A.activeControl).attr("class"))}},growThp:function(A){var B=$(document).height();if(A.isOpen&&!A.isCleared&&!A.isActive){return }$(A.control).each(function(C){$(this).removeClass("ctrl")});$(A.thp).find(".btn").css({background:"url("+Paths.Current.StaticContentRoot+"/site/images/thp_arrow_up.gif) no-repeat left top"});$(".thpRgt, .thpMid, .thpLft",A.colWrapper).hide();$(A.colWrapper).animate({height:324+"px"},250,function(){$(A.thp).find("div.tabBot").removeClass("thpDown").addClass("thpUp");$(A.thp).find(".thpTab div a img").attr({src:Paths.Current.StaticContentRoot+"/site/images/thp_close.gif",alt:"collapse"})});setTimeout(function(){Psyclone.Widget.TravelHp.getContent(A)},250)},getContent:function(A){$(A.colWrapper).css({width:"100%",clear:"both",margin:"0 0 0 -3px"});var B=$(A.control[0]).attr("href")+"/output/traveling/sender/"+$(A.thp).attr("id");$.ajax({url:detectProxy(B),success:function(C){$(A.colWrapper).append(C);$(travelingHomepageAdTarget()).insertBefore(A.colWrapper);travelingHomepageAdCall();if(!$.browser.mozilla){evalScripts(C)}setTimeout(function(){$(A.control).each(function(D){$(this).addClass("ctrl")})},1000);A.isOpen=true;A.isCleared=false;BindTHPTracking()}});B=null},shrinkThp:function(A){var B=$(document).height();if(!A.isOpen&&A.isCleared){return }if(A.isOpen&&!A.isCleared){$(A.control).each(function(C){$(this).removeClass("ctrl")})}$(".sponsoredAd",A.content).remove();$("div.thpFeature",A.content).empty();$("div.thpFeature",A.content).remove();$(A.colWrapper).animate({height:37+"px"},100,function(){$(A.thp).find(".btn").css({background:"url("+Paths.Current.StaticContentRoot+"/site/images/thp_arrow_down.gif) no-repeat left top"});$("div div.tabBot",A.thp).removeClass("thpUp").addClass("thpDown");$(A.thp).find(".thpTab div a img").attr({src:Paths.Current.StaticContentRoot+"/site/images/thp_open.gif",alt:"collapse"});$(A.colWrapper).css({width:"934px",clear:"none",margin:"0px"});$(".thpRgt, .thpMid, .thpLft",A.colWrapper).show();if(!$.browser.mozilla){evalScripts($(A.colWrapper).html())}setTimeout(function(){$(A.control).each(function(C){$(this).addClass("ctrl")})},750);A.isCleared=true;A.isOpen=false})}};Psyclone.Component.BoxFlipper={init:function(){$("div.boxFlipper").each(function(A){var B={node:$(this).parent().parent().parent().parent(".box"),content:$(this).parent().parent().parent(".bot").siblings(".content"),flipper:this,pageNum:1,itemsPerPage:$(this).parent().parent().parent(".bot").siblings(".content").children().length,totalItems:$(this).parent().parent().parent().parent(".box").attr("data")};Psyclone.Component.BoxFlipper.setFlipperHandler(B)})},setFlipperHandler:function(A){$("ul li a",A.flipper).click(function(){if($(this).attr("class")=="prev"){A.pageNum--}else{A.pageNum++}var B=Paths.Current.RootPath+"id/"+RegexValidate(this.id,"[0-9]+")+"/page/"+A.pageNum+"/items/"+A.itemsPerPage+"/output/ajaxbox";if($(A.node).parent().hasClass("BoxCollectionAlt")){B+="/alt/1"}var C=Psyclone.Component.BoxFlipper.loadBoxPage;Psyclone.Component.BoxFlipper.ajaxRequest(B,C,A);return false})},ajaxRequest:function(A,C,B){$.ajax({dataType:"html",url:detectProxy(A),success:function(D){C(B,D);Psyclone.Widget.QuickRead("","","")},error:function(D){}})},loadBoxPage:function(A,B){$(A.content).html(B);if(A.pageNum==1){$("ul.controls",A.flipper).removeClass("prev").removeClass("prevNext").addClass("next");$("ul.controls li a.prev",A.flipper).css("visibility","hidden");$("ul.controls li a.next",A.flipper).css("visibility","visible");return }if(A.pageNum>1&&A.itemsPerPage*A.pageNum<A.totalItems){$("ul.controls",A.flipper).removeClass("next").removeClass("prev").addClass("prevNext");$("ul.controls li a",A.flipper).css("visibility","visible");return }if(A.pageNum*A.itemsPerPage>=A.totalItems){$("ul.controls",A.flipper).removeClass("next").removeClass("prevNext").addClass("prev");$("ul.controls li a.prev",A.flipper).css("visibility","visible");$("ul.controls li a.next",A.flipper).css("visibility","hidden");return }}};Psyclone.Widget.Comments_Reply={isInitReply:false,source:"",textVal:"",replyId:"",init:function(){$("a.reply").click(function(C){var B=GetObjPos(this);var A=GetObjPos(document.getElementById("nwComments"));if(Psyclone.Widget.Comments_Submit.isActive){return }Psyclone.Widget.Comments_Reply.replyId=parseFloat(this.id);Psyclone.Widget.Comments_Reply.source=this;Psyclone.Widget.Comments_Reply.getForm(C,B,A);return false})},getForm:function(E,C,B){var A=$(this.source).parent().siblings(".postContent").height()+15;var D=-491;if(E.clientX<600){A=26;D=(B[0]-C[0])-46}Psyclone.Widget.DialogBox.init(E.type,E.target,"",$("#replyFormDiv").html(),"","","",{bIsModal:true,adjCoords:[D,A]});$("#replyField").focus(function(){if($(this).val()=="Enter Your Comment"){$(this).val("")}});$("#replyToId").val(this.replyId);$("#replyForm input[@name='ReturnUrl']").val(location.href);Psyclone.Widget.Comments_Submit.form=$("#replyForm");Psyclone.Widget.Comments_Submit.init()},resetForm:function(){$("a.closeModal, #overlay2").click(function(){if($("#replyBox")){$("input[@name = 'replyToId']").val("-1");$("#articleCommentForm").slideDown(250)}Psyclone.Widget.Comments_Submit.init();return false})}};Psyclone.Widget.Comments_Report={isInitNwReport:false,reportId:"",source:"",init:function(){$("a.report").click(function(C){var B=GetObjPos(this);var A=GetObjPos(document.getElementById("nwComments"));if(Psyclone.Widget.Comments_Submit.isActive){return }Psyclone.Widget.Comments_Report.reportId=parseFloat(this.id);Psyclone.Widget.Comments_Report.source=this;Psyclone.Widget.Comments_Report.getForm(C,B,A);return false})},getForm:function(E,C,B){var A=$(this.source).parent().siblings(".postContent").height()+15;var D=501;if(E.clientX<600){A=28;D=(B[0]-C[0])-92}Psyclone.Widget.DialogBox.init(E.type,E.target,"",$("#abuseFormDiv").html(),"","","",{bIsModal:true,adjCoords:[D,A]});$("#reportField").focus(function(){if($(this).val()=="Report Abuse"){$(this).val("")}});$("#reportPostId").val(Psyclone.Widget.Comments_Report.reportId);Psyclone.Widget.Comments_Submit.form=$("#abuseForm");Psyclone.Widget.Comments_Submit.init()}};Psyclone.Widget.Comments_Submit={form:null,msg:null,isActive:false,successMsg:function(){if($(this.form).attr("id")=="replyForm"){return"Your reply has been successfully submitted.  It may take a few minutes for it to appear."}else{if($(this.form).attr("id")=="abuseForm"){return"Your report has been successfully submitted."}else{return"Your comment has been successfully submitted.  It may take a few minutes for it to appear."}}},errorMsg:function(){if($(this.form).attr("id")=="replyForm"){return"Your reply could not be submitted at this time. Please try again later."}else{if($(this.form).attr("id")=="abuseForm"){return"Your report could not be submitted at this time. Please try again or contact Psyclone.com"}else{return"Your comment could not be submitted at this time. Please try again later."}}},init:function(){if($("#commentForm").siblings("span.message").text()!==""&&$("#commentForm").siblings("span.message").text()!==" "){this.isActive=true;this.isRedirect();return }if(this.isActive){return }$(this.form).find("textarea").focus(function(){if($(this).val()==="Enter Your Comment"){$(this).val("")}});var A={beforeSubmit:function(C,B){if(!Psyclone.Widget.Comments_Submit.validatePost()){return false}Psyclone.Widget.Comments_Submit.isActive=true;$("#overlay2, .closeModal").unbind("click");$("<span class='loading2'></span>").insertBefore($(Psyclone.Widget.Comments_Submit.form).siblings("h5"));$(Psyclone.Widget.Comments_Submit.form).find("input:submit").attr("disabled","disabled");$("fieldset textarea",Psyclone.Widget.Comments_Submit.form).attr("disabled","disabled").css("background","#f5edc9")},success:function(B){var C=parseInt($(B).children().children().children().children().children("ErrorCode").text());if(C!==""&&C===0){$(Psyclone.Widget.Comments_Submit.msg).text(Psyclone.Widget.Comments_Submit.successMsg());$(".loading2").fadeOut(400).remove();setTimeout(function(){$("fieldset textarea",Psyclone.Widget.Comments_Submit.form).removeAttr("disabled").css("background","#fff").val("Enter Your Comment");Psyclone.Widget.Comments_Submit.form=$("#commentForm");if($("#dialog")){Psyclone.Widget.Overlay.hideOverlay()}$(Psyclone.Widget.Comments_Submit.msg).html("");Psyclone.Widget.Comments_Submit.resetForm()},5000)}else{Psyclone.Widget.Comments_Submit.proxyErr();return }return false},error:function(B,D,C){Psyclone.Widget.Comments_Submit.proxyErr()}};if((typeof isAuthenticated!="undefined"&&isAuthenticated)||$(this.form).attr("id")=="abuseForm"){$(this.form).ajaxForm(A)}else{if(typeof document.commentForm!="undefined"){$("#commentForm input[@name='ReturnUrl']").val(location.href)}$(this.form).submit(function(){if(!Psyclone.Widget.Comments_Submit.validatePost()){return false}})}},validatePost:function(){Psyclone.Widget.Comments_Submit.msg=$(Psyclone.Widget.Comments_Submit.form).siblings("span.message");if($("fieldset textarea",Psyclone.Widget.Comments_Submit.form).val().length>3000){$(Psyclone.Widget.Comments_Submit.msg).text("Please enter up to 3000 characters.").slideDown(250);return false}else{if($.trim($("fieldset textarea",Psyclone.Widget.Comments_Submit.form).val())==="Enter Your Comment"||$("fieldset textarea",Psyclone.Widget.Comments_Submit.form).val()===""){$(Psyclone.Widget.Comments_Submit.msg).text("Please enter a comment.").slideDown(250);return false}}return true},proxyErr:function(A){$(Psyclone.Widget.Comments_Submit.msg).css("color","#bf1b02").text(Psyclone.Widget.Comments_Submit.errorMsg()).fadeIn(function(){$(".loading2").fadeOut(400).remove()});setTimeout(function(){$("fieldset textarea",Psyclone.Widget.Comments_Submit.form).removeAttr("disabled").css("background","#fff");if(document.getElementById("dialog")){Psyclone.Widget.Overlay.hideOverlay()}$(Psyclone.Widget.Comments_Submit.msg).text("");Psyclone.Widget.Comments_Submit.resetForm()},5000)},resetForm:function(){$("#reportField, #replyField, #commentField").focus(function(){if($(this).val()=="Enter Your Comment"||$(this).val()=="Report Abuse"){$(this).val("")}});$(Psyclone.Widget.Comments_Submit.form).find("input:submit").attr("disabled",false);Psyclone.Widget.Comments_Submit.isActive=false},isRedirect:function(){setTimeout(function(){$("#commentForm").siblings("span.message").text("");$("#commentForm fieldset textarea").removeAttr("disabled").css("background","#fff");$("#commentForm input:submit").removeAttr("onclick");Psyclone.Widget.Comments_Submit.isActive=false;Psyclone.Widget.Comments_Submit.init()},5000)}};Psyclone.Widget.DialogBox={isActive:false,dBoxTimer:0,isTimerSet:false,currentBox:null,eventType:"click",init:function(I,F,H,E,A,B,D,G){if(this.isActive){return }Psyclone.Widget.DialogBox.isActive=true;this.eventType=I;var C={box:$("<div id='dialog'></div>"),target:(F)?F:null,targetPos:function(){if(this.target){if(this.target.nodeName.toLowerCase()==="a"||this.target.nodeName.toLowerCase()==="img"){return GetObjPos(this.target)}else{if(B){return B}}}else{return[200,500]}},url:function(){var J=$(this.target).attr("href");if(this.target){if(this.target.nodeName.toLowerCase()==="a"&&J!="#"&&J.indexOf("void")==-1){return $(this.target).attr("href")}else{if(H!==""){return H}}}},output:(G&&G.output&&typeof G.output=="string")?G.output:null,bIsModal:(!G.bIsModal)?false:true,bIsScroll:(G.bIsScrollable)?G.bIsScrollable:false,adjCoords:(typeof G.adjCoords==="object")?G.adjCoords:0,width:(G.width)?G.width:0,align:function(){var L=this.targetPos();var J=$(document).width();var K=(L[0]>J/2)?"right":"default";return K},html:(E)?E:null,wrapper:(A)?A:"",adCall:(D)?D:null,errorMsg:"We are currently unable to process your request"};this.currentBox=C;Psyclone.Widget.DialogBox.getBoxContent(C)},getBoxContent:function(A){if(A.url()&&A.url()!==""){this.getAjaxRequest(A)}else{this.showDBox(A)}},getAjaxRequest:function(B){var A=B.url()+"/output/"+B.output+"/align/"+B.align();$.ajax({dataType:"html",url:detectProxy(A),success:function(C){B.html=C;if(!$.browser.mozilla){evalScripts(C)}Psyclone.Widget.DialogBox.showDBox(B)},error:function(C,E,D){$(B.box).html(B.errorMsg);return }})},setCoord:function(E){if(E.bIsScroll){var A=getScrollTop();window.onscroll=function(H){var F=getScrollTop();var G=setTimeout(function(){$(E.box).css({top:(F+120)+"px"})},250)}}else{window.onscroll=null;var D=E.targetPos();var B=$(document).width();var C=$(E.target).width();if(D[0]>B/2){$(E.box).attr("style","left:"+(D[0]-(E.width+E.adjCoords[0]))+"px;top:"+(D[1]+(E.adjCoords[1]))+"px;")}else{$(E.box).attr("style","left:"+(D[0]+C+E.adjCoords[0])+"px;top:"+(D[1]+(E.adjCoords[1]))+"px")}}},showDBox:function(B){if(B.target){if(B.output=="quickread"&&!$(B.target).hasClass("dBoxActive")){$(B.target).addClass("dBoxActive")}}if(B.bIsModal){$(B.box).append(B.html);this.setCoord(B);Psyclone.Widget.Overlay.init(B);return }Psyclone.Widget.Overlay.checkEmbedded();this.setCoord(B);$(B.box).insertBefore("#nwContainer");this.showAd(B);if(B.wrapper!==""){$(B.box).append(B.wrapper)}if($("#innerContent")){$("#innerContent").append(B.html);if(B.output=="quickread"){var A;if(B.align()=="right"){A='<div class="arrowRightDS"><img class="transp" width="15" height="32" src="'+staticContentRoot+'/site/images/dialog/preview_arrow_right.png"/></div>'}else{A='<div class="arrowLeftDS"><img class="transp" width="15" height="32" src="'+staticContentRoot+'/site/images/dialog/preview_arrow_left.png"/></div>'}$(A).insertBefore("#QkRead div.closeBtn")}}if(B.wrapper===""&&document.getElementById("innerContent")===null){$(B.box).append(B.html)}$(B.box).css("display","block");Psyclone.Widget.DialogBox.closeHandlers(B);$(window).resize(function(){Psyclone.Widget.DialogBox.setCoord(B)})},closeHandlers:function(A){$(document).mousemove(function(B){if(Psyclone.Widget.DialogBox.eventType=="mouseover"){if(B.target!=A.target){Psyclone.Widget.DialogBox.hideDBox_OnMouseout(A);var C=Psyclone.Widget.DialogBox.getDBoxInfo(B,A)}return }else{$(this).unbind("mousemove")}return false});$(document).click(function(B){if(Psyclone.Widget.DialogBox.eventType=="click"&&B.target!=A.target&&B.target.nodeName.toLowerCase()!="a"){var C=Psyclone.Widget.DialogBox.getDBoxInfo(B,A);Psyclone.Widget.DialogBox.hideDBox_OnClick(B,A,C);C=null;$(this).unbind("click");return false}return })},getDBoxInfo:function(B,D){var A=document.getElementById("dialog");var C={mPos:GetEventXY(B),dBoxHt:parseFloat($(A).height()),dBoxWt:parseFloat($(A).width()),dBoxPos:GetObjPos(A)};return C},hideDBox_OnClick:function(B,D,C){function A(){window.clearTimeout(Psyclone.Widget.DialogBox.dBoxTimer);Psyclone.Widget.DialogBox.dBoxTimer=0;if(D.target){$(D.target).removeClass("dBoxActive")}$(D.box).fadeOut(100,function(){Psyclone.Widget.DialogBox.isActive=false;Psyclone.Widget.DialogBox.isTimerSet=false;Psyclone.Widget.Overlay.checkEmbedded();$("#dialog").remove();$(window).unbind("resize")})}if(B.target.className=="closeBtn transp"){A()}else{if(B.target.nodeName.toLowerCase()==="a"){A()}else{if((C.mPos[1]>(C.dBoxPos[1]+C.dBoxHt)||C.mPos[1]<C.dBoxPos[1])||((C.mPos[0]>(C.dBoxPos[0]+C.dBoxWt)||C.mPos[0]<C.dBoxPos[0]))&&$(D.box)){A()}else{Psyclone.Widget.DialogBox.closeHandlers(D)}}}},hideDBox_OnMouseout:function(A){$("#dialog").remove();$(A.target).removeClass("dBoxActive");Psyclone.Widget.Overlay.checkEmbedded();$(window).unbind("resize");Psyclone.Widget.DialogBox.isActive=false;Psyclone.Widget.DialogBox.isTimerSet=false;$(document).unbind("mousemove")},showAd:function(A){if(typeof (A.adCall)==="function"){A.adCall()}}};Psyclone.Widget.EmailArticle={source:"",init:function(){$(".emailArticleLink").click(function(A){Psyclone.Widget.EmailArticle.source=this;Psyclone.Widget.EmailArticle.showForm(A);return false})},showForm:function(B){var A=parseFloat(getRealTop(this.source))-101;var C=parseFloat(getRealLeft(this.source))+53;Psyclone.Widget.DialogBox.init(B.type,B.target,"",$("div.EmailArticleBlock").html(),"","","",{bIsModal:true,adjCoords:[24,-101]});this.submitForm()},submitForm:function(){var A={beforeSubmit:function(B){EmailArticle_RequiredExist();if(EmailArticle_RequiredExist()){$(".emailArticleForm :input").slice(0,3).attr("disabled","true");$("#EmailPersonalMessage").attr("disabled","disabled");$("#EmailMain").height(186+"px");$("#EmailMain p").slice(0,1).text("Sending email now...")}else{return false}},success:function(B){$("#EmailMain p").slice(0,1).addClass("success").text(B);$("#EmailMain div.loading2").remove();setTimeout(function(){Psyclone.Widget.Overlay.hideOverlay()},5000)},error:function(B,D,C){$("#EmailMain p").slice(0,1).addClass("error").text(D);$("#EmailMain div.loading2").remove();setTimeout(function(){Psyclone.Widget.Overlay.hideOverlay()},5000)}};$("#frmEmailThisArticle").ajaxForm(A)}};function IsValidEmailAddress(A){return RegexValidate(A,"^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$")}function IsValidEmailAddresses(C){var D=C.split(",");for(var B=0;B<D.length;B++){var A=StringTrim(D[B]);if(A.length>0){if(!IsValidEmailAddress(A)){return false;break}}}return true}function EmailArticle_ShowError(A,B){$("#EmailErrorMessage").show().html(A);B.focus()}function EmailArticle_RequiredExist(){var C=document.getElementById("EmailYourName");var B=document.getElementById("EmailYourEmailAddress");var A=document.getElementById("EmailRecEmailAddress");var D=document.getElementById("EmailMessage");if(C.value.length===0){EmailArticle_ShowError("Please enter Your Name before sending.",C);return false}if(B.value.length===0){EmailArticle_ShowError("Please enter Your Email Address before sending.",B);return false}else{if(!IsValidEmailAddress(B.value)){EmailArticle_ShowError("Your Email Address is not valid.  Please enter something different.",B);return false}}if(A.value.length===0){EmailArticle_ShowError("Please enter the Recipient's Email Address before sending.",A);return false}else{if(!IsValidEmailAddresses(A.value)){EmailArticle_ShowError("At least one of the Recipient's Email Addresses is not valid.  Please enter something different.",A);return false}}return true}Psyclone.Widget.EmbeddedLinks={init:function(){$("img.see-all").click(function(B){var A=$("#elb_wrapper_"+this.id).html();Psyclone.Widget.DialogBox.init(B.type,B.target,"",A,"","","",{adjCoords:[-96,-19]});return false})}};Psyclone.Widget.FontSizeSlider={init:function(D,B,A){var C={dragging:false,width:B,percent:0,origFontSize:1,lineHeightRate:0.416667,container:D,caret:$("div",D).slice(0,1),caretWidth:A};$(C.caret).mousedown(function(){if(C.dragging){return }C.dragging=true});$(document).mousemove(function(E){Psyclone.Widget.FontSizeSlider.onSliderMouseMove(E,C)});$(document).mouseup(function(E){Psyclone.Widget.FontSizeSlider.onSliderMouseUp(E,C)})},slideToStart:function(A){this.slideTo(0,A)},slideToEnd:function(A){var B=(A.width-A.caretWidth);this.slideTo(B,A)},slideTo:function(B,A){$(A.caret).css("left",B+"px");A.percent=(B/A.width)},onSliderMouseUp:function(B,A){if(A.dragging){A.dragging=false;this.onAfterResize(A)}},onSliderMouseMove:function(F,E){if(!E.dragging){return }var A=GetEventXY(F);var D=A[0];var B=A[1];var C=GetPos(E.container);SliderX=getRealLeft(E.container);if(D<(SliderX+(E.caretWidth/2))){this.slideToStart(E)}else{if(D>(SliderX+E.width-E.caretWidth)){this.slideToEnd(E)}else{var G=(D-SliderX-(E.caretWidth/2));this.slideTo(G,E)}}},onAfterResize:function(B){var A=B.origFontSize;if(B.percent>0){A=B.origFontSize+(B.origFontSize*B.percent)}$("#content").css("font-size",A+"em");B.dragging=false}};function search(A){if(A.id=="site-search-submit"){$("#searchForm").attr("action",Paths.Current.SearchHost+"/search.aspx");$("#searchForm").attr("target","_self")}else{if(A.id=="web-search-submit"){$("//form[@id='searchForm']/input[@type='hidden']").remove();$("#searchForm").attr("action","http://search.msn.com/results.asp");$("#searchForm").attr("target","_blank")}}}function initializeSubscribeForm(){$("#subFirstName").focus(function(){if(this.value=="First Name"){this.value=""}});$("#subLastName").focus(function(){if(this.value=="Last Name"){this.value=""}});$("#cds_email").focus(function(){if(this.value=="Email Address"){this.value=""}})}function subscribeMag(){$("#cds_name").val($("#subFirstName").val()+" "+$("#subLastName").val());$("#cds_page_id").val(32693)}Psyclone.Widget.LaunchPad={timer:null,isActive:false,tempContent:null,iframesCount:0,init:function(D,C,B,A){if(this.isActive){return }Psyclone.Widget.DialogBox.isActive=true;this.isActive=true;Psyclone.Widget.Overlay.checkEmbedded();this.tempContent=$("#NwLaunchPad .torso .content").html();setTimeout(function(){if(B==="topTenVertical"){B=document.getElementById("topTenVertical")}var G=GetObjPos(B);var F=G[0];var E=$(document).width();if(B.id==="topTenVertical"){if((F>(E/2))){F=F-58}G[1]+=80}if((F>(E/2))&&B.id!=="topTenVertical"){F=(F-400)+$("img",B).width()}$Launchpad.ShowMenu({actionElement:"launchpad_"+D,wid:C,customCSS:Paths.Current.StaticContentRoot+"site/css/launchpad.css",targetElement:document.getElementById("lpContent")});$("#NwLaunchPad").css({position:"absolute",display:"block","z-index":9999,left:F-14,top:G[1]-22});Psyclone.Widget.LaunchPad.setCloseButton()},150)},setCloseButton:function(){$(".close").one("click",function(A){Psyclone.Widget.DialogBox.isActive=false;Psyclone.Widget.LaunchPad.isActive=false;Psyclone.Widget.Overlay.checkEmbedded();$("#NwLaunchPad .torso .content").empty();$("#NwLaunchPad").hide();$("#NwLaunchPad .torso .content").html(Psyclone.Widget.LaunchPad.tempContent);return false})}};Psyclone.Widget.Login={init:function(){$("#login").click(function(A){Psyclone.Widget.DialogBox.init(A.type,A.target,"",$("#loginFormDiv").html(),"","","",{bIsModal:true,output:"quickread",adjCoords:[368,-1]});Psyclone.Widget.Login.validate();$("#loginForm input[@name='ReturnUrl']").val(location.href);return false})},validate:function(){$("#loginForm").validate({errorPlacement:function(A,B){A.insertAfter(B.parent("span").siblings("label"))},errorClass:"invalid",event:"submit",wrapper:"span",rules:{username:{required:true},password:{required:true}},messages:{username:{required:"Please enter your username"},password:{required:"Please enter a password"}}})}};Psyclone.Widget.MMToolBar={isInitSocial:false,isOpenSocial:false,init:function(){$(".socialNetworks").click(function(A){Psyclone.Widget.MMToolBar.isInitSocial=true;Psyclone.Widget.MMToolBar.openSocialBox(this);return false})},openSocialBox:function(A){if(this.isOpenSocial){this.closeSocialBox();return }this.isInitSocial=true;var C=getRealLeft(A);var B=getRealTop(A);$("#ShareLinks").css("left",C-147+"px").slideDown(250,function(){Psyclone.Widget.MMToolBar.isOpenSocial=true});$(document).one("click",function(D){if(D.target.getAttribute("class")!="SocialNetworks"){Psyclone.Widget.MMToolBar.closeSocialBox();return }return false})},closeSocialBox:function(){if(!this.isInitSocial&&!this.isOpenSocial){return }$("#ShareLinks").fadeOut(250,function(){Psyclone.Widget.MMToolBar.isOpenSocial=false;Psyclone.Widget.MMToolBar.isInitSocial=false})}};Psyclone.Widget.Overlay={isActive:false,tags:["embed","object","select","iframe"],init:function(E){if(this.isActive){return false}var D=document.createElement("div");D.id="modal2";$(D).insertBefore("#nwContainer");var C=document.createElement("div");C.id="overlay2";var B=$(document).height();$(C).css({height:B+"px",opacity:0});$(C).appendTo("#modal2");$(E.box).appendTo("#modal2");if(E.bIsCentered){$(E.box).center();$(window).resize(function(){$(E.box).center()});if(E.bIsScrollable){var A=getScrollTop();window.onscroll=function(H){var F=getScrollTop();var G=setTimeout(function(){$(E.box).css({top:(F+120)+"px"})},250)}}}else{$(window).resize(function(){Psyclone.Widget.DialogBox.setCoord(E)})}this.checkEmbedded();this.showOverlay(C,D,E)},checkEmbedded:function(){for(var B=0;B<this.tags.length;B++){var C=document.getElementsByTagName(this.tags[B]);for(var A=0;A<C.length;A++){if(C[A].id=="top10_vert"){continue}if(C[A].style.visibility==="hidden"||$(C[A]).hasClass("hideTag")){$(C[A]).removeClass("hideTag")}else{$(C[A]).addClass("hideTag")}}}},showOverlay:function(A,B,C){$(A).animate({opacity:0.4,display:"block"},250,function(){$(this).click(function(D){if(D.target==this){Psyclone.Widget.Overlay.hideOverlay()}});if($("#dialog")){$(C.box).find(".closeModal").click(function(D){Psyclone.Widget.Overlay.hideOverlay(A,B)})}})},hideOverlay:function(A,B){$("#dialog").remove();$("#overlay2").animate({opacity:0},250,function(){$("#modal2").empty().remove();Psyclone.Widget.Overlay.checkEmbedded();Psyclone.Widget.DialogBox.isActive=false;$(".closeModal").unbind("click");$(window).unbind("resize")})}};Psyclone.Widget.QuickGuide=function(){$("a.quickGuide").css({visibility:"visible"}).click(function(A){Psyclone.Widget.DialogBox.init(A.type,A.target,"","","","",quickGuideAdCall,{bIsModal:true,output:"quickGuide",adjCoords:[546,10]});Omniture_SendMicroData("Site Guide","event16");return false})};Psyclone.Widget.QuickRead=function(H,F,J){var A;var M;var E=null;var G=null;var I=function(){var N={boxTop:'<div class="top transp">&#xA0;</div>',boxContent:'<div id="boxContent" class="transp"><div id="innerContent"></div></div>',boxBot:'<div class="bot transp">&#xA0;</div>',boxWrapper:function(){return['<div id="boxDs" class="boxDs">'+this.boxTop+this.boxContent+this.boxBot+"</div>"].join("")}};return N.boxWrapper()};if(H&&null!=F){var D;var C;var F=document.getElementById(F);var B=GetObjPos(F);if(B[0]<(parseFloat($(document).width())/2)&&F.id=="topTenVertical"){D=-($(document.getElementById("topTenVertical")).width())+75;C=(parseInt(J)-160)}else{if(B[0]>(parseFloat($(document).width())/2)&&F.id=="topTenVertical"){D=0;C=parseInt(J)-166}}Psyclone.Widget.DialogBox.init("click",F,H,"",I(),B,quickReadAdCall,{output:"quickread",adjCoords:[D,C],width:486});return }var K=function(N){$("a.quickRead").removeAttr("onclick");L(N)};var L=function(N){$("a.quickRead").click(function(O){window.clearTimeout(A);if(!document.getElementById("dialog")){Psyclone.Widget.DialogBox.init(O.type,O.target,"","",I(),"",quickReadAdCall,{output:"quickread",adjCoords:[15,-160],width:486})}else{Psyclone.Widget.DialogBox.eventType="click"}return false});$("a.quickRead").mouseover(function(O){E=O.target;M=O.type;A=window.setTimeout(function(){if(!document.getElementById("dialog")){Psyclone.Widget.DialogBox.init(M,E,"","",I(),"",quickReadAdCall,{output:"quickread",adjCoords:[15,-160],width:486})}A=0},500);return false})};K(H)};Psyclone.Widget.RelatedCloud={boxHt:null,isActive:false,init:function(){$("div.RelatedCloud").each(function(A){var B=this;B={isActive:false,isOpen:false,source:$("div.content div.column div.nav a",this),content:$("div.content",this),contentHt:$("div.content",this).css("height"),maxColumnHt:null};Psyclone.Widget.RelatedCloud.boxHt=parseInt($("div.content",this).height());$(B.source).click(function(C){if(Psyclone.Widget.RelatedCloud.isActive){return }Psyclone.Widget.RelatedCloud.isActive=true;if(this.className=="seeAll"){Psyclone.Widget.RelatedCloud.expand(B)}else{if(this.className=="collapseAll"){Psyclone.Widget.RelatedCloud.collapse(B)}}})})},expand:function(B){$(B.source).removeClass("seeAll").addClass("collapseAll").text("Collapse All");$("div.column ul",B.content).removeClass("collapsed");var A=0;if(B.maxColumnHt===null){$("div.column ul",B.content).each(function(C){if($(this).height()>A){A=$(this).height()}});B.maxColumnHt=A}else{A=B.maxColumnHt}$("div.column ul",B.content).height(A);$(B.content).animate({height:(A+26)+"px"},250,function(){Psyclone.Widget.RelatedCloud.isActive=false})},collapse:function(A){$(A.content).animate({height:Psyclone.Widget.RelatedCloud.boxHt+1+"px"},250,function(){$(A.source).removeClass("collapseAll").addClass("seeAll").text("See All");$("div.column ul",A.content).css("height","60px");$("div.column ul",A.content).addClass("collapsed");Psyclone.Widget.RelatedCloud.isActive=false})}};function ShareLinks(A){this.Visible=false;this.FullyExpanded=false;this.Container=A;this.hide=function(){$(this.Container).fadeOut("fast");this.Visible=false};this.show=function(){var C=GetPos($("#ToolBox li.social").get(0));var B=[parseInt($(".SocialLinks").height()*0.32),parseInt($(".SocialLinks").width()*0.9)];$(this.Container).css("left",(C[0]+B[1])+"px");$(this.Container).css("top",(C[1]-B[0])+"px");$(this.Container).fadeIn("fast");this.Visible=true}}Psyclone.Widget.SocialNetwork={isActive:false,src:null,targetX:0,targetY:0,init:function(){$(".socialNetworks").click(function(A){if(Psyclone.Widget.DialogBox.isActive||Psyclone.Widget.SocialNetwork.isActive){return }Psyclone.Widget.SocialNetwork.src=A.target;Psyclone.Widget.SocialNetwork.targetX=getRealLeft(A.target);Psyclone.Widget.SocialNetwork.targetY=getRealTop(A.target);Psyclone.Widget.SocialNetwork.showPopup();return false})},showPopup:function(){$(".SocialLinksDiv").insertBefore("#header").css({left:(Psyclone.Widget.SocialNetwork.targetX+102)+"px",top:(Psyclone.Widget.SocialNetwork.targetY-42)+"px"}).fadeIn(250,function(){Psyclone.Widget.SocialNetwork.isActive=true;$(document).unbind("click");Psyclone.Widget.SocialNetwork.hidePopup()})},hidePopup:function(){$(document).one("click",function(A){if(!Psyclone.Widget.SocialNetwork.isActive){return }$(".SocialLinksDiv").fadeOut(250,function(){Psyclone.Widget.SocialNetwork.isActive=false})})}};Psyclone.Widget.Sphere={bIsActive:false,init:function(){$("a#sphere").click(function(){if(document.getElementById("sphere_widget")&&Psyclone.Widget.Sphere.bIsActive){return false}Sphere.Widget.search();Psyclone.Widget.Sphere.bIsActive=true;Psyclone.Widget.Overlay.checkEmbedded();Psyclone.Widget.Sphere.closeSphere();return false})},closeSphere:function(){var A=$("a.ctrl").attr("href");$("a.ctrl").attr("href","#");Psyclone.Widget.DialogBox.isActive=true;$(".closeBtn").click(function(){Psyclone.Widget.Overlay.checkEmbedded();$("a.ctrl").attr("href",A);$(this).unbind("click");Psyclone.Widget.DialogBox.isActive=false;Psyclone.Widget.Sphere.bIsActive=false})}};Psyclone.Widget.ToolTips=function(){$("a.msTip").click(function(A){Psyclone.Widget.DialogBox.init(A.type,A.target,"",$("div.msTipBlock").html(),"","","",{bIsModal:true,adjCoords:[-210,-217]})})};
