target="_parent",
(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context)};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){selector=jQuery.clean([match[1]],context)}else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3]){return jQuery().find(selector)}return jQuery(elem)}selector=[]}}else{return jQuery(context).find(selector)}}else{if(jQuery.isFunction(selector)){return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector)}}return this.setArray(jQuery.makeArray(selector))},jquery:"1.2.6",size:function(){return this.length},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num]},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this},each:function(callback,args){return jQuery.each(this,callback,args)},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this)},attr:function(name,value,type){var options=name;if(name.constructor==String){if(value===undefined){return this[0]&&jQuery[type||"attr"](this[0],name)}else{options={};options[name]=value}}return this.each(function(i){for(name in options){jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name))}})},css:function(key,value){if((key=="width"||key=="height")&&parseFloat(value)<0){value=undefined}return this.attr(key,value,"curCSS")},text:function(text){if(typeof text!="object"&&text!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text))}var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8){ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])}})});return ret},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,false,function(elem){if(this.nodeType==1){this.appendChild(elem)}})},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1){this.insertBefore(elem,this.firstChild)}})},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this)})},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem)});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems)},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0]}else{return this.cloneNode(true)}});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined){this[expando]=null}});if(events===true){this.find("*").andSelf().each(function(i){if(this.nodeType==3){return }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(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i)})||jQuery.multiFilter(selector,this))},not:function(selector){if(selector.constructor==String){if(isSimple.test(selector)){return this.pushStack(jQuery.multiFilter(selector,this,true))}else{selector=jQuery.multiFilter(selector,this)}}var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector})},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=="string"?jQuery(selector):jQuery.makeArray(selector))))},is:function(selector){return !!selector&&jQuery.multiFilter(selector,this).length>0},hasClass:function(selector){return this.is("."+selector)},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],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){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one){return value}values.push(value)}}return values}else{return(this[0].value||"").replace(/\r/g,"")}}return undefined}if(value.constructor==Number){value+=""}return this.each(function(){if(this.nodeType!=1){return }if(value.constructor==Array&&/radio|checkbox/.test(this.type)){this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0)}else{if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0)});if(!values.length){this.selectedIndex=-1}}else{this.value=value}}})},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value)},replaceWith:function(value){return this.after(value).remove()},eq:function(i){return this.slice(i,i+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},andSelf:function(){return this.add(this.prevObject)},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length){data=jQuery.data(this[0],key)}return data===undefined&&parts[1]?this.data(parts[0]):data}else{return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value)})}},removeData:function(key){return this.each(function(){jQuery.removeData(this,key)})},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse){elems.reverse()}}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr")){obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"))}var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script")){scripts=scripts.add(elem)}else{if(elem.nodeType==1){scripts=scripts.add(jQuery("script",elem).remove())}callback.call(obj,elem)}});scripts.each(evalScript)})}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src){jQuery.ajax({url:elem.src,async:false,dataType:"script"})}else{jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"")}if(elem.parentNode){elem.parentNode.removeChild(elem)}}function now(){return +new Date}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target="_parent"}if(typeof target!="_parent"&&typeof target!="function"){target={}}if(length==i){target=this;--i}for(;i<length;i++){if((options=arguments[i])!=null){for(var name in options){var src=target[name],copy=options[name];if(target===copy){continue}if(deep&&copy&&typeof copy=="object"&&!copy.nodeType){target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy)}else{if(copy!==undefined){target[name]=copy}}}}}return target};var expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};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&&/^[\s[]?function/.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){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie){script.text=data}else{script.appendChild(document.createTextNode(data))}head.insertBefore(script,head.firstChild);head.removeChild(script)}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase()},cache:{},data:function(elem,name,data){elem=elem==window?windowData: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?windowData: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(object,callback,args){var name,i=0,length=object.length;if(args){if(length==undefined){for(name in object){if(callback.apply(object[name],args)===false){break}}}else{for(;i<length;){if(callback.apply(object[i++],args)===false){break}}}}else{if(length==undefined){for(name in object){if(callback.call(object[name],name,object[name])===false){break}}}else{for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}}return object},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value)){value=value.call(elem,i)}return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className)){elem.className+=(elem.className?" ":"")+className}})},remove:function(elem,classNames){if(elem.nodeType==1){elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return !jQuery.className.has(classNames,className)}).join(" "):""}},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name]}callback.call(elem);for(var name in options){elem.style[name]=old[name]}},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0});val-=Math.round(padding+border)}if(jQuery(elem).is(":visible")){getWH()}else{jQuery.swap(elem,props,getWH)}return Math.max(0,val)}return jQuery.curCSS(elem,name,force)},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari){return false}var ret=defaultView.getComputedStyle(elem,null);return !ret||ret.getPropertyValue("color")==""}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save}if(name.match(/float/i)){name=styleFloat}if(!force&&style&&style[name]){ret=style[name]}else{if(defaultView.getComputedStyle){if(name.match(/float/i)){name="float"}name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem)){ret=computedStyle.getPropertyValue(name)}else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode){stack.unshift(a)}for(;i<stack.length;i++){if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block"}}ret=name=="display"&&swap[stack.length-1]!=null?"none":(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i++){if(swap[i]!=null){stack[i].style.display=swap[i]}}}if(name=="opacity"&&ret==""){ret="1"}}else{if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase()});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft}}}}return ret},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document}jQuery.each(elems,function(i,elem){if(!elem){return }if(elem.constructor==Number){elem+=""}if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">"});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--){div=div.lastChild}if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j])}}if(/^\s/.test(elem)){div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild)}}elem=jQuery.makeArray(div.childNodes)}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select"))){return }if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options){ret.push(elem)}else{ret=jQuery.merge(ret,elem)}});return ret},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8){return undefined}var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari){elem.parentNode.selectedIndex}if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode){throw"type property can't be changed"}elem[name]=value}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name)){return elem.getAttributeNode(name).nodeValue}return elem[name]}if(msie&&notxml&&name=="style"){return jQuery.attr(elem.style,"cssText",value)}if(set){elem.setAttribute(name,""+value)}var attr=msie&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr}if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+""=="NaN"?"":"alpha(opacity="+value*100+")")}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase()});if(set){elem[name]=value}return elem[name]},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"")},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call){ret[0]=array}else{while(i){ret[--i]=array[i]}}}return ret},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++){if(array[i]===elem){return i}}return -1},merge:function(first,second){var i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++]){if(elem.nodeType!=8){first[pos++]=elem}}}else{while(elem=second[i++]){first[pos++]=elem}}return first},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i])}}}catch(e){ret=array}return ret},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++){if(!inv!=!callback(elems[i],i)){ret.push(elems[i])}}return ret},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null){ret[ret.length]=value}}return ret.concat.apply([],ret)}});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",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});jQuery.each({parent:function(elem){return elem.parentNode},parents:function(elem){return jQuery.dir(elem,"parentNode")},next:function(elem){return jQuery.nth(elem,2,"nextSibling")},prev:function(elem){return jQuery.nth(elem,2,"previousSibling")},nextAll:function(elem){return jQuery.dir(elem,"nextSibling")},prevAll:function(elem){return jQuery.dir(elem,"previousSibling")},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem)},children:function(elem){return jQuery.sibling(elem.firstChild)},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes)}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string"){ret=jQuery.multiFilter(selector,ret)}return this.pushStack(jQuery.unique(ret))}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++){jQuery(args[i])[original](this)}})}});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1){this.removeAttribute(name)}},addClass:function(classNames){jQuery.className.add(this,classNames)},removeClass:function(classNames){jQuery.className.remove(this,classNames)},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames)},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){jQuery(">*",this).remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments)}});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px")}});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0}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:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2])},"#":function(a,i,m){return a.getAttribute("id")==m[2]},":":{lt:function(a,i,m){return i<m[3]-0},gt:function(a,i,m){return i>m[3]-0},nth:function(a,i,m){return m[3]-0==i},eq:function(a,i,m){return m[3]-0==i},first:function(a,i){return i==0},last:function(a,i,m,r){return i==r.length-1},even:function(a,i){return i%2==0},odd:function(a,i){return i%2},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a},"only-child":function(a){return !jQuery.nth(a.parentNode.lastChild,2,"previousSibling")},parent:function(a){return a.firstChild},empty:function(a){return !a.firstChild},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden"},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden"},enabled:function(a){return !a.disabled},disabled:function(a){return a.disabled},checked:function(a){return a.checked},selected:function(a){return a.selected||jQuery.attr(a,"selected")},text:function(a){return"text"==a.type},radio:function(a){return"radio"==a.type},checkbox:function(a){return"checkbox"==a.type},file:function(a){return"file"==a.type},password:function(a){return"password"==a.type},submit:function(a){return"submit"==a.type},image:function(a){return"image"==a.type},reset:function(a){return"reset"==a.type},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button")},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},has:function(a,i,m){return jQuery.find(m[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},animated:function(a){return 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!=1&&context.nodeType!=9){return[]}context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){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)){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 merge={};nodeName=m[2].toUpperCase();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){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=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3])}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])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-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==0){if(node.nodeIndex==last){add=true}}else{if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0){add=true}}if(add^not){tmp.push(node)}}r=tmp}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object"){fn=fn[m[2]]}if(typeof fn=="string"){fn=eval("false||function(a,i){return "+fn+";}")}r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r)},not)}}}}}return{r:r,t:t}},dir:function(elem,dir){var matched=[],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&&n!=elem){r.push(n)}}return r}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8){return }if(jQuery.browser.msie&&elem.setInterval){elem=window}if(!handler.guid){handler.guid=this.guid++}if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments)});handler.data=data}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered){return jQuery.event.handle.apply(arguments.callee.elem,arguments)}});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener){elem.addEventListener(type,handle,false)}else{if(elem.attachEvent){elem.attachEvent("on"+type,handle)}}}}handlers[handler.guid]=handler;jQuery.event.global[type]=true});elem=null},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8){return }var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)==".")){for(var type in events){this.remove(elem,type+(types||""))}}else{if(types.type){handler=types.handler;types=types.type}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];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(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener){elem.removeEventListener(type,jQuery.data(elem,"handle"),false)}else{if(elem.detachEvent){elem.detachEvent("on"+type,jQuery.data(elem,"handle"))}}}ret=null;delete events[type]}}})}for(ret in events){break}if(!ret){var handle=jQuery.data(elem,"handle");if(handle){handle.elem=null}jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle")}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true}if(!elem){if(this.global[type]){jQuery("*").add([window,document]).trigger(type,data)}}else{if(elem.nodeType==3||elem.nodeType==8){return undefined}var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true}data[0].type=type;if(exclusive){data[0].exclusive=true}var handle=jQuery.data(elem,"handle");if(handle){val=handle.apply(elem,data)}if((!fn||(jQuery.nodeName(elem,"a")&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false){val=false}if(event){data.shift()}if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined){val=ret}}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,"a")&&type=="click")){this.triggered=true;try{elem[type]()}catch(e){}}this.triggered=false}return val},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false){val=ret}if(ret===false){event.preventDefault();event.stopPropagation()}}}return val},fix:function(event){if(event[expando]==true){return event}var originalEvent=event;event={originalEvent:originalEvent};var props="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--){event[props[i]]=originalEvent[props[i]]}event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault){originalEvent.preventDefault()}originalEvent.returnValue=false};event.stopPropagation=function(){if(originalEvent.stopPropagation){originalEvent.stopPropagation()}originalEvent.cancelBubble=true};event.timeStamp=event.timeStamp||now();if(!event.target){event.target=event.srcElement||document}if(event.target.nodeType==3){event.target=event.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 doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0)}if(!event.which&&((event.charCode||event.charCode===0)?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},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy},special:{ready:{setup:function(){bindReady();return },teardown:function(){return }},mouseenter:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true},handler:function(event){if(withinElement(event,this)){return true}event.type="mouseenter";return jQuery.event.handle.apply(this,arguments)}},mouseleave:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true},handler:function(event){if(withinElement(event,this)){return true}event.type="mouseleave";return jQuery.event.handle.apply(this,arguments)}}}};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){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments)});return this.each(function(){jQuery.event.add(this,type,one,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){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn)},toggle:function(fn){var args=arguments,i=1;while(i<args.length){jQuery.event.proxy(fn,args[i++])}return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false}))},hover:function(fnOver,fnOut){return this.bind("mouseenter",fnOver).bind("mouseleave",fnOut)},ready:function(fn){bindReady();if(jQuery.isReady){fn.call(document,jQuery)}else{jQuery.readyList.push(function(){return fn.call(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.call(document)});jQuery.readyList=null}jQuery(document).triggerHandler("ready")}}});var readyBound=false;function bindReady(){if(readyBound){return }readyBound=true;if(document.addEventListener&&!jQuery.browser.opera){document.addEventListener("DOMContentLoaded",jQuery.ready,false)}if(jQuery.browser.msie&&window==top){(function(){if(jQuery.isReady){return }try{document.documentElement.doScroll("left")}catch(error){setTimeout(arguments.callee,0);return }jQuery.ready()})()}if(jQuery.browser.opera){document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady){return }for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return }}jQuery.ready()},false)}if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady){return }if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return }if(numStyles===undefined){numStyles=jQuery("style, link[rel=stylesheet]").length}if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return }jQuery.ready()})()}jQuery.event.add(window,"load",jQuery.ready)}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,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name)}});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem){try{parent=parent.parentNode}catch(error){parent=elem}}return parent==elem};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind()});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!="string"){return this._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,dataType:"html",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)}self.each(callback,[res.responseText,status,res])}});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(val,i){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=now();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:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!="string"){s.data=jQuery.param(s.data)}if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre)){s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?"}}else{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)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data){s.data=(s.data+"").replace(jsre,"="+jsonp+"$1")}s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp]}catch(e){}if(head){head.removeChild(script)}}}if(s.dataType=="script"&&s.cache==null){s.cache=false}if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"")}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType=="script"&&type=="GET"&&remote.test(s.url)&&remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset){script.charset=s.scriptCharset}if(!jsonp){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 undefined}var requestDone=false;var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(s.username){xhr.open(type,s.url,s.async,s.username,s.password)}else{xhr.open(type,s.url,s.async)}try{if(s.data){xhr.setRequestHeader("Content-Type",s.contentType)}if(s.ifModified){xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default)}catch(e){}if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return false}if(s.global){jQuery.event.trigger("ajaxSend",[xhr,s])}var onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xhr)&&"error"||s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter)}catch(e){status="parsererror"}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified")}catch(e){}if(s.ifModified&&modRes){jQuery.lastModified[s.url]=modRes}if(!jsonp){success()}}else{jQuery.handleError(s,xhr,status)}complete();if(s.async){xhr=null}}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0){setTimeout(function(){if(xhr){xhr.abort();if(!requestDone){onreadystatechange("timeout")}}},s.timeout)}}try{xhr.send(s.data)}catch(e){jQuery.handleError(s,xhr,null,e)}if(!s.async){onreadystatechange()}function success(){if(s.success){s.success(data,status)}if(s.global){jQuery.event.trigger("ajaxSuccess",[xhr,s])}}function complete(){if(s.complete){s.complete(xhr,status)}if(s.global){jQuery.event.trigger("ajaxComplete",[xhr,s])}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}}return xhr},handleError:function(s,xhr,status,e){if(s.error){s.error(xhr,status,e)}if(s.global){jQuery.event.trigger("ajaxError",[xhr,s,e])}},active:0,httpSuccess:function(xhr){try{return !xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||jQuery.browser.safari&&xhr.status==undefined}catch(e){}return false},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&&xhr.status==undefined}catch(e){}return false},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror"){throw"parsererror"}if(filter){data=filter(data,type)}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(jQuery.isFunction(a[j])?a[j]():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||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none"){this.style.display="block"}elem.remove()}}).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");this.style.display="none"}).end()},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):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 optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1){return false}var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden){return opt.complete.call(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){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/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(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx"}if(!type||(typeof type=="string"&&!fn)){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.call(this)}}})},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue){this.queue([])}this.each(function(){for(var i=timers.length-1;i>=0;i--){if(timers[i].elem==this){if(gotoEnd){timers[i](true)}timers.splice(i,1)}}});if(!gotoEnd){this.dequeue()}return this}});var queue=function(elem,type,array){if(elem){type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array){q=jQuery.data(elem,type+"queue",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].call(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:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){jQuery(this).dequeue()}if(jQuery.isFunction(opt.old)){opt.old.call(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:[],timerId:null,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.call(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.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0},custom:function(from,to,unit){this.startTime=now();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(gotoEnd){return self.step(gotoEnd)}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=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(jQuery.timerId);jQuery.timerId=null}},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(gotoEnd){var t=now();if(gotoEnd||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){this.options.complete.call(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.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},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 parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop)}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2){border(offsetParent)}if(!fixed&&css(offsetParent,"position")=="fixed"){fixed=true}offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display"))){add(-parent.scrollLeft,-parent.scrollTop)}if(mozilla&&css(parent,"overflow")!="visible"){border(parent)}parent=parent.parentNode}if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute")){add(-doc.body.offsetLeft,-doc.body.offsetTop)}if(fixed){add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop))}}results={top:top,left:left}}}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true))}function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0}return results};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,"marginTop");offset.left-=num(this,"marginLeft");parentOffset.top+=num(offsetParent,"borderTopWidth");parentOffset.left+=num(offsetParent,"borderLeftWidth");results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}}return results},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,"position")=="static")){offsetParent=offsetParent.offsetParent}return jQuery(offsetParent)}});jQuery.each(["Left","Top"],function(i,name){var method="scroll"+name;jQuery.fn[method]=function(val){if(!this[0]){return }return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val}):this[0]==window||this[0]==document?self[i?"pageYOffset":"pageXOffset"]||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method]}});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br)};jQuery.fn["outer"+name]=function(margin){return this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(margin?num(this,"margin"+tl)+num(this,"margin"+br):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|165|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|204|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 Newsweek=window.Newsweek||{};Newsweek.namespace=function(D){if(!D||!D.length){return null}var C=D.split(".");var A=Newsweek;for(var B=(C[0]=="Newsweek")?1:0;B<C.length;++B){A[C[B]]=A[C[B]]||{};A=A[C[B]]}return A};Newsweek.namespace("Component");Newsweek.namespace("Widget");Newsweek.namespace("Util");Newsweek.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}}}};Newsweek.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 CharCounter(F,A,C){var B=this;this.nodetype=A.nodeName.toLowerCase();this.field=F;this.updateEl=A;this.currLength=(F.value.length>0)?F.value.length:0;this.maxLength=C;this.maxReached=false;var D=[37,39,38,40];var E=false;if(this.currLength!=0){this.updateCharCounter()}this.field.onkeydown=function(H){if(!H){var H=window.event}if(G(H)){E=true}};this.field.onkeyup=function(I){if(!I){var I=window.event}var H=B.getKeyCode(I);for(i in D){if(H==D[i]){return }}if(!B.checkCharLimit()){B.updateCharCounter();return }if(G(I)){E=false}if(E&&B.getKeyCode(I)==86){if(B.getFieldLength()>B.maxLength){B.updateEl.innerHTML="Please enter up to "+B.maxLength+" chars";return }}else{if(B.getFieldLength()>B.maxLength){B.updateEl.innerHTML="Please enter up to "+B.maxLength+" chars";return }}B.updateEl.innerHTML="You have 0 chars left"};function G(I){var H=(document.all)?I.modifiers&I.CONTROL_MASK:I.ctrlKey;return H}}CharCounter.prototype.getFieldLength=function(){return this.field.value.length};CharCounter.prototype.checkCharLimit=function(){this.currLength=this.getFieldLength();if(this.currLength>=this.maxLength){this.field.style.backgroundColor="#f5edc9";this.maxReached=true;return true}this.field.style.backgroundColor="#ffffff";return false};CharCounter.prototype.updateCharCounter=function(){var A=(this.maxLength-this.getFieldLength()>1)?"s":"";if(this.nodetype=="textarea"||this.nodetype=="input"){this.updateEl.value=(this.maxLength-this.getFieldLength())+" char"+A+" left";return }this.updateEl.innerHTML=(this.maxLength-this.getFieldLength())+" char"+A+" left"};CharCounter.prototype.getKeyCode=function(A){if(A.keyCode){code=A.keyCode}else{if(A.which){code=A.which}}return code};var DateCalculator=function(A){if(A==undefined){this.offset=(new Date()).getTimezoneOffset()*60*1000}else{this.offset=A}};DateCalculator.prototype.newUTCDate=function(A){if(!A){A=new Date()}return new Date(A.getTime()+this.offset)};DateCalculator.prototype.utcToLocalDate=function(A){return new Date(A.getTime()-this.offset)};DateCalculator.prototype.parseIso8601Date=function(A){var B=Date.UTC(A.substring(0,4),A.substring(5,7)-1,A.substring(8,10),A.substring(11,13),A.substring(14,16),A.substring(17,19));return new Date(B+this.offset)};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.newsweek.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.newsweek.com/media/nw_flash_upgrade_ccol.jpg' border=0></a>"}else{return true}}return false}Interval=function(A){this.delay=A||1000;this.timeout=null;this.bindable=jQuery(this)};Interval.prototype.listen=function(A,B){this.bindable.bind(A,B)};Interval.prototype.setDelay=function(A){this.delay=A};Interval.prototype.start=function(A){if(!this.timeout){this.scheduleUpdate()}};Interval.prototype.restart=function(A){this.stop();this.start()};Interval.prototype.stop=function(A){if(this.timeout){clearTimeout(this.timeout);this.timeout=undefined}};Interval.prototype.scheduleUpdate=function(){var A=this;this.timeout=setTimeout(function(){A.scheduleUpdate();A.execute()},this.delay)};Interval.prototype.execute=function(){this.bindable.trigger("run")};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.newsweek.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,"")}var TimedQueue=function(C,B){this.interval=new Interval(C);this.items=B||[];this.bindable=$(this);var A=this;this.interval.listen("run",function(){A.execute()})};TimedQueue.prototype.listen=function(A,B){this.bindable.bind(A,B)};TimedQueue.prototype.setDelay=function(A){this.interval.setDelay=A};TimedQueue.prototype.clear=function(){this.items=[]};TimedQueue.prototype.addItems=function(A){for(var B=0;B<A.length;B++){this.items.push(A[B])}};TimedQueue.prototype.addItemsReversed=function(A){for(var B=0;B<A.length;B++){this.items.unshift(A[B])}};TimedQueue.prototype.setNextItem=function(A){this.items.unshift(A)};TimedQueue.prototype.start=function(){this.interval.start()};TimedQueue.prototype.stop=function(){this.interval.stop()};TimedQueue.prototype.restart=function(){this.interval.restart()};TimedQueue.prototype.execute=function(){var A=this.items.shift();if(A){this.bindable.trigger("pop",[A,this.items.length])}};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 false}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 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")})}$(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="newsweek.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="newsweek.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="newsweek.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","")}}Newsweek.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)};Newsweek.Component.BoxCollection.setHandler(B)})},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);Newsweek.Widget.QuickRead("","","")},error:function(D){}})}};Newsweek.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",A),mainArtLink:$(".imageDeck a.mainArt",A),mainArtImg:$(".imageDeck a.mainArt img",A),overlay:$(".imageDeck #dlOverlay",A),overlayXOffset:$(".imageDeck").width(),caption:$(".imageDeck #dlOverlay .caption",A),rubric:null,title:null,deck:null,source:null,titlePause:250,currentIndex:0,lightBox:$("div.bot div.lightBox a",A),mainNav:$("div.bot ol.mainNav",A),subNav:$("div.bot ol.subNav",A),back:$("div.bot ol.mainNav li a.back",A),pausePlay:$("div.bot ol.mainNav li a.pausePlay",A),next:$("div.bot ol.mainNav li a.next",A),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(Newsweek.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 }Newsweek.Component.DynamicLead.showSelected(B,A);return false})})},getMainContent:function(A){$("li",A.subNav).each(function(D){var C=this;C={url:$("div.slideContent a.mainArtLink",this).attr("href"),rubric:$("div.slideContent h6.rubric",this).text(),title:$("div.slideContent h1.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 a.mainArtLink img",this).attr("src"),date:$("div.slideContent p.date",this).text()};if(Newsweek.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 false}$(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+'" target=_parent width="100" src="'+A.slides[D].imageSrc+'" target="_parent" alt="'+A.slides[D].title+'"  /></div><id="'+D+'" >'+A.slides[D].title+'</h6><p id="'+D+'" >'+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;Newsweek.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);if($(A.mainArtLink).children().length==0){$(A.mainArtLink).append('<img src="'+A.slides[A.currentIndex].imageSrc+'" target="_parent" alt="'+A.slides[A.currentIndex].title+'" />')}else{$(A.mainArtImg).attr({src:A.slides[A.currentIndex].imageSrc,alt:A.slides[A.currentIndex].title})}},setOverlayContent:function(B){var C=rootpath+"spacer.gif";var A='<h6 dir=rtl><a  target="_parent" href="'+B.slides[B.currentIndex].url+' ">'+B.slides[B.currentIndex].rubric+" </a></h6>";A+='<a  target="_parent" href="'+B.slides[B.currentIndex].url+'"><img class="transp" src="'+C+'" alt="'+B.slides[B.currentIndex].title+'" /></a>';A+='<p class="deck"><a target="_parent" href="'+B.slides[B.currentIndex].url+'">'+B.slides[B.currentIndex].deck+"</a></p>";A+='<p class="source"><a target="_parent" 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")){Newsweek.Component.DynamicLead.pause(A)}else{Newsweek.Component.DynamicLead.play(A)}return false})},previousHandler:function(A){$(A.back).one("click",function(){if(Newsweek.Component.DynamicLead.isAnimating){return }Newsweek.Component.DynamicLead.isAnimating=true;$(A.overlay).dequeue();Newsweek.Component.DynamicLead.showPrevious(A);return false})},nextHandler:function(A){$(A.next).one("click",function(){if(Newsweek.Component.DynamicLead.isAnimating){return }Newsweek.Component.DynamicLead.isAnimating=true;Newsweek.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(){Newsweek.Component.DynamicLead.onClick()})}$(A.overlay).fadeOut();this.resetOverlayPos(A);$(A.mainArtLink).fadeIn(500,function(){Newsweek.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)}}Newsweek.Component.DynamicLead.setNextTransition(A)},slideOverlayRightLeft:function(A){window.setTimeout(function(){$(A.overlay).animate({left:0+"px"},Newsweek.Component.DynamicLead.globalTitleTransition,function(){A.animating=false;Newsweek.Component.DynamicLead.hideOverlayLeftRight(A)})},A.titlePause)},slideOverlayBottomTop:function(A){window.setTimeout(function(){$(A.overlay).animate({top:-110+"px"},Newsweek.Component.DynamicLead.globalTitleTransition,function(){A.animating=false;Newsweek.Component.DynamicLead.hideOverlayTopBottom(A)})},A.titlePause)},slideOverlayLeftRight:function(A){window.setTimeout(function(){$(A.overlay).animate({left:0+"px"},Newsweek.Component.DynamicLead.globalTitleTransition,function(){A.animating=false;Newsweek.Component.DynamicLead.hideOverlayRightLeft(A)})},A.titlePause)},setNextTransition:function(A){if(A.slides.length==1){return }if(!A.isPaused){this.transitionTimeoutId=window.setTimeout(function(){Newsweek.Component.DynamicLead.goNext(A)},Newsweek.Component.DynamicLead.globalSlidePause)}},goNext:function(A){if(A.currentIndex==(A.slides.length-1)){Newsweek.Component.DynamicLead.goTo(0,A)}else{Newsweek.Component.DynamicLead.goTo(null,A)}},goTo:function(A,B){Newsweek.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"},Newsweek.Component.DynamicLead.globalTitleTransition);return false})},hideOverlayTopBottom:function(B,A){$("span.close",B.overlay).one("click",function(){$(B.overlay).animate({top:0+"px"},Newsweek.Component.DynamicLead.globalTitleTransition);return false})},hideOverlayLeftRight:function(B,A){$("span.close",B.overlay).one("click",function(){$(B.overlay).animate({left:B.overlayXOffset+"px"},Newsweek.Component.DynamicLead.globalTitleTransition);return false})},clearInterval:function(A){window.clearTimeout(this.transitionTimeoutId);this.transitionTimeoutId=null},fadeOutSlide:function(A){$(A.overlay).fadeOut(function(){var B=Newsweek.Component.DynamicLead.setOverlayContent(A);$(A.caption).html(B);Newsweek.Component.DynamicLead.resetOverlayPos(A)}).siblings(A.mainArtLink).fadeOut(350,function(){$(this).empty();Newsweek.Component.DynamicLead.setMainArtContent(A);Newsweek.Component.DynamicLead.fadeOutComplete(A)})},fadeOutComplete:function(A){$(A.mainArtLink).fadeIn(400,function(){Newsweek.Component.DynamicLead.slideTransition(A);Newsweek.Component.DynamicLead.isAnimating=false;Newsweek.Component.DynamicLead.previousHandler(A);Newsweek.Component.DynamicLead.nextHandler(A)})},resetOverlayPos:function(A){if(A.currentIndex%3==0){$(A.overlay).css({left:A.overlayXOffset+"px",top:-110+"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:-110+"px",display:"block"})}}}};Newsweek.Widget.SiteMap={init:function(){Newsweek.Widget.SiteMap.wireToggle();Newsweek.Widget.SiteMap.wireExpandAll();Newsweek.Widget.SiteMap.wireCollapseAll()},wireToggle:function(){$("#sitemap a.expander").click(function(){Newsweek.Widget.SiteMap.toggle(this)})},wireExpandAll:function(){$("#sitemap-container li.expand a").click(function(){Newsweek.Widget.SiteMap.expandAll();Newsweek.Widget.SiteMap.enableExpandAll(false);Newsweek.Widget.SiteMap.enableCollapseAll(true)})},wireCollapseAll:function(){$("#sitemap-container li.collapse a").click(function(){Newsweek.Widget.SiteMap.collapseAll();Newsweek.Widget.SiteMap.enableExpandAll(true);Newsweek.Widget.SiteMap.enableCollapseAll(false)})},checkState:function(){if($("#sitemap ul:visible").length==0){Newsweek.Widget.SiteMap.enableExpandAll(true);Newsweek.Widget.SiteMap.enableCollapseAll(false);return }if($("#sitemap ul:visible").length==$("#sitemap ul").length){Newsweek.Widget.SiteMap.enableExpandAll(false);Newsweek.Widget.SiteMap.enableCollapseAll(true);return }if($("#sitemap ul:visible").length>0){Newsweek.Widget.SiteMap.enableExpandAll(true);Newsweek.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();Newsweek.Widget.SiteMap.toggleImage(A,null)},expand:function(A){$(A).parents("div.sitemapSection").children("ul").show();Newsweek.Widget.SiteMap.toggleImage(A,"expand")},collapse:function(A){$(A).parents("div.sitemapSection").children("ul").hide();Newsweek.Widget.SiteMap.toggleImage(A,"collapse")},expandAll:function(){$("#sitemap a.expander").each(function(){Newsweek.Widget.SiteMap.expand(this)})},collapseAll:function(){$("#sitemap a.expander").each(function(){Newsweek.Widget.SiteMap.collapse(this)})},toggleImage:function(A,B){$(A).parents("div.sitemapSection").children("a.expander").children("img").attr("src",Newsweek.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""}};Newsweek.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()};Newsweek.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"){Newsweek.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");Newsweek.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);Newsweek.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>")}})}};Newsweek.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");Newsweek.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);Newsweek.Widget.TipStrip.init();Newsweek.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>')}})}};Newsweek.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)};Newsweek.Widget.TravelHp.controller(A)})},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(){Newsweek.Widget.TravelHp.shrinkThp(A)},500)}else{Newsweek.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(){Newsweek.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})}};Newsweek.Component.TwitterFeed={date:null,lastMaxId:null,userId:null,statusId:null,size:0,params:null,counter:null,DateCalculations:null,isAuth:false,init:function(A,E,F,G,J,D){this.date=A;this.lastMaxId=E;this.userId=F;this.statusId=G;this.size=J;this.params=D;this.getWindowStatus();this.getCounter();this.DateCalculations=new DateCalculator();this.extend();var H=$(".timeline-status span").isPauseButton().show();var I=$("#timeline").getTimeline(D).each(function(){this.addUpdates($("#timeline li").get(),E);this.start()});var B=I.get(0);var C=H.get(0);H.bind("enabled",function(){B.stop()});H.bind("disabled",function(L,K){B.start();if(K>1000){B.animateNow()}});this.bindSubmit()},extend:function(){$.fn.extend({isPauseButton:function(){return this.each(function(){var C=$(this);var G;var F=false;function B(){if(!F){C.addClass("enabled");G=new Date().getTime();C.trigger("enabled")}}function A(){if(!F){C.removeClass("enabled");var H=(new Date().getTime())-G;G=null;C.trigger("disabled",H)}}C.click(function(){if(G){F=false;A()}else{B();F=true}});this.enable=B;this.disable=A;function E(){$("#timeline li.item").updateRelativeTime()}E();var D=new Interval(1000);D.listen("run",function(H){E()});D.start()})},updateRelativeTime:function(){var A=Newsweek.Component.TwitterFeed.DateCalculations.newUTCDate();this.each(function(){var D=$("p .update-time",this);var B=D.attr("title");if(B){var C=Newsweek.Component.TwitterFeed.DateCalculations.parseIso8601Date(B);D.html(Newsweek.Component.TwitterFeed.relativeTime(C,A))}})},getTimeline:function(B){var D=1*1000;var A=4*1000;var C=60*1000;return this.each(function(){var K=$(this);var S=K;var N=0;var L=false;var U=false;var M=new TimedQueue(A);M.listen("pop",function(X,W,V){I(W)});var F=new Interval(C);F.listen("run",function(V){H()});F.start();this.stopAll=function(){F.stop();M.stop()};function G(){M.start()}this.start=G;function Q(){M.stop()}this.stop=Q;function P(c,d){var b=N;if(d){N=d}else{}if(c.length==0){M.setDelay(A)}else{var W=[];for(var Z=0;Z<c.length;Z++){var a=$(c[Z]).attr("id");if(a){var V=parseInt(a.replace(/status_/,""));if(V>b){W.push(c[Z])}}}M.clear();M.addItems(W);var Y=C/(c.length+1);var X=Math.ceil(Math.max(A,Y));M.setDelay(X)}}this.addUpdates=P;function J(){M.execute()}this.animateNow=J;function T(W){var V=function(){M.restart();$(W).addClass("mine");M.setNextItem(W);M.execute()};if(U){K.one("animate-end",V)}else{V()}}this.insertImmediately=T;function H(){var V=Paths.Current.RootPath+"twitter.aspx?";if(!L){$.ajax({url:V,data:E(),dataType:"html",success:function(W){O(W)},error:function(W){O(null)}})}V=null}function O(W){if(W){var V=$(W).attr("id");var X=$(W).find("li");P(X,V)}L=false}function E(){var W={replyToUserId:Newsweek.Component.TwitterFeed.userId,replyToStatusId:Newsweek.Component.TwitterFeed.statusId,lastStatusId:Newsweek.Component.TwitterFeed.lastMaxId};for(var V in B){W[V]=B[V]}return W}function I(Y){var W=$(Y);K.prepend(W);W.addClass("displayed").css("visibility","visible");K.css("top",-(W.height()-1));if(document.getElementById("nw-twitter-full")){K.animate({top:"15px"},D,function(){R()})}else{K.animate({top:"4px"},D,function(){R()})}var V=null;var X=function(){if(U){var b=document.getElementById("timeline").parentNode;var a=parseInt($(b).height());var Z=GetPos(b);K.find("li").each(function(d){if($(this).hasClass("displayed")){var c=GetPos(this);if(c[1]+$(this).height()>a-5){$(this).fadeOut(1000,function(){$(this).remove()})}}});return }clearInterval(V);V=null};V=setInterval(X,10);U=true;K.trigger("animate-begin");K.trigger("insert-update",Y)}function R(){U=false;K.trigger("animate-end")}})}})},relativeTime:function(A,B){var C=(B.getTime()-A.getTime())/1000;if(C<5){return"less than 5 seconds ago"}else{if(C<10){return"less than 10 seconds ago"}else{if(C<20){return"less than 20 seconds ago"}else{if(C<60){return"less than a minute ago"}else{if(C<120){return"about a minute ago"}else{if(C<(60*60)){return Math.round(C/60)+" minutes ago"}else{if(C<(120*60)){return"about an hour ago"}else{if(C<(24*60*60)){return"about "+Math.round(C/3600)+" hours ago"}else{if(C<(48*60*60)){return"yesterday"}else{return Math.round(C/86400)+" days ago"}}}}}}}}}},bindSubmit:function(){var A=document.getElementById("newstweets-reply-button");A.onclick=function(){if(Newsweek.Component.TwitterFeed.counter.getFieldLength()>140){return false}return }},getCounter:function(){if(document.getElementById("twitter-reply-field")){var B=document.getElementById("twitter-reply-field");var A=document.getElementById("twitter-reply-field-chars");this.counter=new CharCounter(B,A,140)}},getWindowStatus:function(){var B=true;var A="http://twitter.com/sessions/present.json?callback=newsTweetUser";$("body").append("<script id='twitter-auth-check' langauge='javascript' type='text/javascript' src='"+A+"'><\/script>");window.onfocus=function(){if(!B){if(!Newsweek.Component.TwitterFeed.isAuth){if(document.getElementById("twitter-auth-check")){$("#twitter-auth-check").remove()}return true}}};window.onblur=function(){B=false;return true};$(".twitter-link").click(function(){if(document.getElementById("twitter-auth-check")){$("#twitter-auth-check").remove()}setTimeout(function(){$("body").append("<script id='twitter-auth-check' langauge='javascript' type='text/javascript' src='"+A+"'><\/script>")},20000)})}};function newsTweetUser(A){if(A){Newsweek.Component.TwitterFeed.isAuth=true;if($("#twitter-reply-field").css("display")=="none"){$(".twitter-acct").hide();$("#newstweets-reply-button").css("display","block");$("#twitter-reply-field, #twitter-reply-field-chars").show()}}}Newsweek.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")};Newsweek.Component.BoxFlipper.setFlipperHandler(B)})},ajaxRequest:function(A,C,B){$.ajax({dataType:"html",url:detectProxy(A),success:function(D){C(B,D);Newsweek.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 }}};Newsweek.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(Newsweek.Widget.Comments_Submit.isActive){return }Newsweek.Widget.Comments_Reply.replyId=parseFloat(this.id);Newsweek.Widget.Comments_Reply.source=this;Newsweek.Widget.Comments_Reply.getForm(C,B,A);return false})},getForm:function(E,C,B){var A=$(this.source).blank().siblings(".postContent").height()+15;var D=-491;if(E.clientX<600){A=26;D=(B[0]-C[0])-46}Newsweek.Widget.DialogBox.init(E.type,E.target,"_parent",$("#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);Newsweek.Widget.Comments_Submit.form=$("#replyForm");Newsweek.Widget.Comments_Submit.init()},resetForm:function(){$("a.closeModal, #overlay2").click(function(){if($("#replyBox")){$("input[@name = 'replyToId']").val("-1");$("#articleCommentForm").slideDown(250)}Newsweek.Widget.Comments_Submit.init();return false})}};Newsweek.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(Newsweek.Widget.Comments_Submit.isActive){return }Newsweek.Widget.Comments_Report.reportId=parseFloat(this.id);Newsweek.Widget.Comments_Report.source=this;Newsweek.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}Newsweek.Widget.DialogBox.init(E.type,E.target,"_parent",$("#abuseFormDiv").html(),"","","",{bIsModal:true,adjCoords:[D,A]});$("#reportField").focus(function(){if($(this).val()=="Report Abuse"){$(this).val("")}});$("#reportPostId").val(Newsweek.Widget.Comments_Report.reportId);Newsweek.Widget.Comments_Submit.form=$("#abuseForm");Newsweek.Widget.Comments_Submit.init()}};Newsweek.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 Newsweek.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(!Newsweek.Widget.Comments_Submit.validatePost()){return false}Newsweek.Widget.Comments_Submit.isActive=true;$("#overlay2, .closeModal").unbind("click");$("<span class='loading2'></span>").insertBefore($(Newsweek.Widget.Comments_Submit.form).siblings("h5"));$(Newsweek.Widget.Comments_Submit.form).find("input:submit").attr("disabled","disabled");$("fieldset textarea",Newsweek.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){$(Newsweek.Widget.Comments_Submit.msg).text(Newsweek.Widget.Comments_Submit.successMsg());$(".loading2").fadeOut(400).remove();setTimeout(function(){$("fieldset textarea",Newsweek.Widget.Comments_Submit.form).removeAttr("disabled").css("background","#fff").val("Enter Your Comment");Newsweek.Widget.Comments_Submit.form=$("#commentForm");if($("#dialog")){Newsweek.Widget.Overlay.hideOverlay()}$(Newsweek.Widget.Comments_Submit.msg).html("");Newsweek.Widget.Comments_Submit.resetForm()},5000)}else{Newsweek.Widget.Comments_Submit.proxyErr();return }return false},error:function(B,D,C){Newsweek.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(!Newsweek.Widget.Comments_Submit.validatePost()){return false}})}},validatePost:function(){Newsweek.Widget.Comments_Submit.msg=$(Newsweek.Widget.Comments_Submit.form).siblings("span.message");if($("fieldset textarea",Newsweek.Widget.Comments_Submit.form).val().length>3000){$(Newsweek.Widget.Comments_Submit.msg).text("Please enter up to 3000 characters.").slideDown(250);return false}else{if($.trim($("fieldset textarea",Newsweek.Widget.Comments_Submit.form).val())==="Enter Your Comment"||$("fieldset textarea",Newsweek.Widget.Comments_Submit.form).val()===""){$(Newsweek.Widget.Comments_Submit.msg).text("Please enter a comment.").slideDown(250);return false}}return true},proxyErr:function(A){$(Newsweek.Widget.Comments_Submit.msg).css("color","#bf1b02").text(Newsweek.Widget.Comments_Submit.errorMsg()).fadeIn(function(){$(".loading2").fadeOut(400).remove()});setTimeout(function(){$("fieldset textarea",Newsweek.Widget.Comments_Submit.form).removeAttr("disabled").css("background","#fff");if(document.getElementById("dialog")){Newsweek.Widget.Overlay.hideOverlay()}$(Newsweek.Widget.Comments_Submit.msg).text("");Newsweek.Widget.Comments_Submit.resetForm()},5000)},resetForm:function(){$("#reportField, #replyField, #commentField").focus(function(){if($(this).val()=="Enter Your Comment"||$(this).val()=="Report Abuse"){$(this).val("")}});$(Newsweek.Widget.Comments_Submit.form).find("input:submit").attr("disabled",false);Newsweek.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");Newsweek.Widget.Comments_Submit.isActive=false;Newsweek.Widget.Comments_Submit.init()},5000)}};Newsweek.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 }Newsweek.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;Newsweek.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)}Newsweek.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);Newsweek.Widget.Overlay.init(B);return }Newsweek.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");Newsweek.Widget.DialogBox.closeHandlers(B);$(window).resize(function(){Newsweek.Widget.DialogBox.setCoord(B)})},closeHandlers:function(A){$(document).mousemove(function(B){if(Newsweek.Widget.DialogBox.eventType=="mouseover"){if(B.target!=A.target){Newsweek.Widget.DialogBox.hideDBox_OnMouseout(A);var C=Newsweek.Widget.DialogBox.getDBoxInfo(B,A)}return }else{$(this).unbind("mousemove")}return false});$(document).click(function(B){if(Newsweek.Widget.DialogBox.eventType=="click"&&B.target!=A.target&&B.target.nodeName.toLowerCase()!="a"){var C=Newsweek.Widget.DialogBox.getDBoxInfo(B,A);Newsweek.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(Newsweek.Widget.DialogBox.dBoxTimer);Newsweek.Widget.DialogBox.dBoxTimer=0;if(D.target){$(D.target).removeClass("dBoxActive")}$(D.box).fadeOut(100,function(){Newsweek.Widget.DialogBox.isActive=false;Newsweek.Widget.DialogBox.isTimerSet=false;Newsweek.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{Newsweek.Widget.DialogBox.closeHandlers(D)}}}},hideDBox_OnMouseout:function(A){$("#dialog").remove();$(A.target).removeClass("dBoxActive");Newsweek.Widget.Overlay.checkEmbedded();$(window).unbind("resize");Newsweek.Widget.DialogBox.isActive=false;Newsweek.Widget.DialogBox.isTimerSet=false;$(document).unbind("mousemove")},showAd:function(A){if(typeof (A.adCall)==="function"){A.adCall()}}};Newsweek.Widget.EmailArticle={source:"",init:function(){$(".emailArticleLink").click(function(A){Newsweek.Widget.EmailArticle.source=this;Newsweek.Widget.EmailArticle.showForm(A);return false})},showForm:function(B){var A=parseFloat(getRealTop(this.source))-101;var C=parseFloat(getRealLeft(this.source))+53;Newsweek.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(175+"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(){Newsweek.Widget.Overlay.hideOverlay()},5000)},error:function(B,D,C){$("#EmailMain p").slice(0,1).addClass("error").text(D);$("#EmailMain div.loading2").remove();setTimeout(function(){Newsweek.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 IsValidNumberOfEmailAddresses(A){var B=A.split(",");if(B.length>10){return false}return true}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 B=document.getElementById("EmailYourEmailAddress");var A=document.getElementById("EmailRecEmailAddress");var C=document.getElementById("EmailMessage");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}else{if(!IsValidNumberOfEmailAddresses(A.value)){EmailArticle_ShowError("You are attempting to send an email to over 10 recipients.  Please limit your message to 10 or less recipients",A);return false}}}$("#EmailErrorMessage").hide();return true}Newsweek.Widget.EmbeddedLinks={init:function(){$("img.see-all").click(function(B){var A=$("#elb_wrapper_"+this.id).html();Newsweek.Widget.DialogBox.init(B.type,B.target,"",A,"","","",{adjCoords:[-96,-19]});return false})}};Newsweek.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){Newsweek.Widget.FontSizeSlider.onSliderMouseMove(E,C)});$(document).mouseup(function(E){Newsweek.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","_parent")}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","_parent")}}}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)}Newsweek.Widget.LaunchPad={timer:null,isActive:false,tempContent:null,iframesCount:0,init:function(D,C,B,A){if(this.isActive){return }Newsweek.Widget.DialogBox.isActive=true;this.isActive=true;Newsweek.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});Newsweek.Widget.LaunchPad.setCloseButton()},150)},setCloseButton:function(){$(".close").one("click",function(A){Newsweek.Widget.DialogBox.isActive=false;Newsweek.Widget.LaunchPad.isActive=false;Newsweek.Widget.Overlay.checkEmbedded();$("#NwLaunchPad .torso .content").empty();$("#NwLaunchPad").hide();$("#NwLaunchPad .torso .content").html(Newsweek.Widget.LaunchPad.tempContent);return false})}};Newsweek.Widget.Login={init:function(){$("#login").click(function(A){Newsweek.Widget.DialogBox.init(A.type,A.target,"",$("#loginFormDiv").html(),"","","",{bIsModal:true,output:"quickread",adjCoords:[368,-1]});Newsweek.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"}}})}};Newsweek.Widget.MMToolBar={isInitSocial:false,isOpenSocial:false,init:function(){$(".socialNetworks").click(function(A){Newsweek.Widget.MMToolBar.isInitSocial=true;Newsweek.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(){Newsweek.Widget.MMToolBar.isOpenSocial=true});$(document).one("click",function(D){if(D.target.getAttribute("class")!="SocialNetworks"){Newsweek.Widget.MMToolBar.closeSocialBox();return }return false})},closeSocialBox:function(){if(!this.isInitSocial&&!this.isOpenSocial){return }$("#ShareLinks").fadeOut(250,function(){Newsweek.Widget.MMToolBar.isOpenSocial=false;Newsweek.Widget.MMToolBar.isInitSocial=false})}};Newsweek.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(){Newsweek.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].id=="brightcove33874fobj"){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){Newsweek.Widget.Overlay.hideOverlay()}});if($("#dialog")){$(C.box).find(".closeModal").click(function(D){Newsweek.Widget.Overlay.hideOverlay(A,B)})}})},hideOverlay:function(A,B){$("#dialog").remove();$("#overlay2").animate({opacity:0},250,function(){$("#modal2").empty().remove();Newsweek.Widget.Overlay.checkEmbedded();Newsweek.Widget.DialogBox.isActive=false;$(".closeModal").unbind("click");$(window).unbind("resize")})}};Newsweek.Widget.QuickGuide=function(){$("a.quickGuide").css({visibility:"visible"}).click(function(A){Newsweek.Widget.DialogBox.init(A.type,A.target,"","","","",quickGuideAdCall,{bIsModal:true,output:"quickGuide",adjCoords:[546,10]});Omniture_SendMicroData("Site Guide","event16");return false})};Newsweek.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}}Newsweek.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")){Newsweek.Widget.DialogBox.init(O.type,O.target,"","",I(),"",quickReadAdCall,{output:"quickread",adjCoords:[15,-160],width:486})}else{Newsweek.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")){Newsweek.Widget.DialogBox.init(M,E,"","",I(),"",quickReadAdCall,{output:"quickread",adjCoords:[15,-160],width:486})}A=0},500);return false})};K(H)};Newsweek.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};Newsweek.Widget.RelatedCloud.boxHt=parseInt($("div.content",this).height());$(B.source).click(function(C){if(Newsweek.Widget.RelatedCloud.isActive){return }Newsweek.Widget.RelatedCloud.isActive=true;if(this.className=="seeAll"){Newsweek.Widget.RelatedCloud.expand(B)}else{if(this.className=="collapseAll"){Newsweek.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(){Newsweek.Widget.RelatedCloud.isActive=false})},collapse:function(A){$(A.content).animate({height:Newsweek.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");Newsweek.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}}Newsweek.Widget.SocialNetwork={isActive:false,src:null,targetX:0,targetY:0,init:function(){$(".socialNetworks").click(function(A){if(Newsweek.Widget.DialogBox.isActive||Newsweek.Widget.SocialNetwork.isActive){return }Newsweek.Widget.SocialNetwork.src=A.target;Newsweek.Widget.SocialNetwork.targetX=getRealLeft(A.target);Newsweek.Widget.SocialNetwork.targetY=getRealTop(A.target);Newsweek.Widget.SocialNetwork.showPopup();return false})},showPopup:function(){$(".SocialLinksDiv").insertBefore("#header").css({left:(Newsweek.Widget.SocialNetwork.targetX+102)+"px",top:(Newsweek.Widget.SocialNetwork.targetY-42)+"px"}).fadeIn(250,function(){Newsweek.Widget.SocialNetwork.isActive=true;$(document).unbind("click");Newsweek.Widget.SocialNetwork.hidePopup()})},hidePopup:function(){$(document).one("click",function(A){if(!Newsweek.Widget.SocialNetwork.isActive){return }$(".SocialLinksDiv").fadeOut(250,function(){Newsweek.Widget.SocialNetwork.isActive=false})})}};Newsweek.Widget.Sphere={bIsActive:false,init:function(){$("a#sphere").click(function(){if(document.getElementById("sphere_widget")&&Newsweek.Widget.Sphere.bIsActive){return false}Sphere.Widget.search();Newsweek.Widget.Sphere.bIsActive=true;Newsweek.Widget.Overlay.checkEmbedded();Newsweek.Widget.Sphere.closeSphere();return false})},closeSphere:function(){var A=$("a.ctrl").attr("href");$("a.ctrl").attr("href","#");Newsweek.Widget.DialogBox.isActive=true;$(".closeBtn").click(function(){Newsweek.Widget.Overlay.checkEmbedded();$("a.ctrl").attr("href",A);$(this).unbind("click");Newsweek.Widget.DialogBox.isActive=false;Newsweek.Widget.Sphere.bIsActive=false})}};Newsweek.Widget.ToolTips=function(){$("a.msTip").click(function(A){Newsweek.Widget.DialogBox.init(A.type,A.target,"_parent",$("div.msTipBlock").html(),"","","",{bIsModal:true,adjCoords:[-210,-217]})})};
