(function(){if(typeof jQuery!="undefined"){var _jQuery=jQuery}var jQuery=window.jQuery=function(a,c){if(window==this||!this.init){return new jQuery(a,c)}return this.init(a,c)};if(typeof $!="undefined"){var _$=$}window.$=jQuery;var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;jQuery.fn=jQuery.prototype={init:function(a,c){a=a||document;if(typeof a=="string"){var m=quickExpr.exec(a);if(m&&(m[1]||!c)){if(m[1]){a=jQuery.clean([m[1]])}else{var tmp=document.getElementById(m[3]);if(tmp){if(tmp.id!=m[3]){return jQuery().find(a)}else{this[0]=tmp;this.length=1;return this}}else{a=[]}}}else{return new jQuery(c).find(a)}}else{if(jQuery.isFunction(a)){return new jQuery(document)[jQuery.fn.ready?"ready":"load"](a)}}return this.setArray(a.constructor==Array&&a||(a.jquery||a.length&&a!=window&&!a.nodeType&&a[0]!=undefined&&a[0].nodeType)&&jQuery.makeArray(a)||[a])},jquery:"1.1.4",size:function(){return this.length},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num]},pushStack:function(a){var ret=jQuery(a);ret.prevObject=this;return ret},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(fn,args){return jQuery.each(this,fn,args)},index:function(obj){var pos=-1;this.each(function(i){if(this==obj){pos=i}});return pos},attr:function(key,value,type){var obj=key;if(key.constructor==String){if(value==undefined){return this.length&&jQuery[type||"attr"](this[0],key)||undefined}else{obj={};obj[key]=value}}return this.each(function(index){for(var prop in obj){jQuery.attr(type?this.style:this,prop,jQuery.prop(this,obj[prop],type,index,prop))}})},css:function(key,value){return this.attr(key,value,"curCSS")},text:function(e){if(typeof e!="object"&&e!=null){return this.empty().append(document.createTextNode(e))}var t="";jQuery.each(e||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8){t+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])}})});return t},wrap:function(){var a,args=arguments;return this.each(function(){if(!a){a=jQuery.clean(args,this.ownerDocument)}var b=a[0].cloneNode(true);this.parentNode.insertBefore(b,this);while(b.firstChild){b=b.firstChild}b.appendChild(this)})},append:function(){return this.domManip(arguments,true,1,function(a){this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,-1,function(a){this.insertBefore(a,this.firstChild)})},before:function(){return this.domManip(arguments,false,1,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,-1,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},find:function(t){var data=jQuery.map(this,function(a){return jQuery.find(t,a)});return this.pushStack(/[^+>] [^+>]/.test(t)||t.indexOf("..")>-1?jQuery.unique(data):data)},clone:function(deep){deep=deep!=undefined?deep:true;var $this=this.add(this.find("*"));if(jQuery.browser.msie){$this.each(function(){this._$events={};for(var type in this.$events){this._$events[type]=jQuery.extend({},this.$events[type])}}).unbind()}var r=this.pushStack(jQuery.map(this,function(a){return a.cloneNode(deep)}));if(jQuery.browser.msie){$this.each(function(){var events=this._$events;for(var type in events){for(var handler in events[type]){jQuery.event.add(this,type,events[type][handler],events[type][handler].data)}}this._$events=null})}if(deep){var inputs=r.add(r.find("*")).filter("select,input[@type=checkbox]");$this.filter("select,input[@type=checkbox]").each(function(i){if(this.selectedIndex){inputs[i].selectedIndex=this.selectedIndex}if(this.checked){inputs[i].checked=true}})}return r},filter:function(t){return this.pushStack(jQuery.isFunction(t)&&jQuery.grep(this,function(el,index){return t.apply(el,[index])})||jQuery.multiFilter(t,this))},not:function(t){return this.pushStack(t.constructor==String&&jQuery.multiFilter(t,this,true)||jQuery.grep(this,function(a){return(t.constructor==Array||t.jquery)?jQuery.inArray(a,t)<0:a!=t}))},add:function(t){return this.pushStack(jQuery.merge(this.get(),t.constructor==String?jQuery(t).get():t.length!=undefined&&(!t.nodeName||t.nodeName=="FORM")?t:[t]))},is:function(expr){return expr?jQuery.multiFilter(expr,this).length>0:false},val:function(val){return val==undefined?(this.length?this[0].value:null):this.attr("value",val)},html:function(val){return val==undefined?(this.length?this[0].innerHTML:null):this.empty().append(val)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},domManip:function(args,table,dir,fn){var clone=this.length>1,a;return this.each(function(){if(!a){a=jQuery.clean(args,this.ownerDocument);if(dir<0){a.reverse()}}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(a[0],"tr")){obj=this.getElementsByTagName("tbody")[0]||this.appendChild(document.createElement("tbody"))}jQuery.each(a,function(){if(jQuery.nodeName(this,"script")){if(this.src){jQuery.ajax({url:this.src,async:false,dataType:"script"})}else{jQuery.globalEval(this.text||this.textContent||this.innerHTML||"")}}else{fn.apply(obj,[clone?this.cloneNode(true):this])}})})}};jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},a=1,al=arguments.length,deep=false;if(target.constructor==Boolean){deep=target;target=arguments[1]||{}}if(al==1){target=this;a=0}var prop;for(;a<al;a++){if((prop=arguments[a])!=null){for(var i in prop){if(target==prop[i]){continue}if(deep&&typeof prop[i]=="object"&&target[i]){jQuery.extend(target[i],prop[i])}else{if(prop[i]!=undefined){target[i]=prop[i]}}}}}return target};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep){window.jQuery=_jQuery}return jQuery},isFunction:function(fn){return !!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/function/i.test(fn+"")},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body},globalEval:function(data){data=jQuery.trim(data);if(data){if(window.execScript){window.execScript(data)}else{if(jQuery.browser.safari){window.setTimeout(data,0)}else{eval.call(window,data)}}}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase()},each:function(obj,fn,args){if(args){if(obj.length==undefined){for(var i in obj){fn.apply(obj[i],args)}}else{for(var i=0,ol=obj.length;i<ol;i++){if(fn.apply(obj[i],args)===false){break}}}}else{if(obj.length==undefined){for(var i in obj){fn.call(obj[i],i,obj[i])}}else{for(var i=0,ol=obj.length,val=obj[0];i<ol&&fn.call(val,i,val)!==false;val=obj[++i]){}}}return obj},prop:function(elem,value,type,index,prop){if(jQuery.isFunction(value)){value=value.call(elem,[index])}var exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i;return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(prop)?value+"px":value},className:{add:function(elem,c){jQuery.each((c||"").split(/\s+/),function(i,cur){if(!jQuery.className.has(elem.className,cur)){elem.className+=(elem.className?" ":"")+cur}})},remove:function(elem,c){elem.className=c!=undefined?jQuery.grep(elem.className.split(/\s+/),function(cur){return !jQuery.className.has(c,cur)}).join(" "):""},has:function(t,c){return jQuery.inArray(c,(t.className||t).toString().split(/\s+/))>-1}},swap:function(e,o,f){for(var i in o){e.style["old"+i]=e.style[i];e.style[i]=o[i]}f.apply(e,[]);for(var i in o){e.style[i]=e.style["old"+i]}},css:function(e,p){if(p=="height"||p=="width"){var old={},oHeight,oWidth,d=["Top","Bottom","Right","Left"];jQuery.each(d,function(){old["padding"+this]=0;old["border"+this+"Width"]=0});jQuery.swap(e,old,function(){if(jQuery(e).is(":visible")){oHeight=e.offsetHeight;oWidth=e.offsetWidth}else{e=jQuery(e.cloneNode(true)).find(":radio").removeAttr("checked").end().css({visibility:"hidden",position:"absolute",display:"block",right:"0",left:"0"}).appendTo(e.parentNode)[0];var parPos=jQuery.css(e.parentNode,"position")||"static";if(parPos=="static"){e.parentNode.style.position="relative"}oHeight=e.clientHeight;oWidth=e.clientWidth;if(parPos=="static"){e.parentNode.style.position="static"}e.parentNode.removeChild(e)}});return p=="height"?oHeight:oWidth}return jQuery.curCSS(e,p)},curCSS:function(elem,prop,force){var ret,stack=[],swap=[];function color(a){if(!jQuery.browser.safari){return false}var ret=document.defaultView.getComputedStyle(a,null);return !ret||ret.getPropertyValue("color")==""}if(prop=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(elem.style,"opacity");return ret==""?"1":ret}if(prop.match(/float/i)){prop=styleFloat}if(!force&&elem.style[prop]){ret=elem.style[prop]}else{if(document.defaultView&&document.defaultView.getComputedStyle){if(prop.match(/float/i)){prop="float"}prop=prop.replace(/([A-Z])/g,"-$1").toLowerCase();var cur=document.defaultView.getComputedStyle(elem,null);if(cur&&!color(elem)){ret=cur.getPropertyValue(prop)}else{for(var a=elem;a&&color(a);a=a.parentNode){stack.unshift(a)}for(a=0;a<stack.length;a++){if(color(stack[a])){swap[a]=stack[a].style.display;stack[a].style.display="block"}}ret=prop=="display"&&swap[stack.length-1]!=null?"none":document.defaultView.getComputedStyle(elem,null).getPropertyValue(prop)||"";for(a=0;a<swap.length;a++){if(swap[a]!=null){stack[a].style.display=swap[a]}}}if(prop=="opacity"&&ret==""){ret="1"}}else{if(elem.currentStyle){var newProp=prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});ret=elem.currentStyle[prop]||elem.currentStyle[newProp]}}}return ret},clean:function(a,doc){var r=[];doc=doc||document;jQuery.each(a,function(i,arg){if(!arg){return }if(arg.constructor==Number){arg=arg.toString()}if(typeof arg=="string"){var s=jQuery.trim(arg).toLowerCase(),div=doc.createElement("div"),tb=[];var wrap=!s.indexOf("<opt")&&[1,"<select>","</select>"]||!s.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||s.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!s.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!s.indexOf("<td")||!s.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!s.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+arg+wrap[2];while(wrap[0]--){div=div.lastChild}if(jQuery.browser.msie){if(!s.indexOf("<table")&&s.indexOf("<tbody")<0){tb=div.firstChild&&div.firstChild.childNodes}else{if(wrap[1]=="<table>"&&s.indexOf("<tbody")<0){tb=div.childNodes}}for(var n=tb.length-1;n>=0;--n){if(jQuery.nodeName(tb[n],"tbody")&&!tb[n].childNodes.length){tb[n].parentNode.removeChild(tb[n])}}if(/^\s/.test(arg)){div.insertBefore(doc.createTextNode(arg.match(/^\s*/)[0]),div.firstChild)}}arg=jQuery.makeArray(div.childNodes)}if(0===arg.length&&(!jQuery.nodeName(arg,"form")&&!jQuery.nodeName(arg,"select"))){return }if(arg[0]==undefined||jQuery.nodeName(arg,"form")||arg.options){r.push(arg)}else{r=jQuery.merge(r,arg)}});return r},attr:function(elem,name,value){var fix=jQuery.isXMLDoc(elem)?{}:jQuery.props;if(name=="selected"&&jQuery.browser.safari){elem.parentNode.selectedIndex}if(fix[name]){if(value!=undefined){elem[fix[name]]=value}return elem[fix[name]]}else{if(jQuery.browser.msie&&name=="style"){return jQuery.attr(elem.style,"cssText",value)}else{if(value==undefined&&jQuery.browser.msie&&jQuery.nodeName(elem,"form")&&(name=="action"||name=="method")){return elem.getAttributeNode(name).nodeValue}else{if(elem.tagName){if(value!=undefined){elem.setAttribute(name,value)}if(jQuery.browser.msie&&/href|src/.test(name)&&!jQuery.isXMLDoc(elem)){return elem.getAttribute(name,2)}return elem.getAttribute(name)}else{if(name=="opacity"&&jQuery.browser.msie){if(value!=undefined){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseFloat(value).toString()=="NaN"?"":"alpha(opacity="+value*100+")")}return elem.filter?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100).toString():""}name=name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase()});if(value!=undefined){elem[name]=value}return elem[name]}}}}},trim:function(t){return(t||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var r=[];if(typeof a!="array"){for(var i=0,al=a.length;i<al;i++){r.push(a[i])}}else{r=a.slice(0)}return r},inArray:function(b,a){for(var i=0,al=a.length;i<al;i++){if(a[i]==b){return i}}return -1},merge:function(first,second){if(jQuery.browser.msie){for(var i=0;second[i];i++){if(second[i].nodeType!=8){first.push(second[i])}}}else{for(var i=0;second[i];i++){first.push(second[i])}}return first},unique:function(first){var r=[],num=jQuery.mergeNum++;try{for(var i=0,fl=first.length;i<fl;i++){if(num!=first[i].mergeNum){first[i].mergeNum=num;r.push(first[i])}}}catch(e){r=first}return r},mergeNum:0,grep:function(elems,fn,inv){if(typeof fn=="string"){fn=eval("false||function(a,i){return "+fn+"}")}var result=[];for(var i=0,el=elems.length;i<el;i++){if(!inv&&fn(elems[i],i)||inv&&!fn(elems[i],i)){result.push(elems[i])}}return result},map:function(elems,fn){if(typeof fn=="string"){fn=eval("false||function(a){return "+fn+"}")}var result=[];for(var i=0,el=elems.length;i<el;i++){var val=fn(elems[i],i);if(val!==null&&val!=undefined){if(val.constructor!=Array){val=[val]}result=result.concat(val)}}return result}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",styleFloat:jQuery.browser.msie?"styleFloat":"cssFloat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,innerHTML:"innerHTML",className:"className",value:"value",disabled:"disabled",checked:"checked",readonly:"readOnly",selected:"selected",maxlength:"maxLength"}});jQuery.each({parent:"a.parentNode",parents:"jQuery.parents(a)",next:"jQuery.nth(a,2,'nextSibling')",prev:"jQuery.nth(a,2,'previousSibling')",siblings:"jQuery.sibling(a.parentNode.firstChild,a)",children:"jQuery.sibling(a.firstChild)"},function(i,n){jQuery.fn[i]=function(a){var ret=jQuery.map(this,n);if(a&&typeof a=="string"){ret=jQuery.multiFilter(a,ret)}return this.pushStack(jQuery.unique(ret))}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after"},function(i,n){jQuery.fn[i]=function(){var a=arguments;return this.each(function(){for(var j=0,al=a.length;j<al;j++){jQuery(a[j])[n](this)}})}});jQuery.each({removeAttr:function(key){jQuery.attr(this,key,"");this.removeAttribute(key)},addClass:function(c){jQuery.className.add(this,c)},removeClass:function(c){jQuery.className.remove(this,c)},toggleClass:function(c){jQuery.className[jQuery.className.has(this,c)?"remove":"add"](this,c)},remove:function(a){if(!a||jQuery.filter(a,[this]).r.length){this.parentNode.removeChild(this)}},empty:function(){while(this.firstChild){this.removeChild(this.firstChild)}}},function(i,n){jQuery.fn[i]=function(){return this.each(n,arguments)}});jQuery.each(["eq","lt","gt","contains"],function(i,n){jQuery.fn[n]=function(num,fn){return this.filter(":"+n+"("+num+")",fn)}});jQuery.each(["height","width"],function(i,n){jQuery.fn[n]=function(h){return h==undefined?(this.length?jQuery.css(this[0],n):null):this.css(n,h.constructor==String?h:h+"px")}});var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^[/>]\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":"m[2]=='*'||jQuery.nodeName(a,m[2])","#":"a.getAttribute('id')==m[2]",":":{lt:"i<m[3]-0",gt:"i>m[3]-0",nth:"m[3]-0==i",eq:"m[3]-0==i",first:"i==0",last:"i==r.length-1",even:"i%2==0",odd:"i%2","first-child":"a.parentNode.getElementsByTagName('*')[0]==a","last-child":"jQuery.nth(a.parentNode.lastChild,1,'previousSibling')==a","only-child":"!jQuery.nth(a.parentNode.lastChild,2,'previousSibling')",parent:"a.firstChild",empty:"!a.firstChild",contains:"(a.textContent||a.innerText||'').indexOf(m[3])>=0",visible:'"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden"',hidden:'"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden"',enabled:"!a.disabled",disabled:"a.disabled",checked:"a.checked",selected:"a.selected||jQuery.attr(a,'selected')",text:"'text'==a.type",radio:"'radio'==a.type",checkbox:"'checkbox'==a.type",file:"'file'==a.type",password:"'password'==a.type",submit:"'submit'==a.type",image:"'image'==a.type",reset:"'reset'==a.type",button:'"button"==a.type||jQuery.nodeName(a,"button")',input:"/input|select|textarea|button/i.test(a.nodeName)",has:"jQuery.find(m[3],a).length"},"[":"jQuery.find(m[2],a).length"},parse:[/^\[ *(@)([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(\[)\s*(.*?(\[.*?\])?[^[]*?)\s*\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r)}return cur},find:function(t,context){if(typeof t!="string"){return[t]}if(context&&!context.nodeType){context=null}context=context||document;if(!t.indexOf("//")){t=t.substr(2,t.length)}else{if(!t.indexOf("/")&&!context.ownerDocument){context=context.documentElement;t=t.substr(1,t.length);if(t.indexOf("/")>=1){t=t.substr(t.indexOf("/"),t.length)}}}var ret=[context],done=[],last;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t).replace(/^\/\//,"");var foundToken=false;var re=quickChild;var m=re.exec(t);if(m){var nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++){for(var c=ret[i].firstChild;c;c=c.nextSibling){if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName.toUpperCase())){r.push(c)}}}ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0){continue}foundToken=true}else{re=/^((\/?\.\.)|([>\/+~]))\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var nodeName=m[4],mergeNum=jQuery.mergeNum++;m=m[1];for(var j=0,rl=ret.length;j<rl;j++){if(m.indexOf("..")<0){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling){if(n.nodeType==1){if(m=="~"&&n.mergeNum==mergeNum){break}if(!nodeName||n.nodeName.toUpperCase()==nodeName.toUpperCase()){if(m=="~"){n.mergeNum=mergeNum}r.push(n)}if(m=="+"){break}}}}else{r.push(ret[j].parentNode)}}ret=r;t=jQuery.trim(t.replace(re,""));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[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object"){tag="param"}r=jQuery.merge(r,ret[i].getElementsByTagName(tag))}if(m[1]=="."){r=jQuery.classFilter(r,m[2])}if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++){if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break}}r=tmp}ret=r}t=t.replace(re2,"")}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t)}}if(t){ret=[]}if(ret&&context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);return done},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass){tmp.push(r[i])}}return tmp},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break}}if(!m){break}if(m[1]==":"&&m[2]=="not"){r=jQuery.filter(m[3],r,true).r}else{if(m[1]=="."){r=jQuery.classFilter(r,m[2],not)}else{if(m[1]=="@"){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2])){z=jQuery.attr(a,m[2])||""}if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not){tmp.push(a)}}r=tmp}else{if(m[1]==":"&&m[2]=="nth-child"){var num=jQuery.mergeNum++,tmp=[],test=/(\d*)n\+?(\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"n+"+m[3]||m[3]),first=(test[1]||1)-0,last=test[2]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode;if(num!=parentNode.mergeNum){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling){if(n.nodeType==1){n.nodeIndex=c++}}parentNode.mergeNum=num}var add=false;if(first==1){if(last==0||node.nodeIndex==last){add=true}}else{if((node.nodeIndex+last)%first==0){add=true}}if(add^not){tmp.push(node)}}r=tmp}else{var f=jQuery.expr[m[1]];if(typeof f!="string"){f=jQuery.expr[m[1]][m[2]]}f=eval("false||function(a,i){return "+f+"}");r=jQuery.grep(r,f,not)}}}}}return{r:r,t:t}},parents:function(elem){var matched=[];var cur=elem.parentNode;while(cur&&cur!=document){matched.push(cur);cur=cur.parentNode}return matched},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType==1&&++num==result){break}}return cur},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&(!elem||n!=elem)){r.push(n)}}return r}});jQuery.event={add:function(element,type,handler,data){if(jQuery.browser.msie&&element.setInterval!=undefined){element=window}if(!handler.guid){handler.guid=this.guid++}if(data!=undefined){var fn=handler;handler=function(){return fn.apply(this,arguments)};handler.data=data;handler.guid=fn.guid}if(!element.$events){element.$events={}}if(!element.$handle){element.$handle=function(){var val;if(typeof jQuery=="undefined"||jQuery.event.triggered){return val}val=jQuery.event.handle.apply(element,arguments);return val}}var handlers=element.$events[type];if(!handlers){handlers=element.$events[type]={};if(element.addEventListener){element.addEventListener(type,element.$handle,false)}else{element.attachEvent("on"+type,element.$handle)}}handlers[handler.guid]=handler;this.global[type]=true},guid:1,global:{},remove:function(element,type,handler){var events=element.$events,ret,index;if(events){if(type&&type.type){handler=type.handler;type=type.type}if(!type){for(type in events){this.remove(element,type)}}else{if(events[type]){if(handler){delete events[type][handler.guid]}else{for(handler in element.$events[type]){delete events[type][handler]}}for(ret in events[type]){break}if(!ret){if(element.removeEventListener){element.removeEventListener(type,element.$handle,false)}else{element.detachEvent("on"+type,element.$handle)}ret=null;delete events[type]}}}for(ret in events){break}if(!ret){element.$handle=element.$events=null}}},trigger:function(type,data,element){data=jQuery.makeArray(data||[]);if(!element){if(this.global[type]){jQuery("*").add([window,document]).trigger(type,data)}}else{var val,ret,fn=jQuery.isFunction(element[type]||null);data.unshift(this.fix({type:type,target:element}));if(jQuery.isFunction(element.$handle)){val=element.$handle.apply(element,data)}if(!fn&&element["on"+type]&&element["on"+type].apply(element,data)===false){val=false}if(fn&&val!==false&&!(jQuery.nodeName(element,"a")&&type=="click")){this.triggered=true;element[type]()}this.triggered=false}},handle:function(event){var val;event=jQuery.event.fix(event||window.event||{});var c=this.$events&&this.$events[event.type],args=Array.prototype.slice.call(arguments,1);args.unshift(event);for(var j in c){args[0].handler=c[j];args[0].data=c[j].data;if(c[j].apply(this,args)===false){event.preventDefault();event.stopPropagation();val=false}}if(jQuery.browser.msie){event.target=event.preventDefault=event.stopPropagation=event.handler=event.data=null}return val},fix:function(event){var originalEvent=event;event=jQuery.extend({},originalEvent);event.preventDefault=function(){if(originalEvent.preventDefault){originalEvent.preventDefault()}originalEvent.returnValue=false};event.stopPropagation=function(){if(originalEvent.stopPropagation){originalEvent.stopPropagation()}originalEvent.cancelBubble=true};if(!event.target&&event.srcElement){event.target=event.srcElement}if(jQuery.browser.safari&&event.target.nodeType==3){event.target=originalEvent.target.parentNode}if(!event.relatedTarget&&event.fromElement){event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement}if(event.pageX==null&&event.clientX!=null){var e=document.documentElement,b=document.body;event.pageX=event.clientX+(e&&e.scrollLeft||b.scrollLeft||0);event.pageY=event.clientY+(e&&e.scrollTop||b.scrollTop||0)}if(!event.which&&(event.charCode||event.keyCode)){event.which=event.charCode||event.keyCode}if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey}if(!event.which&&event.button){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)))}return event}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data)})},one:function(type,data,fn){return this.each(function(){jQuery.event.add(this,type,function(event){jQuery(this).unbind(event);return(fn||data).apply(this,arguments)},fn&&data)})},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn)})},trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this)})},toggle:function(){var a=arguments;return this.click(function(e){this.lastToggle=0==this.lastToggle?1:0;e.preventDefault();return a[this.lastToggle].apply(this,[e])||false})},hover:function(f,g){function handleHover(e){var p=e.relatedTarget;while(p&&p!=this){try{p=p.parentNode}catch(e){p=this}}if(p==this){return false}return(e.type=="mouseover"?f:g).apply(this,[e])}return this.mouseover(handleHover).mouseout(handleHover)},ready:function(f){bindReady();if(jQuery.isReady){f.apply(document,[jQuery])}else{jQuery.readyList.push(function(){return f.apply(this,[jQuery])})}return this}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.apply(document)});jQuery.readyList=null}if(jQuery.browser.mozilla||jQuery.browser.opera){document.removeEventListener("DOMContentLoaded",jQuery.ready,false)}if(!window.frames.length){jQuery(window).load(function(){jQuery("#__ie_init").remove()})}}}});jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,change,select,submit,keydown,keypress,keyup,error").split(","),function(i,o){jQuery.fn[o]=function(f){return f?this.bind(o,f):this.trigger(o)}});var readyBound=false;function bindReady(){if(readyBound){return }readyBound=true;if(jQuery.browser.mozilla||jQuery.browser.opera){document.addEventListener("DOMContentLoaded",jQuery.ready,false)}else{if(jQuery.browser.msie){document.write("<script id=__ie_init defer=true src=//:><\/script>");var script=document.getElementById("__ie_init");if(script){script.onreadystatechange=function(){if(document.readyState!="complete"){return }jQuery.ready()}}script=null}else{if(jQuery.browser.safari){jQuery.safariTimer=setInterval(function(){if(document.readyState=="loaded"||document.readyState=="complete"){clearInterval(jQuery.safariTimer);jQuery.safariTimer=null;jQuery.ready()}},10)}}}jQuery.event.add(window,"load",jQuery.ready)}jQuery.fn.extend({loadIfModified:function(url,params,callback){this.load(url,params,callback,1)},load:function(url,params,callback,ifModified){if(jQuery.isFunction(url)){return this.bind("load",url)}callback=callback||function(){};var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=null}else{params=jQuery.param(params);type="POST"}}var self=this;jQuery.ajax({url:url,type:type,data:params,ifModified:ifModified,complete:function(res,status){if(status=="success"||!ifModified&&status=="notmodified"){self.html(res.responseText)}setTimeout(function(){self.each(callback,[res.responseText,status,res])},13)}});return this},serialize:function(){return jQuery.param(this)},evalScripts:function(){}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});jQuery.extend({get:function(url,data,callback,type,ifModified){if(jQuery.isFunction(data)){callback=data;data=null}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type,ifModified:ifModified})},getIfModified:function(url,data,callback,type){return jQuery.get(url,data,callback,type,1)},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})},ajaxTimeout:function(timeout){jQuery.ajaxSettings.timeout=timeout},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings)},ajaxSettings:{global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));if(s.data){if(s.processData&&typeof s.data!="string"){s.data=jQuery.param(s.data)}if(s.type.toLowerCase()=="get"){s.url+=(s.url.indexOf("?")>-1?"&":"?")+s.data;s.data=null}}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}var requestDone=false;var xml=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();xml.open(s.type,s.url,s.async);if(s.data){xml.setRequestHeader("Content-Type",s.contentType)}if(s.ifModified){xml.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}xml.setRequestHeader("X-Requested-With","XMLHttpRequest");if(s.beforeSend){s.beforeSend(xml)}if(s.global){jQuery.event.trigger("ajaxSend",[xml,s])}var onreadystatechange=function(isTimeout){if(!requestDone&&xml&&(xml.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null}var status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xml)&&"error"||s.ifModified&&jQuery.httpNotModified(xml,s.url)&&"notmodified"||"success";if(status=="success"){try{var data=jQuery.httpData(xml,s.dataType)}catch(e){status="parsererror"}}if(status=="success"){var modRes;try{modRes=xml.getResponseHeader("Last-Modified")}catch(e){}if(s.ifModified&&modRes){jQuery.lastModified[s.url]=modRes}if(s.success){s.success(data,status)}if(s.global){jQuery.event.trigger("ajaxSuccess",[xml,s])}}else{jQuery.handleError(s,xml,status)}if(s.global){jQuery.event.trigger("ajaxComplete",[xml,s])}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}if(s.complete){s.complete(xml,status)}if(s.async){xml=null}}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0){setTimeout(function(){if(xml){xml.abort();if(!requestDone){onreadystatechange("timeout")}}},s.timeout)}}try{xml.send(s.data)}catch(e){jQuery.handleError(s,xml,null,e)}if(!s.async){onreadystatechange()}return xml},handleError:function(s,xml,status,e){if(s.error){s.error(xml,status,e)}if(s.global){jQuery.event.trigger("ajaxError",[xml,s,e])}},active:0,httpSuccess:function(r){try{return !r.status&&location.protocol=="file:"||(r.status>=200&&r.status<300)||r.status==304||jQuery.browser.safari&&r.status==undefined}catch(e){}return false},httpNotModified:function(xml,url){try{var xmlRes=xml.getResponseHeader("Last-Modified");return xml.status==304||xmlRes==jQuery.lastModified[url]||jQuery.browser.safari&&xml.status==undefined}catch(e){}return false},httpData:function(r,type){var ct=r.getResponseHeader("content-type");var xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0;data=xml?r.responseXML:r.responseText;if(xml&&data.documentElement.tagName=="parsererror"){throw"parsererror"}if(type=="script"){jQuery.globalEval(data)}if(type=="json"){data=eval("("+data+")")}return data},param:function(a){var s=[];if(a.constructor==Array||a.jquery){jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value))})}else{for(var j in a){if(a[j]&&a[j].constructor==Array){jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this))})}else{s.push(encodeURIComponent(j)+"="+encodeURIComponent(a[j]))}}}return s.join("&")}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock?this.oldblock:"";if(jQuery.css(this,"display")=="none"){this.style.display="block"}}).end()},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");if(this.oldblock=="none"){this.oldblock="block"}this.style.display="none"}).end()},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle(fn,fn2):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]()})},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback)},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback)},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback)},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback)},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback)},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback)},animate:function(prop,speed,easing,callback){return this.queue(function(){var hidden=jQuery(this).is(":hidden"),opt=jQuery.speed(speed,easing,callback),self=this;for(var p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden){return jQuery.isFunction(opt.complete)&&opt.complete.apply(this)}if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow}}if(opt.overflow!=null){this.style.overflow="hidden"}this.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(val.constructor==Number){e.custom(e.cur()||0,val)}else{e[val=="toggle"?hidden?"show":"hide":val](prop)}});return true})},queue:function(type,fn){if(!fn){fn=type;type="fx"}return this.each(function(){if(!this.queue){this.queue={}}if(!this.queue[type]){this.queue[type]=[]}this.queue[type].push(fn);if(this.queue[type].length==1){fn.apply(this)}})}});jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:{slow:600,fast:200}[opt.duration])||400;opt.old=opt.complete;opt.complete=function(){jQuery.dequeue(this,"fx");if(jQuery.isFunction(opt.old)){opt.old.apply(this)}};return opt},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum}},queue:{},dequeue:function(elem,type){type=type||"fx";if(elem.queue&&elem.queue[type]){elem.queue[type].shift();var f=elem.queue[type][0];if(f){f.apply(elem)}}},timers:[],fx:function(elem,options,prop){var z=this;var y=elem.style;z.a=function(){if(options.step){options.step.apply(elem,[z.now])}if(prop=="opacity"){jQuery.attr(y,"opacity",z.now)}else{y[prop]=parseInt(z.now)+"px";if(prop=="height"||prop=="width"){y.display="block"}}};z.max=function(){return parseFloat(jQuery.css(elem,prop))};z.cur=function(){var r=parseFloat(jQuery.curCSS(elem,prop));return r&&r>-10000?r:z.max()};z.custom=function(from,to){z.startTime=(new Date()).getTime();z.now=from;z.a();jQuery.timers.push(function(){return z.step(from,to)});if(jQuery.timers.length==1){var timer=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1)}}if(!timers.length){clearInterval(timer)}},13)}};z.show=function(){if(!elem.orig){elem.orig={}}elem.orig[prop]=jQuery.attr(elem.style,prop);options.show=true;z.custom(0,this.cur());if(prop!="opacity"){y[prop]="1px"}jQuery(elem).show()};z.hide=function(){if(!elem.orig){elem.orig={}}elem.orig[prop]=jQuery.attr(elem.style,prop);options.hide=true;z.custom(this.cur(),0)};z.step=function(firstNum,lastNum){var t=(new Date()).getTime();if(t>options.duration+z.startTime){z.now=lastNum;z.a();if(elem.curAnim){elem.curAnim[prop]=true}var done=true;for(var i in elem.curAnim){if(elem.curAnim[i]!==true){done=false}}if(done){if(options.display!=null){y.overflow=options.overflow;y.display=options.display;if(jQuery.css(elem,"display")=="none"){y.display="block"}}if(options.hide){y.display="none"}if(options.hide||options.show){for(var p in elem.curAnim){jQuery.attr(y,p,elem.orig[p])}}}if(done&&jQuery.isFunction(options.complete)){options.complete.apply(elem)}return false}else{var n=t-this.startTime;var p=n/options.duration;z.now=jQuery.easing[options.easing||(jQuery.easing.swing?"swing":"linear")](p,n,firstNum,(lastNum-firstNum),options.duration);z.a()}return true}}})})();(function(G){var A=G.fn.height,E=G.fn.width;G.fn.extend({height:function(){if(!this[0]){D()}if(this[0]==window){if(G.browser.opera||(G.browser.safari&&parseInt(G.browser.version)>520)){return self.innerHeight-((G(document).height()>self.innerHeight)?B():0)}else{if(G.browser.safari){return self.innerHeight}else{return G.boxModel&&document.documentElement.clientHeight||document.body.clientHeight}}}if(this[0]==document){return Math.max((G.boxModel&&document.documentElement.scrollHeight||document.body.scrollHeight),document.body.offsetHeight)}return A.apply(this,arguments)},width:function(){if(!this[0]){D()}if(this[0]==window){if(G.browser.opera||(G.browser.safari&&parseInt(G.browser.version)>520)){return self.innerWidth-((G(document).width()>self.innerWidth)?B():0)}else{if(G.browser.safari){return self.innerWidth}else{return G.boxModel&&document.documentElement.clientWidth||document.body.clientWidth}}}if(this[0]==document){if(G.browser.mozilla){var J=self.pageXOffset;self.scrollTo(99999999,self.pageYOffset);var I=self.pageXOffset;self.scrollTo(J,self.pageYOffset);return document.body.offsetWidth+I}else{return Math.max(((G.boxModel&&!G.browser.safari)&&document.documentElement.scrollWidth||document.body.scrollWidth),document.body.offsetWidth)}}return E.apply(this,arguments)},innerHeight:function(){if(!this[0]){D()}return this[0]==window||this[0]==document?this.height():this.is(":visible")?this[0].offsetHeight-C(this,"borderTopWidth")-C(this,"borderBottomWidth"):this.height()+C(this,"paddingTop")+C(this,"paddingBottom")},innerWidth:function(){if(!this[0]){D()}return this[0]==window||this[0]==document?this.width():this.is(":visible")?this[0].offsetWidth-C(this,"borderLeftWidth")-C(this,"borderRightWidth"):this.width()+C(this,"paddingLeft")+C(this,"paddingRight")},outerHeight:function(I){if(!this[0]){D()}I=G.extend({margin:false},I||{});return this[0]==window||this[0]==document?this.height():this.is(":visible")?this[0].offsetHeight+(I.margin?(C(this,"marginTop")+C(this,"marginBottom")):0):this.height()+C(this,"borderTopWidth")+C(this,"borderBottomWidth")+C(this,"paddingTop")+C(this,"paddingBottom")+(I.margin?(C(this,"marginTop")+C(this,"marginBottom")):0)},outerWidth:function(I){if(!this[0]){D()}I=G.extend({margin:false},I||{});return this[0]==window||this[0]==document?this.width():this.is(":visible")?this[0].offsetWidth+(I.margin?(C(this,"marginLeft")+C(this,"marginRight")):0):this.width()+C(this,"borderLeftWidth")+C(this,"borderRightWidth")+C(this,"paddingLeft")+C(this,"paddingRight")+(I.margin?(C(this,"marginLeft")+C(this,"marginRight")):0)},scrollLeft:function(I){if(!this[0]){D()}if(I!=undefined){return this.each(function(){if(this==window||this==document){window.scrollTo(I,G(window).scrollTop())}else{this.scrollLeft=I}})}if(this[0]==window||this[0]==document){return self.pageXOffset||G.boxModel&&document.documentElement.scrollLeft||document.body.scrollLeft}return this[0].scrollLeft},scrollTop:function(I){if(!this[0]){D()}if(I!=undefined){return this.each(function(){if(this==window||this==document){window.scrollTo(G(window).scrollLeft(),I)}else{this.scrollTop=I}})}if(this[0]==window||this[0]==document){return self.pageYOffset||G.boxModel&&document.documentElement.scrollTop||document.body.scrollTop}return this[0].scrollTop},position:function(I){return this.offset({margin:false,scroll:false,relativeTo:this.offsetParent()},I)},offset:function(J,P){if(!this[0]){D()}var O=0,N=0,X=0,S=0,Y=this[0],M=this[0],L,I,W=G.css(Y,"position"),V=G.browser.mozilla,Q=G.browser.msie,U=G.browser.opera,a=G.browser.safari,K=G.browser.safari&&parseInt(G.browser.version)>520,R=false,T=false,J=G.extend({margin:true,border:false,padding:false,scroll:true,lite:false,relativeTo:document.body},J||{});if(J.lite){return this.offsetLite(J,P)}if(J.relativeTo.jquery){J.relativeTo=J.relativeTo[0]}if(Y.tagName=="BODY"){O=Y.offsetLeft;N=Y.offsetTop;if(V){O+=C(Y,"marginLeft")+(C(Y,"borderLeftWidth")*2);N+=C(Y,"marginTop")+(C(Y,"borderTopWidth")*2)}else{if(U){O+=C(Y,"marginLeft");N+=C(Y,"marginTop")}else{if((Q&&jQuery.boxModel)){O+=C(Y,"borderLeftWidth");N+=C(Y,"borderTopWidth")}else{if(K){O+=C(Y,"marginLeft")+C(Y,"borderLeftWidth");N+=C(Y,"marginTop")+C(Y,"borderTopWidth")}}}}}else{do{I=G.css(M,"position");O+=M.offsetLeft;N+=M.offsetTop;if((V&&!M.tagName.match(/^t[d|h]$/i))||Q||K){O+=C(M,"borderLeftWidth");N+=C(M,"borderTopWidth");if(V&&I=="absolute"){R=true}if(Q&&I=="relative"){T=true}}L=M.offsetParent||document.body;if(J.scroll||V){do{if(J.scroll){X+=M.scrollLeft;S+=M.scrollTop}if(U&&(G.css(M,"display")||"").match(/table-row|inline/)){X=X-((M.scrollLeft==M.offsetLeft)?M.scrollLeft:0);S=S-((M.scrollTop==M.offsetTop)?M.scrollTop:0)}if(V&&M!=Y&&G.css(M,"overflow")!="visible"){O+=C(M,"borderLeftWidth");N+=C(M,"borderTopWidth")}M=M.parentNode}while(M!=L)}M=L;if(M==J.relativeTo&&!(M.tagName=="BODY"||M.tagName=="HTML")){if(V&&M!=Y&&G.css(M,"overflow")!="visible"){O+=C(M,"borderLeftWidth");N+=C(M,"borderTopWidth")}if(((a&&!K)||U)&&I!="static"){O-=C(L,"borderLeftWidth");N-=C(L,"borderTopWidth")}break}if(M.tagName=="BODY"||M.tagName=="HTML"){if(((a&&!K)||(Q&&G.boxModel))&&W!="absolute"&&W!="fixed"){O+=C(M,"marginLeft");N+=C(M,"marginTop")}if(K||(V&&!R&&W!="fixed")||(Q&&W=="static"&&!T)){O+=C(M,"borderLeftWidth");N+=C(M,"borderTopWidth")}break}}while(M)}var Z=H(Y,J,O,N,X,S);if(P){G.extend(P,Z);return this}else{return Z}},offsetLite:function(Q,L){if(!this[0]){D()}var N=0,M=0,K=0,P=0,O=this[0],J,Q=G.extend({margin:true,border:false,padding:false,scroll:true,relativeTo:document.body},Q||{});if(Q.relativeTo.jquery){Q.relativeTo=Q.relativeTo[0]}do{N+=O.offsetLeft;M+=O.offsetTop;J=O.offsetParent||document.body;if(Q.scroll){do{K+=O.scrollLeft;P+=O.scrollTop;O=O.parentNode}while(O!=J)}O=J}while(O&&O.tagName!="BODY"&&O.tagName!="HTML"&&O!=Q.relativeTo);var I=H(this[0],Q,N,M,K,P);if(L){G.extend(L,I);return this}else{return I}},offsetParent:function(){if(!this[0]){D()}var I=this[0].offsetParent;while(I&&(I.tagName!="BODY"&&G.css(I,"position")=="static")){I=I.offsetParent}return G(I)}});var D=function(){throw"Dimensions: jQuery collection is empty"};var C=function(I,J){return parseInt(G.css(I.jquery?I[0]:I,J))||0};var H=function(M,L,J,N,I,K){if(!L.margin){J-=C(M,"marginLeft");N-=C(M,"marginTop")}if(L.border&&((G.browser.safari&&parseInt(G.browser.version)<520)||G.browser.opera)){J+=C(M,"borderLeftWidth");N+=C(M,"borderTopWidth")}else{if(!L.border&&!((G.browser.safari&&parseInt(G.browser.version)<520)||G.browser.opera)){J-=C(M,"borderLeftWidth");N-=C(M,"borderTopWidth")}}if(L.padding){J+=C(M,"paddingLeft");N+=C(M,"paddingTop")}if(L.scroll&&(!G.browser.opera||M.offsetLeft!=M.scrollLeft&&M.offsetTop!=M.scrollLeft)){I-=M.scrollLeft;K-=M.scrollTop}return L.scroll?{top:N-K,left:J-I,scrollTop:K,scrollLeft:I}:{top:N,left:J}};var F=0;var B=function(){if(!F){var I=G("<div>").css({width:100,height:100,overflow:"auto",position:"absolute",top:-1000,left:-1000}).appendTo("body");F=100-I.append("<div>").find("div").css({width:"100%",height:200}).width();I.remove()}return F}})(jQuery);jQuery.iUtil={getPosition:function(F){var A=0;var H=0;var G=F.style;var E=false;if(jQuery(F).css("display")=="none"){var B=G.visibility;var D=G.position;E=true;G.visibility="hidden";G.display="block";G.position="absolute"}var C=F;while(C){A+=C.offsetLeft+(C.currentStyle&&!jQuery.browser.opera?parseInt(C.currentStyle.borderLeftWidth)||0:0);H+=C.offsetTop+(C.currentStyle&&!jQuery.browser.opera?parseInt(C.currentStyle.borderTopWidth)||0:0);C=C.offsetParent}C=F;while(C&&C.tagName&&C.tagName.toLowerCase()!="body"){A-=C.scrollLeft||0;H-=C.scrollTop||0;C=C.parentNode}if(E==true){G.display="none";G.position=D;G.visibility=B}return{x:A,y:H}},getPositionLite:function(B){var A=0,C=0;while(B){A+=B.offsetLeft||0;C+=B.offsetTop||0;B=B.offsetParent}return{x:A,y:C}},getSize:function(F){var A=jQuery.css(F,"width");var D=jQuery.css(F,"height");var E=0;var H=0;var G=F.style;if(jQuery(F).css("display")!="none"){E=F.offsetWidth;H=F.offsetHeight}else{var B=G.visibility;var C=G.position;G.visibility="hidden";G.display="block";G.position="absolute";E=F.offsetWidth;H=F.offsetHeight;G.display="none";G.position=C;G.visibility=B}return{w:A,h:D,wb:E,hb:H}},getSizeLite:function(A){return{wb:A.offsetWidth||0,hb:A.offsetHeight||0}},getClient:function(C){var B,A,D;if(C){A=C.clientWidth;B=C.clientHeight}else{D=document.documentElement;A=window.innerWidth||self.innerWidth||(D&&D.clientWidth)||document.body.clientWidth;B=window.innerHeight||self.innerHeight||(D&&D.clientHeight)||document.body.clientHeight}return{w:A,h:B}},getScroll:function(G){var D=0,B=0,A=0,E=0,C=0,F=0;if(G&&G.nodeName.toLowerCase()!="body"){D=G.scrollTop;B=G.scrollLeft;A=G.scrollWidth;E=G.scrollHeight;C=0;F=0}else{if(document.documentElement){D=document.documentElement.scrollTop;B=document.documentElement.scrollLeft;A=document.documentElement.scrollWidth;E=document.documentElement.scrollHeight}else{if(document.body){D=document.body.scrollTop;B=document.body.scrollLeft;A=document.body.scrollWidth;E=document.body.scrollHeight}}C=self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0;F=self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0}return{t:D,l:B,w:A,h:E,iw:C,ih:F}},getMargins:function(G,C){var E=jQuery(G);var D=E.css("marginTop")||"";var F=E.css("marginRight")||"";var A=E.css("marginBottom")||"";var B=E.css("marginLeft")||"";if(C){return{t:parseInt(D)||0,r:parseInt(F)||0,b:parseInt(A)||0,l:parseInt(B)}}else{return{t:D,r:F,b:A,l:B}}},getPadding:function(G,C){var E=jQuery(G);var D=E.css("paddingTop")||"";var F=E.css("paddingRight")||"";var A=E.css("paddingBottom")||"";var B=E.css("paddingLeft")||"";if(C){return{t:parseInt(D)||0,r:parseInt(F)||0,b:parseInt(A)||0,l:parseInt(B)}}else{return{t:D,r:F,b:A,l:B}}},getBorder:function(G,C){var E=jQuery(G);var D=E.css("borderTopWidth")||"";var F=E.css("borderRightWidth")||"";var A=E.css("borderBottomWidth")||"";var B=E.css("borderLeftWidth")||"";if(C){return{t:parseInt(D)||0,r:parseInt(F)||0,b:parseInt(A)||0,l:parseInt(B)||0}}else{return{t:D,r:F,b:A,l:B}}},getPointer:function(B){var A=B.pageX||(B.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft))||0;var C=B.pageY||(B.clientY+(document.documentElement.scrollTop||document.body.scrollTop))||0;return{x:A,y:C}},traverseDOM:function(A,B){B(A);A=A.firstChild;while(A){jQuery.iUtil.traverseDOM(A,B);A=A.nextSibling}},purgeEvents:function(A){jQuery.iUtil.traverseDOM(A,function(C){for(var B in C){if(typeof C[B]==="function"){C[B]=null}}})},centerEl:function(D,C){var A=jQuery.iUtil.getScroll();var B=jQuery.iUtil.getSize(D);if(!C||C=="vertically"){jQuery(D).css({top:A.t+((Math.max(A.h,A.ih)-A.t-B.hb)/2)+"px"})}if(!C||C=="horizontally"){jQuery(D).css({left:A.l+((Math.max(A.w,A.iw)-A.l-B.wb)/2)+"px"})}},fixPNG:function(B,D){var A=jQuery('img[@src*="png"]',B||document),C;A.each(function(){C=this.src;this.src=D;this.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+C+"')"})}};[].indexOf||(Array.prototype.indexOf=function(B,D){D=(D==null)?0:D;var A=this.length;for(var C=D;C<A;C++){if(this[C]==B){return C}}return -1});jQuery.fxCheckTag=function(A){if(/^tr$|^td$|^tbody$|^caption$|^thead$|^tfoot$|^col$|^colgroup$|^th$|^body$|^header$|^script$|^frame$|^frameset$|^option$|^optgroup$|^meta$/i.test(A.nodeName)){return false}else{return true}};jQuery.fx.destroyWrapper=function(C,A){var D=C.firstChild;var B=D.style;B.position=A.position;B.marginTop=A.margins.t;B.marginLeft=A.margins.l;B.marginBottom=A.margins.b;B.marginRight=A.margins.r;B.top=A.top+"px";B.left=A.left+"px";C.parentNode.insertBefore(D,C);C.parentNode.removeChild(C)};jQuery.fx.buildWrapper=function(E){if(!jQuery.fxCheckTag(E)){return false}var K=jQuery(E);var I=E.style;var F=false;if(K.css("display")=="none"){oldVisibility=K.css("visibility");K.css("visibility","hidden").show();F=true}var C={};C.position=K.css("position");C.sizes=jQuery.iUtil.getSize(E);C.margins=jQuery.iUtil.getMargins(E);var D=E.currentStyle?E.currentStyle.styleFloat:K.css("float");C.top=parseInt(K.css("top"))||0;C.left=parseInt(K.css("left"))||0;var L="w_"+parseInt(Math.random()*10000);var G=document.createElement(/^img$|^br$|^input$|^hr$|^select$|^textarea$|^object$|^iframe$|^button$|^form$|^table$|^ul$|^dl$|^ol$/i.test(E.nodeName)?"div":E.nodeName);jQuery.attr(G,"id",L);var J=jQuery(G).addClass("fxWrapper");var A=G.style;var H=0;var B=0;if(C.position=="relative"||C.position=="absolute"){H=C.top;B=C.left}A.top=H+"px";A.left=B+"px";A.position=C.position!="relative"&&C.position!="absolute"?"relative":C.position;A.height=C.sizes.hb+"px";A.width=C.sizes.wb+"px";A.marginTop=C.margins.t;A.marginRight=C.margins.r;A.marginBottom=C.margins.b;A.marginLeft=C.margins.l;A.overflow="hidden";if(jQuery.browser.msie){A.styleFloat=D}else{A.cssFloat=D}if(jQuery.browser=="msie"){I.filter="alpha(opacity="+0.999*100+")"}I.opacity=0.999;E.parentNode.insertBefore(G,E);G.appendChild(E);I.marginTop="0px";I.marginRight="0px";I.marginBottom="0px";I.marginLeft="0px";I.position="absolute";I.listStyle="none";I.top="0px";I.left="0px";if(F){K.hide();I.visibility=oldVisibility}return{oldStyle:C,wrapper:jQuery(G)}};jQuery.fx.namedColors={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]};jQuery.fx.parseColor=function(B,A){if(jQuery.fx.namedColors[B]){return{r:jQuery.fx.namedColors[B][0],g:jQuery.fx.namedColors[B][1],b:jQuery.fx.namedColors[B][2]}}else{if(result=/^rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)$/.exec(B)){return{r:parseInt(result[1]),g:parseInt(result[2]),b:parseInt(result[3])}}else{if(result=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)$/.exec(B)){return{r:parseFloat(result[1])*2.55,g:parseFloat(result[2])*2.55,b:parseFloat(result[3])*2.55}}else{if(result=/^#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])$/.exec(B)){return{r:parseInt("0x"+result[1]+result[1]),g:parseInt("0x"+result[2]+result[2]),b:parseInt("0x"+result[3]+result[3])}}else{if(result=/^#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/.exec(B)){return{r:parseInt("0x"+result[1]),g:parseInt("0x"+result[2]),b:parseInt("0x"+result[3])}}else{return A==true?false:{r:255,g:255,b:255}}}}}}};jQuery.fx.cssProps={borderBottomWidth:1,borderLeftWidth:1,borderRightWidth:1,borderTopWidth:1,bottom:1,fontSize:1,height:1,left:1,letterSpacing:1,lineHeight:1,marginBottom:1,marginLeft:1,marginRight:1,marginTop:1,maxHeight:1,maxWidth:1,minHeight:1,minWidth:1,opacity:1,outlineOffset:1,outlineWidth:1,paddingBottom:1,paddingLeft:1,paddingRight:1,paddingTop:1,right:1,textIndent:1,top:1,width:1,zIndex:1};jQuery.fx.colorCssProps={backgroundColor:1,borderBottomColor:1,borderLeftColor:1,borderRightColor:1,borderTopColor:1,color:1,outlineColor:1};jQuery.fx.cssSides=["Top","Right","Bottom","Left"];jQuery.fx.cssSidesEnd={borderWidth:["border","Width"],borderColor:["border","Color"],margin:["margin",""],padding:["padding",""]};jQuery.fn.extend({animate:function(D,A,C,B){return this.queue(function(){var E=jQuery.speed(A,C,B);var F=new jQuery.fxe(this,E,D)})},pause:function(A,B){return this.queue(function(){var C=jQuery.speed(A,B);var D=new jQuery.pause(this,C)})},stop:function(A){return this.each(function(){if(this.animationHandler){jQuery.stopAnim(this,A)}})},stopAll:function(A){return this.each(function(){if(this.animationHandler){jQuery.stopAnim(this,A)}if(this.queue&&this.queue.fx){this.queue.fx=[]}})}});jQuery.extend({pause:function(C,B){var D=this,A;D.step=function(){if(jQuery.isFunction(B.complete)){B.complete.apply(C)}};D.timer=setInterval(function(){D.step()},B.duration);C.animationHandler=D},easing:{linear:function(C,E,A,D,B){return((-Math.cos(C*Math.PI)/2)+0.5)*D+A}},fxe:function(C,O,B){var I=this,M;var L=C.style;var G=jQuery.css(C,"overflow");var J=jQuery.css(C,"display");var H={};I.startTime=(new Date()).getTime();O.easing=O.easing&&jQuery.easing[O.easing]?O.easing:"linear";I.getValues=function(V,Q){if(jQuery.fx.cssProps[V]){if(Q=="show"||Q=="hide"||Q=="toggle"){if(!C.orig){C.orig={}}var P=parseFloat(jQuery.curCSS(C,V));C.orig[V]=P&&P>-10000?P:(parseFloat(jQuery.css(C,V))||0);Q=Q=="toggle"?(J=="none"?"show":"hide"):Q;O[Q]=true;H[V]=Q=="show"?[0,C.orig[V]]:[C.orig[V],0];if(V!="opacity"){L[V]=H[V][0]+(V!="zIndex"&&V!="fontWeight"?"px":"")}else{jQuery.attr(L,"opacity",H[V][0])}}else{H[V]=[parseFloat(jQuery.curCSS(C,V)),parseFloat(Q)||0]}}else{if(jQuery.fx.colorCssProps[V]){H[V]=[jQuery.fx.parseColor(jQuery.curCSS(C,V)),jQuery.fx.parseColor(Q)]}else{if(/^margin$|padding$|border$|borderColor$|borderWidth$/i.test(V)){var S=Q.replace(/\s+/g," ").replace(/rgb\s*\(\s*/g,"rgb(").replace(/\s*,\s*/g,",").replace(/\s*\)/g,")").match(/([^\s]+)/g);switch(V){case"margin":case"padding":case"borderWidth":case"borderColor":S[3]=S[3]||S[1]||S[0];S[2]=S[2]||S[0];S[1]=S[1]||S[0];for(var U=0;U<jQuery.fx.cssSides.length;U++){var R=jQuery.fx.cssSidesEnd[V][0]+jQuery.fx.cssSides[U]+jQuery.fx.cssSidesEnd[V][1];H[R]=V=="borderColor"?[jQuery.fx.parseColor(jQuery.curCSS(C,R)),jQuery.fx.parseColor(S[U])]:[parseFloat(jQuery.curCSS(C,R)),parseFloat(S[U])]}break;case"border":for(var U=0;U<S.length;U++){var W=parseFloat(S[U]);var X=!isNaN(W)?"Width":(!/transparent|none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(S[U])?"Color":false);if(X){for(var T=0;T<jQuery.fx.cssSides.length;T++){R="border"+jQuery.fx.cssSides[T]+X;H[R]=X=="Color"?[jQuery.fx.parseColor(jQuery.curCSS(C,R)),jQuery.fx.parseColor(S[U])]:[parseFloat(jQuery.curCSS(C,R)),W]}}else{L.borderStyle=S[U]}}break}}else{L[V]=Q}}}return false};for(p in B){if(p=="style"){var A=jQuery.parseStyle(B[p]);for(np in A){this.getValues(np,A[np])}}else{if(p=="className"){if(document.styleSheets){for(var E=0;E<document.styleSheets.length;E++){var F=document.styleSheets[E].cssRules||document.styleSheets[E].rules||null;if(F){for(var D=0;D<F.length;D++){if(F[D].selectorText=="."+B[p]){var K=new RegExp("."+B[p]+" {");var N=F[D].style.cssText;var A=jQuery.parseStyle(N.replace(K,"").replace(/}/g,""));for(np in A){this.getValues(np,A[np])}}}}}}}else{this.getValues(p,B[p])}}}L.display=J=="none"?"block":J;L.overflow="hidden";I.step=function(){var Q=(new Date()).getTime();if(Q>O.duration+I.startTime){clearInterval(I.timer);I.timer=null;for(R in H){if(R=="opacity"){jQuery.attr(L,"opacity",H[R][1])}else{if(typeof H[R][1]=="object"){L[R]="rgb("+H[R][1].r+","+H[R][1].g+","+H[R][1].b+")"}else{L[R]=H[R][1]+(R!="zIndex"&&R!="fontWeight"?"px":"")}}}if(O.hide||O.show){for(var R in C.orig){if(R=="opacity"){jQuery.attr(L,R,C.orig[R])}else{L[R]=""}}}L.display=O.hide?"none":(J!="none"?J:"block");L.overflow=G;C.animationHandler=null;if(jQuery.isFunction(O.complete)){O.complete.apply(C)}}else{var T=Q-this.startTime;var S=T/O.duration;for(R in H){if(typeof H[R][1]=="object"){L[R]="rgb("+parseInt(jQuery.easing[O.easing](S,T,H[R][0].r,(H[R][1].r-H[R][0].r),O.duration))+","+parseInt(jQuery.easing[O.easing](S,T,H[R][0].g,(H[R][1].g-H[R][0].g),O.duration))+","+parseInt(jQuery.easing[O.easing](S,T,H[R][0].b,(H[R][1].b-H[R][0].b),O.duration))+")"}else{var P=jQuery.easing[O.easing](S,T,H[R][0],(H[R][1]-H[R][0]),O.duration);if(R=="opacity"){jQuery.attr(L,"opacity",P)}else{L[R]=P+(R!="zIndex"&&R!="fontWeight"?"px":"")}}}}};I.timer=setInterval(function(){I.step()},13);C.animationHandler=I},stopAnim:function(B,A){if(A){B.animationHandler.startTime-=100000000}else{window.clearInterval(B.animationHandler.timer);B.animationHandler=null;jQuery.dequeue(B,"fx")}}});jQuery.parseStyle=function(B){var C={};if(typeof B=="string"){B=B.toLowerCase().split(";");for(var A=0;A<B.length;A++){rule=B[A].split(":");if(rule.length==2){C[jQuery.trim(rule[0].replace(/\-(\w)/g,function(D,E){return E.toUpperCase()}))]=jQuery.trim(rule[1])}}}return C};(function(D){var A="1.93";D.fn.cycle=function(F){return this.each(function(){if(F&&F.constructor==String){switch(F){case"stop":if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;return ;case"pause":this.cyclePause=1;return ;case"resume":this.cyclePause=0;return ;default:F={fx:F}}}var M=D(this),J=M.children(),H=J.get();if(H.length<2){return }var G=D.extend({},D.fn.cycle.defaults,F||{},D.meta?M.data():{});if(G.autostop){G.countdown=H.length}G.before=G.before?[G.before]:[];G.after=G.after?[G.after]:[];G.after.unshift(function(){G.busy=0});var O=this.className;var L=parseInt((O.match(/w:(\d+)/)||[])[1])||G.width;var I=parseInt((O.match(/h:(\d+)/)||[])[1])||G.height;G.timeout=parseInt((O.match(/t:(\d+)/)||[])[1])||G.timeout;if(M.css("position")=="static"){M.css("position","relative")}if(L){M.width(L)}if(I&&I!="auto"){M.height(I)}J.each(function(P){D(this).css("z-index",H.length-P)}).css("position","absolute").hide();D(H[0]).show();if(G.fit&&L){J.width(L)}if(G.fit&&I&&I!="auto"){J.height(I)}if(G.pause){M.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}var N=D.fn.cycle.transitions[G.fx];if(D.isFunction(N)){N(M,J,G)}J.each(function(){var P=D(this);this.cycleH=(G.fit&&I)?I:P.height();this.cycleW=(G.fit&&L)?L:P.width()});G.cssBefore=G.cssBefore||{};G.animIn=G.animIn||{};G.animOut=G.animOut||{};J.not(":eq(0)").css(G.cssBefore);if(G.cssFirst){D(J[0]).css(G.cssFirst)}if(G.timeout){if(G.speed.constructor==String){G.speed={slow:600,fast:200}[G.speed]||400}if(!G.sync){G.speed=G.speed/2}while((G.timeout-G.speed)<250){G.timeout+=G.speed}}if(G.easing){G.easeIn=G.easeOut=G.easing}if(!G.speedIn){G.speedIn=G.speed}if(!G.speedOut){G.speedOut=G.speed}G.nextSlide=G.random?(Math.floor(Math.random()*(H.length-1)))+1:1;G.currSlide=0;var K=J[0];if(G.before.length){G.before[0].apply(K,[K,K,G,true])}if(G.after.length>1){G.after[1].apply(K,[K,K,G,true])}if(G.click&&!G.next){G.next=G.click}if(G.next){D(G.next).bind("click",function(){return C(H,G,G.rev?-1:1)})}if(G.prev){D(G.prev).bind("click",function(){return C(H,G,G.rev?1:-1)})}if(G.pager){E(H,G)}if(G.timeout){this.cycleTimeout=setTimeout(function(){B(H,G,0,!G.rev)},G.timeout+(G.delay||0))}})};function B(K,F,J,L){if(F.busy){return }var I=K[0].parentNode,N=K[F.currSlide],M=K[F.nextSlide];if(I.cycleTimeout===0&&!J){return }if(!J&&!I.cyclePause&&F.autostop&&(--F.countdown<=0)){return }if(F.before.length){D.each(F.before,function(O,P){P.apply(M,[N,M,F,L])})}var G=function(){D.each(F.after,function(O,P){P.apply(M,[N,M,F,L])})};if(J||!I.cyclePause){if(F.nextSlide!=F.currSlide){F.busy=1;if(F.fxFn){F.fxFn(N,M,F,G)}else{if(D.isFunction(D.fn.cycle[F.fx])){D.fn.cycle[F.fx](N,M,F,G)}else{D.fn.cycle.custom(N,M,F,G)}}}if(F.random){F.currSlide=F.nextSlide;while(F.nextSlide==F.currSlide){F.nextSlide=Math.floor(Math.random()*K.length)}}else{var H=(F.nextSlide+1)==K.length;F.nextSlide=H?0:F.nextSlide+1;F.currSlide=H?K.length-1:F.nextSlide-1}if(F.pager){D(F.pager).find("a").removeClass("activeSlide").filter("a:eq("+F.currSlide+")").addClass("activeSlide")}}if(F.timeout){I.cycleTimeout=setTimeout(function(){B(K,F,0,!F.rev)},F.timeout)}}function C(F,G,J){var I=F[0].parentNode,H=I.cycleTimeout;if(H){clearTimeout(H);I.cycleTimeout=0}G.nextSlide=G.currSlide+J;if(G.nextSlide<0){G.nextSlide=F.length-1}else{if(G.nextSlide>=F.length){G.nextSlide=0}}B(F,G,1,J>=0);return false}function E(G,H){var F=D(H.pager);D.each(G,function(I,K){var J=D('<a href="#">'+(I+1)+"</a>").appendTo(F).bind("click",function(){H.nextSlide=I;B(G,H,1,!H.rev);return false});if(I==0){J.addClass("activeSlide")}})}D.fn.cycle.custom=function(L,I,J,F){var K=D(L),H=D(I);H.css(J.cssBefore);var G=function(){H.animate(J.animIn,J.speedIn,J.easeIn,F)};K.animate(J.animOut,J.speedOut,J.easeOut,function(){if(J.cssAfter){K.css(J.cssAfter)}if(!J.sync){G()}});if(J.sync){G()}};D.fn.cycle.transitions={fade:function(G,H,F){H.not(":eq(0)").css("opacity",0);F.before.push(function(){D(this).show()});F.animIn={opacity:1};F.animOut={opacity:0};F.cssAfter={display:"none"}}};D.fn.cycle.ver=function(){return A};D.fn.cycle.defaults={fx:"fade",timeout:4000,speed:1000,speedIn:null,speedOut:null,click:null,next:null,prev:null,pager:null,before:null,after:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",sync:1,random:0,fit:0,pause:0,autostop:0,delay:0}})(jQuery);jQuery.fn.cycle.transitions.scrollUp=function(B,C,A){B.css("overflow","hidden");A.before.push(function(F,D,E){$(this).show();E.cssBefore.top=D.offsetHeight;E.animOut.top=0-F.offsetHeight});A.cssFirst={top:0};A.animIn={top:0};A.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.scrollDown=function(B,C,A){B.css("overflow","hidden");A.before.push(function(F,D,E){$(this).show();E.cssBefore.top=0-D.offsetHeight;E.animOut.top=F.offsetHeight});A.cssFirst={top:0};A.animIn={top:0};A.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.scrollLeft=function(B,C,A){B.css("overflow","hidden");A.before.push(function(F,D,E){$(this).show();E.cssBefore.left=D.offsetWidth;E.animOut.left=0-F.offsetWidth});A.cssFirst={left:0};A.animIn={left:0}};jQuery.fn.cycle.transitions.scrollRight=function(B,C,A){B.css("overflow","hidden");A.before.push(function(F,D,E){$(this).show();E.cssBefore.left=0-D.offsetWidth;E.animOut.left=F.offsetWidth});A.cssFirst={left:0};A.animIn={left:0}};jQuery.fn.cycle.transitions.scrollHorz=function(B,C,A){B.css("overflow","hidden").width();A.before.push(function(H,F,G,E){$(this).show();var D=H.offsetWidth,I=F.offsetWidth;G.cssBefore=E?{left:I}:{left:-I};G.animIn.left=0;G.animOut.left=E?-D:D;C.not(H).css(G.cssBefore)});A.cssFirst={left:0};A.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.scrollVert=function(B,C,A){B.css("overflow","hidden");A.before.push(function(I,F,G,E){$(this).show();var H=I.offsetHeight,D=F.offsetHeight;G.cssBefore=E?{top:-D}:{top:D};G.animIn.top=0;G.animOut.top=E?H:-H;C.not(I).css(G.cssBefore)});A.cssFirst={top:0};A.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.slideX=function(B,C,A){A.animIn={width:"show"};A.animOut={width:"hide"}};jQuery.fn.cycle.transitions.slideY=function(B,C,A){A.animIn={height:"show"};A.animOut={height:"hide"}};jQuery.fn.cycle.transitions.shuffle=function(D,E,C){var A=D.css("overflow","visible").width();E.css({left:0,top:0});C.before.push(function(){$(this).show()});C.speed=C.speed/2;C.random=0;C.shuffle=C.shuffle||{left:-A,top:15};C.els=[];for(var B=0;B<E.length;B++){C.els.push(E[B])}C.fxFn=function(J,H,I,F){var G=jQuery(J);G.animate(I.shuffle,I.speedIn,I.easeIn,function(){I.els.push(I.els.shift());for(var L=0,K=I.els.length;L<K;L++){jQuery(I.els[L]).css("z-index",K-L)}G.animate({left:0,top:0},I.speedOut,I.easeOut,function(){$(this).hide();if(F){F()}})})}};jQuery.fn.cycle.transitions.turnUp=function(B,C,A){A.before.push(function(F,D,E){$(this).show();E.cssBefore.top=D.cycleH;E.animIn.height=D.cycleH});A.cssFirst={top:0};A.cssBefore={height:0};A.animIn={top:0};A.animOut={height:0};A.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.turnDown=function(B,C,A){A.before.push(function(F,D,E){$(this).show();E.animIn.height=D.cycleH;E.animOut.top=F.cycleH});A.cssFirst={top:0};A.cssBefore={top:0,height:0};A.animOut={height:0};A.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.turnLeft=function(B,C,A){A.before.push(function(F,D,E){$(this).show();E.cssBefore.left=D.cycleW;E.animIn.width=D.cycleW});A.cssBefore={width:0};A.animIn={left:0};A.animOut={width:0};A.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.turnRight=function(B,C,A){A.before.push(function(F,D,E){$(this).show();E.animIn.width=D.cycleW;E.animOut.left=F.cycleW});A.cssBefore={left:0,width:0};A.animIn={left:0};A.animOut={width:0};A.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.zoom=function(B,C,A){A.cssFirst={top:0,left:0};A.cssAfter={display:"none"};A.before.push(function(F,D,E){$(this).show();E.cssBefore={width:0,height:0,top:D.cycleH/2,left:D.cycleW/2};E.animIn={top:0,left:0,width:D.cycleW,height:D.cycleH};E.animOut={width:0,height:0,top:F.cycleH/2,left:F.cycleW/2}})};if(typeof jQuery=="undefined"){throw"Unable to load Shadowbox, jQuery library not found."}var Shadowbox={};Shadowbox.lib={getStyle:function(B,A){return jQuery(B).css(A)},setStyle:function(C,B,D){if(typeof B!="object"){var A={};A[B]=D;B=A}jQuery(C).css(B)},get:function(A){return(typeof A=="string")?document.getElementById(A):A},remove:function(A){jQuery(A).remove()},getTarget:function(A){return A.target},preventDefault:function(A){A=A.browserEvent||A;if(A.preventDefault){A.preventDefault()}else{A.returnValue=false}},addEvent:function(C,A,B){jQuery(C).bind(A,B)},removeEvent:function(C,A,B){jQuery(C).unbind(A,B)},animate:function(A,D,C,F){C=Math.round(C*1000);var E={};for(var B in D){switch(B){case"opacity":E.opacity=String(D.opacity.to);break;default:E[B]=String(D[B].to)+"px"}}jQuery(A).animate(E,C,null,F)}};if(typeof Shadowbox=="undefined"){throw"Unable to load Shadowbox, no base library adapter found."}(function(){var options={loadingImage:"images/loading.gif",animate:true,flvPlayer:"flvplayer.swf",overlayColor:"#000",overlayOpacity:0.85,overlayBgImage:"images/overlay-85.png",autoplayMovies:true,showMovieControls:true,resizeDuration:0.35,fadeDuration:0.35,displayNav:true,continuous:false,displayCounter:true,counterType:"default",viewportPadding:20,handleLgImages:"resize",initialHeight:160,initialWidth:320,enableKeys:true,keysClose:["c","q",27],keysNext:["n",39],keysPrev:["p",37],onOpen:null,onClose:null,handleUnsupported:"link",errors:{templates:{single:'You must install the <a href="{0}">{1}</a> browser plugin to view this content.',shared:'You must install both the <a href="{0}">{1}</a> and <a href="{2}">{3}</a> browser plugins to view this content.',either:'You must install either the <a href="{0}">{1}</a> or the <a href="{2}">{3}</a> browser plugin to view this content.'},fla:{name:"Flash",url:"http://www.adobe.com/products/flashplayer/"},qt:{name:"QuickTime",url:"http://www.apple.com/quicktime/download/"},wmp:{name:"Windows Media Player",url:"http://www.microsoft.com/windows/windowsmedia/"},f4m:{name:"Flip4Mac",url:"http://www.flip4mac.com/wmv_download.htm"}},skin:{main:'<div id="shadowbox_overlay"></div><div id="shadowbox_container"><div id="shadowbox"><div id="shadowbox_title"><div id="shadowbox_title_inner"></div></div><div id="shadowbox_body"><div id="shadowbox_body_inner"></div><div id="shadowbox_loading"><img src="{loading_img_replace}" alt="loading" /><span><a href="javascript:Shadowbox.close();">Cancel</a></span></div></div><div id="shadowbox_toolbar"><div id="shadowbox_toolbar_inner"></div></div></div></div>',counter:'<div id="shadowbox_counter"></div>',nav:{close:'<div id="shadowbox_nav_close"><a href="javascript:Shadowbox.close();"><span class="shortcut">C</span>lose</a></div>',next:'<div id="shadowbox_nav_next"><a href="javascript:Shadowbox.next();"><span class="shortcut">N</span>ext</a></div>',prev:'<div id="shadowbox_nav_previous"><a href="javascript:Shadowbox.previous();"><span class="shortcut">P</span>revious</a></div>'}}};var SL=Shadowbox.lib;var galleries=[];var current_gallery=null;var current=null;var optimal_height=options.initialHeight;var optimal_width=options.initialWidth;var preloader=null;var activated=false;var ua=navigator.userAgent.toLowerCase();var isStrict=document.compatMode=="CSS1Compat",isOpera=ua.indexOf("opera")>-1,isIE=ua.indexOf("msie")>-1,isIE7=ua.indexOf("msie 7")>-1,isBorderBox=isIE&&!isStrict,isSafari=(/webkit|khtml/).test(ua),isSafari3=isSafari&&!!(document.evaluate),isGecko=!isSafari&&ua.indexOf("gecko")>-1,isWindows=(ua.indexOf("windows")!=-1||ua.indexOf("win32")!=-1),isMac=(ua.indexOf("macintosh")!=-1||ua.indexOf("mac os x")!=-1),isLinux=(ua.indexOf("linux")!=-1);var getViewportHeight=function(){var height=window.innerHeight;var mode=document.compatMode;if((mode||isIE)&&!isOpera){height=isStrict?document.documentElement.clientHeight:document.body.clientHeight}return height};var getViewportWidth=function(){var width=window.innerWidth;var mode=document.compatMode;if(mode||isIE){width=isStrict?document.documentElement.clientWidth:document.body.clientWidth}return width};var getDocumentHeight=function(){var scrollHeight=isStrict?document.documentElement.scrollHeight:document.body.scrollHeight;return Math.max(scrollHeight,getViewportHeight())};var getDocumentWidth=function(){var scrollWidth=isStrict?document.documentElement.scrollWidth:document.body.scrollWidth;return Math.max(scrollWidth,getViewportWidth())};var clearOpacity=function(el){if(isIE){if(typeof el.style.filter=="string"&&(/alpha/i).test(el.style.filter)){el.style.filter=""}}else{el.style.opacity="";el.style["-moz-opacity"]="";el.style["-khtml-opacity"]=""}};var fadeIn=function(el,endingOpacity,duration,callback){if(options.animate){SL.setStyle(el,"opacity",0);el.style.visibility="visible";SL.animate(el,{opacity:{to:endingOpacity}},duration,function(){if(endingOpacity==1){clearOpacity(el)}if(typeof callback=="function"){callback()}})}else{if(endingOpacity==1){clearOpacity(el)}else{SL.setStyle(el,"opacity",endingOpacity)}el.style.visibility="visible";if(typeof callback=="function"){callback()}}};var fadeOut=function(el,duration,callback){var cb=function(){el.style.visibility="hidden";clearOpacity(el);if(typeof callback=="function"){callback()}};if(options.animate){SL.animate(el,{opacity:{to:0}},duration,cb)}else{cb()}};var plugins=null;if(navigator.plugins&&navigator.plugins.length){var detectPlugin=function(plugin_name){var detected=false;for(var i=0,len=navigator.plugins.length;i<len;++i){if(navigator.plugins[i].name.indexOf(plugin_name)>-1){detected=true;break}}return detected};var f4m=detectPlugin("Flip4Mac");var plugins={fla:detectPlugin("Shockwave Flash"),qt:detectPlugin("QuickTime"),wmp:!f4m&&detectPlugin("Windows Media"),f4m:f4m}}else{var detectPlugin=function(plugin_name){var detected=false;try{var axo=new ActiveXObject(plugin_name);if(axo){detected=true}}catch(e){}return detected};var plugins={fla:detectPlugin("ShockwaveFlash.ShockwaveFlash"),qt:detectPlugin("QuickTime.QuickTime"),wmp:detectPlugin("wmplayer.ocx"),f4m:false}}var absolute_pos=isIE&&!isIE7;var appendHTML=function(el,html){el=SL.get(el);if(el.insertAdjacentHTML){el.insertAdjacentHTML("BeforeEnd",html);return el.lastChild}if(el.lastChild){var range=el.ownerDocument.createRange();range.setStartAfter(el.lastChild);var frag=range.createContextualFragment(html);el.appendChild(frag);return el.lastChild}else{el.innerHTML=html;return el.lastChild}};var overwriteHTML=function(el,html){el=SL.get(el);el.innerHTML=html;return el.firstChild};var getComputedHeight=function(el){var h=Math.max(el.offsetHeight,el.clientHeight);if(!h){h=parseInt(SL.getStyle(el,"height"),10)||0;if(!isBorderBox){h+=parseInt(SL.getStyle(el,"padding-top"),10)+parseInt(SL.getStyle(el,"padding-bottom"),10)+parseInt(SL.getStyle(el,"border-top-width"),10)+parseInt(SL.getStyle(el,"border-bottom-width"),10)}}return h};var getComputedWidth=function(el){var w=Math.max(el.offsetWidth,el.clientWidth);if(!w){w=parseInt(SL.getStyle(el,"width"),10)||0;if(!isBorderBox){w+=parseInt(SL.getStyle(el,"padding-left"),10)+parseInt(SL.getStyle(el,"padding-right"),10)+parseInt(SL.getStyle(el,"border-left-width"),10)+parseInt(SL.getStyle(el,"border-right-width"),10)}}return w};var file_types={img:["png","jpg","jpeg","gif","bmp"],qt:["dv","mov","moov","movie","mp4"],wmp:["asf","wm","wmv"],qtwmp:["avi","mpg","mpeg"],external:["asp","aspx","cgi","cfm","htm","html","pl","php","php3","php4","php5","phtml","rb","rhtml","shtml","txt","vbs"]};var img_re=new RegExp(".("+file_types.img.join("|")+")s*$","i");var qt_re=new RegExp(".("+file_types.qt.join("|")+")s*$","i");var wmp_re=new RegExp(".("+file_types.wmp.join("|")+")s*$","i");var qtwmp_re=new RegExp(".("+file_types.qtwmp.join("|")+")s*$","i");var external_re=new RegExp(".("+file_types.external.join("|")+")s*$","i");var swf_re=/\.swf\s*$/i;var flv_re=/\.flv\s*$/i;var domain_re=/:\/\/(.*?)[:\/]/;var getPlayerType=function(url){if(img_re.test(url)){return"img"}var this_domain=(domain_match=url.match(domain_re))?(document.domain==domain_match[1]):false;var q_index=url.indexOf("?");if(q_index>-1){url=url.substring(0,q_index)}if(swf_re.test(url)){return(plugins.fla)?"swf":"unsupported-swf"}else{if(flv_re.test(url)){return(plugins.fla)?"flv":"unsupported-flv"}else{if(qt_re.test(url)){return(plugins.qt)?"qt":"unsupported-qt"}else{if(wmp_re.test(url)){if(plugins.wmp){return"wmp"}else{if(plugins.f4m){return"qt"}else{if(isMac){return(plugins.qt)?"unsupported-f4m":"unsupported-qtf4m"}return"unsupported-wmp"}}}else{if(qtwmp_re.test(url)){if(plugins.qt){return"qt"}else{if(plugins.wmp){return"wmp"}else{return(isMac)?"unsupported-qt":"unsupported-qtwmp"}}}else{if(!this_domain||external_re.test(url)){return"external"}}}}}}return"unsupported"};var gallery_re=/^shadowbox\[(.*?)\]/i;var getGalleryName=function(link){if(!(rel=link.getAttribute("rel"))){return null}var match=rel.match(gallery_re);return(match?escape(match[1]):null)};var setupLink=function(link){if(name=getGalleryName(link)){if(!galleries[name]){galleries[name]=[]}galleries[name].push(Shadowbox.buildLinkObj(link))}if(Shadowbox.isSetup){SL.removeEvent(link,"click",handleClick)}SL.addEvent(link,"click",handleClick)};var unsupported_re=/^unsupported-(\w+)/;var handleClick=function(ev){var link;if(typeof this.tagName=="string"&&this.tagName.toUpperCase()=="A"){link=this}else{link=SL.getTarget(ev);while(link.tagName.toUpperCase()!="A"&&link.parentNode){link=link.parentNode}}var name=getGalleryName(link);if(name){current_gallery=galleries[name];var href=link.href;for(var i=0,len=current_gallery.length;i<len;++i){if(current_gallery[i].href==href){current=i;break}}}else{current_gallery=[Shadowbox.buildLinkObj(link)];current=0}var match;for(var i=0;i<current_gallery.length;++i){if(match=unsupported_re.exec(current_gallery[i].type)){if(options.handleUnsupported=="link"){current_gallery[i].type="msg";switch(match[1]){case"qtwmp":current_gallery[i].message=String.format(options.errors.templates.either,options.errors.qt.url,options.errors.qt.name,options.errors.wmp.url,options.errors.wmp.name);break;case"qtf4m":current_gallery[i].message=String.format(options.errors.templates.shared,options.errors.qt.url,options.errors.qt.name,options.errors.f4m.url,options.errors.f4m.name);break;default:if(match[1]=="swf"||match[1]=="flv"){match[1]="fla"}current_gallery[i].message=String.format(options.errors.templates.single,options.errors[match[1]].url,options.errors[match[1]].name)}}else{var removed=current_gallery.splice(i,1);if(i<current){--current}--i}}}if(current_gallery.length){SL.preventDefault(ev);Shadowbox.open(link)}};var buildBars=function(){var link=current_gallery[current];if(!link){return }var title_i=SL.get("shadowbox_title_inner");var tool_i=SL.get("shadowbox_toolbar_inner");title_i.innerHTML=(link.title)?link.title:"";tool_i.innerHTML="";if(options.displayNav){tool_i.innerHTML=options.skin.nav.close;if(current_gallery.length>1){if(options.continuous){appendHTML(tool_i,options.skin.nav.next);appendHTML(tool_i,options.skin.nav.prev)}else{if((current_gallery.length-1)>current){appendHTML(tool_i,options.skin.nav.next)}if(current>0){appendHTML(tool_i,options.skin.nav.prev)}}}}if(current_gallery.length>1&&options.displayCounter){appendHTML(tool_i,options.skin.counter);var counter="";if(options.counterType=="skip"){for(var i=0,len=current_gallery.length;i<len;++i){counter+='<a href="javascript:Shadowbox.change('+i+');"';if(i==current){counter+=' class="shadowbox_counter_current"'}counter+=">"+(i+1)+"</a>"}}else{counter=(current+1)+" of "+current_gallery.length}overwriteHTML("shadowbox_counter",counter)}};var hideBars=function(callback){var title_m=getComputedHeight(SL.get("shadowbox_title"));var tool_m=0-getComputedHeight(SL.get("shadowbox_toolbar"));var title_i=SL.get("shadowbox_title_inner");var tool_i=SL.get("shadowbox_toolbar_inner");if(callback){SL.animate(title_i,{marginTop:{to:title_m}},0.2);SL.animate(tool_i,{marginTop:{to:tool_m}},0.2,callback)}else{SL.setStyle(title_i,"marginTop",title_m+"px");SL.setStyle(tool_i,"marginTop",tool_m+"px")}};var showBars=function(callback){var title_i=SL.get("shadowbox_title_inner");if(options.animate){if(title_i.innerHTML!=""){SL.animate(title_i,{marginTop:{to:0}},0.35)}SL.animate(SL.get("shadowbox_toolbar_inner"),{marginTop:{to:0}},0.35,callback)}else{if(title_i.innerHTML!=""){SL.setStyle(title_i,"margin-top","0px")}SL.setStyle(SL.get("shadowbox_toolbar_inner"),"margin-top","0px");callback()}};var setContent=function(obj){var id="shadowbox_content";var content=SL.get(id);if(content){switch(content.tagName.toUpperCase()){case"OBJECT":var link=current_gallery[(obj?current-1:current)];if(link.type=="wmp"&&isIE){try{shadowbox_content.controls.stop();shadowbox_content.URL="non-existent.wmv";window.shadowbox_content=function(){}}catch(e){}}else{if(link.type=="qt"&&isSafari){try{document.shadowbox_content.Stop()}catch(e){}content.innerHTML=""}}setTimeout(function(){SL.remove(content)},10);break;case"IFRAME":SL.remove(content);if(isGecko){delete window.frames[id]}break;default:SL.remove(content)}}if(obj){if(!obj.id){obj.id=id}return appendHTML("shadowbox_body_inner",Shadowbox.createHTML(obj))}return null};var drag=null;var draggable=null;var resetDrag=function(){drag={x:0,y:0,start_x:null,start_y:null}};var toggleDrag=function(on){if(on){resetDrag();SL.addEvent(SL.get("shadowbox_drag_layer"),"mousedown",listenDrag)}else{var d=SL.get("shadowbox_drag_layer");if(d){SL.removeEvent(d,"mousedown",listenDrag);SL.remove(d)}}};var listenDrag=function(ev){drag.start_x=ev.clientX;drag.start_y=ev.clientY;draggable=SL.get("shadowbox_content");SL.addEvent(document,"mousemove",positionDrag);SL.addEvent(document,"mouseup",unlistenDrag);if(isGecko){SL.setStyle(SL.get("shadowbox_drag_layer"),"cursor","-moz-grabbing")}};var unlistenDrag=function(){SL.removeEvent(document,"mousemove",positionDrag);SL.removeEvent(document,"mouseup",unlistenDrag);if(isGecko){SL.setStyle(SL.get("shadowbox_drag_layer"),"cursor","-moz-grab")}};var positionDrag=function(ev){var move_y=ev.clientY-drag.start_y;drag.start_y=drag.start_y+move_y;drag.y=Math.max(Math.min(0,drag.y+move_y),current_height-optimal_height);SL.setStyle(draggable,"top",drag.y+"px");var move_x=ev.clientX-drag.start_x;drag.start_x=drag.start_x+move_x;drag.x=Math.max(Math.min(0,drag.x+move_x),current_width-optimal_width);SL.setStyle(draggable,"left",drag.x+"px")};var loadContent=function(){var link=current_gallery[current];if(!link){return }buildBars();switch(link.type){case"img":preloader=new Image();preloader.onload=function(){resizeContent(preloader.height,preloader.width,function(dims){showBars(function(){setContent({tag:"img",height:dims.i_height,width:dims.i_width,src:link.href,style:"position:absolute"});if(dims.enableDrag&&options.handleLgImages=="drag"){var styles=["position:absolute","width:"+dims.i_width+"px","height:"+dims.i_height+"px","cursor:"+(isGecko?"-moz-grab":"move")];styles.push(isIE?"background-color:#fff;filter:alpha(opacity=0)":"background-color:transparent");appendHTML("shadowbox_body_inner",'<div id="shadowbox_drag_layer" style="'+styles.join(";")+'"></div>');toggleDrag(true)}finishContent()})});preloader.onload=function(){}};preloader.src=link.href;break;case"swf":case"flv":case"qt":case"wmp":var markup=Shadowbox.movieMarkup(link);resizeContent(markup.height,markup.width,function(){showBars(function(){setContent(markup);finishContent()})});break;case"external":var height=link.height?parseInt(link.height,10):getViewportHeight();var width=link.width?parseInt(link.width,10):getViewportWidth();var content={tag:"iframe",name:"shadowbox_content",height:"100%",width:"100%",frameborder:"0",marginwidth:"0",marginheight:"0",scrolling:"auto"};resizeContent(height,660,function(){showBars(function(){setContent(content);var win=(isIE)?SL.get("shadowbox_content").contentWindow:window.frames.shadowbox_content;win.location=link.href;finishContent()})});break;case"msg":var height=options.initialHeight;var width=options.initialWidth;var content={tag:"div",cls:"shadowbox_message",html:link.message};resizeContent(height,width,function(){showBars(function(){setContent(content);finishContent()})});break;case"unsupported":throw"Content type cannot be determined for "+link.href;break}if(current_gallery.length>0){var next=current_gallery[current+1];if(!next){next=current_gallery[0]}if(next.type=="img"){var preload_next=new Image();preload_next.src=next.href}var prev=current_gallery[current-1];if(!prev){prev=current_gallery[current_gallery.length-1]}if(prev.type=="img"){var preload_prev=new Image();preload_prev.src=prev.href}}};var finishContent=function(){var link=current_gallery[current];if(!link){return }hideLoading(function(){if(options.onClose&&typeof options.onClose=="function"){options.onClose(SL.get(link.id))}listenKeyboard(true)})};var resizeContent=function(height,width,callback){optimal_height=height;optimal_width=width;var dims=getDimensions(optimal_height,optimal_width);if(callback){adjustWidth(dims.width,true,function(){adjustHeight(dims.height,dims.top,true,function(){callback(dims)})})}else{adjustWidth(dims.width,false);adjustHeight(dims.height,dims.top,false);var content=SL.get("shadowbox_content");if(content&&content.tagName.toUpperCase()=="IMG"&&options.handleLgImages=="resize"){content.height=dims.height;content.width=dims.width}}};var getDimensions=function(o_height,o_width){var height=o_height=parseInt(o_height);var width=o_width=parseInt(o_width);var shadowbox_b=SL.get("shadowbox_body");var view_height=getViewportHeight();var extra_height=parseInt(SL.getStyle(shadowbox_b,"border-top-width"),10)+parseInt(SL.getStyle(shadowbox_b,"border-bottom-width"),10)+parseInt(SL.getStyle(shadowbox_b,"margin-top"),10)+parseInt(SL.getStyle(shadowbox_b,"margin-bottom"),10)+getComputedHeight(SL.get("shadowbox_title"))+getComputedHeight(SL.get("shadowbox_toolbar"))+(2*options.viewportPadding);if((height+extra_height)>=view_height){height=view_height-extra_height}var view_width=getViewportWidth();var extra_body_width=parseInt(SL.getStyle(shadowbox_b,"border-left-width"),10)+parseInt(SL.getStyle(shadowbox_b,"border-right-width"),10)+parseInt(SL.getStyle(shadowbox_b,"margin-left"),10)+parseInt(SL.getStyle(shadowbox_b,"margin-right"),10);var extra_width=extra_body_width+(2*options.viewportPadding);if((width+extra_width)>=view_width){width=view_width-extra_width}var enableDrag=false;var i_height=o_height;var i_width=o_width;var h=options.handleLgImages=="resize"||options.handleLgImages=="drag";if(h){var change_h=(o_height-height)/o_height;var change_w=(o_width-width)/o_width;if(options.handleLgImages=="resize"){if(change_h>change_w){width=Math.round((o_width/o_height)*height)}else{if(change_w>change_h){height=Math.round((o_height/o_width)*width)}}i_width=width;i_height=height}else{enableDrag=change_h>0||change_w>0}}return{height:height,width:width+extra_body_width,i_height:i_height,i_width:i_width,top:((view_height-(height+extra_height))/2)+options.viewportPadding,enableDrag:enableDrag}};var centerVertically=function(){var shadowbox=SL.get("shadowbox");var scroll=document.documentElement.scrollTop;var s_top=scroll+Math.round((getViewportHeight()-(shadowbox.offsetHeight||0))/2);SL.setStyle(shadowbox,"top",s_top+"px")};var adjustHeight=function(height,top,animate,callback){height=parseInt(height);current_height=height;var sbi=SL.get("shadowbox_body_inner");if(animate&&options.animate){SL.animate(sbi,{height:{to:height}},options.resizeDuration,callback)}else{SL.setStyle(sbi,"height",height+"px");if(typeof callback=="function"){callback()}}if(absolute_pos){centerVertically();SL.addEvent(window,"scroll",centerVertically);top+=document.documentElement.scrollTop}var shadowbox=SL.get("shadowbox");if(animate&&options.animate){SL.animate(shadowbox,{top:{to:top}},options.resizeDuration)}else{SL.setStyle(shadowbox,"top",top+"px")}};var adjustWidth=function(width,animate,callback){width=parseInt(width);current_width=width;var shadowbox=SL.get("shadowbox");if(animate&&options.animate){SL.animate(shadowbox,{width:{to:width}},options.resizeDuration,callback)}else{SL.setStyle(shadowbox,"width",width+"px");if(typeof callback=="function"){callback()}}};var listenKeyboard=function(on){if(!options.enableKeys){return }if(on){document.onkeydown=handleKey}else{document.onkeydown=""}};var assertKey=function(valid,key,code){return(valid.indexOf(key)!=-1||valid.indexOf(code)!=-1)};var handleKey=function(e){var code=e?e.which:event.keyCode;var key=String.fromCharCode(code).toLowerCase();if(assertKey(options.keysClose,key,code)){Shadowbox.close()}else{if(assertKey(options.keysPrev,key,code)){Shadowbox.previous()}else{if(assertKey(options.keysNext,key,code)){Shadowbox.next()}}}};var toggleTroubleElements=function(on){var vis=(on?"visible":"hidden");var selects=document.getElementsByTagName("select");for(i=0,len=selects.length;i<len;++i){selects[i].style.visibility=vis}var objects=document.getElementsByTagName("object");for(i=0,len=objects.length;i<len;++i){objects[i].style.visibility=vis}var embeds=document.getElementsByTagName("embed");for(i=0,len=embeds.length;i<len;++i){embeds[i].style.visibility=vis}};var showLoading=function(){var loading=SL.get("shadowbox_loading");loading.style.visibility="visible"};var hideLoading=function(callback){var content=current_gallery[current];var anim=(content.type=="img");var loading=SL.get("shadowbox_loading");if(anim){fadeOut(loading,0.35,callback)}else{loading.style.visibility="hidden";callback()}};var resizeOverlay=function(){var overlay=SL.get("shadowbox_overlay");SL.setStyle(overlay,{height:"100%",width:"100%"});SL.setStyle(overlay,{height:getDocumentHeight()+"px"})};var checkOverlayImgNeeded=function(){if(!(isGecko&&isMac)){return false}var type;for(var i=0,len=current_gallery.length;i<len;++i){type=current_gallery[i].type;if(type!="img"&&type!="msg"){return true}}return false};var overlay_img_needed=null;var toggleOverlay=function(callback){var overlay=SL.get("shadowbox_overlay");if(overlay_img_needed==null){overlay_img_needed=checkOverlayImgNeeded()}if(callback){resizeOverlay();if(overlay_img_needed){SL.setStyle(overlay,{visibility:"visible",backgroundColor:"transparent",backgroundImage:"url("+options.overlayBgImage+")",backgroundRepeat:"repeat",opacity:1});callback()}else{SL.setStyle(overlay,{visibility:"visible",backgroundColor:options.overlayColor,backgroundImage:"none"});fadeIn(overlay,options.overlayOpacity,options.fadeDuration,callback)}}else{if(overlay_img_needed){SL.setStyle(overlay,"visibility","hidden")}else{fadeOut(overlay,options.fadeDuration)}overlay_img_needed=null}};var applyProps=function(orig,ext){for(var p in ext){orig[p]=ext[p]}return orig};var isInitialized=false;Shadowbox.init=function(default_options){if(isInitialized){return }options=applyProps(options,default_options||{});Shadowbox.setup();options.skin.main=options.skin.main.replace(/\{loading_img_replace\}/,options.loadingImage);appendHTML(document.body,options.skin.main);var id=null;var resize=function(){clearInterval(id);id=null;resizeOverlay();resizeContent(optimal_height,optimal_width)};SL.addEvent(window,"resize",function(){if(activated){if(id){clearInterval(id);id=null}id=setInterval(resize,500)}});SL.addEvent(SL.get("shadowbox_overlay"),"click",function(){Shadowbox.close()});if(absolute_pos){SL.setStyle(SL.get("shadowbox_container"),"position","absolute");SL.setStyle("shadowbox_body","zoom",1);SL.addEvent(SL.get("shadowbox_container"),"click",function(e){var target=SL.getTarget(e);if(target.id&&target.id=="shadowbox_container"){Shadowbox.close()}})}isInitialized=true};Shadowbox.isSetup=false;Shadowbox.setup=function(){galleries=[];var links=document.getElementsByTagName("a");var rel_re=/^shadowbox/i,rel;for(var i=0,len=links.length;i<len;++i){rel=links[i].getAttribute("rel");if(rel&&rel_re.test(rel)){setupLink(links[i])}}this.isSetup=true};var default_options=null;Shadowbox.open=function(link){if(activated){return }activated=true;if(default_options){options=default_options;default_options=null}if(current_gallery[current].options){default_options=applyProps({},options);options=applyProps(options,current_gallery[current].options)}if(options.onOpen&&typeof options.onOpen=="function"){options.onOpen(link)}SL.setStyle(SL.get("shadowbox"),"display","block");toggleTroubleElements(false);var dims=getDimensions(options.initialHeight,options.initialWidth);adjustHeight(dims.height,dims.top);adjustWidth(dims.width);hideBars(false);toggleOverlay(function(){SL.setStyle(SL.get("shadowbox"),"visibility","visible");showLoading();loadContent()})};Shadowbox.change=function(num){if(!current_gallery){return }if(!current_gallery[num]){if(!options.continuous){return }else{num=(num<0)?(current_gallery.length-1):0}}toggleDrag(false);setContent(null);listenKeyboard(false);current=num;showLoading();hideBars(loadContent)};Shadowbox.next=function(){this.change(current+1)};Shadowbox.previous=function(){this.change(current-1)};Shadowbox.close=function(){if(!activated){return }listenKeyboard(false);SL.setStyle(SL.get("shadowbox"),{display:"none",visibility:"hidden"});toggleTroubleElements(true);if(absolute_pos){SL.removeEvent(window,"scroll",centerVertically)}toggleDrag(false);setContent(null);if(preloader){preloader.onload=function(){};preloader=null}toggleOverlay(false);activated=false};var param_re=/\s*([a-z_]*?)\s*=\s*(.+)\s*/;var extension_re=/\.([a-z]+)(\?|#|$)/;Shadowbox.buildLinkObj=function(link){var href=link.href;var match=href.match(extension_re);var ext=(match?match[1].toLowerCase():"");var obj={id:link.id,title:link.getAttribute("title"),href:href,type:getPlayerType(href),extension:ext};var params=link.getAttribute("rel").split(";");if(params.length>1){params.shift();var match;for(var i=0,len=params.length;i<len;++i){match=params[i].match(param_re);if(match){if(match[1]=="options"){eval("obj.options = "+match[2])}else{obj[match[1]]=match[2]}}}}return obj};Shadowbox.movieMarkup=function(link){var height=link.height?parseInt(link.height):300;var width=link.width?parseInt(link.width):300;var autoplay=options.autoplayMovies;var controls=options.showMovieControls;if(link.options){if(link.options.autoplayMovies!=null){autoplay=link.options.autoplayMovies}if(link.options.showMovieControls!=null){controls=link.options.showMovieControls}}var markup={tag:"object",name:"shadowbox_content"};switch(link.type){case"swf":markup.type="application/x-shockwave-flash";markup.data=link.href;markup.children=[{tag:"param",name:"movie",value:link.href}];break;case"flv":autoplay=autoplay?"true":"false";var displayheight=height;var showicons="false";if(controls){showicons="true";height+=20}var flashvars=["file="+link.href,"height="+height,"width="+width,"autostart="+autoplay,"displayheight="+displayheight,"showicons="+showicons,"backcolor=0x000000&amp;frontcolor=0xCCCCCC&amp;lightcolor=0x557722"];markup.type="application/x-shockwave-flash";markup.data=options.flvPlayer;markup.children=[{tag:"param",name:"movie",value:options.flvPlayer},{tag:"param",name:"flashvars",value:flashvars.join("&amp;")},{tag:"param",name:"allowfullscreen",value:"true"}];break;case"qt":autoplay=autoplay?"true":"false";if(controls){controls="true";height+=16}else{controls="false"}markup.children=[{tag:"param",name:"src",value:link.href},{tag:"param",name:"scale",value:"aspect"},{tag:"param",name:"controller",value:controls},{tag:"param",name:"autoplay",value:autoplay}];if(navigator.plugins&&navigator.plugins.length){markup.type="video/quicktime";markup.data=link.href}else{markup.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B";markup.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"}break;case"wmp":autoplay=autoplay?1:0;markup.children=[{tag:"param",name:"autostart",value:autoplay}];if(navigator.plugins&&navigator.plugins.length){if(controls){controls=1;height+=45}else{controls=0}markup.type="video/x-ms-wmv";markup.data=link.href;markup.children[markup.children.length]={tag:"param",name:"showcontrols",value:controls}}else{if(controls){controls="full";height+=70}else{controls="none"}markup.classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6";markup.children[markup.children.length]={tag:"param",name:"url",value:link.href};markup.children[markup.children.length]={tag:"param",name:"uimode",value:controls}}break}markup.height=height;markup.width=width;return markup};var empty_re=/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i;Shadowbox.createHTML=function(obj){var html="<"+obj.tag;for(var attr in obj){if(attr=="tag"||attr=="children"){continue}if(attr=="cls"){html+=' class="'+obj.cls+'"'}else{html+=" "+attr+'="'+obj[attr]+'"'}}if(empty_re.test(obj.tag)){html+="/>\n"}else{html+=">\n";var cn=obj.children;if(cn){for(var i=0,len=cn.length;i<len;++i){html+=this.createHTML(cn[i])}}html+="</"+obj.tag+">\n"}return html};Shadowbox.getPlugins=function(){return plugins};Shadowbox.getOptions=function(){return options}})();Array.prototype.indexOf=Array.prototype.indexOf||function(C){for(var B=0,A=this.length;B<A;++B){if(this[B]==C){return B}}return -1};String.format=String.format||function(B){var A=Array.prototype.slice.call(arguments,1);return B.replace(/\{(\d+)\}/g,function(C,D){return A[D]})};var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);
/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/
return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();function createCookie(C,D,E){if(E){var B=new Date();B.setTime(B.getTime()+(E*24*60*60*1000));var A="; expires="+B.toGMTString()}else{var A=""}document.cookie=C+"="+D+A+"; path=/"}function readCookie(B){var D=B+"=";var A=document.cookie.split(";");for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D)==0){return E.substring(D.length,E.length)}}return null}(function(){if(!readCookie("intro.desactivar")&&section=="inicio"){window.location.href=site_url+"/intro/"}if(section=="intro"){createCookie("intro.desactivar",1)}}());function isLinux(){return/Linux/.test(navigator.platform)}var Sarraipa=function(){var D,B;var E=70,C=40;var A={normal:58,small:45,big:84};return{init:function(){D=$("#container");B=$("#servicos-menu");$(document.body).click(function(){if(B.css("display")=="block"){B.hide()}});this.render();$("#column h2 span, #content h2").dynatext({url:"http://www.sarraipa.pt/media/dynatext/",wordwrap:false});$("body#contactos #column h3").dynatext({url:"http://www.sarraipa.pt/media/dynatext/",wordwrap:false,size:15,font:"./fonts/Forgotte.ttf"});$("body#servicos #column h3").dynatext({url:"http://www.sarraipa.pt/media/dynatext/",wordwrap:false,size:15,font:"./fonts/Forgotte.ttf"});swfobject.embedSWF(site_url+"/media/swf/src/nav2.swf","nav","540","50","8.0.0",null,{site_url:site_url},{swliveconnect:"true"});$("#empresa .foto").each(function(){var I=$("img",this).hide().get(0);$(this).css("background-image","url("+I.src+")")});$("#empresa").cycle();this.temFilme=false;var H=$("#filmes");if(H.size()>0){swfobject.embedSWF(media_url+"swf/videoplayer.swf","filmes","300","176","8.0.0",null,{file:site_url+"/slideshow/videos/",displayheight:176,displaywidth:300,site_url:site_url+"/",height:176,width:300,rotatetime:4,autostart:"true",repeat:"true",shuffle:"true",overstretch:"true",smoothing:"true"},{wmode:"transparent"});if(swfobject.getFlashPlayerVersion().major==0){$("#filmes div").css("display","block")}this.filme=H;this.temFilme=true}else{$("#slideshow .slide").each(function(){var I=$("img",this).hide().get(0);$(this).css("background-image","url("+I.src+")")});$("#slideshow .slide-info").css("opacity",0.8);$("#slideshow").cycle({fx:"turnDown"})}$("#marcas-slide").cycle({fx:"turnDown"});var F=$("#header-nav .kwick");var G=$("#header-nav .nav-info").hide();$("#header-nav a.toggler").each(function(I){var K=F.get(I),J=G.get(I);$(this).mouseover(function(){F.stopAll().not(K).animate({height:A.small,backgroundColor:"#444444"},300,"linear");$(K).stopAll().animate({height:A.big,backgroundColor:"#00AE00"},300,"linear")})});$("#header-nav").mouseout(function(){F.stopAll().animate({height:A.normal,backgroundColor:"#444444"},300,"linear")})},render:function(){if(!D){return }if(!$.browser.msie){var F=$(window).height();D.height("height",F-(E+C))}B.css("left",$("#header").get(0).offsetLeft+650)},setIntro:function(){$("#empresa .foto").each(function(){var F=$("img",this).hide().get(0);$(this).css("background-image","url("+F.src+")")});$("#empresa").cycle({timeout:3000,speed:800});swfobject.embedSWF(site_url+"/media/swf/src/intro.swf","intro","550","345","8.0.0",media_url+"swf/expressInstall.swf",{site_url:site_url+"/"},{bgcolor:"#065C23"});if(swfobject.getFlashPlayerVersion().major==0){$("#intro-entrar, #flash-install").css("display","block")}},showMenuServicos:function(){if(B.css("display")=="none"){if(this.temFilme&&isLinux()){this.filme.hide()}B.show()}else{if(this.temFilme&&isLinux()){this.filme.show()}B.hide()}},hideMenuServicos:function(){$("#servicos-menu").slideUp(500)}}}();Sarraipa.Newsletter=function(){return{init:function(){$("#subscrever-form").submit(function(){$("#newsletter-loading").show();$.post($(this).attr("action"),{email:$("#email-input").val()},function(A){$("#mensagem").hide(500).html("<p>"+A+"</p>").show(500);$("#newsletter-loading").hide()});return false})}}}();Sarraipa.Localizacao=function(){var D="ABQIAAAAN-9J1beC873KRHV24wJI2hRoJiQTfXcTlH3Bh1XEBJJgctfKfBREWGIYehu15Z55lUwzeYchEhdXqA";var B=["<h3>Sarraipa, Lda<br /><small>Serviços centrais</small></h3><p>Rua das Flores Carreira D’Água<br />Barosa APARTADO 3028</p>","<h3>Sarraipa, Lda<br /><small>Filial norte</small></h3><p>Rua de S. Caetano, 359/375<br />Zona Industrial S. Caetano<br />4405-821 Gaia - Portugal</p>"];var C=[{latitude:39.7523285759,longitude:-8.8670639319},{latitude:41.095975753,longitude:-8.60422384628}];if(section=="quem-somos"){document.write('<script type="text/javascript" src="http://maps.google.com/maps?file=api&amp;v=2&amp;t=h&amp;key='+D+'"><\/script>')}var A;return{init:function(){A=$("#mapa-google");if(!GBrowserIsCompatible()||!A){return }var G=new GMap2(A.get(0));G.setCenter(new GLatLng(C[0].latitude,C[0].longitude),7);G.addControl(new GSmallZoomControl());G.addControl(new GMapTypeControl());var E=new GMarker(new GPoint(C[0].longitude,C[0].latitude));var F=new GMarker(new GPoint(C[1].longitude,C[1].latitude));G.addOverlay(F);G.addOverlay(E);GEvent.addListener(E,"click",function(){E.openInfoWindowHtml(B[0])});GEvent.addListener(F,"click",function(){F.openInfoWindowHtml(B[1])});if(window.location.href.indexOf("#filial-norte")>=0){F.openInfoWindowHtml(B[1])}else{E.openInfoWindowHtml(B[0])}$("#mapa-central").click(function(){E.openInfoWindowHtml(B[0])});$("#mapa-norte").click(function(){F.openInfoWindowHtml(B[1])})}}}();$(document).ready(function(){if(section!="intro"){Sarraipa.init.call(Sarraipa);$(window).bind("resize",Sarraipa.render)}else{Sarraipa.setIntro()}if(section=="newsletters"){Sarraipa.Newsletter.init.call(Sarraipa.Newsletter)}if(section=="quem-somos"&&window.location.pathname.indexOf("/como-chegar/")>0){Sarraipa.Localizacao.init.call(Sarraipa.Localizacao)}$(".campanha .info, .newsletter-imagem .numero").css("opacity",0.9);if(typeof Shadowbox!="undefined"){Shadowbox.init({animate:true,handleLgImages:"none",loadingImage:media_url+"img/design/shadowbox/loading.gif",overlayBgImage:media_url+"img/design/shadowbox/overlay-85.png"})}});jQuery.fn.dynatext=function(A){return this.each(function(){var B=$(this),C=B.text();(A.wrap?$(C.split(" ")):$([C])).each(function(){var D=A.url+"index.php?text="+escape(this+" ");if(A.size){D=D+"&size="+escape(A.size)}if(A.font){D=D+"&font="+escape(A.font)}B.addClass("dynatext").css("backgroundImage","url("+D+")")})})};jQuery.fn.offsetTop=function(){var A=this.get(0);if(!A.offsetParent){return A.offsetTop}return A.offsetTop+$(A.offsetParent).offsetTop()};
