(function(){var W=this,AB,F=W.jQuery,S=W.$,T=W.jQuery=W.$=function(B,A){return new T.fn.init(B,A)},M=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,AC=/^.[^:#\[\.,]*$/;T.fn=T.prototype={init:function(b,B){b=b||document;if(b.nodeType){this[0]=b;this.length=1;this.context=b;return this}if(typeof b==="string"){var C=M.exec(b);if(C&&(C[1]||!B)){if(C[1]){b=T.clean([C[1]],B)}else{var A=document.getElementById(C[3]);if(A&&A.id!=C[3]){return T().find(b)}var D=T(A||[]);D.context=document;D.selector=b;return D}}else{return T(B).find(b)}}else{if(T.isFunction(b)){return T(document).ready(b)}}if(b.selector&&b.context){this.selector=b.selector;this.context=b.context}return this.setArray(T.isArray(b)?b:T.makeArray(b))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(A){return A===AB?Array.prototype.slice.call(this):this[A]},pushStack:function(C,A,D){var B=T(C);B.prevObject=this;B.context=this.context;if(A==="find"){B.selector=this.selector+(this.selector?" ":"")+D}else{if(A){B.selector=this.selector+"."+A+"("+D+")"}}return B},setArray:function(A){this.length=0;Array.prototype.push.apply(this,A);return this},each:function(A,B){return T.each(this,A,B)},index:function(A){return T.inArray(A&&A.jquery?A[0]:A,this)},attr:function(C,A,B){var D=C;if(typeof C==="string"){if(A===AB){return this[0]&&T[B||"attr"](this[0],C)}else{D={};D[C]=A}}return this.each(function(b){for(C in D){T.attr(B?this.style:this,C,T.prop(this,D[C],B,b,C))}})},css:function(B,A){if((B=="width"||B=="height")&&parseFloat(A)<0){A=AB}return this.attr(B,A,"curCSS")},text:function(A){if(typeof A!=="object"&&A!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(A))}var B="";T.each(A||this,function(){T.each(this.childNodes,function(){if(this.nodeType!=8){B+=this.nodeType!=1?this.nodeValue:T.fn.text([this])}})});return B},wrapAll:function(B){if(this[0]){var A=T(B,this[0].ownerDocument).clone();if(this[0].parentNode){A.insertBefore(this[0])}A.map(function(){var C=this;while(C.firstChild){C=C.firstChild}return C}).append(this)}return this},wrapInner:function(A){return this.each(function(){T(this).contents().wrapAll(A)})},wrap:function(A){return this.each(function(){T(this).wrapAll(A)})},append:function(){return this.domManip(arguments,true,function(A){if(this.nodeType==1){this.appendChild(A)}})},prepend:function(){return this.domManip(arguments,true,function(A){if(this.nodeType==1){this.insertBefore(A,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(A){this.parentNode.insertBefore(A,this)})},after:function(){return this.domManip(arguments,false,function(A){this.parentNode.insertBefore(A,this.nextSibling)})},end:function(){return this.prevObject||T([])},push:[].push,sort:[].sort,splice:[].splice,find:function(B){if(this.length===1){var A=this.pushStack([],"find",B);A.length=0;T.find(B,this[0],A);return A}else{return this.pushStack(T.unique(T.map(this,function(C){return T.find(B,C)})),"find",B)}},clone:function(B){var D=this.map(function(){if(!T.support.noCloneEvent&&!T.isXMLDoc(this)){var c=this.outerHTML;if(!c){var b=this.ownerDocument.createElement("div");b.appendChild(this.cloneNode(true));c=b.innerHTML}return T.clean([c.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(B===true){var A=this.find("*").andSelf(),C=0;D.find("*").andSelf().each(function(){if(this.nodeName!==A[C].nodeName){return }var d=T.data(A[C],"events");for(var b in d){for(var c in d[b]){T.event.add(this,b,d[b][c],d[b][c].data)}}C++})}return D},filter:function(A){return this.pushStack(T.isFunction(A)&&T.grep(this,function(B,C){return A.call(B,C)})||T.multiFilter(A,T.grep(this,function(B){return B.nodeType===1})),"filter",A)},closest:function(C){var A=T.expr.match.POS.test(C)?T(C):null,B=0;return this.map(function(){var D=this;while(D&&D.ownerDocument){if(A?A.index(D)>-1:T(D).is(C)){T.data(D,"closest",B);return D}D=D.parentNode;B++}})},not:function(B){if(typeof B==="string"){if(AC.test(B)){return this.pushStack(T.multiFilter(B,this,true),"not",B)}else{B=T.multiFilter(B,this)}}var A=B.length&&B[B.length-1]!==AB&&!B.nodeType;return this.filter(function(){return A?T.inArray(this,B)<0:this!=B})},add:function(A){return this.pushStack(T.unique(T.merge(this.get(),typeof A==="string"?T(A):T.makeArray(A))))},is:function(A){return !!A&&T.multiFilter(A,this).length>0},hasClass:function(A){return !!A&&this.is("."+A)},val:function(C){if(C===AB){var g=this[0];if(g){if(T.nodeName(g,"option")){return(g.attributes.value||{}).specified?g.value:g.text}if(T.nodeName(g,"select")){var b=g.selectedIndex,B=[],A=g.options,c=g.type=="select-one";if(b<0){return null}for(var f=c?b:0,D=c?b+1:A.length;f<D;f++){var d=A[f];if(d.selected){C=T(d).val();if(c){return C}B.push(C)}}return B}return(g.value||"").replace(/\r/g,"")}return AB}if(typeof C==="number"){C+=""}return this.each(function(){if(this.nodeType!=1){return }if(T.isArray(C)&&/radio|checkbox/.test(this.type)){this.checked=(T.inArray(this.value,C)>=0||T.inArray(this.name,C)>=0)}else{if(T.nodeName(this,"select")){var h=T.makeArray(C);T("option",this).each(function(){this.selected=(T.inArray(this.value,h)>=0||T.inArray(this.text,h)>=0)});if(!h.length){this.selectedIndex=-1}}else{this.value=C}}})},html:function(A){return A===AB?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(A)},replaceWith:function(A){return this.after(A).remove()},eq:function(A){return this.slice(A,+A+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(A){return this.pushStack(T.map(this,function(B,C){return A.call(B,C,B)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(D,A,B){if(this[0]){var b=(this[0].ownerDocument||this[0]).createDocumentFragment(),f=T.clean(D,(this[0].ownerDocument||this[0]),b),c=b.firstChild;if(c){for(var d=0,g=this.length;d<g;d++){B.call(C(this[d],c),this.length>1||d>0?b.cloneNode(true):b)}}if(f){T.each(f,E)}}return this;function C(k,h){return A&&T.nodeName(k,"table")&&T.nodeName(h,"tr")?(k.getElementsByTagName("tbody")[0]||k.appendChild(k.ownerDocument.createElement("tbody"))):k}}};T.fn.init.prototype=T.fn;function E(B,A){if(A.src){T.ajax({url:A.src,async:false,dataType:"script"})}else{T.globalEval(A.text||A.textContent||A.innerHTML||"")}if(A.parentNode){A.parentNode.removeChild(A)}}function AD(){return +new Date}T.extend=T.fn.extend=function(){var C=arguments[0]||{},b=1,D=arguments.length,f=false,c;if(typeof C==="boolean"){f=C;C=arguments[1]||{};b=2}if(typeof C!=="object"&&!T.isFunction(C)){C={}}if(D==b){C=this;--b}for(;b<D;b++){if((c=arguments[b])!=null){for(var d in c){var B=C[d],A=c[d];if(C===A){continue}if(f&&A&&typeof A==="object"&&!A.nodeType){C[d]=T.extend(f,B||(A.length!=null?[]:{}),A)}else{if(A!==AB){C[d]=A}}}}}return C};var AG=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},L=Object.prototype.toString;T.extend({noConflict:function(A){W.$=S;if(A){W.jQuery=F}return T},isFunction:function(A){return L.call(A)==="[object Function]"},isArray:function(A){return L.call(A)==="[object Array]"},isXMLDoc:function(A){return A.nodeType===9&&A.documentElement.nodeName!=="HTML"||!!A.ownerDocument&&T.isXMLDoc(A.ownerDocument)},globalEval:function(A){if(A&&/\S/.test(A)){var B=document.getElementsByTagName("head")[0]||document.documentElement,C=document.createElement("script");C.type="text/javascript";if(T.support.scriptEval){C.appendChild(document.createTextNode(A))}else{C.text=A}B.insertBefore(C,B.firstChild);B.removeChild(C)}},nodeName:function(A,B){return A.nodeName&&A.nodeName.toUpperCase()==B.toUpperCase()},each:function(b,A,c){var d,D=0,C=b.length;if(c){if(C===AB){for(d in b){if(A.apply(b[d],c)===false){break}}}else{for(;D<C;){if(A.apply(b[D++],c)===false){break}}}}else{if(C===AB){for(d in b){if(A.call(b[d],d,b[d])===false){break}}}else{for(var B=b[0];D<C&&A.call(B,D,B)!==false;B=b[++D]){}}}return b},prop:function(B,A,C,D,b){if(T.isFunction(A)){A=A.call(B,D)}return typeof A==="number"&&C=="curCSS"&&!AG.test(b)?A+"px":A},className:{add:function(B,A){T.each((A||"").split(/\s+/),function(D,C){if(B.nodeType==1&&!T.className.has(B.className,C)){B.className+=(B.className?" ":"")+C}})},remove:function(B,A){if(B.nodeType==1){B.className=A!==AB?T.grep(B.className.split(/\s+/),function(C){return !T.className.has(A,C)}).join(" "):""}},has:function(A,B){return A&&T.inArray(B,(A.className||A).toString().split(/\s+/))>-1}},swap:function(B,C,A){var b={};for(var D in C){b[D]=B.style[D];B.style[D]=C[D]}A.call(B);for(var D in C){B.style[D]=b[D]}},css:function(b,d,C,f){if(d=="width"||d=="height"){var A,c={position:"absolute",visibility:"hidden",display:"block"},B=d=="width"?["Left","Right"]:["Top","Bottom"];function D(){A=d=="width"?b.offsetWidth:b.offsetHeight;if(f==="border"){return }T.each(B,function(){if(!f){A-=parseFloat(T.curCSS(b,"padding"+this,true))||0}if(f==="margin"){A+=parseFloat(T.curCSS(b,"margin"+this,true))||0}else{A-=parseFloat(T.curCSS(b,"border"+this+"Width",true))||0}})}if(b.offsetWidth!==0){D()}else{T.swap(b,c,D)}return Math.max(0,Math.round(A))}return T.curCSS(b,d,C)},curCSS:function(b,f,d){var B,g=b.style;if(f=="opacity"&&!T.support.opacity){B=T.attr(g,"opacity");return B==""?"1":B}if(f.match(/float/i)){f=H}if(!d&&g&&g[f]){B=g[f]}else{if(Q.getComputedStyle){if(f.match(/float/i)){f="float"}f=f.replace(/([A-Z])/g,"-$1").toLowerCase();var A=Q.getComputedStyle(b,null);if(A){B=A.getPropertyValue(f)}if(f=="opacity"&&B==""){B="1"}}else{if(b.currentStyle){var D=f.replace(/\-(\w)/g,function(k,h){return h.toUpperCase()});B=b.currentStyle[f]||b.currentStyle[D];if(!/^\d+(px)?$/i.test(B)&&/^\d/.test(B)){var c=g.left,C=b.runtimeStyle.left;b.runtimeStyle.left=b.currentStyle.left;g.left=B||0;B=g.pixelLeft+"px";g.left=c;b.runtimeStyle.left=C}}}}return B},clean:function(d,B,D){B=B||document;if(typeof B.createElement==="undefined"){B=B.ownerDocument||B[0]&&B[0].ownerDocument||document}if(!D&&d.length===1&&typeof d[0]==="string"){var b=/^<(\w+)\s*\/?>$/.exec(d[0]);if(b){return[B.createElement(b[1])]}}var c=[],f=[],A=B.createElement("div");T.each(d,function(l,g){if(typeof g==="number"){g+=""}if(!g){return }if(typeof g==="string"){g=g.replace(/(<(\w+)[^>]*?)\/>/g,function(s,r,t){return t.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?s:r+"></"+t+">"});var m=g.replace(/^\s+/,"").substring(0,10).toLowerCase();var k=!m.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!m.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||m.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!m.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!m.indexOf("<td")||!m.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!m.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!T.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];A.innerHTML=k[1]+g+k[2];while(k[0]--){A=A.lastChild}if(!T.support.tbody){var h=/<tbody/i.test(g),n=!m.indexOf("<table")&&!h?A.firstChild&&A.firstChild.childNodes:k[1]=="<table>"&&!h?A.childNodes:[];for(var p=n.length-1;p>=0;--p){if(T.nodeName(n[p],"tbody")&&!n[p].childNodes.length){n[p].parentNode.removeChild(n[p])}}}if(!T.support.leadingWhitespace&&/^\s/.test(g)){A.insertBefore(B.createTextNode(g.match(/^\s*/)[0]),A.firstChild)}g=T.makeArray(A.childNodes)}if(g.nodeType){c.push(g)}else{c=T.merge(c,g)}});if(D){for(var C=0;c[C];C++){if(T.nodeName(c[C],"script")&&(!c[C].type||c[C].type.toLowerCase()==="text/javascript")){f.push(c[C].parentNode?c[C].parentNode.removeChild(c[C]):c[C])}else{if(c[C].nodeType===1){c.splice.apply(c,[C+1,0].concat(T.makeArray(c[C].getElementsByTagName("script"))))}D.appendChild(c[C])}}return f}return c},attr:function(C,c,B){if(!C||C.nodeType==3||C.nodeType==8){return AB}var b=!T.isXMLDoc(C),A=B!==AB;c=b&&T.props[c]||c;if(C.tagName){var d=/href|src|style/.test(c);if(c=="selected"&&C.parentNode){C.parentNode.selectedIndex}if(c in C&&b&&!d){if(A){if(c=="type"&&T.nodeName(C,"input")&&C.parentNode){throw"type property can't be changed"}C[c]=B}if(T.nodeName(C,"form")&&C.getAttributeNode(c)){return C.getAttributeNode(c).nodeValue}if(c=="tabIndex"){var D=C.getAttributeNode("tabIndex");return D&&D.specified?D.value:C.nodeName.match(/(button|input|object|select|textarea)/i)?0:C.nodeName.match(/^(a|area)$/i)&&C.href?0:AB}return C[c]}if(!T.support.style&&b&&c=="style"){return T.attr(C.style,"cssText",B)}if(A){C.setAttribute(c,""+B)}var f=!T.support.hrefNormalized&&b&&d?C.getAttribute(c,2):C.getAttribute(c);return f===null?AB:f}if(!T.support.opacity&&c=="opacity"){if(A){C.zoom=1;C.filter=(C.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(B)+""=="NaN"?"":"alpha(opacity="+B*100+")")}return C.filter&&C.filter.indexOf("opacity=")>=0?(parseFloat(C.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}c=c.replace(/-([a-z])/ig,function(h,g){return g.toUpperCase()});if(A){C[c]=B}return C[c]},trim:function(A){return(A||"").replace(/^\s+|\s+$/g,"")},makeArray:function(A){var C=[];if(A!=null){var B=A.length;if(B==null||typeof A==="string"||T.isFunction(A)||A.setInterval){C[0]=A}else{while(B){C[--B]=A[B]}}}return C},inArray:function(B,A){for(var D=0,C=A.length;D<C;D++){if(A[D]===B){return D}}return -1},merge:function(B,b){var D=0,C,A=B.length;if(!T.support.getAll){while((C=b[D++])!=null){if(C.nodeType!=8){B[A++]=C}}}else{while((C=b[D++])!=null){B[A++]=C}}return B},unique:function(A){var c=[],d={};try{for(var b=0,D=A.length;b<D;b++){var B=T.data(A[b]);if(!d[B]){d[B]=true;c.push(A[b])}}}catch(C){c=A}return c},grep:function(b,A,c){var D=[];for(var C=0,B=b.length;C<B;C++){if(!c!=!A(b[C],C)){D.push(b[C])}}return D},map:function(c,A){var b=[];for(var D=0,C=c.length;D<C;D++){var B=A(c[D],D);if(B!=null){b[b.length]=B}}return b.concat.apply([],b)}});var O=navigator.userAgent.toLowerCase();T.browser={version:(O.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(O),opera:/opera/.test(O),msie:/msie/.test(O)&&!/opera/.test(O),mozilla:/mozilla/.test(O)&&!/(compatible|webkit)/.test(O)};T.each({parent:function(A){return A.parentNode},parents:function(A){return T.dir(A,"parentNode")},next:function(A){return T.nth(A,2,"nextSibling")},prev:function(A){return T.nth(A,2,"previousSibling")},nextAll:function(A){return T.dir(A,"nextSibling")},prevAll:function(A){return T.dir(A,"previousSibling")},siblings:function(A){return T.sibling(A.parentNode.firstChild,A)},children:function(A){return T.sibling(A.firstChild)},contents:function(A){return T.nodeName(A,"iframe")?A.contentDocument||A.contentWindow.document:T.makeArray(A.childNodes)}},function(B,A){T.fn[B]=function(D){var C=T.map(this,A);if(D&&typeof D=="string"){C=T.multiFilter(D,C)}return this.pushStack(T.unique(C),B,D)}});T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(B,A){T.fn[B]=function(f){var b=[],C=T(f);for(var D=0,d=C.length;D<d;D++){var c=(D>0?this.clone(true):this).get();T.fn[A].apply(T(C[D]),c);b=b.concat(c)}return this.pushStack(b,B,f)}});T.each({removeAttr:function(A){T.attr(this,A,"");if(this.nodeType==1){this.removeAttribute(A)}},addClass:function(A){T.className.add(this,A)},removeClass:function(A){T.className.remove(this,A)},toggleClass:function(A,B){if(typeof B!=="boolean"){B=!T.className.has(this,A)}T.className[B?"add":"remove"](this,A)},remove:function(A){if(!A||T.filter(A,[this]).length){T("*",this).add([this]).each(function(){T.event.remove(this);T.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){T(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(B,A){T.fn[B]=function(){return this.each(A,arguments)}});function Y(B,A){return B[0]&&parseInt(T.curCSS(B[0],A,true),10)||0}var AA="jQuery"+AD(),I=0,R={};T.extend({cache:{},data:function(C,D,B){C=C==W?R:C;var A=C[AA];if(!A){A=C[AA]=++I}if(D&&!T.cache[A]){T.cache[A]={}}if(B!==AB){T.cache[A][D]=B}return D?T.cache[A][D]:A},removeData:function(C,D){C=C==W?R:C;var A=C[AA];if(D){if(T.cache[A]){delete T.cache[A][D];D="";for(D in T.cache[A]){break}if(!D){T.removeData(C)}}}else{try{delete C[AA]}catch(B){if(C.removeAttribute){C.removeAttribute(AA)}}delete T.cache[A]}},queue:function(C,D,A){if(C){D=(D||"fx")+"queue";var B=T.data(C,D);if(!B||T.isArray(A)){B=T.data(C,D,T.makeArray(A))}else{if(A){B.push(A)}}}return B},dequeue:function(A,B){var D=T.queue(A,B),C=D.shift();if(!B||B==="fx"){C=D[0]}if(C!==AB){C.call(A)}}});T.fn.extend({data:function(D,B){var A=D.split(".");A[1]=A[1]?"."+A[1]:"";if(B===AB){var C=this.triggerHandler("getData"+A[1]+"!",[A[0]]);if(C===AB&&this.length){C=T.data(this[0],D)}return C===AB&&A[1]?this.data(A[0]):C}else{return this.trigger("setData"+A[1]+"!",[A[0],B]).each(function(){T.data(this,D,B)})}},removeData:function(A){return this.each(function(){T.removeData(this,A)})},queue:function(B,A){if(typeof B!=="string"){A=B;B="fx"}if(A===AB){return T.queue(this[0],B)}return this.each(function(){var C=T.queue(this,B,A);if(B=="fx"&&C.length==1){C[0].call(this)}})},dequeue:function(A){return this.each(function(){T.dequeue(this,A)})}});(function(){var B=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,f=0,l=Object.prototype.toString;var n=function(t,x,AO,AN){AO=AO||[];x=x||document;if(x.nodeType!==1&&x.nodeType!==9){return[]}if(!t||typeof t!=="string"){return AO}var s=[],v,AK,z,y,AM,w,u=true;B.lastIndex=0;while((v=B.exec(t))!==null){s.push(v[1]);if(v[2]){w=RegExp.rightContext;break}}if(s.length>1&&d.exec(t)){if(s.length===2&&k.relative[s[0]]){AK=h(s[0]+s[1],x)}else{AK=k.relative[s[0]]?[x]:n(s.shift(),x);while(s.length){t=s.shift();if(k.relative[t]){t+=s.shift()}AK=h(t,AK)}}}else{var AL=AN?{expr:s.pop(),set:p(AN)}:n.find(s.pop(),s.length===1&&x.parentNode?x.parentNode:x,C(x));AK=n.filter(AL.expr,AL.set);if(s.length>0){z=p(AK)}else{u=false}while(s.length){var AI=s.pop(),AJ=AI;if(!k.relative[AI]){AI=""}else{AJ=s.pop()}if(AJ==null){AJ=x}k.relative[AI](z,AJ,C(x))}}if(!z){z=AK}if(!z){throw"Syntax error, unrecognized expression: "+(AI||t)}if(l.call(z)==="[object Array]"){if(!u){AO.push.apply(AO,z)}else{if(x.nodeType===1){for(var r=0;z[r]!=null;r++){if(z[r]&&(z[r]===true||z[r].nodeType===1&&g(x,z[r]))){AO.push(AK[r])}}}else{for(var r=0;z[r]!=null;r++){if(z[r]&&z[r].nodeType===1){AO.push(AK[r])}}}}}else{p(z,AO)}if(w){n(w,x,AO,AN);if(m){hasDuplicate=false;AO.sort(m);if(hasDuplicate){for(var r=1;r<AO.length;r++){if(AO[r]===AO[r-1]){AO.splice(r--,1)}}}}}return AO};n.matches=function(s,r){return n(s,null,null,r)};n.find=function(r,y,z){var s,u;if(!r){return[]}for(var v=0,w=k.order.length;v<w;v++){var t=k.order[v],u;if((u=k.match[t].exec(r))){var x=RegExp.leftContext;if(x.substr(x.length-1)!=="\\"){u[1]=(u[1]||"").replace(/\\/g,"");s=k.find[t](u,y,z);if(s!=null){r=r.replace(k.match[t],"");break}}}}if(!s){s=y.getElementsByTagName("*")}return{set:s,expr:r}};n.filter=function(AM,AN,AJ,v){var w=AM,z=[],r=AN,t,y,s=AN&&AN[0]&&C(AN[0]);while(AM&&AN.length){for(var AO in k.filter){if((t=k.match[AO].exec(AM))!=null){var x=k.filter[AO],AI,AK;y=false;if(r==z){z=[]}if(k.preFilter[AO]){t=k.preFilter[AO](t,r,AJ,z,v,s);if(!t){y=AI=true}else{if(t===true){continue}}}if(t){for(var u=0;(AK=r[u])!=null;u++){if(AK){AI=x(AK,t,u,r);var AL=v^!!AI;if(AJ&&AI!=null){if(AL){y=true}else{r[u]=false}}else{if(AL){z.push(AK);y=true}}}}}if(AI!==AB){if(!AJ){r=z}AM=AM.replace(k.match[AO],"");if(!y){return[]}break}}}if(AM==w){if(y==null){throw"Syntax error, unrecognized expression: "+AM}else{break}}w=AM}return r};var k=n.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(r){return r.getAttribute("href")}},relative:{"+":function(r,y,s){var u=typeof y==="string",z=u&&!/\W/.test(y),t=u&&!z;if(z&&!s){y=y.toUpperCase()}for(var v=0,w=r.length,x;v<w;v++){if((x=r[v])){while((x=x.previousSibling)&&x.nodeType!==1){}r[v]=t||x&&x.nodeName===y?x||false:x===y}}if(t){n.filter(y,r,true)}},">":function(w,t,v){var y=typeof t==="string";if(y&&!/\W/.test(t)){t=v?t:t.toUpperCase();for(var s=0,u=w.length;s<u;s++){var x=w[s];if(x){var r=x.parentNode;w[s]=r.nodeName===t?r:false}}}else{for(var s=0,u=w.length;s<u;s++){var x=w[s];if(x){w[s]=y?x.parentNode:x.parentNode===t}}if(y){n.filter(t,w,true)}}},"":function(r,t,v){var s=f++,u=A;if(!t.match(/\W/)){var w=t=v?t:t.toUpperCase();u=D}u("parentNode",t,s,r,w,v)},"~":function(r,t,v){var s=f++,u=A;if(typeof t==="string"&&!t.match(/\W/)){var w=t=v?t:t.toUpperCase();u=D}u("previousSibling",t,s,r,w,v)}},find:{ID:function(t,s,r){if(typeof s.getElementById!=="undefined"&&!r){var u=s.getElementById(t[1]);return u?[u]:[]}},NAME:function(s,w,v){if(typeof w.getElementsByName!=="undefined"){var t=[],x=w.getElementsByName(s[1]);for(var r=0,u=x.length;r<u;r++){if(x[r].getAttribute("name")===s[1]){t.push(x[r])}}return t.length===0?null:t}},TAG:function(s,r){return r.getElementsByTagName(s[1])}},preFilter:{CLASS:function(r,t,s,u,w,v){r=" "+r[1].replace(/\\/g,"")+" ";if(v){return r}for(var y=0,x;(x=t[y])!=null;y++){if(x){if(w^(x.className&&(" "+x.className+" ").indexOf(r)>=0)){if(!s){u.push(x)}}else{if(s){t[y]=false}}}}return false},ID:function(r){return r[1].replace(/\\/g,"")},TAG:function(s,t){for(var r=0;t[r]===false;r++){}return t[r]&&C(t[r])?s[1]:s[1].toUpperCase()},CHILD:function(s){if(s[1]=="nth"){var r=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(s[2]=="even"&&"2n"||s[2]=="odd"&&"2n+1"||!/\D/.test(s[2])&&"0n+"+s[2]||s[2]);s[2]=(r[1]+(r[2]||1))-0;s[3]=r[3]-0}s[0]=f++;return s},ATTR:function(x,t,s,u,w,v){var r=x[1].replace(/\\/g,"");if(!v&&k.attrMap[r]){x[1]=k.attrMap[r]}if(x[2]==="~="){x[4]=" "+x[4]+" "}return x},PSEUDO:function(w,t,s,u,v){if(w[1]==="not"){if(w[3].match(B).length>1||/^\w/.test(w[3])){w[3]=n(w[3],null,null,t)}else{var r=n.filter(w[3],t,s,true^v);if(!s){u.push.apply(u,r)}return false}}else{if(k.match.POS.test(w[0])||k.match.CHILD.test(w[0])){return true}}return w},POS:function(r){r.unshift(true);return r}},filters:{enabled:function(r){return r.disabled===false&&r.type!=="hidden"},disabled:function(r){return r.disabled===true},checked:function(r){return r.checked===true},selected:function(r){r.parentNode.selectedIndex;return r.selected===true},parent:function(r){return !!r.firstChild},empty:function(r){return !r.firstChild},has:function(r,s,t){return !!n(t[3],r).length},header:function(r){return/h\d/i.test(r.nodeName)},text:function(r){return"text"===r.type},radio:function(r){return"radio"===r.type},checkbox:function(r){return"checkbox"===r.type},file:function(r){return"file"===r.type},password:function(r){return"password"===r.type},submit:function(r){return"submit"===r.type},image:function(r){return"image"===r.type},reset:function(r){return"reset"===r.type},button:function(r){return"button"===r.type||r.nodeName.toUpperCase()==="BUTTON"},input:function(r){return/input|select|textarea|button/i.test(r.nodeName)}},setFilters:{first:function(r,s){return s===0},last:function(s,t,u,r){return t===r.length-1},even:function(r,s){return s%2===0},odd:function(r,s){return s%2===1},lt:function(r,s,t){return s<t[3]-0},gt:function(r,s,t){return s>t[3]-0},nth:function(r,s,t){return t[3]-0==s},eq:function(r,s,t){return t[3]-0==s}},filter:{PSEUDO:function(w,s,r,v){var t=s[1],y=k.filters[t];if(y){return y(w,r,s,v)}else{if(t==="contains"){return(w.textContent||w.innerText||"").indexOf(s[3])>=0}else{if(t==="not"){var x=s[3];for(var r=0,u=x.length;r<u;r++){if(x[r]===w){return false}}return true}}}},CHILD:function(y,v){var s=v[1],x=y;switch(s){case"only":case"first":while(x=x.previousSibling){if(x.nodeType===1){return false}}if(s=="first"){return true}x=y;case"last":while(x=x.nextSibling){if(x.nodeType===1){return false}}return true;case"nth":var w=v[2],z=v[3];if(w==1&&z==0){return true}var t=v[0],AI=y.parentNode;if(AI&&(AI.sizcache!==t||!y.nodeIndex)){var u=0;for(x=AI.firstChild;x;x=x.nextSibling){if(x.nodeType===1){x.nodeIndex=++u}}AI.sizcache=t}var r=y.nodeIndex-z;if(w==0){return r==0}else{return(r%w==0&&r/w>=0)}}},ID:function(r,s){return r.nodeType===1&&r.getAttribute("id")===s},TAG:function(r,s){return(s==="*"&&r.nodeType===1)||r.nodeName===s},CLASS:function(r,s){return(" "+(r.className||r.getAttribute("class"))+" ").indexOf(s)>-1},ATTR:function(w,r){var s=r[1],u=k.attrHandle[s]?k.attrHandle[s](w):w[s]!=null?w[s]:w.getAttribute(s),v=u+"",x=r[2],t=r[4];return u==null?x==="!=":x==="="?v===t:x==="*="?v.indexOf(t)>=0:x==="~="?(" "+v+" ").indexOf(t)>=0:!t?v&&u!==false:x==="!="?v!=t:x==="^="?v.indexOf(t)===0:x==="$="?v.substr(v.length-t.length)===t:x==="|="?v===t||v.substr(0,t.length+1)===t+"-":false},POS:function(w,t,s,v){var u=t[2],r=k.setFilters[u];if(r){return r(w,s,t,v)}}}};var d=k.match.POS;for(var b in k.match){k.match[b]=RegExp(k.match[b].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var p=function(r,s){r=Array.prototype.slice.call(r);if(s){s.push.apply(s,r);return s}return r};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(c){p=function(v,r){var t=r||[];if(l.call(v)==="[object Array]"){Array.prototype.push.apply(t,v)}else{if(typeof v.length==="number"){for(var s=0,u=v.length;s<u;s++){t.push(v[s])}}else{for(var s=0;v[s];s++){t.push(v[s])}}}return t}}var m;if(document.documentElement.compareDocumentPosition){m=function(s,t){var r=s.compareDocumentPosition(t)&4?-1:s===t?0:1;if(r===0){hasDuplicate=true}return r}}else{if("sourceIndex" in document.documentElement){m=function(s,t){var r=s.sourceIndex-t.sourceIndex;if(r===0){hasDuplicate=true}return r}}else{if(document.createRange){m=function(r,t){var s=r.ownerDocument.createRange(),u=t.ownerDocument.createRange();s.selectNode(r);s.collapse(true);u.selectNode(t);u.collapse(true);var v=s.compareBoundaryPoints(Range.START_TO_END,u);if(v===0){hasDuplicate=true}return v}}}}(function(){var s=document.createElement("form"),r="script"+(new Date).getTime();s.innerHTML="<input name='"+r+"'/>";var t=document.documentElement;t.insertBefore(s,t.firstChild);if(!!document.getElementById(r)){k.find.ID=function(x,w,v){if(typeof w.getElementById!=="undefined"&&!v){var u=w.getElementById(x[1]);return u?u.id===x[1]||typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id").nodeValue===x[1]?[u]:AB:[]}};k.filter.ID=function(v,u){var w=typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id");return v.nodeType===1&&w&&w.nodeValue===u}}t.removeChild(s)})();(function(){var r=document.createElement("div");r.appendChild(document.createComment(""));if(r.getElementsByTagName("*").length>0){k.find.TAG=function(u,v){var w=v.getElementsByTagName(u[1]);if(u[1]==="*"){var s=[];for(var t=0;w[t];t++){if(w[t].nodeType===1){s.push(w[t])}}w=s}return w}}r.innerHTML="<a href='#'></a>";if(r.firstChild&&typeof r.firstChild.getAttribute!=="undefined"&&r.firstChild.getAttribute("href")!=="#"){k.attrHandle.href=function(s){return s.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var s=n,r=document.createElement("div");r.innerHTML="<p class='TEST'></p>";if(r.querySelectorAll&&r.querySelectorAll(".TEST").length===0){return }n=function(w,x,u,t){x=x||document;if(!t&&x.nodeType===9&&!C(x)){try{return p(x.querySelectorAll(w),u)}catch(v){}}return s(w,x,u,t)};n.find=s.find;n.filter=s.filter;n.selectors=s.selectors;n.matches=s.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var r=document.createElement("div");r.innerHTML="<div class='test e'></div><div class='test'></div>";if(r.getElementsByClassName("e").length===0){return }r.lastChild.className="e";if(r.getElementsByClassName("e").length===1){return }k.order.splice(1,0,"CLASS");k.find.CLASS=function(u,t,s){if(typeof t.getElementsByClassName!=="undefined"&&!s){return t.getElementsByClassName(u[1])}}})()}function D(x,s,t,z,r,AI){var AJ=x=="previousSibling"&&!AI;for(var v=0,w=z.length;v<w;v++){var y=z[v];if(y){if(AJ&&y.nodeType===1){y.sizcache=t;y.sizset=v}y=y[x];var u=false;while(y){if(y.sizcache===t){u=z[y.sizset];break}if(y.nodeType===1&&!AI){y.sizcache=t;y.sizset=v}if(y.nodeName===s){u=y;break}y=y[x]}z[v]=u}}}function A(x,s,t,z,r,AI){var AJ=x=="previousSibling"&&!AI;for(var v=0,w=z.length;v<w;v++){var y=z[v];if(y){if(AJ&&y.nodeType===1){y.sizcache=t;y.sizset=v}y=y[x];var u=false;while(y){if(y.sizcache===t){u=z[y.sizset];break}if(y.nodeType===1){if(!AI){y.sizcache=t;y.sizset=v}if(typeof s!=="string"){if(y===s){u=true;break}}else{if(n.filter(s,[y]).length>0){u=y;break}}}y=y[x]}z[v]=u}}}var g=document.compareDocumentPosition?function(r,s){return r.compareDocumentPosition(s)&16}:function(r,s){return r!==s&&(r.contains?r.contains(s):true)};var C=function(r){return r.nodeType===9&&r.documentElement.nodeName!=="HTML"||!!r.ownerDocument&&C(r.ownerDocument)};var h=function(u,w){var r=[],y="",x,s=w.nodeType?[w]:w;while((x=k.match.PSEUDO.exec(u))){y+=x[0];u=u.replace(k.match.PSEUDO,"")}u=k.relative[u]?u+"*":u;for(var v=0,t=s.length;v<t;v++){n(u,s[v],r)}return n.filter(y,r)};T.find=n;T.filter=n.filter;T.expr=n.selectors;T.expr[":"]=T.expr.filters;n.selectors.filters.hidden=function(r){return r.offsetWidth===0||r.offsetHeight===0};n.selectors.filters.visible=function(r){return r.offsetWidth>0||r.offsetHeight>0};n.selectors.filters.animated=function(r){return T.grep(T.timers,function(s){return r===s.elem}).length};T.multiFilter=function(r,t,s){if(s){r=":not("+r+")"}return n.matches(r,t)};T.dir=function(s,t){var u=[],r=s[t];while(r&&r!=document){if(r.nodeType==1){u.push(r)}r=r[t]}return u};T.nth=function(v,u,s,r){u=u||1;var t=0;for(;v;v=v[s]){if(v.nodeType==1&&++t==u){break}}return v};T.sibling=function(r,s){var t=[];for(;r;r=r.nextSibling){if(r.nodeType==1&&r!=s){t.push(r)}}return t};return ;W.Sizzle=n})();T.event={add:function(C,c,D,A){if(C.nodeType==3||C.nodeType==8){return }if(C.setInterval&&C!=W){C=W}if(!D.guid){D.guid=this.guid++}if(A!==AB){var b=D;D=this.proxy(b);D.data=A}var d=T.data(C,"events")||T.data(C,"events",{}),B=T.data(C,"handle")||T.data(C,"handle",function(){return typeof T!=="undefined"&&!T.event.triggered?T.event.handle.apply(arguments.callee.elem,arguments):AB});B.elem=C;T.each(c.split(/\s+/),function(k,h){var g=h.split(".");h=g.shift();D.type=g.slice().sort().join(".");var f=d[h];if(T.event.specialAll[h]){T.event.specialAll[h].setup.call(C,A,g)}if(!f){f=d[h]={};if(!T.event.special[h]||T.event.special[h].setup.call(C,A,g)===false){if(C.addEventListener){C.addEventListener(h,B,false)}else{if(C.attachEvent){C.attachEvent("on"+h,B)}}}}f[D.guid]=D;T.event.global[h]=true});C=null},guid:1,global:{},remove:function(B,b,C){if(B.nodeType==3||B.nodeType==8){return }var c=T.data(B,"events"),d,f;if(c){if(b===AB||(typeof b==="string"&&b.charAt(0)==".")){for(var D in c){this.remove(B,D+(b||""))}}else{if(b.type){C=b.handler;b=b.type}T.each(b.split(/\s+/),function(m,k){var g=k.split(".");k=g.shift();var l=RegExp("(^|\\.)"+g.slice().sort().join(".*\\.")+"(\\.|$)");if(c[k]){if(C){delete c[k][C.guid]}else{for(var h in c[k]){if(l.test(c[k][h].type)){delete c[k][h]}}}if(T.event.specialAll[k]){T.event.specialAll[k].teardown.call(B,g)}for(d in c[k]){break}if(!d){if(!T.event.special[k]||T.event.special[k].teardown.call(B,g)===false){if(B.removeEventListener){B.removeEventListener(k,T.data(B,"handle"),false)}else{if(B.detachEvent){B.detachEvent("on"+k,T.data(B,"handle"))}}}d=null;delete c[k]}}})}for(d in c){break}if(!d){var A=T.data(B,"handle");if(A){A.elem=null}T.removeData(B,"events");T.removeData(B,"handle")}}},trigger:function(D,B,b,f){var c=D.type||D;if(!f){D=typeof D==="object"?D[AA]?D:T.extend(T.Event(c),D):T.Event(c);if(c.indexOf("!")>=0){D.type=c=c.slice(0,-1);D.exclusive=true}if(!b){D.stopPropagation();if(this.global[c]){T.each(T.cache,function(){if(this.events&&this.events[c]){T.event.trigger(D,B,this.handle.elem)}})}}if(!b||b.nodeType==3||b.nodeType==8){return AB}D.result=AB;D.target=b;B=T.makeArray(B);B.unshift(D)}D.currentTarget=b;var C=T.data(b,"handle");if(C){C.apply(b,B)}if((!b[c]||(T.nodeName(b,"a")&&c=="click"))&&b["on"+c]&&b["on"+c].apply(b,B)===false){D.result=false}if(!f&&b[c]&&!D.isDefaultPrevented()&&!(T.nodeName(b,"a")&&c=="click")){this.triggered=true;try{b[c]()}catch(A){}}this.triggered=false;if(!D.isPropagationStopped()){var d=b.parentNode||b.ownerDocument;if(d){T.event.trigger(D,B,d,true)}}},handle:function(B){var C,f;B=arguments[0]=T.event.fix(B||W.event);B.currentTarget=this;var A=B.type.split(".");B.type=A.shift();C=!A.length&&!B.exclusive;var D=RegExp("(^|\\.)"+A.slice().sort().join(".*\\.")+"(\\.|$)");f=(T.data(this,"events")||{})[B.type];for(var c in f){var b=f[c];if(C||D.test(b.type)){B.handler=b;B.data=b.data;var d=b.apply(this,arguments);if(d!==AB){B.result=d;if(d===false){B.preventDefault();B.stopPropagation()}}if(B.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(C){if(C[AA]){return C}var b=C;C=T.Event(b);for(var D=this.props.length,A;D;){A=this.props[--D];C[A]=b[A]}if(!C.target){C.target=C.srcElement||document}if(C.target.nodeType==3){C.target=C.target.parentNode}if(!C.relatedTarget&&C.fromElement){C.relatedTarget=C.fromElement==C.target?C.toElement:C.fromElement}if(C.pageX==null&&C.clientX!=null){var B=document.documentElement,c=document.body;C.pageX=C.clientX+(B&&B.scrollLeft||c&&c.scrollLeft||0)-(B.clientLeft||0);C.pageY=C.clientY+(B&&B.scrollTop||c&&c.scrollTop||0)-(B.clientTop||0)}if(!C.which&&((C.charCode||C.charCode===0)?C.charCode:C.keyCode)){C.which=C.charCode||C.keyCode}if(!C.metaKey&&C.ctrlKey){C.metaKey=C.ctrlKey}if(!C.which&&C.button){C.which=(C.button&1?1:(C.button&2?3:(C.button&4?2:0)))}return C},proxy:function(A,B){B=B||function(){return A.apply(this,arguments)};B.guid=A.guid=A.guid||B.guid||this.guid++;return B},special:{ready:{setup:P,teardown:function(){}}},specialAll:{live:{setup:function(B,A){T.event.add(this,A[0],AF)},teardown:function(A){if(A.length){var C=0,B=RegExp("(^|\\.)"+A[0]+"(\\.|$)");T.each((T.data(this,"events").live||{}),function(){if(B.test(this.type)){C++}});if(C<1){T.event.remove(this,A[0],AF)}}}}}};T.Event=function(A){if(!this.preventDefault){return new T.Event(A)}if(A&&A.type){this.originalEvent=A;this.type=A.type}else{this.type=A}this.timeStamp=AD();this[AA]=true};function X(){return false}function J(){return true}T.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var A=this.originalEvent;if(!A){return }if(A.preventDefault){A.preventDefault()}A.returnValue=false},stopPropagation:function(){this.isPropagationStopped=J;var A=this.originalEvent;if(!A){return }if(A.stopPropagation){A.stopPropagation()}A.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:X,isPropagationStopped:X,isImmediatePropagationStopped:X};var AH=function(B){var C=B.relatedTarget;while(C&&C!=this){try{C=C.parentNode}catch(A){C=this}}if(C!=this){B.type=B.data;T.event.handle.apply(this,arguments)}};T.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(A,B){T.event.special[B]={setup:function(){T.event.add(this,A,AH,B)},teardown:function(){T.event.remove(this,A,AH)}}});T.fn.extend({bind:function(B,A,C){return B=="unload"?this.one(B,A,C):this.each(function(){T.event.add(this,B,C||A,C&&A)})},one:function(B,A,C){var D=T.event.proxy(C||A,function(b){T(this).unbind(b,D);return(C||A).apply(this,arguments)});return this.each(function(){T.event.add(this,B,D,C&&A)})},unbind:function(A,B){return this.each(function(){T.event.remove(this,A,B)})},trigger:function(B,A){return this.each(function(){T.event.trigger(B,A,this)})},triggerHandler:function(C,A){if(this[0]){var B=T.Event(C);B.preventDefault();B.stopPropagation();T.event.trigger(B,A,this[0]);return B.result}},toggle:function(A){var C=arguments,B=1;while(B<C.length){T.event.proxy(A,C[B++])}return this.click(T.event.proxy(A,function(D){this.lastToggle=(this.lastToggle||0)%B;D.preventDefault();return C[this.lastToggle++].apply(this,arguments)||false}))},hover:function(B,A){return this.mouseenter(B).mouseleave(A)},ready:function(A){P();if(T.isReady){A.call(document,T)}else{T.readyList.push(A)}return this},live:function(A,B){var C=T.event.proxy(B);C.guid+=this.selector+A;T(document).bind(Z(A,this.selector),this.selector,C);return this},die:function(A,B){T(document).unbind(Z(A,this.selector),B?{guid:B.guid+this.selector+A}:null);return this}});function AF(A){var D=RegExp("(^|\\.)"+A.type+"(\\.|$)"),B=true,C=[];T.each(T.data(this,"events").live||[],function(d,c){if(D.test(c.type)){var b=T(A.target).closest(c.data)[0];if(b){C.push({elem:b,fn:c})}}});C.sort(function(b,c){return T.data(b.elem,"closest")-T.data(c.elem,"closest")});T.each(C,function(){if(this.fn.call(this.elem,A,this.fn.data)===false){return(B=false)}});return B}function Z(A,B){return["live",A,B.replace(/\./g,"`").replace(/ /g,"|")].join(".")}T.extend({isReady:false,readyList:[],ready:function(){if(!T.isReady){T.isReady=true;if(T.readyList){T.each(T.readyList,function(){this.call(document,T)});T.readyList=null}T(document).triggerHandler("ready")}}});var G=false;function P(){if(G){return }G=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);T.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);T.ready()}});if(document.documentElement.doScroll&&W==W.top){(function(){if(T.isReady){return }try{document.documentElement.doScroll("left")}catch(A){setTimeout(arguments.callee,0);return }T.ready()})()}}}T.event.add(W,"load",T.ready)}T.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(A,B){T.fn[B]=function(C){return C?this.bind(B,C):this.trigger(B)}});T(W).bind("unload",function(){for(var A in T.cache){if(A!=1&&T.cache[A].handle){T.event.remove(T.cache[A].handle.elem)}}});(function(){T.support={};var c=document.documentElement,b=document.createElement("script"),A=document.createElement("div"),B="script"+(new Date).getTime();A.style.display="none";A.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var D=A.getElementsByTagName("*"),d=A.getElementsByTagName("a")[0];if(!D||!D.length||!d){return }T.support={leadingWhitespace:A.firstChild.nodeType==3,tbody:!A.getElementsByTagName("tbody").length,objectAll:!!A.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!A.getElementsByTagName("link").length,style:/red/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:d.style.opacity==="0.5",cssFloat:!!d.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(document.createTextNode("window."+B+"=1;"))}catch(C){}c.insertBefore(b,c.firstChild);if(W[B]){T.support.scriptEval=true;delete W[B]}c.removeChild(b);if(A.attachEvent&&A.fireEvent){A.attachEvent("onclick",function(){T.support.noCloneEvent=false;A.detachEvent("onclick",arguments.callee)});A.cloneNode(true).fireEvent("onclick")}T(function(){var f=document.createElement("div");f.style.width=f.style.paddingLeft="1px";document.body.appendChild(f);T.boxModel=T.support.boxModel=f.offsetWidth===2;document.body.removeChild(f).style.display="none"})})();var H=T.support.cssFloat?"cssFloat":"styleFloat";T.props={"for":"htmlFor","class":"className","float":H,cssFloat:H,styleFloat:H,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};T.fn.extend({_load:T.fn.load,load:function(b,B,A){if(typeof b!=="string"){return this._load(b)}var C=b.indexOf(" ");if(C>=0){var d=b.slice(C,b.length);b=b.slice(0,C)}var D="GET";if(B){if(T.isFunction(B)){A=B;B=null}else{if(typeof B==="object"){B=T.param(B);D="POST"}}}var c=this;T.ajax({url:b,type:D,dataType:"html",data:B,complete:function(g,f){if(f=="success"||f=="notmodified"){c.html(d?T("<div/>").append(g.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(d):g.responseText)}if(A){c.each(A,[g.responseText,f,g])}}});return this},serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?T.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(C,B){var A=T(this).val();return A==null?null:T.isArray(A)?T.map(A,function(D,b){return{name:B.name,value:D}}):{name:B.name,value:A}}).get()}});T.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(B,A){T.fn[A]=function(C){return this.bind(A,C)}});var N=AD();T.extend({get:function(D,B,A,C){if(T.isFunction(B)){A=B;B=null}return T.ajax({type:"GET",url:D,data:B,success:A,dataType:C})},getScript:function(B,A){return T.get(B,null,A,"script")},getJSON:function(C,B,A){return T.get(C,B,A,"json")},post:function(D,B,A,C){if(T.isFunction(B)){A=B;B={}}return T.ajax({type:"POST",url:D,data:B,success:A,dataType:C})},ajaxSetup:function(A){T.extend(T.ajaxSettings,A)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return W.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(k){k=T.extend(true,k,T.extend(true,{},T.ajaxSettings,k));var A,t=/=\?(&|$)/g,c,B,s=k.type.toUpperCase();if(k.data&&k.processData&&typeof k.data!=="string"){k.data=T.param(k.data)}if(k.dataType=="jsonp"){if(s=="GET"){if(!k.url.match(t)){k.url+=(k.url.match(/\?/)?"&":"?")+(k.jsonp||"callback")+"=?"}}else{if(!k.data||!k.data.match(t)){k.data=(k.data?k.data+"&":"")+(k.jsonp||"callback")+"=?"}}k.dataType="json"}if(k.dataType=="json"&&(k.data&&k.data.match(t)||k.url.match(t))){A="jsonp"+N++;if(k.data){k.data=(k.data+"").replace(t,"="+A+"$1")}k.url=k.url.replace(t,"="+A+"$1");k.dataType="script";W[A]=function(w){B=w;p();l();W[A]=AB;try{delete W[A]}catch(v){}if(r){r.removeChild(D)}}}if(k.dataType=="script"&&k.cache==null){k.cache=false}if(k.cache===false&&s=="GET"){var u=AD();var C=k.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+u+"$2");k.url=C+((C==k.url)?(k.url.match(/\?/)?"&":"?")+"_="+u:"")}if(k.data&&s=="GET"){k.url+=(k.url.match(/\?/)?"&":"?")+k.data;k.data=null}if(k.global&&!T.active++){T.event.trigger("ajaxStart")}var d=/^(\w+:)?\/\/([^\/?#]+)/.exec(k.url);if(k.dataType=="script"&&s=="GET"&&d&&(d[1]&&d[1]!=location.protocol||d[2]!=location.host)){var r=document.getElementsByTagName("head")[0];var D=document.createElement("script");D.src=k.url;if(k.scriptCharset){D.charset=k.scriptCharset}if(!A){var g=false;D.onload=D.onreadystatechange=function(){if(!g&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){g=true;p();l();D.onload=D.onreadystatechange=null;r.removeChild(D)}}}r.appendChild(D);return AB}var m=false;var n=k.xhr();if(k.username){n.open(s,k.url,k.async,k.username,k.password)}else{n.open(s,k.url,k.async)}try{if(k.data){n.setRequestHeader("Content-Type",k.contentType)}if(k.ifModified){n.setRequestHeader("If-Modified-Since",T.lastModified[k.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}n.setRequestHeader("X-Requested-With","XMLHttpRequest");n.setRequestHeader("Accept",k.dataType&&k.accepts[k.dataType]?k.accepts[k.dataType]+", */*":k.accepts._default)}catch(b){}if(k.beforeSend&&k.beforeSend(n,k)===false){if(k.global&&!--T.active){T.event.trigger("ajaxStop")}n.abort();return false}if(k.global){T.event.trigger("ajaxSend",[n,k])}var h=function(x){if(n.readyState==0){if(f){clearInterval(f);f=null;if(k.global&&!--T.active){T.event.trigger("ajaxStop")}}}else{if(!m&&n&&(n.readyState==4||x=="timeout")){m=true;if(f){clearInterval(f);f=null}c=x=="timeout"?"timeout":!T.httpSuccess(n)?"error":k.ifModified&&T.httpNotModified(n,k.url)?"notmodified":"success";if(c=="success"){try{B=T.httpData(n,k.dataType,k)}catch(v){c="parsererror"}}if(c=="success"){var w;try{w=n.getResponseHeader("Last-Modified")}catch(v){}if(k.ifModified&&w){T.lastModified[k.url]=w}if(!A){p()}}else{T.handleError(k,n,c)}l();if(x){n.abort()}if(k.async){n=null}}}};if(k.async){var f=setInterval(h,13);if(k.timeout>0){setTimeout(function(){if(n&&!m){h("timeout")}},k.timeout)}}try{n.send(k.data)}catch(b){T.handleError(k,n,null,b)}if(!k.async){h()}function p(){if(k.success){k.success(B,c)}if(k.global){T.event.trigger("ajaxSuccess",[n,k])}}function l(){if(k.complete){k.complete(n,c)}if(k.global){T.event.trigger("ajaxComplete",[n,k])}if(k.global&&!--T.active){T.event.trigger("ajaxStop")}}return n},handleError:function(C,A,D,B){if(C.error){C.error(A,D,B)}if(C.global){T.event.trigger("ajaxError",[A,C,B])}},active:0,httpSuccess:function(A){try{return !A.status&&location.protocol=="file:"||(A.status>=200&&A.status<300)||A.status==304||A.status==1223}catch(B){}return false},httpNotModified:function(B,D){try{var A=B.getResponseHeader("Last-Modified");return B.status==304||A==T.lastModified[D]}catch(C){}return false},httpData:function(A,C,D){var b=A.getResponseHeader("content-type"),c=C=="xml"||!C&&b&&b.indexOf("xml")>=0,B=c?A.responseXML:A.responseText;if(c&&B.documentElement.tagName=="parsererror"){throw"parsererror"}if(D&&D.dataFilter){B=D.dataFilter(B,C)}if(typeof B==="string"){if(C=="script"){T.globalEval(B)}if(C=="json"){B=W["eval"]("("+B+")")}}return B},param:function(D){var B=[];function A(c,b){B[B.length]=encodeURIComponent(c)+"="+encodeURIComponent(b)}if(T.isArray(D)||D.jquery){T.each(D,function(){A(this.name,this.value)})}else{for(var C in D){if(T.isArray(D[C])){T.each(D[C],function(){A(C,this)})}else{A(C,T.isFunction(D[C])?D[C]():D[C])}}}return B.join("&").replace(/%20/g,"+")}});var V={},U,AE=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function K(B,C){var A={};T.each(AE.concat.apply([],AE.slice(0,C)),function(){A[this]=B});return A}T.fn.extend({show:function(C,A){if(C){return this.animate(K("show",3),C,A)}else{for(var b=0,d=this.length;b<d;b++){var f=T.data(this[b],"olddisplay");this[b].style.display=f||"";if(T.css(this[b],"display")==="none"){var c=this[b].tagName,B;if(V[c]){B=V[c]}else{var D=T("<"+c+" />").appendTo("body");B=D.css("display");if(B==="none"){B="block"}D.remove();V[c]=B}T.data(this[b],"olddisplay",B)}}for(var b=0,d=this.length;b<d;b++){this[b].style.display=T.data(this[b],"olddisplay")||""}return this}},hide:function(B,A){if(B){return this.animate(K("hide",3),B,A)}else{for(var C=0,D=this.length;C<D;C++){var b=T.data(this[C],"olddisplay");if(!b&&b!=="none"){T.data(this[C],"olddisplay",T.css(this[C],"display"))}}for(var C=0,D=this.length;C<D;C++){this[C].style.display="none"}return this}},_toggle:T.fn.toggle,toggle:function(A,B){var C=typeof A==="boolean";return T.isFunction(A)&&T.isFunction(B)?this._toggle.apply(this,arguments):A==null||C?this.each(function(){var D=C?A:T(this).is(":hidden");T(this)[D?"show":"hide"]()}):this.animate(K("toggle",3),A,B)},fadeTo:function(C,A,B){return this.animate({opacity:A},C,B)},animate:function(A,D,B,C){var b=T.speed(D,B,C);return this[b.queue===false?"each":"queue"](function(){var d=T.extend({},b),g,c=this.nodeType==1&&T(this).is(":hidden"),f=this;for(g in A){if(A[g]=="hide"&&c||A[g]=="show"&&!c){return d.complete.call(this)}if((g=="height"||g=="width")&&this.style){d.display=T.css(this,"display");d.overflow=this.style.overflow}}if(d.overflow!=null){this.style.overflow="hidden"}d.curAnim=T.extend({},A);T.each(A,function(p,k){var l=new T.fx(f,d,p);if(/toggle|show|hide/.test(k)){l[k=="toggle"?c?"show":"hide":k](A)}else{var m=k.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),h=l.cur(true)||0;if(m){var r=parseFloat(m[2]),n=m[3]||"px";if(n!="px"){f.style[p]=(r||1)+n;h=((r||1)/l.cur(true))*h;f.style[p]=h+n}if(m[1]){r=((m[1]=="-="?-1:1)*r)+h}l.custom(h,r,n)}else{l.custom(h,k,"")}}});return true})},stop:function(B,C){var A=T.timers;if(B){this.queue([])}this.each(function(){for(var D=A.length-1;D>=0;D--){if(A[D].elem==this){if(C){A[D](true)}A.splice(D,1)}}});if(!C){this.dequeue()}return this}});T.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(B,A){T.fn[B]=function(D,C){return this.animate(A,D,C)}});T.extend({speed:function(B,A,C){var D=typeof B==="object"?B:{complete:C||!C&&A||T.isFunction(B)&&B,duration:B,easing:C&&A||A&&!T.isFunction(A)&&A};D.duration=T.fx.off?0:typeof D.duration==="number"?D.duration:T.fx.speeds[D.duration]||T.fx.speeds._default;D.old=D.complete;D.complete=function(){if(D.queue!==false){T(this).dequeue()}if(T.isFunction(D.old)){D.old.call(this)}};return D},easing:{linear:function(B,A,D,C){return D+C*B},swing:function(B,A,D,C){return((-Math.cos(B*Math.PI)/2)+0.5)*C+D}},timers:[],fx:function(B,C,A){this.options=C;this.elem=B;this.prop=A;if(!C.orig){C.orig={}}}});T.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(T.fx.step[this.prop]||T.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(A){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var B=parseFloat(T.css(this.elem,this.prop,A));return B&&B>-10000?B:parseFloat(T.curCSS(this.elem,this.prop))||0},custom:function(A,B,C){this.startTime=AD();this.start=A;this.end=B;this.unit=C||this.unit||"px";this.now=this.start;this.pos=this.state=0;var b=this;function D(c){return b.step(c)}D.elem=this.elem;if(D()&&T.timers.push(D)&&!U){U=setInterval(function(){var c=T.timers;for(var d=0;d<c.length;d++){if(!c[d]()){c.splice(d--,1)}}if(!c.length){clearInterval(U);U=AB}},13)}},show:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());T(this.elem).show()},hide:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(C){var D=AD();if(C||D>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var c=true;for(var b in this.options.curAnim){if(this.options.curAnim[b]!==true){c=false}}if(c){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(T.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){T(this.elem).hide()}if(this.options.hide||this.options.show){for(var B in this.options.curAnim){T.attr(this.elem.style,B,this.options.orig[B])}}this.options.complete.call(this.elem)}return false}else{var A=D-this.startTime;this.state=A/this.options.duration;this.pos=T.easing[this.options.easing||(T.easing.swing?"swing":"linear")](this.state,A,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};T.extend(T.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(A){T.attr(A.elem.style,"opacity",A.now)},_default:function(A){if(A.elem.style&&A.elem.style[A.prop]!=null){A.elem.style[A.prop]=A.now+A.unit}else{A.elem[A.prop]=A.now}}}});if(document.documentElement.getBoundingClientRect){T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}var c=this[0].getBoundingClientRect(),C=this[0].ownerDocument,d=C.body,f=C.documentElement,A=f.clientTop||d.clientTop||0,B=f.clientLeft||d.clientLeft||0,D=c.top+(self.pageYOffset||T.boxModel&&f.scrollTop||d.scrollTop)-A,b=c.left+(self.pageXOffset||T.boxModel&&f.scrollLeft||d.scrollLeft)-B;return{top:D,left:b}}}else{T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}T.offset.initialized||T.offset.initialize();var c=this[0],g=c.offsetParent,h=c,A=c.ownerDocument,C,f=A.documentElement,b=A.body,D=A.defaultView,k=D.getComputedStyle(c,null),B=c.offsetTop,d=c.offsetLeft;while((c=c.parentNode)&&c!==b&&c!==f){C=D.getComputedStyle(c,null);B-=c.scrollTop,d-=c.scrollLeft;if(c===g){B+=c.offsetTop,d+=c.offsetLeft;if(T.offset.doesNotAddBorder&&!(T.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(c.tagName))){B+=parseInt(C.borderTopWidth,10)||0,d+=parseInt(C.borderLeftWidth,10)||0}h=g,g=c.offsetParent}if(T.offset.subtractsBorderForOverflowNotVisible&&C.overflow!=="visible"){B+=parseInt(C.borderTopWidth,10)||0,d+=parseInt(C.borderLeftWidth,10)||0}k=C}if(k.position==="relative"||k.position==="static"){B+=b.offsetTop,d+=b.offsetLeft}if(k.position==="fixed"){B+=Math.max(f.scrollTop,b.scrollTop),d+=Math.max(f.scrollLeft,b.scrollLeft)}return{top:B,left:d}}}T.offset={initialize:function(){if(this.initialized){return }var C=document.body,g=document.createElement("div"),d,f,A,c,B,h,b=C.style.marginTop,D='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';B={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(h in B){g.style[h]=B[h]}g.innerHTML=D;C.insertBefore(g,C.firstChild);d=g.firstChild,f=d.firstChild,c=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(f.offsetTop!==5);this.doesAddBorderForTableAndCells=(c.offsetTop===5);d.style.overflow="hidden",d.style.position="relative";this.subtractsBorderForOverflowNotVisible=(f.offsetTop===-5);C.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(C.offsetTop===0);C.style.marginTop=b;C.removeChild(g);this.initialized=true},bodyOffset:function(C){T.offset.initialized||T.offset.initialize();var A=C.offsetTop,B=C.offsetLeft;if(T.offset.doesNotIncludeMarginInBodyOffset){A+=parseInt(T.curCSS(C,"marginTop",true),10)||0,B+=parseInt(T.curCSS(C,"marginLeft",true),10)||0}return{top:A,left:B}}};T.fn.extend({position:function(){var B=0,C=0,b;if(this[0]){var D=this.offsetParent(),A=this.offset(),c=/^body|html$/i.test(D[0].tagName)?{top:0,left:0}:D.offset();A.top-=Y(this,"marginTop");A.left-=Y(this,"marginLeft");c.top+=Y(D,"borderTopWidth");c.left+=Y(D,"borderLeftWidth");b={top:A.top-c.top,left:A.left-c.left}}return b},offsetParent:function(){var A=this[0].offsetParent||document.body;while(A&&(!/^body|html$/i.test(A.tagName)&&T.css(A,"position")=="static")){A=A.offsetParent}return T(A)}});T.each(["Left","Top"],function(B,C){var A="scroll"+C;T.fn[A]=function(D){if(!this[0]){return null}return D!==AB?this.each(function(){this==W||this==document?W.scrollTo(!B?D:T(W).scrollLeft(),B?D:T(W).scrollTop()):this[A]=D}):this[0]==W||this[0]==document?self[B?"pageYOffset":"pageXOffset"]||T.boxModel&&document.documentElement[A]||document.body[A]:this[0][A]}});T.each(["Height","Width"],function(B,D){var c=B?"Left":"Top",C=B?"Right":"Bottom",b=D.toLowerCase();T.fn["inner"+D]=function(){return this[0]?T.css(this[0],b,false,"padding"):null};T.fn["outer"+D]=function(d){return this[0]?T.css(this[0],b,false,d?"margin":"border"):null};var A=D.toLowerCase();T.fn[A]=function(d){return this[0]==W?document.compatMode=="CSS1Compat"&&document.documentElement["client"+D]||document.body["client"+D]:this[0]==document?Math.max(document.documentElement["client"+D],document.body["scroll"+D],document.documentElement["scroll"+D],document.body["offset"+D],document.documentElement["offset"+D]):d===AB?(this.length?T.css(this[0],A):null):this.css(A,typeof d==="string"?d:d+"px")}})})();var slider=false;(function(A){A.fn.innerfade=function(B){return this.each(function(){A.innerfade(this,B)})};A.innerfade=function(B,C){var E={animationtype:"fade",speed:"normal",type:"sequence",timeout:2000,containerheight:"auto",runningclass:"innerfade",children:null};if(C){A.extend(E,C)}if(E.children===null){var G=A(B).children()}else{var G=A(B).children(E.children)}if(G.length>1){A(B).css("position","relative").css("height",E.containerheight).addClass(E.runningclass);for(var D=0;D<G.length;D++){A(G[D]).css("z-index",String(G.length-D)).css("position","absolute").hide()}if(E.type=="sequence"){setTimeout(function(){A.innerfade.next(G,E,1,0)},E.timeout);A(G[0]).show()}else{if(E.type=="manual"){slider=new Array(G,E);A.innerfade.next(G,E,0,-1)}else{if(E.type=="random"){var F=Math.floor(Math.random()*(G.length));setTimeout(function(){do{H=Math.floor(Math.random()*(G.length))}while(F==H);A.innerfade.next(G,E,H,F)},E.timeout);A(G[F]).show()}else{if(E.type=="random_start"){E.type="sequence";var H=Math.floor(Math.random()*(G.length));setTimeout(function(){A.innerfade.next(G,E,(H+1)%G.length,H)},E.timeout);A(G[H]).show()}else{alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'")}}}}}};A.innerfade.next=function(D,B,E,C){if(!keepfading){return false}if(B.animationtype=="slide"){A(D[C]).slideUp(B.speed);A(D[E]).slideDown(B.speed)}else{if(B.animationtype=="fade"){if(C!=-1){A(D[C]).fadeOut(B.speed)}A(D[E]).fadeIn(B.speed,function(){removeFilter(A(this)[0])})}else{alert("Innerfade-animationtype must either be 'slide' or 'fade'")}}if(B.type=="sequence"){if((E+1)<D.length){E=E+1;C=E-1}else{E=0;C=D.length-1}}else{if(B.type=="random"){C=E;while(E==C){E=Math.floor(Math.random()*D.length)}}else{if(B.type=="manual"){C=E;return }else{alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'")}}}setTimeout((function(){A.innerfade.next(D,B,E,C)}),B.timeout)}})(jQuery);function removeFilter(A){if(A.style.removeAttribute){A.style.removeAttribute("filter")}}var hack=false;(function(A){A.ifixpng=function(B){A.ifixpng.pixel=B};A.ifixpng.getPixel=function(){return A.ifixpng.pixel||"images/globals/pixel.gif"};hack={ltie7:A.browser.msie&&A.browser.version<7,filter:function(B){return"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+B+"')"}};A.fn.ifixpng=hack.ltie7?function(){return this.each(function(){var B=A(this);var D=A("base").attr("href");if(D){D=D.replace(/\/[^\/]+$/,"/")}if(B.is("img")||B.is("input")){if(B.attr("src")){if(B.attr("src").match(/.*\.png([?].*)?$/i)){var C=(D&&B.attr("src").search(/^(\/|http:)/i))?D+B.attr("src"):B.attr("src");B.css({filter:hack.filter(C),width:B.width(),height:B.height()}).attr({src:A.ifixpng.getPixel()}).positionFix()}}}else{var E=B.css("backgroundImage");if(E.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)){E=RegExp.$1;E=(D&&E.substring(0,1)!="/")?D+E:E;B.css({backgroundImage:"none",filter:hack.filter(E)}).children().children().positionFix()}}})}:function(){return this};A.fn.iunfixpng=hack.ltie7?function(){return this.each(function(){var B=A(this);var C=B.css("filter");if(C.match(/src=["']?(.*\.png([?].*)?)["']?/i)){C=RegExp.$1;if(B.is("img")||B.is("input")){B.attr({src:C}).css({filter:""})}else{B.css({filter:"",background:"url("+C+")"})}}})}:function(){return this};A.fn.positionFix=function(){return this.each(function(){var C=A(this);var B=C.css("position");if(B!="absolute"&&B!="relative"){C.css({position:"relative"})}})}})(jQuery);(function(A){A.fn.slides=function(B){B=A.extend({},A.fn.slides.option,B);return this.each(function(){A("."+B.container,A(this)).children().wrapAll('<div class="slides_control"/>').children().css({display:"block"});var S=A(this),I=A(".slides_control",S),W=I.children().size(),O=A(this).children().outerWidth(),K=I.children().outerHeight(),D=B.start-1,J=B.effect.indexOf(",")<0?B.effect:B.effect.replace(" ","").split(",")[0],Q=B.effect.indexOf(",")<0?J:B.effect.replace(" ","").split(",")[1],M=0,L=0,C=0,N=0,R,G,H,U,T;if(W<2){return }if(B.start){N=D}if(B.randomize){I.randomize()}A("."+B.container,S).css({overflow:"hidden",position:"relative"});I.css({position:"relative",width:(O*3),height:K,left:-O});I.children().css({position:"absolute",top:0,left:O,zIndex:0,display:"none"});if(B.autoHeight){I.animate({height:I.children(":eq("+D+")").outerHeight()},o.autoHeightSpeed)}if(B.preload&&I.children()[0].tagName=="IMG"){S.css({background:"url("+B.preloadImage+") no-repeat 50% 50%"});var V=A("img:eq("+D+")",S).attr("src")+"?"+(new Date()).getTime();A("img:eq("+D+")",S).attr("src",V).load(function(){A(this).fadeIn(B.fadeSpeed,function(){A(this).css({zIndex:5});S.css({background:""});R=true})})}else{I.find(":eq("+D+")").fadeIn(B.fadeSpeed,function(){R=true})}if(B.bigTarget){I.children().css({cursor:"pointer"});I.children().click(function(){E("next",J);return false})}if(B.hoverPause&&B.play){I.children().bind("mouseover",function(){P()});I.children().bind("mouseleave",function(){F()})}if(B.generateNextPrev){A("."+B.container,S).after('<a href="#" class="'+B.prev+'">Prev</a>');A("."+B.prev,S).after('<a href="#" class="'+B.next+'">Next</a>')}A("."+B.next,S).click(function(X){X.preventDefault();if(B.play){F()}E("next",J)});A("."+B.prev,S).click(function(X){X.preventDefault();if(B.play){F()}E("prev",J)});if(B.generatePagination){S.append("<ul class="+B.paginationClass+"></ul>");I.children().each(function(){A("."+B.paginationClass,S).append("<li><a rel="+C+' href="#">'+(C+1)+"</a></li>");C++})}else{A("."+B.paginationClass+" li a",S).each(function(){A(this).attr("rel",C);C++})}A("."+B.paginationClass+" li a:eq("+D+")",S).parent().addClass("current");A("."+B.paginationClass+" li a",S).click(function(){if(B.play){F()}H=A(this).attr("rel");if(N!=H){E("pagination",Q,H)}return false});if(B.play){playInterval=setInterval(function(){E("next",J)},B.play);S.data("interval",playInterval)}function P(){clearInterval(S.data("interval"))}function F(){if(B.pause){clearTimeout(S.data("pause"));clearInterval(S.data("interval"));pauseTimeout=setTimeout(function(){clearTimeout(S.data("pause"));playInterval=setInterval(function(){E("next",J)},B.play);S.data("interval",playInterval)},B.pause);S.data("pause",pauseTimeout)}else{P()}}function E(Z,Y,X){if(!G&&R){G=true;switch(Z){case"next":L=N;M=N+1;M=W===M?0:M;U=O*2;Z=-O*2;N=M;break;case"prev":L=N;M=N-1;M=M===-1?W-1:M;U=0;Z=0;N=M;break;case"pagination":M=parseInt(X,10);L=A("."+B.paginationClass+" li.current a",S).attr("rel");if(M>L){U=O*2;Z=-O*2}else{U=0;Z=0}N=M;break}if(Y==="fade"){if(B.crossfade){I.children(":eq("+M+")",S).css({zIndex:10}).fadeIn(B.fadeSpeed,function(){I.children(":eq("+L+")",S).css({display:"none",zIndex:0});A(this).css({zIndex:0});G=false})}else{I.children(":eq("+L+")",S).fadeOut(B.fadeSpeed,function(){if(B.autoHeight){I.animate({height:I.children(":eq("+M+")",S).outerHeight()},B.autoHeightSpeed,function(){I.children(":eq("+M+")",S).fadeIn(S.data("slides").fadeSpeed)})}else{I.children(":eq("+M+")",S).fadeIn(B.fadeSpeed,function(){if(A.browser.msie){A(this).get(0).style.removeAttribute("filter")}})}G=false})}}else{I.children(":eq("+M+")").css({left:U,display:"block"});if(B.autoHeight){I.animate({left:Z,height:I.children(":eq("+M+")").outerHeight()},B.slideSpeed,function(){I.css({left:-O});I.children(":eq("+M+")").css({left:O,zIndex:5});I.children(":eq("+L+")").css({left:O,display:"none",zIndex:0});G=false})}else{I.animate({left:Z},B.slideSpeed,function(){I.css({left:-O});I.children(":eq("+M+")").css({left:O,zIndex:5});I.children(":eq("+L+")").css({left:O,display:"none",zIndex:0});G=false})}}if(B.pagination){A("."+B.paginationClass+" li.current",S).removeClass("current");A("."+B.paginationClass+" li a:eq("+M+")",S).parent().addClass("current")}}}})};A.fn.slides.option={preload:false,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:false,next:"next",prev:"prev",pagination:true,generatePagination:true,paginationClass:"pagination",fadeSpeed:350,slideSpeed:350,start:1,effect:"slide",crossfade:false,randomize:false,play:0,pause:0,hoverPause:false,autoHeight:false,autoHeightSpeed:350,bigTarget:false};A.fn.randomize=function(C){function B(){return(Math.round(Math.random())-0.5)}return(A(this).each(function(){var F=A(this);var E=F.children();var D=E.length;if(D>1){E.hide();var G=[];for(i=0;i<D;i++){G[G.length]=i}G=G.sort(B);A.each(G,function(I,H){var K=E.eq(H);var J=K.clone(true);J.show().appendTo(F);if(C!==undefined){C(K,J)}K.remove()})}}))}})(jQuery);var currentTooltip=false;var previousShowBigger=false;$(function(){$(".get-media,.hide-media").click(function(){$(this).parent().find(".showed-media").slideToggle("fast",function(){if(this.style.display!="none"){$(this).parent().find(".hide-media").css("display","block");$(this).parent().find(".get-media").css("display","none")}else{$(this).parent().find(".hide-media").css("display","none");$(this).parent().find(".get-media").css("display","block")}})});$(".external").attr("target","_blank");$("input").focus(function(){if(this.value==this.defaultValue){this.value=""}}).blur(function(){if(!this.value.length){this.value=this.defaultValue}});$("ul.proces:last").css("border","none");$("#flat_fltr").hide();$("#flat_fltr_toggle").click(function(){$("#flat_fltr").show();return false});$(".media-right img, .media-left img").each(function(){width=this.width+2;$(this.parentNode.parentNode).css("width",width+"px");this.onload=function(){width=this.width+2;$(this.parentNode.parentNode).css("width",width+"px")}});if($("#slides").size()>0){$("#slides").slides({preload:true,pause:2500,hoverPause:true})}$("#productconfig li form").hide();$("#productconfig li .config_a").click(function(){$(this).hide();$(this).next("form").show()});$("#productconfig li form a").click(function(){$(this).parents("form").hide();$(this).parents("li").find(".config_a").show();return false});$("#prod2-form").hide();$(".show-prod2").click(function(){$("#prod2-form").show()});$(".hide-prod2").click(function(){$("#prod2-form").hide()});$("#change_photo").hide();$("#gochange_photo").click(function(){$(this).hide();$("#change_photo").show();return false});$("#change_photo a").click(function(){$("#gochange_photo").show();$(this).parents("#change_photo").hide();return false});$(".product-overview ul").each(function(){$(this).children("li:gt(4)").hide();if($(this).children("li:gt(4)").length>0){$(this).append('<li class="more">Meer...</li>')}});$(".more").toggle(function(){$(this).prevAll("li").show();$(this).text("Minder...")},function(){$(this).parent().children("li:gt(4):not(.more)").hide();$(this).text("Meer...")});if($("#equalize").equalHeights){$("#equalize").equalHeights(true)}$(".hide-info, #frm-download-hidden").hide();$(".more-info, .hide-info, .close").click(function(){if($(this).hasClass("more-info")){$(this).removeClass("more-info").addClass("hide-info");$(this).children("a").hide();$(this).children(".hide-more-info").show()}else{$(this).removeClass("hide-info").addClass("more-info");$(this).children("a").show();$(this).children(".hide-more-info").hide()}$("#more-text, #frm-download-hidden").slideToggle("slow")});$(".news-column, .table-download tr td").click(function(){window.location=$(this).find("a").attr("href");return false});$(".news-column, .table-download tr").hover(function(){$(this).addClass("over-pointer")},function(){$(this).removeClass("over-pointer")});$(".detail-table li:nth-child(even), .table-detail tr:nth-child(even)").addClass("striped");$(".page-options li:nth-child(even)").addClass("print-page");$(".compare tr").mouseover(function(){$(this).addClass("over")}).mouseout(function(){$(this).removeClass("over")});$(".compare tr:nth-child(even), .table-download tr:nth-child(even)").addClass("stripe-table");$(".refine dd:last-child").addClass("bullet-refine");$(".address-list ul li:first-child").addClass("block-address");$(".address-list ul li:nth-child(2)").addClass("prev-address");$("#news-column dl dd:last-child").addClass("all-news");$(".tooltip, .hover-tip").click(function(){node=this;do{cn=node.className}while(!cn.match(/tooltip(\d+)/)&&(node=node.parentNode));tooltipID=cn.match(/tooltip(\d+)/);if(tooltipID){tooltipID=tooltipID[1];$(".hover-tip.tooltip"+tooltipID+", .tooltip.tooltip"+tooltipID).animate({opacity:"hide"},"slow")}else{$(".tooltip, .hover-tip").animate({opacity:"hide"},"slow")}});$(".show-tooltip").click(function(){if(tooltipID=this.className.match(/tooltip(\d+)/)){if(currentTooltip){$(".tooltip.tooltip"+currentTooltip).animate({opacity:"hide"},"slow")}currentTooltip=tooltipID=tooltipID[1]*1;$(".tooltip.tooltip"+tooltipID).animate({opacity:"show"},"slow")}});$(".hover-tooltip").hover(function(){if(tooltipID=this.className.match(/tooltip(\d+)/)){tooltipID=tooltipID[1]*1;$(".hover-tip.tooltip"+tooltipID).animate({opacity:"show"},"slow")}},function(){});window.bind_click=function(){$(".show-bigger").unbind("click");$(".show-bigger").click(function(){relSplit=this.rel.split(/\s/);image_id=relSplit[1];image_url=relSplit[2];$("#"+image_id).attr("src",image_url);$("#"+image_id).attr("alt",this.childNodes[1].alt);$("#"+image_id).parent().attr("href",this.href);return false})};window.bind_click();$(function(){$("a[rel^='prettyPhoto']").prettyPhoto();$("a[rel=prettyVideo]").click(function(){$.prettyPhoto.open(this.href,this.title,"");return false});if(window.bind_click){window.bind_click()}});$("img[src$=.png],ul#sub-tabs li a, .home h2, .play-video, ul#innerfade_list li.current a, ul#random_images li span, #random_images dt, .product-overview h2 a").ifixpng();var A=false;$("#carousel .btnnext, #carousel .btnprev").click(function(){if(A){return false}var D=880;var F=$("#carousel .wrapper ul li").size()*220;var C=($("#carousel .wrapper ul li").size()-4)*220*-1;var G=$("#carousel .wrapper ul").css("width",F).position().left;if(G%220!=0){G=Math.round(G/220)*220}var E=$(this).hasClass("btnnext");var H=E?G-220:G+220;if(!E&&H<=0){A=true;$("#carousel .wrapper ul").animate({left:H+"px"},function(){A=false})}if(E&&H>=C){A=true;$("#carousel .wrapper ul").animate({left:H+"px"},function(){A=false})}if(H==0){$("#carousel .btnprev").addClass("inactive");$("#carousel .btnnext").removeClass("inactive")}else{if(H-D<=F*-1){$("#carousel .btnnext").addClass("inactive");if(H<0){$("#carousel .btnprev").removeClass("inactive")}}else{if(H<0){$("#carousel .btnprev").removeClass("inactive");$("#carousel .btnnext").removeClass("inactive")}}}});$(".service .select-language a").click(function(){$("#lang-down").toggle();return false});$("body").click(function(){$("#lang-down").hide()});$(".ddown a").click(function(){if($(this).hasClass("disabled")){return false}var C=$(".ddown a").index($(this));$(".dropdown").eq(C).toggle();return false});$("body").click(function(){$(".dropdown").hide()});$("body").keyup(function(D){if(D.which>=65&&D.which<=90){var C=$(".dropdown:visible");if(C.size()>0){C.find("li").each(function(){if($(this).text().charCodeAt(0)==D.which){var E=C.find("li").index($(this))*$(this).height();C[0].scrollTop=E;return false}})}}});$("#slides .slide:first").addClass("active");$("#slides .slide:not(.active)").hide();var B=setTimeout("sliderNext(true)",3000);$("#slides").data("auto",true).data("timeout",B);$("#slides a.next, #slides a.prev").click(function(){if($("#slides").data("auto")){$("#slides").data("auto",false);clearTimeout($("#slides").data("timeout"))}sliderNext($(this).hasClass("next"));return false})});function sliderNext(B){var C=$("#slides .slide").size();var A=$("#slides .slide").index($("#slides .slide.active"));if(B){A=A==(C-1)?0:A+1}else{A=A==0?C-1:A-1}$("#slides .slide.active").removeClass("active").fadeOut();$("#slides .slide").eq(A).addClass("active").fadeIn();if($("#slides").data("auto")){var D=setTimeout("sliderNext(true)",3000);$("#slides").data("timeout",D)}}var fadelist_selectors=new Array();var fadelist_displays=new Array();var keepfading=true;var previous=0;function init_innerfade(){fadelist=document.getElementById("innerfade_list");for(var A=0;A<fadelist.childNodes.length;A++){el=fadelist.childNodes[A];if(el.tagName=="LI"){fadelist_selectors[index=fadelist_selectors.length]=el;a=el.childNodes[0];a.tag=index;a.onmouseover=function(){if(this.tag==previous){return }$.innerfade.next(slider[0],slider[1],this.tag,previous);for(var B=0;B<fadelist_selectors.length;B++){if(fadelist_selectors[B].childNodes[0].tag==this.tag){fadelist_selectors[B].className="current";if(window.hack&&window.hack.ltie7){fadelist_selectors[B].childNodes[0].style.backgroundImage="url(images/backgrounds/slide-current.png)";fadelist_selectors[B].childNodes[0].style.cursor="hand"}}else{if(window.hack&&window.hack.ltie7){if(fadelist_selectors[B].childNodes[0].tag==previous){fadelist_selectors[B].childNodes[0].style.filter="";fadelist_selectors[B].childNodes[0].style.backgroundImage="url(images/backgrounds/bg-slide-li.gif)"}}fadelist_selectors[B].className=""}}previous=this.tag;$("#innerfade_list li a").ifixpng()}}}randimg=document.getElementById("random_images");for(var A=0;A<fadelist.childNodes.length;A++){if(el.tagName=="LI"){fadelist_displays[fadelist_displays.length]=el}}}$(window.document).ready(function(){if($("#innerfade_list").size()!=0){fadeobject=new Object();fadeobject.animationtype="fade";fadeobject.speed="fast";fadeobject.timeout="";fadeobject.type="manual";fadeobject.containerheight="auto";fadeobject.runningclass="innerfade";$("#random_images").innerfade(fadeobject);init_innerfade()}});(function(A){A.prettyPhoto={version:"3.0"};A.fn.prettyPhoto=function(D){D=jQuery.extend({animation_speed:"fast",slideshow:false,autoplay_slideshow:false,opacity:0.8,show_title:true,allow_resize:true,default_width:500,default_height:344,counter_separator_label:"/",theme:"facebook",hideflash:false,wmode:"opaque",autoplay:true,modal:false,overlay_gallery:true,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},markup:'<div class="pp_pic_holder"><div class="ppt">&nbsp;</div><div class="pp_top"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div><div class="pp_content_container"><div class="pp_left"><div class="pp_right"><div class="pp_content"><div class="pp_loaderIcon"></div><div class="pp_fade"><a href="#" class="pp_expand" title="Expand the image">Expand</a><div class="pp_hoverContainer"><a class="pp_next" href="#">next</a><a class="pp_previous" href="#">previous</a></div><div id="pp_full_res"></div><div class="pp_details clearfix"><p class="pp_description"></p><a class="pp_close" href="#">Close</a><div class="pp_nav"><a href="#" class="pp_arrow_previous">Previous</a><p class="currentTextHolder">0/0</p><a href="#" class="pp_arrow_next">Next</a></div></div></div></div></div></div></div><div class="pp_bottom"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div></div><div class="pp_overlay"></div>',gallery_markup:'<div class="pp_gallery"><a href="#" class="pp_arrow_previous">Previous</a><ul>{gallery}</ul><a href="#" class="pp_arrow_next">Next</a></div>',image_markup:'<img id="fullResImage" src="" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',inline_markup:'<div class="pp_inline clearfix">{content}</div>',custom_markup:""},D);var I=this,H=false,S,M,N,O,R,U,E=A(window).height(),X=A(window).width(),F;doresize=true,scroll_pos=V();A(window).unbind("resize").resize(function(){L();Q()});if(D.keyboard_shortcuts){A(document).unbind("keydown").keydown(function(Y){if(typeof $pp_pic_holder!="undefined"){if($pp_pic_holder.is(":visible")){switch(Y.keyCode){case 37:A.prettyPhoto.changePage("previous");break;case 39:A.prettyPhoto.changePage("next");break;case 27:if(!settings.modal){A.prettyPhoto.close()}break}return false}}})}A.prettyPhoto.initialize=function(){settings=D;if(A.browser.msie&&parseInt(A.browser.version)==6){settings.theme="light_square"}T(this);if(settings.allow_resize){A(window).scroll(function(){L()})}L();set_position=jQuery.inArray(A(this).attr("href"),pp_images);A.prettyPhoto.open();return false};A.prettyPhoto.open=function(){if(typeof settings=="undefined"){settings=D;if(A.browser.msie&&A.browser.version==6){settings.theme="light_square"}T(this);pp_images=A.makeArray(arguments[0]);pp_titles=(arguments[1])?A.makeArray(arguments[1]):A.makeArray("");pp_descriptions=(arguments[2])?A.makeArray(arguments[2]):A.makeArray("");isSet=(pp_images.length>1)?true:false;set_position=0}if(A.browser.msie&&A.browser.version==6){A("select").css("visibility","hidden")}if(settings.hideflash){A("object,embed").css("visibility","hidden")}G(A(pp_images).size());A(".pp_loaderIcon").show();if($ppt.is(":hidden")){$ppt.css("opacity",0).show()}$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find(".currentTextHolder").text((set_position+1)+settings.counter_separator_label+A(pp_images).size());$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position]));(settings.show_title&&pp_titles[set_position]!="")?$ppt.html(unescape(pp_titles[set_position])):$ppt.html("&nbsp;");movie_width=(parseFloat(B("width",pp_images[set_position])))?B("width",pp_images[set_position]):settings.default_width.toString();movie_height=(parseFloat(B("height",pp_images[set_position])))?B("height",pp_images[set_position]):settings.default_height.toString();if(movie_width.indexOf("%")!=-1||movie_height.indexOf("%")!=-1){movie_height=parseFloat((A(window).height()*parseFloat(movie_height)/100)-150);movie_width=parseFloat((A(window).width()*parseFloat(movie_width)/100)-150);H=true}else{H=false}$pp_pic_holder.fadeIn(function(){imgPreloader="";switch(W(pp_images[set_position])){case"image":imgPreloader=new Image();nextImage=new Image();if(isSet&&set_position>A(pp_images).size()){nextImage.src=pp_images[set_position+1]}prevImage=new Image();if(isSet&&pp_images[set_position-1]){prevImage.src=pp_images[set_position-1]}$pp_pic_holder.find("#pp_full_res")[0].innerHTML=settings.image_markup;$pp_pic_holder.find("#fullResImage").attr("src",pp_images[set_position]);imgPreloader.onload=function(){S=K(imgPreloader.width,imgPreloader.height);_showContent()};imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist.");A.prettyPhoto.close()};imgPreloader.src=pp_images[set_position];break;case"youtube":S=K(movie_width,movie_height);movie="http://www.youtube.com/v/"+B("v",pp_images[set_position]);if(settings.autoplay){movie+="&autoplay=1"}toInject=settings.flash_markup.replace(/{width}/g,S.width).replace(/{height}/g,S.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":S=K(movie_width,movie_height);movie_id=pp_images[set_position];var Z=/http:\/\/(www\.)?vimeo.com\/(\d+)/;var Y=movie_id.match(Z);movie="http://player.vimeo.com/video/"+Y[2]+"?title=0&amp;byline=0&amp;portrait=0";if(settings.autoplay){movie+="&autoplay=1;"}vimeo_width=S.width+"/embed/?moog_width="+S.width;toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,S.height).replace(/{path}/g,movie);break;case"quicktime":S=K(movie_width,movie_height);S.height+=15;S.contentHeight+=15;S.containerHeight+=15;toInject=settings.quicktime_markup.replace(/{width}/g,S.width).replace(/{height}/g,S.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":S=K(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf("?"));toInject=settings.flash_markup.replace(/{width}/g,S.width).replace(/{height}/g,S.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":S=K(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1);toInject=settings.iframe_markup.replace(/{width}/g,S.width).replace(/{height}/g,S.height).replace(/{path}/g,frame_url);break;case"custom":S=K(movie_width,movie_height);toInject=settings.custom_markup;break;case"inline":myClone=A(pp_images[set_position]).clone().css({width:settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline clearfix"></div></div>').appendTo(A("body"));S=K(A(myClone).width(),A(myClone).height());A(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,A(pp_images[set_position]).html());break}if(!imgPreloader){$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;_showContent()}});return false};A.prettyPhoto.changePage=function(Y){currentGalleryPage=0;if(Y=="previous"){set_position--;if(set_position<0){set_position=0;return }}else{if(Y=="next"){set_position++;if(set_position>A(pp_images).size()-1){set_position=0}}else{set_position=Y}}if(!doresize){doresize=true}A(".pp_contract").removeClass("pp_contract").addClass("pp_expand");J(function(){A.prettyPhoto.open()})};A.prettyPhoto.changeGalleryPage=function(Y){if(Y=="next"){currentGalleryPage++;if(currentGalleryPage>totalPage){currentGalleryPage=0}}else{if(Y=="previous"){currentGalleryPage--;if(currentGalleryPage<0){currentGalleryPage=totalPage}}else{currentGalleryPage=Y}}itemsToSlide=(currentGalleryPage==totalPage)?pp_images.length-((totalPage)*itemsPerPage):itemsPerPage;$pp_pic_holder.find(".pp_gallery li").each(function(Z){A(this).animate({left:(Z*itemWidth)-((itemsToSlide*itemWidth)*currentGalleryPage)})})};A.prettyPhoto.startSlideshow=function(){if(typeof F=="undefined"){$pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){A.prettyPhoto.stopSlideshow();return false});F=setInterval(A.prettyPhoto.startSlideshow,settings.slideshow)}else{A.prettyPhoto.changePage("next")}};A.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){A.prettyPhoto.startSlideshow();return false});clearInterval(F);F=undefined};A.prettyPhoto.close=function(){clearInterval(F);$pp_pic_holder.stop().find("object,embed").css("visibility","hidden");A("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){A(this).remove()});$pp_overlay.fadeOut(settings.animation_speed,function(){if(A.browser.msie&&A.browser.version==6){A("select").css("visibility","visible")}if(settings.hideflash){A("object,embed").css("visibility","visible")}A(this).remove();A(window).unbind("scroll");settings.callback();doresize=true;M=false;delete settings})};_showContent=function(){A(".pp_loaderIcon").hide();$ppt.fadeTo(settings.animation_speed,1);projectedTop=scroll_pos.scrollTop+((E/2)-(S.containerHeight/2));if(projectedTop<0){projectedTop=0}$pp_pic_holder.find(".pp_content").animate({height:S.contentHeight},settings.animation_speed);$pp_pic_holder.animate({top:projectedTop,left:(X/2)-(S.containerWidth/2),width:S.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(S.height).width(S.width);$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);if(isSet&&W(pp_images[set_position])=="image"){$pp_pic_holder.find(".pp_hoverContainer").show()}else{$pp_pic_holder.find(".pp_hoverContainer").hide()}if(S.resized){A("a.pp_expand,a.pp_contract").fadeIn(settings.animation_speed)}if(settings.autoplay_slideshow&&!F&&!M){A.prettyPhoto.startSlideshow()}settings.changepicturecallback();M=true});C()};function J(Y){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){A(".pp_loaderIcon").show();Y()})}function G(Y){if(set_position==Y-1){$pp_pic_holder.find("a.pp_next").css("visibility","hidden");$pp_pic_holder.find("a.pp_next").addClass("disabled").unbind("click")}else{$pp_pic_holder.find("a.pp_next").css("visibility","visible");$pp_pic_holder.find("a.pp_next.disabled").removeClass("disabled").bind("click",function(){A.prettyPhoto.changePage("next");return false})}if(set_position==0){$pp_pic_holder.find("a.pp_previous").css("visibility","hidden").addClass("disabled").unbind("click")}else{$pp_pic_holder.find("a.pp_previous.disabled").css("visibility","visible").removeClass("disabled").bind("click",function(){A.prettyPhoto.changePage("previous");return false})}(Y>1)?A(".pp_nav").show():A(".pp_nav").hide()}function K(Z,Y){resized=false;P(Z,Y);imageWidth=Z,imageHeight=Y;if(((U>X)||(R>E))&&doresize&&settings.allow_resize&&!H){resized=true,fitting=false;while(!fitting){if((U>X)){imageWidth=(X-200);imageHeight=(Y/Z)*imageWidth}else{if((R>E)){imageHeight=(E-200);imageWidth=(Z/Y)*imageHeight}else{fitting=true}}R=imageHeight,U=imageWidth}P(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(R),containerWidth:Math.floor(U)+40,contentHeight:Math.floor(N),contentWidth:Math.floor(O),resized:resized}}function P(Z,Y){Z=parseFloat(Z);Y=parseFloat(Y);$pp_details=$pp_pic_holder.find(".pp_details");$pp_details.width(Z);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().appendTo(A("body")).css({position:"absolute",top:-10000});detailsHeight+=$pp_details.height();detailsHeight=(detailsHeight<=34)?36:detailsHeight;if(A.browser.msie&&A.browser.version==7){detailsHeight+=8}$pp_details.remove();N=Y+detailsHeight;O=Z;R=N+$ppt.height()+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();U=Z}function W(Y){if(Y.match(/youtube\.com\/watch/i)){return"youtube"}else{if(Y.match(/vimeo\.com/i)){return"vimeo"}else{if(Y.indexOf(".mov")!=-1){return"quicktime"}else{if(Y.indexOf(".swf")!=-1){return"flash"}else{if(Y.indexOf("iframe")!=-1){return"iframe"}else{if(Y.indexOf("custom")!=-1){return"custom"}else{if(Y.substr(0,1)=="#"){return"inline"}else{return"image"}}}}}}}}function L(){if(doresize&&typeof $pp_pic_holder!="undefined"){scroll_pos=V();titleHeight=$ppt.height(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=(E/2)+scroll_pos.scrollTop-(contentHeight/2);$pp_pic_holder.css({top:projectedTop,left:(X/2)+scroll_pos.scrollLeft-(contentwidth/2)})}}function V(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}}else{if(document.documentElement&&document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}}else{if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}}}}}function Q(){E=A(window).height(),X=A(window).width();if(typeof $pp_overlay!="undefined"){$pp_overlay.height(A(document).height())}}function C(){if(isSet&&settings.overlay_gallery&&W(pp_images[set_position])=="image"){itemWidth=52+5;navWidth=(settings.theme=="facebook")?58:38;itemsPerPage=Math.floor((S.containerWidth-100-navWidth)/itemWidth);itemsPerPage=(itemsPerPage<pp_images.length)?itemsPerPage:pp_images.length;totalPage=Math.ceil(pp_images.length/itemsPerPage)-1;if(totalPage==0){navWidth=0;$pp_pic_holder.find(".pp_gallery .pp_arrow_next,.pp_gallery .pp_arrow_previous").hide()}else{$pp_pic_holder.find(".pp_gallery .pp_arrow_next,.pp_gallery .pp_arrow_previous").show()}galleryWidth=itemsPerPage*itemWidth+navWidth;$pp_pic_holder.find(".pp_gallery").width(galleryWidth).css("margin-left",-(galleryWidth/2));$pp_pic_holder.find(".pp_gallery ul").width(itemsPerPage*itemWidth).find("li.selected").removeClass("selected");goToPage=(Math.floor(set_position/itemsPerPage)<=totalPage)?Math.floor(set_position/itemsPerPage):totalPage;if(itemsPerPage){$pp_pic_holder.find(".pp_gallery").hide().show().removeClass("disabled")}else{$pp_pic_holder.find(".pp_gallery").hide().addClass("disabled")}A.prettyPhoto.changeGalleryPage(goToPage);$pp_pic_holder.find(".pp_gallery ul li:eq("+set_position+")").addClass("selected")}else{$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave");$pp_pic_holder.find(".pp_gallery").hide()}}function T(Y){theRel=A(Y).attr("rel");galleryRegExp=/\[(?:.*)\]/;isSet=(galleryRegExp.exec(theRel))?true:false;pp_images=(isSet)?jQuery.map(I,function(f,d){if(A(f).attr("rel").indexOf(theRel)!=-1){return A(f).attr("href")}}):A.makeArray(A(Y).attr("href"));pp_titles=(isSet)?jQuery.map(I,function(f,d){if(A(f).attr("rel").indexOf(theRel)!=-1){return(A(f).find("img").attr("alt"))?A(f).find("img").attr("alt"):""}}):A.makeArray(A(Y).find("img").attr("alt"));pp_descriptions=(isSet)?jQuery.map(I,function(f,d){if(A(f).attr("rel").indexOf(theRel)!=-1){return(A(f).attr("title"))?A(f).attr("title"):""}}):A.makeArray(A(Y).attr("title"));A("body").append(settings.markup);$pp_pic_holder=A(".pp_pic_holder"),$ppt=A(".ppt"),$pp_overlay=A("div.pp_overlay");if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var b=0;b<pp_images.length;b++){var c=new RegExp("(.*?).(jpg|jpeg|png|gif)$");var Z=c.exec(pp_images[b]);if(!Z){classname="default"}else{classname=""}toInject+="<li class='"+classname+"'><a href='#'><img src='"+pp_images[b]+"' width='50' alt='' /></a></li>"}toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find("#pp_full_res").after(toInject);$pp_pic_holder.find(".pp_gallery .pp_arrow_next").click(function(){A.prettyPhoto.changeGalleryPage("next");A.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_gallery .pp_arrow_previous").click(function(){A.prettyPhoto.changeGalleryPage("previous");A.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()});itemWidth=52+5;$pp_pic_holder.find(".pp_gallery ul li").each(function(d){A(this).css({position:"absolute",left:d*itemWidth});A(this).find("a").unbind("click").click(function(){A.prettyPhoto.changePage(d);A.prettyPhoto.stopSlideshow();return false})})}if(settings.slideshow){$pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>');$pp_pic_holder.find(".pp_nav .pp_play").click(function(){A.prettyPhoto.startSlideshow();return false})}$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme);$pp_overlay.css({opacity:0,height:A(document).height(),width:A(document).width()}).bind("click",function(){if(!settings.modal){A.prettyPhoto.close()}});A("a.pp_close").bind("click",function(){A.prettyPhoto.close();return false});A("a.pp_expand").bind("click",function(d){if(A(this).hasClass("pp_expand")){A(this).removeClass("pp_expand").addClass("pp_contract");doresize=false}else{A(this).removeClass("pp_contract").addClass("pp_expand");doresize=true}J(function(){A.prettyPhoto.open()});return false});$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){A.prettyPhoto.changePage("previous");A.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){A.prettyPhoto.changePage("next");A.prettyPhoto.stopSlideshow();return false});L()}return this.unbind("click").click(A.prettyPhoto.initialize)};function B(E,D){E=E.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var C="[\\?&]"+E+"=([^&#]*)";var G=new RegExp(C);var F=G.exec(D);return(F==null)?"":F[1]}})(jQuery);
/*!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox")});function tb_init(A){$(A).click(function(){var C=this.title||this.name||null;var B=this.href||this.alt;var D=this.rel||false;tb_show(C,B,D);this.blur();return false})}function tb_show(I,B,G){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}else{if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack")}else{$("#TB_overlay").addClass("TB_overlayBG")}if(I===null){I=""}$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$("#TB_load").show();var C;if(B.indexOf("?")!==-1){C=B.substr(0,B.indexOf("?"))}else{C=B}var E=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var J=C.toLowerCase().match(E);if(J==".jpg"||J==".jpeg"||J==".png"||J==".gif"||J==".bmp"){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(G){TB_TempArray=$("a[@rel="+G+"]").get();for(TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML===""));TB_Counter++){var F=TB_TempArray[TB_Counter].href.toLowerCase().match(E);if(!(TB_TempArray[TB_Counter].href==B)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>"}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>"}}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+(TB_TempArray.length)}}}imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var N=tb_getPageSize();var L=N[0]-150;var Q=N[1]-150;var M=imgPreloader.width;var K=imgPreloader.height;if(M>L){K=K*(L/M);M=L;if(K>Q){M=M*(Q/K);K=Q}}else{if(K>Q){M=M*(Q/K);K=Q;if(M>L){K=K*(L/M);M=L}}}TB_WIDTH=M+30;TB_HEIGHT=K+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+B+"' width='"+M+"' height='"+K+"' alt='"+I+"'/></a><div id='TB_caption'>"+I+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Sluiten'>Sluiten</a></div>");$("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function P(){if($(document).unbind("click",P)){$(document).unbind("click",P)}$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,G);return false}$("#TB_prev").click(P)}if(!(TB_NextHTML==="")){function O(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,G);return false}$("#TB_next").click(O)}document.onkeydown=function(R){if(R==null){keycode=event.keyCode}else{keycode=R.which}if(keycode==27){tb_remove()}else{if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";O()}}else{if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";P()}}}}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=B}else{var A=B.replace(/^[^\?]+\??/,"");var D=tb_parseQuery(A);TB_WIDTH=(D.width*1)+30||630;TB_HEIGHT=(D.height*1)+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(B.indexOf("TB_iframe")!=-1){urlNoQuery=B.split("TB_");$("#TB_iframeContent").remove();if(D.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+I+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>Close</a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>")}}else{if($("#TB_window").css("display")!="block"){if(D.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+I+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>")}}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(I)}}$("#TB_closeWindowButton").click(tb_remove);if(B.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+D.inlineId).children());$("#TB_window").unload(function(){$("#"+D.inlineId).append($("#TB_ajaxContent").children())});tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"})}else{if(B.indexOf("TB_iframe")!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"})}}else{$("#TB_ajaxContent").load(B+="&random="+(new Date().getTime()),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})})}}}if(!D.modal){document.onkeyup=function(K){if(K==null){keycode=event.keyCode}else{keycode=K.which}if(keycode==27){tb_remove()}}}}catch(H){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";document.onkeyup="";return false}function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt((TB_WIDTH/2),10)+"px",width:TB_WIDTH+"px"});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#TB_window").css({marginTop:"-"+parseInt((TB_HEIGHT/2),10)+"px"})}}function tb_parseQuery(D){var E={};if(!D){return E}var A=D.split(/[;&]/);for(var C=0;C<A.length;C++){var G=A[C].split("=");if(!G||G.length!=2){continue}var B=unescape(G[0]);var F=unescape(G[1]);F=F.replace(/\+/g," ");E[B]=F}return E}function tb_getPageSize(){var C=document.documentElement;var A=window.innerWidth||self.innerWidth||(C&&C.clientWidth)||document.body.clientWidth;var B=window.innerHeight||self.innerHeight||(C&&C.clientHeight)||document.body.clientHeight;arrayPageSize=[A,B];return arrayPageSize}function tb_detectMacXFF(){var A=navigator.userAgent.toLowerCase();if(A.indexOf("mac")!=-1&&A.indexOf("firefox")!=-1){return true}}var sortRemember="";var selectedProducts=new Array();var from=0;var general_refine_tooltip_maxcompare_alert="Max is 3.";var general_refine_tooltip_compare="Vergelijk";var general_refine_tooltip_compare_show="Bekijk vergelijking";var general_total_amount_of_products=" producten. pagina";var general_refine_tooltip_first_select_products="";var compareLink="";var totalCount=0;var documentUrl=new QueryStringBuilder();setUpQueryStringBuilder();function showAmount(A){totalCount=A}function buildViewAreaSearch(A,B,C){if(totalCount==0){totalCount=applicationData.prdproducts.prdproduct.length}$("div.products").before("<p><strong>"+applicationData.prdproducts.prdlistinfo[0].numberofproducts+"</strong>&nbsp;"+B+":</p>");buildViewArea(A,true,true);if(totalCount==2&&applicationData.prdproducts.prdproduct.length>totalCount){$("div.products").after('<p><a href="/" onclick="document.location.href = document.location.href + \'&showProd=all\'; return false;">'+C+"</a></p>")}}function buildViewArea(J,B,A,M,R,C,H){var Q=applicationData.prdproducts.prdproduct.length;var G=$(".mostpopular div.product").length;if(G==0){var D=new Array(3)}if(G==0&&Q>3){var I=new Array(Q-3)}else{var I=new Array(Q)}for(q=0;q<Q;q++){var E=new Array();if(!B||(B&&q<totalCount)){productid=applicationData.prdproducts.prdproduct[q]["id"];productcode=applicationData.prdproducts.prdproduct[q]["code"];productname=applicationData.prdproducts.prdproduct[q]["name"];productimage=applicationData.prdproducts.prdproduct[q]["image1"];if(productimage===undefined){productimage=applicationData.prdproducts.prdproduct[q]["image"]}if(productimage===undefined){productimage=J+"/globals/no-img.gif"}productdetaillink=applicationData.prdproducts.prdproduct[q]["detaillink"];properties=applicationData.prdproducts.prdproduct[q]["prdproperties"];E.push('<div class="product">');if(M===undefined){E.push('<a class="imgholder" href="'+getProductDetailLink(productdetaillink)+'">')}E.push('<img src="'+productimage+'" alt="'+productname+'" />');if(M===undefined){E.push("</a>")}E.push("<h3>");if(M===undefined){E.push('<a href="'+getProductDetailLink(productdetaillink)+'">')}E.push(productcode);E.push("<span>"+productname+"</span>");if(M===undefined){E.push("</a>")}E.push("</h3>");if(!B&&!A){E.push('<div class="compare-product">');E.push('<input type="checkbox" id="check_'+productid+'" class="comparecheck check_'+productid+'" name="'+productname.replace("'","''")+'" />');E.push('<label for="check_'+productid+'">'+general_refine_tooltip_compare_show+"</label>");E.push('<a href="#" style="display:none;" class="btndark">'+general_refine_tooltip_compare_show+"</a>");E.push("</div>")}E.push("<ul>");var F=false;var K=false;$.each(properties,function(S,T){if(S<=4){propid=T.id;if(propid>0){propname=T.name;propval=T.value;if(T.label=="turn"&&propval.split(" ")[0]>0){F=true}if(T.label=="tilt"&&propval.split(" ")[0]>0){K=true}if((T.label=="maxSize"||T.label=="minSize")&&propval.indexOf('"')==-1){propval+=' "'}if((T.label=="tilt"||T.label=="turn")&&propval.indexOf("°")==-1){propval+=" °"}E.push('<li class="sortprop_'+propid+'">');E.push(propname+":&nbsp;");if(propval=="No"){E.push("-")}else{if(propval=="Yes"){E.push('<span class="present">&nbsp;</span>')}else{E.push(propval)}}E.push("</li>")}}});$.each(properties,function(S,T){if(S>4){if(T&&T.label!="professionalUsp"){propid=T.id;propname=T.name;propval=T.value;E.push('<li class="sortprop_'+propid+'">');E.push(propname+":&nbsp;");if(propval=="No"){E.push("-")}else{if(propval=="Yes"){E.push('<span class="present">&nbsp;</span>')}else{E.push(propval)}}E.push("</li>")}}});E.push("</ul>");if(applicationData.prdproducts.prdmovable!=undefined){if(applicationData.prdproducts.prdmovable.length>0){E.push('<ul class="list-movement">');var L="";var P="";var N="";for(i=0;i<applicationData.prdproducts.prdmovable.length;i++){switch(applicationData.prdproducts.prdmovable[i].id){case 0:L=applicationData.prdproducts.prdmovable[i].name;break;case 1:P=applicationData.prdproducts.prdmovable[i].name;break;case 2:N=applicationData.prdproducts.prdmovable[i].name;break}}if(F){E.push('<li class="turn">'+L+"</li>")}else{if(K){E.push('<li class="tilt">'+P+"</li>")}else{E.push('<li class="flat">'+N+"</li>")}}E.push("</ul>")}}if(M!==undefined){var O="vogelsArticleID="+escape(productid);O+="&vogelsArticleCode="+escape(productcode);O+="&vogelsArticleName="+escape(productname);E.push('<dd class="buylink"><em>');E.push('<a href="'+M+O+'">'+R+"</a>");E.push("</em></dd>");E.push('<dd class="related_overlay"><em>');E.push('<a href="'+C+"&dbid="+productid+'" title="'+productname.replace('"',"&quot;")+'">'+H+"</a>");E.push("</em></dd>")}E.push("</dl></div>");if(!from){from=0}if(q<3&&G==0){D[q]=E.join("")}else{if(G==0&&from==0){I[q-3]=E.join("")}else{if(from==0){I[q-3]=E.join("")}else{I[q]=E.join("")}}}}}if(G==0){$(".mostpopular").append("<div>"+D.join("")+"<div>")}if(!(I===undefined)){$(".moreproducts").append("<div>"+I.join("")+"<div>");$(".moreproducts div.product").filter(function(S){return(S%4==3)}).addClass("nomargin");$("div.compare-product a.btndark").click(function(){showCompare(general_refine_tooltip_first_select_products,compareLink)})}if(applicationData.prdproducts.prdlistinfo!=undefined&&!B){totalCount=applicationData.prdproducts.prdlistinfo[0].numberofproducts;$(".paging ul li:first span:first").html(totalCount+" "+general_total_amount_of_products);$(".bottom ul li:first span:first").html(totalCount+" "+general_total_amount_of_products)}$("img[src$=.png],ul#sub-tabs li a, .home h2, ul#innerfade_list li.current a, ul#random_images li span, #random_images dt, .product-overview h2 a").ifixpng();$(".comparecheck").bind("click",function(T){var S=setSelectedProduct($(this).attr("class"),$(this).attr("name"));if(S){$(this).next("label").hide();$(this).parent().find("a.btndark").show()}else{$(this).next("label").show();$(this).parent().find("a.btndark").hide()}});$(".deselect").bind("click",function(S){$(".comparecheck").attr("checked",false);$("dd.selectedproduct").remove();selectedProducts=new Array()});$("dd.buylink a").bind("click",function(S){window.opener.location.href=$(this).attr("href");window.close();S.preventDefault()});$("dd.related_overlay a").fancybox({hideOnContentClick:false,callbackOnShow:function(){$("#fancy_ajax .fragement .buyarticle_link").each(function(){var T="vogelsArticleID="+escape($(this).children("input[@name='articleid']").attr("value"));T+="&vogelsArticleCode="+escape($(this).children("input[@name='articlecode']").attr("value"));T+="&vogelsArticleName="+escape($(this).children("input[@name='articlename']").attr("value"));var S=$(this).children("a");S.text(R);S.attr("href",M+T);S.bind("click",function(U){window.opener.location.href=M+T;window.close();U.preventDefault()})})}});setCheckboxes()}function setCheckboxes(){$("dd.selectedproduct").remove();$(".comparecheck").attr("checked",false);var A=selectedProducts.length;var B=[];if(A>0){for(i=0;i<A;i++){if($(".check_"+selectedProducts[i]).length>0){$(".check_"+selectedProducts[i]).attr("checked",true);$(".selectedproducts").append('<dd class="selectedproduct selectedproduct_'+selectedProducts[i]+'"><a href="#">'+$(".check_"+selectedProducts[i]).attr("name")+"</a></dd>")}else{B.push(selectedProducts[i])}}}for(j=0;j<B.length;j++){selectedProducts=$.grep(selectedProducts,function(C){return C!=B[j]})}}function clearViewArea(){$("div.moreproducts div.product").remove()}function setupSort(options){$("dl.sort-horizontal dd").each(function(){sortMethod=$(this).attr("id");$(this).bind("click",{newMethod:sortMethod},function(event){var funcName=event.data.newMethod;var funcParam="";if($(this).attr("class")=="sort-up"){funcParam="'asc'";$("dl.sort-horizontal dd").removeClass("sort-up");$("dl.sort-horizontal dd").removeClass("sort-down");$(this).addClass("sort-down")}else{funcParam="'desc'";$("dl.sort-horizontal dd").removeClass("sort-up");$("dl.sort-horizontal dd").removeClass("sort-down");$(this).addClass("sort-up")}if(funcName.indexOf("_")>-1){funcNameParam=funcName.split("_");funcName=funcNameParam[0];funcParam=funcParam+","+funcNameParam[1]}var funcCall=funcName+"("+funcParam+");";var ret=eval(funcCall);sortRemember=funcCall;numPerPages=$("dl.numberofpagesgroup").find("dd").find("a.current").filter(":first").text();if(numPerPages==""){numPerPages=8}if(options){options.numPerPage=numPerPages}else{options=new Object();options.numPerPage=numPerPages}$("div.moreproducts").divPager(options)})})}function sort(){var options={};if(sortRemember!=""){eval(sortRemember);numPerPages=8;if(numPerPages==""){numPerPages=8}options={numPerPage:+numPerPages}}else{}$("div.moreproducts").divPager(options)}function pageBinder(A){numPerPages=8;A.numPerPage=numPerPages;$("div.moreproducts").divPager(A)}function sortTitle(A){options={order:+A};$("div.sort-column").tsort("h2>a",{order:A})}function sortProp(A,B){selector=".sortprop_"+B;$("div.sort-column").tsort(selector,{order:A})}function showCompare(D,C){if(selectedProducts.length>0){var E;E=setupServletRequest();var B=[];for(var A in E){if(A!="typeofpage"&&A!="dbid"){B.push(encodeURIComponent(A)+"="+encodeURIComponent(E[A]))}}B.push("selectprods="+selectedProducts.join(","));if(C.indexOf("?")>-1){C=C+"&"+B.join("&")}else{C=C+"?"+B.join("&")}document.location=C}else{alert(D)}}function setSelectedProduct(D,C){var B=D.replace("comparecheck ","").replace("check_","");if($.inArray(B,selectedProducts)>-1){var A=B;selectedProducts=$.grep(selectedProducts,function(E){return E!=A});$(".selectedproduct_"+B).remove()}else{if(selectedProducts.length>=3){alert(general_refine_tooltip_maxcompare_alert+".");$(".check_"+B).attr("checked",false);return false}else{selectedProducts.push(B);$(".selectedproducts").append('<dd class="selectedproduct selectedproduct_'+B+'"><a href="#">'+C+"</a></dd>");return true}}}function buildRefineBlock(selectedValueName,dlId,allId,prefix,jsonPath,allLinkText,removeCriteriaText,noOptionsText,valueToShow,idIsValue,checkForDoubleValues){$("ul#"+dlId).find("li").not(".title").remove();$("#"+allId).children().remove();$("ul#"+dlId).append('<li><a href="#" class="selected'+dlId+'Placeholder" style="display:none"></a></li>');j=0;e=0;more=false;uniqueItemArray=new Array();var overlayArr=new Array();if(!eval(jsonPath)||eval(jsonPath)==""){$("ul#"+dlId).append('<li><span class="txt">'+noOptionsText+"</span></li>")}else{$.each(eval(jsonPath),function(i,val){objectid=val.id;if(valueToShow!=""){objectvalue=eval("val."+valueToShow)}else{objectvalue=val.name}addItem=true;if(checkForDoubleValues){if(contains(uniqueItemArray,objectvalue,"value")){addItem=false}}if(addItem){var idValue=new Object();idValue.value=objectvalue;if(idIsValue){idValue.id=objectvalue}else{idValue.id=objectid}uniqueItemArray[e]=idValue;e++}});uniqueItemArray.sort(compareObjects);var numberOfUniqueItems=uniqueItemArray.length;var numberInVisibleList=6;var numberOfColumnsInOverlay=5;var numberOfMoreItems=numberOfUniqueItems-numberInVisibleList;var numberOfItemsPerColumn=0;if(numberOfMoreItems>0){numberOfItemsPerColumn=Math.round(numberOfMoreItems/numberOfColumnsInOverlay);var overlayArr=new Array(numberOfMoreItems);if((numberOfMoreItems%numberOfColumnsInOverlay)!=0){numberOfItemsPerColumn++}}var itemInColumnCounter=0;var opened=false;var liClass="";for(j=0;j<numberOfUniqueItems;j++){if(dlId=="movable"){var valueId=uniqueItemArray[j]["id"];if(valueId==0){liClass=" class='turn'"}else{if(valueId==1){liClass=" class='tilt'"}else{liClass=" class='flat'"}}}if(j<numberInVisibleList){$("ul#"+dlId).append("<li"+liClass+'><a href="#" class="'+dlId+'click" id="'+prefix+"_"+(uniqueItemArray[j]["id"]+"")+'">'+uniqueItemArray[j]["value"]+"</a></li>")}else{more=true;if(itemInColumnCounter==0){overlayArr.push('<ul class="alphabetic">');var opened=true}overlayArr.push("<li"+liClass+'><a href="#" class="'+dlId+'click" id="'+prefix+"_"+(uniqueItemArray[j]["id"]+"")+'">'+uniqueItemArray[j]["value"]+"</a></li>");itemInColumnCounter++;if(itemInColumnCounter==numberOfItemsPerColumn){itemInColumnCounter=0;var opened=false;overlayArr.push("</ul>")}}}if(opened){overlayArr.push("</ul>")}$("#"+allId).append(overlayArr.join(""))}if(more){$("ul#"+dlId).append('<li class="bullet-refine"><a href="#TB_inline?keepThis=true&amp;&inlineId=overlay'+allId+'&amp;height=430&amp;width=960" class="thickbox" id="'+allId+'link">'+allLinkText+"</a></li>");tb_init("a.thickbox, area.thickbox, input.thickbox")}$("."+dlId+"click").bind("click",function(){tb_remove();var selValue=$(this).attr("id").split("_")[1];buildQuery(dlId,selValue);$(this).attr("href",documentUrl.GetFullString())});var selectedValue=eval(selectedValueName);if(selectedValue!=""){setCriteria(selectedValueName,dlId,selectedValue,removeCriteriaText,prefix)}}function getDocumentBaseUrl(){var A=document.location+"";if(A){A=A.replace("#","")}return A}function setCriteria(selectedValueName,dlId,selectedValue,removeCriteriaText,prefix){$("ul#"+dlId).find("li").children().not(".selected"+dlId+"Placeholder").hide();showSelector="a[id="+prefix+"_"+selectedValue+"]";selectedText=$(showSelector).html();$(".selected"+dlId+"Placeholder").html(selectedText);$(".selected"+dlId+"Placeholder").show();if(dlId=="movable"){var movableClass=$("ul#"+dlId).find(showSelector).parent("li").attr("class");$(".selected"+dlId+"Placeholder").parent("li").addClass(movableClass)}if($("a.remove"+dlId).length==0){$("#criterium").append('<li id="producttypecriteria"><a href="#">'+selectedText+'</a><span class="remove"><a href="#" class="remove'+dlId+'" title="'+removeCriteriaText+'">'+removeCriteriaText+"</a></span></li>")}$(".remove"+dlId).bind("click",function(e){eval(selectedValueName+" = ''");deleteFromQuery(dlId);$(this).attr("href",documentUrl.GetFullString())})}function contains(a,value,expr){var i=a.length;while(i--){if(eval("a[i]['"+expr+"']")==value){return true}}return false}function compareObjects(B,A){if(B.value<A.value){return -1}if(B.value>A.value){return 1}return 0}function QueryStringBuilder(){this.Url="";this.Pairs=new Array();QueryStringBuilder.prototype.GetFullString=function(){var B=(this.Url.length>0)?this.Url+"?":"";for(var A in this.Pairs){if(escape(this.Pairs[A])!=""){B+=escape(A)+"="+escape(this.Pairs[A])+"&"}}return B.substring(0,B.length-1)}}function buildQuery(A,B){documentUrl.Pairs[A]=B}function deleteFromQuery(A){documentUrl.Pairs[A]=""}function setUpQueryStringBuilder(){var A=getDocumentBaseUrl()+"";documentUrl.Url=A.split("?")[0];if(typeof (A.split("?")[1])!="undefined"){qs=A.split("?")[1].replace(/\+/g," ").split("&");$.each(qs,function(B){var C=this.split("=");if(C.length==2){buildQuery(unescape(C[0]),unescape(C[1]))}})}}function getProductDetailLink(B){var A=B.replace("'","''");if(documentUrl.Pairs.channel&&documentUrl.Pairs.channel=="iframe"){if(A.indexOf("?")>-1){A=A+"&channel=iframe"}else{A=A+"?channel=iframe"}}return A}(function(E){E.fn.fixPNG=function(){return this.each(function(){var J=E(this).css("backgroundImage");if(J.match(/^url\(["']?(.*\.png)["']?\)$/i)){J=RegExp.$1;E(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod="+(E(this).css("backgroundRepeat")=="no-repeat"?"crop":"scale")+", src='"+J+"')"}).each(function(){var K=E(this).css("position");if(K!="absolute"&&K!="relative"){E(this).css("position","relative")}})}})};var C,A,G=false,B=new Image,H,I=1,D=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i;var F=(E.browser.msie&&parseInt(E.browser.version.substr(0,1))<7);E.fn.fancybox=function(J){var M=E.extend({},E.fn.fancybox.defaults,J);var T=this;function O(){C=this;A=E.extend({},M);N();return false}function N(){if(G){return }if(E.isFunction(A.callbackOnStart)){A.callbackOnStart()}A.itemArray=[];A.itemCurrent=0;if(M.itemArray.length>0){A.itemArray=M.itemArray}else{var V={};if(!C.rel||C.rel==""){var V={href:C.href,title:C.title};if(E(C).children("img:first").length){V.orig=E(C).children("img:first")}if(V.title==""||typeof V.title=="undefined"){V.title=V.orig.attr("alt")}A.itemArray.push(V)}else{var W=E(T).filter("a[rel="+C.rel+"]");var V={};for(var U=0;U<W.length;U++){V={href:W[U].href,title:W[U].title};if(E(W[U]).children("img:first").length){V.orig=E(W[U]).children("img:first")}if(V.title==""||typeof V.title=="undefined"){V.title=V.orig.attr("alt")}A.itemArray.push(V)}while(A.itemArray[A.itemCurrent].href!=C.href){A.itemCurrent++}}}if(A.overlayShow){if(F){E("embed, object, select").css("visibility","hidden")}E("#fancy_overlay").css({height:E(document).height(),opacity:A.overlayOpacity}).show()}P()}function P(){E("#fancy_right, #fancy_left, #fancy_close, #fancy_title").hide();var U=A.itemArray[A.itemCurrent].href;if(U.match("iframe")||C.className.indexOf("iframe")>=0){E.fn.fancybox.showLoading();L('<iframe id="fancy_frame" onload="jQuery.fn.fancybox.showIframe()" name="fancy_iframe'+Math.round(Math.random()*1000)+'" frameborder="0" hspace="0" src="'+U+'"></iframe>',A.frameWidth,A.frameHeight)}else{if(U.match(/#/)){var V=window.location.href.split("#")[0];V=U.replace(V,"");V=V.substr(V.indexOf("#"));L('<div id="fancy_div">'+E(V).html()+"</div>",A.frameWidth,A.frameHeight)}else{if(U.match(D)){B=new Image;B.src=U;if(B.complete){S()}else{E.fn.fancybox.showLoading();E(B).unbind().bind("load",function(){E(".fancy_loading").hide();S()})}}else{E.fn.fancybox.showLoading();E.get(U,function(W){E(".fancy_loading").hide();L('<div id="fancy_ajax">'+W+"</div>",A.frameWidth,A.frameHeight)})}}}}function S(){var W=B.width;var U=B.height;var Z=(A.padding*2)+40;var X=(A.padding*2)+60;var Y=E.fn.fancybox.getViewport();if(A.imageScale&&(W>(Y[0]-Z)||U>(Y[1]-X))){var V=Math.min(Math.min(Y[0]-Z,W)/W,Math.min(Y[1]-X,U)/U);W=Math.round(V*W);U=Math.round(V*U)}L('<img alt="" id="fancy_img" src="'+B.src+'" />',W,U)}function Q(){if((A.itemArray.length-1)>A.itemCurrent){var U=A.itemArray[A.itemCurrent+1].href;if(U.match(D)){objNext=new Image();objNext.src=U}}if(A.itemCurrent>0){var U=A.itemArray[A.itemCurrent-1].href;if(U.match(D)){objNext=new Image();objNext.src=U}}}function L(Z,V,c){G=true;var X=A.padding;if(F){E("#fancy_content")[0].style.removeExpression("height");E("#fancy_content")[0].style.removeExpression("width")}if(X>0){V+=X*2;c+=X*2;E("#fancy_content").css({top:X+"px",right:X+"px",bottom:X+"px",left:X+"px",width:"auto",height:"auto"});if(F){E("#fancy_content")[0].style.setExpression("height","(this.parentNode.clientHeight - "+X*2+")");E("#fancy_content")[0].style.setExpression("width","(this.parentNode.clientWidth - "+X*2+")")}}else{E("#fancy_content").css({top:0,right:0,bottom:0,left:0,width:"100%",height:"100%"})}if(E("#fancy_outer").is(":visible")&&V==E("#fancy_outer").width()&&c==E("#fancy_outer").height()){E("#fancy_content").fadeOut("fast",function(){E("#fancy_content").empty().append(E(Z)).fadeIn("normal",function(){K()})});return }var b=E.fn.fancybox.getViewport();var W=(V+(A.padding*2)+40)>b[0]?b[2]:(b[2]+Math.round((b[0]-V-(A.padding*2)-40)/2));var f=(c+(A.padding*2)+60)>b[1]?b[3]:(b[3]+Math.round((b[1]-c-(A.padding*2)-60)/2));var d={left:W,top:f,width:V+"px",height:c+"px"};if(E("#fancy_outer").is(":visible")){E("#fancy_content").fadeOut("normal",function(){E("#fancy_content").empty();E("#fancy_outer").animate(d,A.zoomSpeedChange,A.easingChange,function(){E("#fancy_content").append(E(Z)).fadeIn("normal",function(){K()})})})}else{if(A.zoomSpeedIn>0&&A.itemArray[A.itemCurrent].orig!==undefined){E("#fancy_content").empty().append(E(Z));var Y=A.itemArray[A.itemCurrent].orig;var U=E.fn.fancybox.getPosition(Y);E("#fancy_outer").css({left:(U.left-20-A.padding)+"px",top:(U.top-20-A.padding)+"px",width:E(Y).width()+(A.padding*2),height:E(Y).height()+(A.padding*2)});if(A.zoomOpacity){d.opacity="show"}E("#fancy_outer").animate(d,A.zoomSpeedIn,A.easingIn,function(){K()})}else{E("#fancy_content").hide().empty().append(E(Z)).show();E("#fancy_outer").css(d).fadeIn("normal",function(){K()})}}}function R(){if(A.itemCurrent!=0){E("#fancy_left, #fancy_left_ico").unbind().bind("click",function(U){U.stopPropagation();A.itemCurrent--;P();return false});E("#fancy_left").show()}if(A.itemCurrent!=(A.itemArray.length-1)){E("#fancy_right, #fancy_right_ico").unbind().bind("click",function(U){U.stopPropagation();A.itemCurrent++;P();return false});E("#fancy_right").show()}}function K(){R();Q();E(document).keydown(function(U){if(U.keyCode==27){E.fn.fancybox.close();E(document).unbind("keydown.fb")}else{if(U.keyCode==37&&A.itemCurrent!=0){A.itemCurrent--;P();E(document).unbind("keydown.fb")}else{if(U.keyCode==39&&A.itemCurrent!=(A.itemArray.length-1)){A.itemCurrent++;P();E(document).unbind("keydown.fb")}}}});if(A.centerOnScroll){E(window).bind("resize.fb scroll.fb",E.fn.fancybox.scrollBox)}else{E("div#fancy_outer").css("position","absolute")}if(A.hideOnContentClick){E("#fancy_content").click(E.fn.fancybox.close)}E("#fancy_overlay, #fancy_close").bind("click",E.fn.fancybox.close);E("#fancy_close").show();if(A.itemArray[A.itemCurrent].title!==undefined&&A.itemArray[A.itemCurrent].title.length>0){E("#fancy_title div").html(A.itemArray[A.itemCurrent].title);E("#fancy_title").show()}if(A.overlayShow&&F){E("embed, object, select",E("#fancy_content")).css("visibility","visible")}if(E.isFunction(A.callbackOnShow)){A.callbackOnShow(A.itemArray[A.itemCurrent])}G=false}return this.unbind("click.fb").click(O)};E.fn.fancybox.scrollBox=function(){var J=E.fn.fancybox.getViewport();E("#fancy_outer").css("left",((E("#fancy_outer").width()+(A.padding*2)+40)>J[0]?J[2]:J[2]+Math.round((J[0]-E("#fancy_outer").width()-(A.padding*2)-40)/2)));E("#fancy_outer").css("top",((E("#fancy_outer").height()+(A.padding*2)+60)>J[1]?J[3]:J[3]+Math.round((J[1]-E("#fancy_outer").height()-(A.padding*2)-60)/2)));E("#fancy_overlay").css({height:E(document).height()})};E.fn.fancybox.getNumeric=function(J,K){return parseInt(E.curCSS(J.jquery?J[0]:J,K,true))||0};E.fn.fancybox.getPosition=function(J){var K=J.offset();K.top+=E.fn.fancybox.getNumeric(J,"paddingTop");K.top+=E.fn.fancybox.getNumeric(J,"borderTopWidth");K.left+=E.fn.fancybox.getNumeric(J,"paddingLeft");K.left+=E.fn.fancybox.getNumeric(J,"borderLeftWidth");return K};E.fn.fancybox.showIframe=function(){E(".fancy_loading").hide();E("#fancy_frame").show()};E.fn.fancybox.getViewport=function(){return[E(window).width(),E(window).height(),E(document).scrollLeft(),E(document).scrollTop()]};E.fn.fancybox.animateLoading=function(){if(!E("#fancy_loading").is(":visible")){clearInterval(H);return }E("#fancy_loading > div").css("top",(I*-40)+"px");I=(I+1)%12};E.fn.fancybox.showLoading=function(){clearInterval(H);var J=E.fn.fancybox.getViewport();E("#fancy_loading").css({left:((J[0]-40)/2+J[2]),top:((J[1]-40)/2+J[3])}).show();E("#fancy_loading").bind("click",E.fn.fancybox.close);H=setInterval(E.fn.fancybox.animateLoading,66)};E.fn.fancybox.close=function(){G=true;E(B).unbind();E("#fancy_overlay, #fancy_close").unbind();if(A.hideOnContentClick){E("#fancy_content").unbind()}E("#fancy_close, .fancy_loading, #fancy_left, #fancy_right, #fancy_title").hide();if(A.centerOnScroll){E(window).unbind("resize.fb scroll.fb")}__cleanup=function(){E("#fancy_overlay, #fancy_outer").hide();E("#fancy_content").empty();if(A.centerOnScroll){E(window).unbind("resize.fb scroll.fb")}if(F){E("embed, object, select").css("visibility","visible")}if(E.isFunction(A.callbackOnClose)){A.callbackOnClose()}G=false};if(E("#fancy_outer").is(":visible")!==false){if(A.zoomSpeedOut>0&&A.itemArray[A.itemCurrent].orig!==undefined){var K=A.itemArray[A.itemCurrent].orig;var J=E.fn.fancybox.getPosition(K);var L={left:(J.left-20-A.padding)+"px",top:(J.top-20-A.padding)+"px",width:E(K).width()+(A.padding*2),height:E(K).height()+(A.padding*2)};if(A.zoomOpacity){L.opacity="hide"}E("#fancy_outer").stop(false,true).animate(L,A.zoomSpeedOut,A.easingOut,__cleanup)}else{E("#fancy_outer").stop(false,true).fadeOut("fast",__cleanup)}}else{__cleanup()}return false};E.fn.fancybox.build=function(){var J="";J+='<div id="fancy_overlay"></div>';J+='<div class="fancy_loading" id="fancy_loading"><div></div></div>';J+='<div id="fancy_outer">';J+='<div id="fancy_inner">';J+='<div id="fancy_close"></div>';J+='<div id="fancy_bg"><div class="fancy_bg fancy_bg_n"></div><div class="fancy_bg fancy_bg_ne"></div><div class="fancy_bg fancy_bg_e"></div><div class="fancy_bg fancy_bg_se"></div><div class="fancy_bg fancy_bg_s"></div><div class="fancy_bg fancy_bg_sw"></div><div class="fancy_bg fancy_bg_w"></div><div class="fancy_bg fancy_bg_nw"></div></div>';J+='<a href="javascript:;" id="fancy_left"><span class="fancy_ico" id="fancy_left_ico"></span></a><a href="javascript:;" id="fancy_right"><span class="fancy_ico" id="fancy_right_ico"></span></a>';J+='<div id="fancy_content"></div>';J+='<div id="fancy_title"></div>';J+="</div>";J+="</div>";E(J).appendTo("body");E('<table cellspacing="0" cellpadding="0" border="0"><tr><td class="fancy_title" id="fancy_title_left"></td><td class="fancy_title" id="fancy_title_main"><div></div></td><td class="fancy_title" id="fancy_title_right"></td></tr></table>').appendTo("#fancy_title");if(F){E("#fancy_inner").prepend('<iframe class="fancy_bigIframe" scrolling="no" frameborder="0"></iframe>')}if(E.browser.msie){E("#fancy_close, .fancy_bg, .fancy_title, .fancy_ico").fixPNG()}};E.fn.fancybox.defaults={padding:10,imageScale:true,zoomOpacity:true,zoomSpeedIn:0,zoomSpeedOut:0,zoomSpeedChange:300,easingIn:"swing",easingOut:"swing",easingChange:"swing",frameWidth:425,frameHeight:355,overlayShow:true,overlayOpacity:0.3,hideOnContentClick:true,centerOnScroll:true,itemArray:[],callbackOnStart:null,callbackOnShow:null,callbackOnClose:null};E(document).ready(function(){E.fn.fancybox.build()})})(jQuery);(function(A){A.querystringvalues=A.queryStringValues=A.QueryStringValues=A.QueryStringvalues=A.queryStringValues=A.queryStringvalues=A.querystringValues=A.getqueryString=A.queryString=A.querystring=A.QueryString=A.Querystring=A.getQueryString=A.getquerystring=A.getQuerystring=function(D){defaults={defaultvalue:"null"};D=A.extend(defaults,D);qs=location.search.substring(1,location.search.length);if(qs.length==0){return D.defaultvalue}qs=qs.replace(/\+/g," ");var C=qs.split("&");for(var E=0;E<C.length;E++){var F;var G=C[E].split("=");var B=unescape(G[0]);if(G.length==2){F=unescape(G[1])}else{F=B}if(B==D.id||E==D.id-1){return F}}return D.defaultvalue}})(jQuery);(function(F){F.tinysort={id:"TinySort",version:"1.0.2",defaults:{order:"asc",attr:"",place:"start",returns:false}};F.fn.extend({tinysort:function(Y,X){if(Y&&typeof (Y)!="string"){X=Y;Y=null}var c=F.extend({},F.tinysort.defaults,X);var R={};this.each(function(I){var G=(!Y||Y=="")?F(this):F(this).find(Y);var H=c.order=="rand"?""+Math.random():(c.attr==""?G.text():G.attr(c.attr));var J=F(this).parent();if(!R[J]){R[J]={s:[],n:[]}}if(G.length>0){R[J].s.push({s:H,e:F(this),n:I})}else{R[J].n.push({e:F(this),n:I})}});for(var Z in R){var A=R[Z];A.s.sort(function W(H,I){var J=H.s.toLowerCase?H.s.toLowerCase():H.s;var G=I.s.toLowerCase?I.s.toLowerCase():I.s;if(E(H.s)&&E(I.s)){J=parseFloat(H.s);G=parseFloat(I.s)}return(c.order=="asc"?1:-1)*(J<G?-1:(J>G?1:0))})}var U=[];for(var Z in R){var A=R[Z];var T=[];var b=F(this).length;switch(c.place){case"first":F.each(A.s,function(H,G){b=Math.min(b,G.n)});break;case"org":F.each(A.s,function(H,G){T.push(G.n)});break;case"end":b=A.n.length;break;default:b=0}var C=[0,0];for(var V=0;V<F(this).length;V++){var S=V>=b&&V<b+A.s.length;if(D(T,V)){S=true}var B=(S?A.s:A.n)[C[S?0:1]].e;B.parent().append(B);if(S||!c.returns){U.push(B.get(0))}C[S?0:1]++}}return this.setArray(U)}});function E(A){return/^[\+-]?\d*\.?\d*$/.exec(A)}function D(B,A){var C=false;F.each(B,function(I,J){if(!C){C=J==A}});return C}F.fn.TinySort=F.fn.Tinysort=F.fn.tsort=F.fn.tinysort})(jQuery);(function(A){A.fn.divPager=function(B){var C=A.extend({},A.fn.divPager.defaults,B);return this.each(function(){A("li.first").unbind("click");A("li.last").unbind("click");A("li.prev").unbind("click");A("li.next").unbind("click");A("a.numberofpages").unbind("click");A("a.numberofpagesall").unbind("click");var J=C.currentPage;var N=C.numPerPage;var I=C.pageNumbersVisible;var Q=C.pageDivClass;var K=C.totalPages;var D=C.showNumberOfResults;var P=C.useAjaxForPaging;var L=A(this);if(P&&applicationData.prdproducts.prdlistinfo!=undefined){numRows=applicationData.prdproducts.prdlistinfo[0].numberofproducts}else{numRows=L.find("div."+Q).length}numPages=Math.ceil(numRows/N);leftRightNumber=Math.floor(I/2);A("li.first").bind("click",function(S){J=0;M(true);E()});A("li.last").bind("click",function(S){J=numPages-1;M(true);E()});A("li.prev").bind("click",function(S){if(J>0){J--;M(true);E()}});A("li.next").bind("click",function(S){if(J<(numPages-1)){J++;M(true);E()}});A("a.numberofpages").bind("click",function(){A("li.pagenumber").remove();J=0;N=A(this).text();H();G();F();M(true);A("li.totalpages").show()});A("a.numberofpagesall").bind("click",function(){L.find("div."+Q).show();A("li.pagenumber").remove();A("li.prev").hide();A("li.first").hide();A("li.next").hide();A("li.last").hide();A("li.totalpages").hide();A("a.numberofpages").removeClass("current");A("a.numberofpagesall").each(function(){A(this).addClass("current")})});function F(){if(K){A("span.totalPages").text(numPages)}}function O(){if(D){A("span.numberOfResults").text(numRows)}}function H(){A("a.numberofpages").removeClass("current");A("a.numberofpagesall").removeClass("current");A("a.numberofpages").each(function(){if(A(this).text()==N){A(this).addClass("current")}})}function M(U){if(U&&P){from=(J*N);to=((J+1)*N);from=from+3;to=to+2;loadData(false)}else{var W=L.find("div."+Q);var S=W.length;var V=(J*N);var T=((J+1)*N-1);for(i=0;i<W.length;i++){if(i<V||i>T){A(W[i]).hide()}else{A(W[i]).show()}}}(J>0)?A("li.prev").show():A("li.prev").hide();(J>0)?A("li.first").show():A("li.first").hide();(J==(numPages-1)||numPages<=1)?A("li.next").hide():A("li.next").show();(J==(numPages-1)||numPages<=1)?A("li.last").hide():A("li.last").show();O()}function G(){A("li.pagenumber").remove();$pager=A("li.next");if(P&&applicationData.prdproducts.prdlistinfo!=undefined){numRows=applicationData.prdproducts.prdlistinfo[0].numberofproducts}else{numRows=A("div."+Q).length}numPages=Math.ceil(numRows/N);if(J==0){numPages=Math.ceil(numRows/(N+3))}for(var S=0;S<numPages;S++){A('<li class="pagenumber num'+(S+1)+'"><a href="#">'+(S+1)+"</a></li>").bind("click",{newPage:S},function(T){J=T.data.newPage;M(true);E()}).insertBefore($pager).addClass("clickable")}E()}function E(){A("li.pagenumber").parent("ul").children("li").removeClass("current");A("li.pagenumber").parent("ul").each(function(){currentSelector="li.num"+(J+1);A(this).find(currentSelector).addClass("current");if(I!=-1&&numPages>I){if((J-leftRightNumber)<=0){A(this).find("li.pagenumber:gt("+(I-1)+")").hide();A(this).find("li.pagenumber:lt("+(I)+")").show()}else{if((J+leftRightNumber)>=numPages){A(this).find("li.pagenumber:lt("+(numPages-I)+")").hide();A(this).find("li.pagenumber:gt("+(numPages-I)+")").show()}else{A(this).find("li.pagenumber").hide();for(i=(J-(leftRightNumber-1));i<(J+(I-(leftRightNumber-1)));i++){showSelector="li.num"+i;A(showSelector).show()}}}}})}function R(){G();F();H();M(false)}R()})};A.fn.divPager.defaults={currentPage:0,numPerPage:8,pageNumbersVisible:5,totalPages:false,useAjaxForPaging:false,showNumberOfResults:true,pageDivClass:"product"}})(jQuery);(function(D){var C=D.ajax;var A={};var E=[];var B=[];D.ajax=function(H){H=jQuery.extend(H,jQuery.extend({},jQuery.ajaxSettings,H));var G=H.port;switch(H.mode){case"abort":if(A[G]){A[G].abort()}return A[G]=C.apply(this,arguments);case"queue":var F=H.complete;H.complete=function(){if(F){F.apply(this,arguments)}jQuery([C]).dequeue("ajax"+G)};jQuery([C]).queue("ajax"+G,function(){C(H)});return ;case"sync":var I=E.length;E[I]={error:H.error,success:H.success,complete:H.complete,done:false};B[I]={error:[],success:[],complete:[]};H.error=function(){B[I].error=arguments};H.success=function(){B[I].success=arguments};H.complete=function(){B[I].complete=arguments;E[I].done=true;if(I==0||!E[I-1]){for(var J=I;J<E.length&&E[J].done;J++){if(E[J].error){E[J].error.apply(jQuery,B[J].error)}if(E[J].success){E[J].success.apply(jQuery,B[J].success)}if(E[J].complete){E[J].complete.apply(jQuery,B[J].complete)}E[J]=null;B[J]=null}}}}return C.apply(this,arguments)}})(jQuery);(function(A){A.fn.extend({autocomplete:function(B,C){var D=typeof B=="string";C=A.extend({},A.Autocompleter.defaults,{url:D?B:null,data:D?null:B,delay:D?A.Autocompleter.defaults.delay:10,max:C&&!C.scroll?10:150},C);C.highlight=C.highlight||function(E){return E};C.formatMatch=C.formatMatch||C.formatItem;return this.each(function(){new A.Autocompleter(this,C)})},result:function(B){return this.bind("result",B)},search:function(B){return this.trigger("search",[B])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(B){return this.trigger("setOptions",[B])},unautocomplete:function(){return this.trigger("unautocomplete")}});A.Autocompleter=function(L,G){var C={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var B=A(L).attr("autocomplete","off").addClass(G.inputClass);var J;var P="";var M=A.Autocompleter.Cache(G);var E=0;var U;var X={mouseDownOnSelect:false};var R=A.Autocompleter.Select(G,L,D,X);var W;A.browser.opera&&A(L.form).bind("submit.autocomplete",function(){if(W){W=false;return false}});B.bind((A.browser.opera?"keypress":"keydown")+".autocomplete",function(Y){U=Y.keyCode;switch(Y.keyCode){case C.UP:Y.preventDefault();if(R.visible()){R.prev()}else{T(0,true)}break;case C.DOWN:Y.preventDefault();if(R.visible()){R.next()}else{T(0,true)}break;case C.PAGEUP:Y.preventDefault();if(R.visible()){R.pageUp()}else{T(0,true)}break;case C.PAGEDOWN:Y.preventDefault();if(R.visible()){R.pageDown()}else{T(0,true)}break;case G.multiple&&A.trim(G.multipleSeparator)==","&&C.COMMA:case C.TAB:case C.RETURN:if(D()){Y.preventDefault();W=true;return false}break;case C.ESC:R.hide();break;default:clearTimeout(J);J=setTimeout(T,G.delay);break}}).focus(function(){E++}).blur(function(){E=0;if(!X.mouseDownOnSelect){S()}}).click(function(){if(E++>1&&!R.visible()){T(0,true)}}).bind("search",function(){var Y=(arguments.length>1)?arguments[1]:null;function Z(f,d){var b;if(d&&d.length){for(var c=0;c<d.length;c++){if(d[c].result.toLowerCase()==f.toLowerCase()){b=d[c];break}}}if(typeof Y=="function"){Y(b)}else{B.trigger("result",b&&[b.data,b.value])}}A.each(H(B.val()),function(b,c){F(c,Z,Z)})}).bind("flushCache",function(){M.flush()}).bind("setOptions",function(){A.extend(G,arguments[1]);if("data" in arguments[1]){M.populate()}}).bind("unautocomplete",function(){R.unbind();B.unbind();A(L.form).unbind(".autocomplete")});function D(){var Z=R.selected();if(!Z){return false}var Y=Z.result;P=Y;if(G.multiple){var b=H(B.val());if(b.length>1){Y=b.slice(0,b.length-1).join(G.multipleSeparator)+G.multipleSeparator+Y}Y+=G.multipleSeparator}B.val(Y);V();B.trigger("result",[Z.data,Z.value]);return true}function T(b,Z){if(U==C.DEL){R.hide();return }var Y=B.val();if(!Z&&Y==P){return }P=Y;Y=I(Y);if(Y.length>=G.minChars){B.addClass(G.loadingClass);if(!G.matchCase){Y=Y.toLowerCase()}F(Y,K,V)}else{N();R.hide()}}function H(Z){if(!Z){return[""]}var b=Z.split(G.multipleSeparator);var Y=[];A.each(b,function(c,d){if(A.trim(d)){Y[c]=A.trim(d)}});return Y}function I(Y){if(!G.multiple){return Y}var Z=H(Y);return Z[Z.length-1]}function Q(Y,Z){if(G.autoFill&&(I(B.val()).toLowerCase()==Y.toLowerCase())&&U!=C.BACKSPACE){B.val(B.val()+Z.substring(I(P).length));A.Autocompleter.Selection(L,P.length,P.length+Z.length)}}function S(){clearTimeout(J);J=setTimeout(V,200)}function V(){var Y=R.visible();R.hide();clearTimeout(J);N();if(G.mustMatch){B.search(function(Z){if(!Z){if(G.multiple){var b=H(B.val()).slice(0,-1);B.val(b.join(G.multipleSeparator)+(b.length?G.multipleSeparator:""))}else{B.val("")}}})}if(Y){A.Autocompleter.Selection(L,L.value.length,L.value.length)}}function K(Z,Y){if(Y&&Y.length&&E){N();R.display(Y,Z);Q(Z,Y[0].value);R.show()}else{V()}}function F(Z,c,Y){if(!G.matchCase){Z=Z.toLowerCase()}var b=M.load(Z);if(b&&b.length){c(Z,b)}else{if((typeof G.url=="string")&&(G.url.length>0)){var d={timestamp:+new Date()};A.each(G.extraParams,function(f,g){d[f]=typeof g=="function"?g():g});A.ajax({mode:"abort",port:"autocomplete"+L.name,dataType:G.dataType,url:G.url,data:A.extend({q:I(Z),limit:G.max},d),success:function(g){var f=G.parse&&G.parse(g)||O(g);M.add(Z,f);c(Z,f)}})}else{R.emptyList();Y(Z)}}}function O(c){var Y=[];var b=c.split("\n");for(var Z=0;Z<b.length;Z++){var d=A.trim(b[Z]);if(d){d=d.split("|");Y[Y.length]={data:d,value:d[0],result:G.formatResult&&G.formatResult(d,d[0])||d[0]}}}return Y}function N(){B.removeClass(G.loadingClass)}};A.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(B){return B[0]},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(C,B){return C.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+B.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:true,scrollHeight:180};A.Autocompleter.Cache=function(C){var F={};var D=0;function H(K,J){if(!C.matchCase){K=K.toLowerCase()}var I=K.indexOf(J);if(I==-1){return false}return I==0||C.matchContains}function G(J,I){if(D>C.cacheLength){B()}if(!F[J]){D++}F[J]=I}function E(){if(!C.data){return false}var J={},I=0;if(!C.url){C.cacheLength=1}J[""]=[];for(var L=0,K=C.data.length;L<K;L++){var O=C.data[L];O=(typeof O=="string")?[O]:O;var N=C.formatMatch(O,L+1,C.data.length);if(N===false){continue}var M=N.charAt(0).toLowerCase();if(!J[M]){J[M]=[]}var P={value:N,data:O,result:C.formatResult&&C.formatResult(O)||N};J[M].push(P);if(I++<C.max){J[""].push(P)}}A.each(J,function(Q,R){C.cacheLength++;G(Q,R)})}setTimeout(E,25);function B(){F={};D=0}return{flush:B,add:G,populate:E,load:function(L){if(!C.cacheLength||!D){return null}if(!C.url&&C.matchContains){var K=[];for(var I in F){if(I.length>0){var M=F[I];A.each(M,function(O,N){if(H(N.value,L)){K.push(N)}})}}return K}else{if(F[L]){return F[L]}else{if(C.matchSubset){for(var J=L.length-1;J>=C.minChars;J--){var M=F[L.substr(0,J)];if(M){var K=[];A.each(M,function(O,N){if(H(N.value,L)){K[K.length]=N}});return K}}}}}return null}}};A.Autocompleter.Select=function(E,J,L,P){var I={ACTIVE:"ac_over"};var K,F=-1,R,M="",S=true,C,O;function N(){if(!S){return }C=A("<div/>").hide().addClass(E.resultsClass).css("position","absolute").appendTo(document.body);O=A("<ul/>").appendTo(C).mouseover(function(T){if(Q(T).nodeName&&Q(T).nodeName.toUpperCase()=="LI"){F=A("li",O).removeClass(I.ACTIVE).index(Q(T));A(Q(T)).addClass(I.ACTIVE)}}).click(function(T){A(Q(T)).addClass(I.ACTIVE);L();J.focus();return false}).mousedown(function(){P.mouseDownOnSelect=true}).mouseup(function(){P.mouseDownOnSelect=false});if(E.width>0){C.css("width",E.width)}S=false}function Q(U){var T=U.target;while(T&&T.tagName!="LI"){T=T.parentNode}if(!T){return[]}return T}function H(T){K.slice(F,F+1).removeClass(I.ACTIVE);G(T);var V=K.slice(F,F+1).addClass(I.ACTIVE);if(E.scroll){var U=0;K.slice(0,F).each(function(){U+=this.offsetHeight});if((U+V[0].offsetHeight-O.scrollTop())>O[0].clientHeight){O.scrollTop(U+V[0].offsetHeight-O.innerHeight())}else{if(U<O.scrollTop()){O.scrollTop(U)}}}}function G(T){F+=T;if(F<0){F=K.size()-1}else{if(F>=K.size()){F=0}}}function B(T){return E.max&&E.max<T?E.max:T}function D(){O.empty();var U=B(R.length);for(var V=0;V<U;V++){if(!R[V]){continue}var W=E.formatItem(R[V].data,V+1,U,R[V].value,M);if(W===false){continue}var T=A("<li/>").html(E.highlight(W,M)).addClass(V%2==0?"ac_even":"ac_odd").appendTo(O)[0];A.data(T,"ac_data",R[V])}K=O.find("li");if(E.selectFirst){K.slice(0,1).addClass(I.ACTIVE);F=0}if(A.fn.bgiframe){O.bgiframe()}}return{display:function(U,T){N();R=U;M=T;D()},next:function(){H(1)},prev:function(){H(-1)},pageUp:function(){if(F!=0&&F-8<0){H(-F)}else{H(-8)}},pageDown:function(){if(F!=K.size()-1&&F+8>K.size()){H(K.size()-1-F)}else{H(8)}},hide:function(){C&&C.hide();K&&K.removeClass(I.ACTIVE);F=-1},visible:function(){return C&&C.is(":visible")},current:function(){return this.visible()&&(K.filter("."+I.ACTIVE)[0]||E.selectFirst&&K[0])},show:function(){var V=A(J).offset();C.css({width:typeof E.width=="string"||E.width>0?E.width:A(J).width(),top:V.top+J.offsetHeight,left:V.left}).show();if(E.scroll){O.scrollTop(0);O.css({maxHeight:E.scrollHeight,overflow:"auto"});if(A.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var T=0;K.each(function(){T+=this.offsetHeight});var U=T>E.scrollHeight;O.css("height",U?E.scrollHeight:T);if(!U){K.width(O.width()-parseInt(K.css("padding-left"))-parseInt(K.css("padding-right")))}}}},selected:function(){var T=K&&K.filter("."+I.ACTIVE).removeClass(I.ACTIVE);return T&&T.length&&A.data(T[0],"ac_data")},emptyList:function(){O&&O.empty()},unbind:function(){C&&C.remove()}}};A.Autocompleter.Selection=function(D,E,C){if(D.createTextRange){var B=D.createTextRange();B.collapse(true);B.moveStart("character",E);B.moveEnd("character",C);B.select()}else{if(D.setSelectionRange){D.setSelectionRange(E,C)}else{if(D.selectionStart){D.selectionStart=E;D.selectionEnd=C}}}D.focus()}})(jQuery);(function(A){A.fn.bgIframe=A.fn.bgiframe=function(C){if(A.browser.msie&&/6.0/.test(navigator.userAgent)){C=A.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},C||{});var D=function(E){return E&&E.constructor==Number?E+"px":E},B='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+C.src+'"style="display:block;position:absolute;z-index:-1;'+(C.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(C.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":D(C.top))+";left:"+(C.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":D(C.left))+";width:"+(C.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":D(C.width))+";height:"+(C.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":D(C.height))+';"/>';return this.each(function(){if(A("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(B),this.firstChild)}})}return this}})(jQuery);(function(C){C.fn.media=function(L,K,M){return this.each(function(){if(typeof L=="function"){M=K;K=L;L={}}var T=G(this,L);if(typeof K=="function"){K(this,T)}var S=I();var N=S.exec(T.src.toLowerCase())||[""];T.type?N[0]=T.type:N.shift();for(var R=0;R<N.length;R++){fn=N[R].toLowerCase();if(E(fn[0])){fn="fn"+fn}if(!C.fn.media[fn]){continue}var Q=C.fn.media[fn+"_player"];if(!T.params){T.params={}}if(Q){var P=Q.autoplayAttr=="autostart";T.params[Q.autoplayAttr||"autoplay"]=P?(T.autoplay?1:0):T.autoplay?true:false}var O=C.fn.media[fn](this,T);O.css("backgroundColor",T.bgColor).width(T.width);if(typeof M=="function"){M(this,O[0],T,Q.name)}break}})};C.fn.media.mapFormat=function(L,K){if(!L||!K||!C.fn.media.defaults.players[K]){return }L=L.toLowerCase();if(E(L[0])){L="fn"+L}C.fn.media[L]=C.fn.media[K];C.fn.media[L+"_player"]=C.fn.media.defaults.players[K]};C.fn.media.defaults={width:400,height:400,autoplay:0,bgColor:"#ffffff",params:{wmode:"transparent"},attrs:{},flvKeyName:"file",flashvars:{},flashVersion:"7",expressInstaller:null,flvPlayer:"mediaplayer.swf",mp3Player:"mediaplayer.swf",silverlight:{inplaceInstallPrompt:"true",isWindowless:"true",framerate:"24",version:"0.9",onError:null,onLoad:null,initParams:null,userContext:null}};C.fn.media.defaults.players={flash:{name:"flash",types:"flv,mp3,swf",oAttrs:{classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",type:"application/x-oleobject",codebase:"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+C.fn.media.defaults.flashVersion},eAttrs:{type:"application/x-shockwave-flash",pluginspage:"http://www.adobe.com/go/getflashplayer"}},quicktime:{name:"quicktime",types:"aif,aiff,aac,au,bmp,gsm,mov,mid,midi,mpg,mpeg,mp4,m4a,psd,qt,qtif,qif,qti,snd,tif,tiff,wav,3g2,3gp",oAttrs:{classid:"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",codebase:"http://www.apple.com/qtactivex/qtplugin.cab"},eAttrs:{pluginspage:"http://www.apple.com/quicktime/download/"}},realplayer:{name:"real",types:"ra,ram,rm,rpm,rv,smi,smil",autoplayAttr:"autostart",oAttrs:{classid:"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"},eAttrs:{type:"audio/x-pn-realaudio-plugin",pluginspage:"http://www.real.com/player/"}},winmedia:{name:"winmedia",types:"asx,asf,avi,wma,wmv",autoplayAttr:"autostart",oUrl:"url",oAttrs:{classid:"clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6",type:"application/x-oleobject"},eAttrs:{type:C.browser.mozilla&&J()?"application/x-ms-wmp":"application/x-mplayer2",pluginspage:"http://www.microsoft.com/Windows/MediaPlayer/"}},iframe:{name:"iframe",types:"html,pdf"},silverlight:{name:"silverlight",types:"xaml"}};function J(){var K=navigator.plugins;for(i=0;i<K.length;i++){var L=K[i];if(L.filename=="np-mswmp.dll"){return true}}return false}var A=1;for(var H in C.fn.media.defaults.players){var D=C.fn.media.defaults.players[H].types;C.each(D.split(","),function(K,L){if(E(L[0])){L="fn"+L}C.fn.media[L]=C.fn.media[H]=B(H);C.fn.media[L+"_player"]=C.fn.media.defaults.players[H]})}function I(){var L="";for(var K in C.fn.media.defaults.players){if(L.length){L+=","}L+=C.fn.media.defaults.players[K].types}return new RegExp("\\.("+L.replace(/,/ig,"|")+")\\b")}function B(K){return function(M,L){return F(M,L,K)}}function E(K){return"0123456789".indexOf(K)>-1}function G(M,V){V=V||{};var U=C(M);var T=M.className||"";var S=C.metadata?U.metadata():C.meta?U.data():{};S=S||{};var R=S.width||parseInt(((T.match(/w:(\d+)/)||[])[1]||0));var N=S.height||parseInt(((T.match(/h:(\d+)/)||[])[1]||0));if(R){S.width=R}if(N){S.height=N}if(T){S.cls=T}var Q=C.fn.media.defaults;var P=V;var O=S;var L={params:{bgColor:V.bgColor||C.fn.media.defaults.bgColor}};var K=C.extend({},Q,P,O);C.each(["attrs","params","flashvars","silverlight"],function(W,X){K[X]=C.extend({},L[X]||{},Q[X]||{},P[X]||{},O[X]||{})});if(typeof K.caption=="undefined"){K.caption=U.text()}K.src=K.src||U.attr("href")||U.attr("src")||"unknown";return K}C.fn.media.swf=function(O,K){if(!window.SWFObject&&!window.swfobject){if(K.flashvars){var R=[];for(var P in K.flashvars){R.push(P+"="+K.flashvars[P])}if(!K.params){K.params={}}K.params.flashvars=R.join("&")}return F(O,K,"flash")}var M=O.id?(' id="'+O.id+'"'):"";var S=K.cls?(' class="'+K.cls+'"'):"";var Q=C("<div"+M+S+">");if(window.swfobject){C(O).after(Q).appendTo(Q);if(!O.id){O.id="movie_player_"+A++}swfobject.embedSWF(K.src,O.id,K.width,K.height,K.flashVersion,K.expressInstaller,K.flashvars,K.params,K.attrs)}else{C(O).after(Q).remove();var N=new SWFObject(K.src,"movie_player_"+A++,K.width,K.height,K.flashVersion,K.bgColor);if(K.expressInstaller){N.useExpressInstall(K.expressInstaller)}for(var L in K.params){if(L!="bgColor"){N.addParam(L,K.params[L])}}for(var P in K.flashvars){N.addVariable(P,K.flashvars[P])}N.write(Q[0])}if(K.caption){C("<div>").appendTo(Q).html(K.caption)}return Q};C.fn.media.flv=C.fn.media.mp3=function(N,O){var P=O.src;var M=/\.mp3\b/i.test(P)?C.fn.media.defaults.mp3Player:C.fn.media.defaults.flvPlayer;var L=O.flvKeyName;P=encodeURIComponent(P);O.src=M;O.src=O.src+"?"+L+"="+(P);var K={};K[L]=P;O.flashvars=C.extend({},K,O.flashvars);return C.fn.media.swf(N,O)};C.fn.media.xaml=function(Q,R){if(!window.Sys||!window.Sys.Silverlight){if(C.fn.media.xaml.warning){return }C.fn.media.xaml.warning=1;alert("You must include the Silverlight.js script.");return }var P={width:R.width,height:R.height,background:R.bgColor,inplaceInstallPrompt:R.silverlight.inplaceInstallPrompt,isWindowless:R.silverlight.isWindowless,framerate:R.silverlight.framerate,version:R.silverlight.version};var N={onError:R.silverlight.onError,onLoad:R.silverlight.onLoad};var O=Q.id?(' id="'+Q.id+'"'):"";var M=R.id||"AG"+A++;var L=R.cls?(' class="'+R.cls+'"'):"";var K=C("<div"+O+L+">");C(Q).after(K).remove();Sys.Silverlight.createObjectEx({source:R.src,initParams:R.silverlight.initParams,userContext:R.silverlight.userContext,id:M,parentElement:K[0],properties:P,events:N});if(R.caption){C("<div>").appendTo(K).html(R.caption)}return K};function F(O,K,S){var W=C(O);var N=C.fn.media.defaults.players[S];if(S=="iframe"){var N=C('<iframe width="'+K.width+'" height="'+K.height+'" >');N.attr("src",K.src);N.css("backgroundColor",N.bgColor)}else{if(C.browser.msie){var R=['<object width="'+K.width+'" height="'+K.height+'" '];for(var T in K.attrs){R.push(T+'="'+K.attrs[T]+'" ')}for(var T in N.oAttrs||{}){var U=N.oAttrs[T];if(T=="codebase"&&window.location.protocol=="https:"){U=U.replace("http","https")}R.push(T+'="'+U+'" ')}R.push("></object>");var M=['<param name="'+(N.oUrl||"src")+'" value="'+K.src+'">'];for(var T in K.params){M.push('<param name="'+T+'" value="'+K.params[T]+'">')}var N=document.createElement(R.join(""));for(var P=0;P<M.length;P++){N.appendChild(document.createElement(M[P]))}}else{var R=['<embed width="'+K.width+'" height="'+K.height+'" style="display:block"'];if(K.src){R.push(' src="'+K.src+'" ')}for(var T in K.attrs){R.push(T+'="'+K.attrs[T]+'" ')}for(var T in N.eAttrs||{}){R.push(T+'="'+N.eAttrs[T]+'" ')}for(var T in K.params){if(T=="wmode"&&S!="flash"){continue}R.push(T+'="'+K.params[T]+'" ')}R.push("></embed>")}}var L=O.id?(' id="'+O.id+'"'):"";var V=K.cls?(' class="'+K.cls+'"'):"";var Q=C("<div"+L+V+">");W.after(Q).remove();(C.browser.msie||S=="iframe")?Q.append(N):Q.html(R.join(""));if(K.caption){C("<div>").appendTo(Q).html(K.caption)}return Q}})(jQuery);(function(D){var C=D.fn.remove;D.fn.remove=function(){D("*",this).add(this).triggerHandler("remove");return C.apply(this,arguments)};function B(E){function G(H){var I=H.style;return(I.display!="none"&&I.visibility!="hidden")}var F=G(E);(F&&D.each(D.dir(E,"parentNode"),function(){return(F=G(this))}));return F}D.extend(D.expr[":"],{data:function(F,G,E){return D.data(F,E[3])},tabbable:function(F,G,E){var H=F.nodeName.toLowerCase();return(F.tabIndex>=0&&(("a"==H&&F.href)||(/input|select|textarea|button/.test(H)&&"hidden"!=F.type&&!F.disabled))&&B(F))}});D.keyCode={BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38};function A(H,I,J,G){function F(L){var K=D[H][I][L]||[];return(typeof K=="string"?K.split(/,?\s+/):K)}var E=F("getter");if(G.length==1&&typeof G[0]=="string"){E=E.concat(F("getterSetter"))}return(D.inArray(J,E)!=-1)}D.widget=function(F,E){var G=F.split(".")[0];F=F.split(".")[1];D.fn[F]=function(K){var I=(typeof K=="string"),J=Array.prototype.slice.call(arguments,1);if(I&&K.substring(0,1)=="_"){return this}if(I&&A(G,F,K,J)){var H=D.data(this[0],F);return(H?H[K].apply(H,J):undefined)}return this.each(function(){var L=D.data(this,F);(!L&&!I&&D.data(this,F,new D[G][F](this,K)));(L&&I&&D.isFunction(L[K])&&L[K].apply(L,J))})};D[G][F]=function(J,I){var H=this;this.widgetName=F;this.widgetEventPrefix=D[G][F].eventPrefix||F;this.widgetBaseClass=G+"-"+F;this.options=D.extend({},D.widget.defaults,D[G][F].defaults,D.metadata&&D.metadata.get(J)[F],I);this.element=D(J).bind("setData."+F,function(M,K,L){return H._setData(K,L)}).bind("getData."+F,function(L,K){return H._getData(K)}).bind("remove",function(){return H.destroy()});this._init()};D[G][F].prototype=D.extend({},D.widget.prototype,E);D[G][F].getterSetter="option"};D.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName)},option:function(G,H){var F=G,E=this;if(typeof G=="string"){if(H===undefined){return this._getData(G)}F={};F[G]=H}D.each(F,function(I,J){E._setData(I,J)})},_getData:function(E){return this.options[E]},_setData:function(E,F){this.options[E]=F;if(E=="disabled"){this.element[F?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(F,H,G){var E=(F==this.widgetEventPrefix?F:this.widgetEventPrefix+F);H=H||D.event.fix({type:E,target:this.element[0]});return this.element.triggerHandler(E,[H,G],this.options[F])}};D.widget.defaults={disabled:false};D.ui={plugin:{add:function(F,G,I){var H=D.ui[F].prototype;for(var E in I){H.plugins[E]=H.plugins[E]||[];H.plugins[E].push([G,I[E]])}},call:function(E,G,F){var I=E.plugins[G];if(!I){return }for(var H=0;H<I.length;H++){if(E.options[I[H][0]]){I[H][1].apply(E.element,F)}}}},cssCache:{},css:function(E){if(D.ui.cssCache[E]){return D.ui.cssCache[E]}var F=D('<div class="ui-gen">').addClass(E).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");D.ui.cssCache[E]=!!((!(/auto|default/).test(F.css("cursor"))||(/^[1-9]/).test(F.css("height"))||(/^[1-9]/).test(F.css("width"))||!(/none/).test(F.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(F.css("backgroundColor"))));try{D("body").get(0).removeChild(F.get(0))}catch(G){}return D.ui.cssCache[E]},disableSelection:function(E){return D(E).attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},enableSelection:function(E){return D(E).attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},hasScroll:function(H,F){if(D(H).css("overflow")=="hidden"){return false}var E=(F&&F=="left")?"scrollLeft":"scrollTop",G=false;if(H[E]>0){return true}H[E]=1;G=(H[E]>0);H[E]=0;return G}};D.ui.mouse={_mouseInit:function(){var E=this;this.element.bind("mousedown."+this.widgetName,function(F){return E._mouseDown(F)});if(D.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(D.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(G){(this._mouseStarted&&this._mouseUp(G));this._mouseDownEvent=G;var F=this,H=(G.which==1),E=(typeof this.options.cancel=="string"?D(G.target).parents().add(G.target).filter(this.options.cancel).length:false);if(!H||E||!this._mouseCapture(G)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){F.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(G)&&this._mouseDelayMet(G)){this._mouseStarted=(this._mouseStart(G)!==false);if(!this._mouseStarted){G.preventDefault();return true}}this._mouseMoveDelegate=function(I){return F._mouseMove(I)};this._mouseUpDelegate=function(I){return F._mouseUp(I)};D(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);return false},_mouseMove:function(E){if(D.browser.msie&&!E.button){return this._mouseUp(E)}if(this._mouseStarted){this._mouseDrag(E);return false}if(this._mouseDistanceMet(E)&&this._mouseDelayMet(E)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,E)!==false);(this._mouseStarted?this._mouseDrag(E):this._mouseUp(E))}return !this._mouseStarted},_mouseUp:function(E){D(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._mouseStop(E)}return false},_mouseDistanceMet:function(E){return(Math.max(Math.abs(this._mouseDownEvent.pageX-E.pageX),Math.abs(this._mouseDownEvent.pageY-E.pageY))>=this.options.distance)},_mouseDelayMet:function(E){return this.mouseDelayMet},_mouseStart:function(E){},_mouseDrag:function(E){},_mouseStop:function(E){},_mouseCapture:function(E){return true}};D.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(A){A.widget("ui.tabs",{_init:function(){this.options.event+=".tabs";this._tabify(true)},_setData:function(B,C){if((/^selected/).test(B)){this.select(C)}else{this.options[B]=C;this._tabify()}},length:function(){return this.$tabs.length},_tabId:function(B){return B.title&&B.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+A.data(B)},ui:function(C,B){return{options:this.options,tab:C,panel:B,index:this.$tabs.index(C)}},_tabify:function(O){this.$lis=A("li:has(a[href])",this.element);this.$tabs=this.$lis.map(function(){return A("a",this)[0]});this.$panels=A([]);var P=this,D=this.options;this.$tabs.each(function(R,Q){if(Q.hash&&Q.hash.replace("#","")){P.$panels=P.$panels.add(Q.hash)}else{if((href=A(Q).attr("href"))!="#"){if(href.substring(0,1)=="#"){A.data(Q,"href.tabs",Q.href);A.data(Q,"load.tabs",Q.href);var T=P._tabId(Q);Q.href="#"+T;var S=A("#"+T);if(!S.length){S=A(D.panelTemplate).attr("id",T).addClass(D.panelClass).insertAfter(P.$panels[R-1]||P.element);S.data("destroy.tabs",true)}P.$panels=P.$panels.add(S)}else{}}else{D.disabled.push(R+1)}}});if(O){this.element.addClass(D.navClass);this.$panels.each(function(){var Q=A(this);Q.addClass(D.panelClass)});if(D.selected===undefined){if(location.hash){this.$tabs.each(function(S,Q){if(Q.hash==location.hash){D.selected=S;if(A.browser.msie||A.browser.opera){var R=A(location.hash),T=R.attr("id");R.attr("id","");setTimeout(function(){R.attr("id",T)},500)}scrollTo(0,0);return false}})}else{if(D.cookie){var J=parseInt(A.cookie("ui-tabs-"+A.data(P.element[0])),10);if(J&&P.$tabs[J]){D.selected=J}}else{if(P.$lis.filter("."+D.selectedClass).length){D.selected=P.$lis.index(P.$lis.filter("."+D.selectedClass)[0])}}}}D.selected=D.selected===null||D.selected!==undefined?D.selected:0;D.disabled=A.unique(D.disabled.concat(A.map(this.$lis.filter("."+D.disabledClass),function(R,Q){return P.$lis.index(R)}))).sort();if(A.inArray(D.selected,D.disabled)!=-1){D.disabled.splice(A.inArray(D.selected,D.disabled),1)}this.$panels.addClass(D.hideClass);this.$lis.removeClass(D.selectedClass);if(D.selected!==null){this.$panels.eq(D.selected).show().removeClass(D.hideClass);this.$lis.eq(D.selected).addClass(D.selectedClass);var K=function(){P._trigger("show",null,P.ui(P.$tabs[D.selected],P.$panels[D.selected]))};if(A.data(this.$tabs[D.selected],"load.tabs")){this.load(D.selected,K)}else{K()}}A(window).bind("unload",function(){P.$tabs.unbind(".tabs");P.$lis=P.$tabs=P.$panels=null})}else{D.selected=this.$lis.index(this.$lis.filter("."+D.selectedClass)[0])}if(D.cookie){A.cookie("ui-tabs-"+A.data(P.element[0]),D.selected,D.cookie)}for(var G=0,N;N=this.$lis[G];G++){A(N)[A.inArray(G,D.disabled)!=-1&&!A(N).hasClass(D.selectedClass)?"addClass":"removeClass"](D.disabledClass)}if(D.cache===false){this.$tabs.removeData("cache.tabs")}var C,I,B={"min-width":0,duration:1},E="normal";if(D.fx&&D.fx.constructor==Array){C=D.fx[0]||B,I=D.fx[1]||B}else{C=I=D.fx||B}var H={display:"",overflow:"",height:""};if(!A.browser.msie){H.opacity=""}function M(R,Q,S){Q.animate(C,C.duration||E,function(){Q.addClass(D.hideClass).css(H);if(A.browser.msie&&C.opacity){Q[0].style.filter=""}if(S){L(R,S,Q)}})}function L(R,S,Q){if(I===B){S.css("display","block")}S.animate(I,I.duration||E,function(){S.removeClass(D.hideClass).css(H);if(A.browser.msie&&I.opacity){S[0].style.filter=""}P._trigger("show",null,P.ui(R,S[0]))})}function F(R,T,Q,S){T.addClass(D.selectedClass).siblings().removeClass(D.selectedClass);M(R,Q,S)}this.$tabs.unbind(".tabs").bind(D.event,function(){var T=A(this).parents("li:eq(0)"),Q=P.$panels.filter(":visible"),S=A(this.hash);if((T.hasClass(D.selectedClass)&&!D.unselect)||T.hasClass(D.disabledClass)||A(this).hasClass(D.loadingClass)||P._trigger("select",null,P.ui(this,S[0]))===false){this.blur();return false}P.options.selected=P.$tabs.index(this);if(D.unselect){if(T.hasClass(D.selectedClass)){P.options.selected=null;T.removeClass(D.selectedClass);P.$panels.stop();M(this,Q);this.blur();return false}else{if(!Q.length){P.$panels.stop();var R=this;P.load(P.$tabs.index(this),function(){T.addClass(D.selectedClass).addClass(D.unselectClass);L(R,S)});this.blur();return false}}}if(D.cookie){A.cookie("ui-tabs-"+A.data(P.element[0]),P.options.selected,D.cookie)}P.$panels.stop();if(S.length){var R=this;P.load(P.$tabs.index(this),Q.length?function(){F(R,T,Q,S)}:function(){T.addClass(D.selectedClass);L(R,S)})}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(A.browser.msie){this.blur()}return true});if(!(/^click/).test(D.event)){this.$tabs.bind("click.tabs",function(){return false})}},add:function(E,D,C){if(C==undefined){C=this.$tabs.length}var G=this.options;var I=A(G.tabTemplate.replace(/#\{href\}/g,E).replace(/#\{label\}/g,D));I.data("destroy.tabs",true);var H=E.indexOf("#")==0?E.replace("#",""):this._tabId(A("a:first-child",I)[0]);var F=A("#"+H);if(!F.length){F=A(G.panelTemplate).attr("id",H).addClass(G.hideClass).data("destroy.tabs",true)}F.addClass(G.panelClass);if(C>=this.$lis.length){I.appendTo(this.element);F.appendTo(this.element[0].parentNode)}else{I.insertBefore(this.$lis[C]);F.insertBefore(this.$panels[C])}G.disabled=A.map(G.disabled,function(K,J){return K>=C?++K:K});this._tabify();if(this.$tabs.length==1){I.addClass(G.selectedClass);F.removeClass(G.hideClass);var B=A.data(this.$tabs[0],"load.tabs");if(B){this.load(C,B)}}this._trigger("add",null,this.ui(this.$tabs[C],this.$panels[C]))},remove:function(B){var D=this.options,E=this.$lis.eq(B).remove(),C=this.$panels.eq(B).remove();if(E.hasClass(D.selectedClass)&&this.$tabs.length>1){this.select(B+(B+1<this.$tabs.length?1:-1))}D.disabled=A.map(A.grep(D.disabled,function(G,F){return G!=B}),function(G,F){return G>=B?--G:G});this._tabify();this._trigger("remove",null,this.ui(E.find("a")[0],C[0]))},enable:function(B){var C=this.options;if(A.inArray(B,C.disabled)==-1){return }var D=this.$lis.eq(B).removeClass(C.disabledClass);if(A.browser.safari){D.css("display","inline-block");setTimeout(function(){D.css("display","block")},0)}C.disabled=A.grep(C.disabled,function(F,E){return F!=B});this._trigger("enable",null,this.ui(this.$tabs[B],this.$panels[B]))},disable:function(C){var B=this,D=this.options;if(C!=D.selected){this.$lis.eq(C).addClass(D.disabledClass);D.disabled.push(C);D.disabled.sort();this._trigger("disable",null,this.ui(this.$tabs[C],this.$panels[C]))}},select:function(B){if(typeof B=="string"){B=this.$tabs.index(this.$tabs.filter("[href$="+B+"]")[0])}this.$tabs.eq(B).trigger(this.options.event)},load:function(G,K){href=this.$tabs.eq(G).attr("href");if(href.substring(0,1)!="#"){return false}var L=this,D=this.options,E=this.$tabs.eq(G),J=E[0],H=K==undefined||K===false,B=E.data("load.tabs");K=K||function(){};if(!B||!H&&A.data(J,"cache.tabs")){K();return }var M=function(N){var O=A(N),P=O.find("*:last");return P.length&&P.is(":not(img)")&&P||O};var C=function(){L.$tabs.filter("."+D.loadingClass).removeClass(D.loadingClass).each(function(){if(D.spinner){M(this).parent().html(M(this).data("label.tabs"))}});L.xhr=null};if(D.spinner){var I=M(J).html();M(J).wrapInner("<em></em>").find("em").data("label.tabs",I).html(D.spinner)}var F=A.extend({},D.ajaxOptions,{url:B,success:function(O,N){A(J.hash).html(O);C();if(D.cache){A.data(J,"cache.tabs",true)}L._trigger("load",null,L.ui(L.$tabs[G],L.$panels[G]));D.ajaxOptions.success&&D.ajaxOptions.success(O,N);K()}});if(this.xhr){this.xhr.abort();C()}E.addClass(D.loadingClass);setTimeout(function(){L.xhr=A.ajax(F)},0)},url:function(C,B){this.$tabs.eq(C).removeData("cache.tabs").data("load.tabs",B)},destroy:function(){var B=this.options;this.element.unbind(".tabs").removeClass(B.navClass).removeData("tabs");this.$tabs.each(function(){var C=A.data(this,"href.tabs");if(C){this.href=C}var D=A(this).unbind(".tabs");A.each(["href","load","cache"],function(E,F){D.removeData(F+".tabs")})});this.$lis.add(this.$panels).each(function(){if(A.data(this,"destroy.tabs")){A(this).remove()}else{A(this).removeClass([B.selectedClass,B.unselectClass,B.disabledClass,B.panelClass,B.hideClass].join(" "))}})}});A.ui.tabs.defaults={unselect:false,event:"click",disabled:[],cookie:null,spinner:"Loading&#8230;",cache:false,idPrefix:"ui-tabs-",ajaxOptions:{},fx:null,tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>',panelTemplate:"<div></div>",navClass:"ui-tabs-nav",selectedClass:"ui-tabs-selected",unselectClass:"ui-tabs-unselect",disabledClass:"ui-tabs-disabled",panelClass:"ui-tabs-panel",hideClass:"ui-tabs-hide",loadingClass:"ui-tabs-loading"};A.ui.tabs.getter="length";A.extend(A.ui.tabs.prototype,{rotation:null,rotate:function(C,F){F=F||false;var B=this,E=this.options.selected;function G(){B.rotation=setInterval(function(){E=++E<B.$tabs.length?E:0;B.select(E)},C)}function D(H){if(!H||H.clientX){clearInterval(B.rotation)}}if(C){G();if(!F){this.$tabs.bind(this.options.event,D)}else{this.$tabs.bind(this.options.event,function(){D();E=B.options.selected;G()})}}else{D();this.$tabs.unbind(this.options.event,D)}}})})(jQuery);validations="";tabSubmit=false;$(document).ready(function(){defineForm();disableTabs()});function defineForm(){$("#formtabs > ul").tabs();$("#formtabs form").submit(formProcess);$("#formtabs input").blur(function(){$(this).validate.init(this)});$("#formtabs textarea").blur(function(){$(this).validate.init(this)});$("#formtabs a").click(function(){tabClick(this)});defineAutoComplete();preValidateFormParts();defineSubmitButton()}function preValidateFormParts(){$("#form input").each(function(){if($(this).attr("type")=="text"){myId=$(this).attr("name");myValue=$(this).attr("value");result=$("#"+myId+"_li").attr("class");if(myValue!=""&&result=="validated"){$(this).validate.init(this)}}});$("#form textarea").each(function(){myId=$(this).attr("name");myValue=$(this).attr("value");result=$("#"+myId+"_li").attr("class");if(myValue!=""&&result=="validated"){$(this).validate.init(this)}})}function defineSubmitButton(){disabled=false;$("#form input").each(function(){if($(this).attr("type")=="text"){myId=$(this).attr("name");result=$("#"+myId+"_li").attr("class");if(result=="validated"||result=="validated required-error"){disabled=true}}});$("#form textarea").each(function(){myId=$(this).attr("name");result=$("#"+myId+"_li").attr("class");if(result=="validated"||result=="validated required-error"){disabled=true}});if(disabled){$("#submitButton").attr("disabled","disabled");$("#submitButton").attr("style","color: #697B91;")}else{$("#submitButton").attr("disabled","");$("#submitButton").attr("style","color: #fff;")}}function defineAutoComplete(){$("input.autocomplete").autocomplete($("#autocompleteurl").attr("value"),{delay:10,width:260,selectFirst:false})}function enableTabs(){i=0;$("#formtabs > ul > li").each(function(){$("#formtabs > ul").tabs("enable",i);i++})}function disableTabs(){found=false;i=0;$("#formtabs > ul > li").each(function(){if(found){$("#formtabs > ul").tabs("disable",i)}if($(this).attr("class").indexOf("selected")!=-1){found=true}i++})}function loadFragment(A,B){if($("#step-"+step)!=null&&$("#formtabs > ul").length>0){$(B).load(A,defineForm);disableTabs()}else{$("#form-container").load(A,defineForm)}}function tabClick(A){value=A.id;value=value.replace("link-step-","");currentStep=value;$("#formtabs form").each(function(){$(this).attr("id","bla")});$("#step-"+currentStep+" form").attr("id","form");defineSubmitButton()}function formProcess(A){A.preventDefault();if(!tabSubmit){tabSubmit=true;enableTabs();document.getElementById("selectedformpart").value="";if($("#formtabs > ul").length>0){$("#form").ajaxSubmit(loadFormResults)}else{$("#form").ajaxSubmit(loadFormResults)}}}new function(){$.fn.validate={init:function(E){this.validateInput(E)},validateInput:function(F){if(validations.indexOf("-"+F.id+"-")==-1){validations+="-"+F.id+"-";errorMessage="";mapValue=validatorMap.get(F.id);if(mapValue!=null&&mapValue!=""){for(var E=0;E<mapValue.validators.length;E++){regexp=mapValue.validators[E].regexp;if(regexp!=""&&!F.value.match(regexp)){errorMessage=mapValue.validators[E].message;break}}if(errorMessage!=""){D(F,errorMessage)}else{if(mapValue.serversideValidatorCount>0){B(F)}else{C(F)}}}}}};function C(E){$("#"+E.id+"_img").html('<img src="/static/project/richforms/img/accept.gif" border="0" style="float:left;" />');$("#"+E.id+"_li").removeClass("required-error");$("#"+E.id+"_msg").html("");$("#"+E.id+"_li").addClass("success");validations=validations.replace("-"+E.id+"-","");defineSubmitButton()}function A(F,E){$("#"+F.id+"_img").html('<img src="/static/project/richforms/img/info.gif" border="0" style="float:left;" />');$("#"+F.id+"_li").removeClass("required-error");$("#"+F.id+"_li").removeClass("success");$("#"+F.id+"_msg").html(E);$("#"+F.id+"_li").addClass("selected");validations=validations.replace("-"+F.id+"-","")}function D(F,E){$("#"+F.id+"_img").html('<img src="/static/project/richforms/img/exclamation.gif" border="0" style="float:left;" />');$("#"+F.id+"_li").addClass("required-error");$("#"+F.id+"_msg").html(E);$("#"+F.id+"_li").removeClass("success");validations=validations.replace("-"+F.id+"-","")}function B(E){$("#"+E.id+"_img").html('<img src="/static/project/richforms/img/loading.gif" border="0" style="float:left;" />');document.getElementById("selectedformpart").value=E.id;$("#form").ajaxSubmit(function(F){result=$(F).find("error").text();result=result.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(result==""){info=$(F).find("info").text();info=info.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(info!=""){A(E,info)}else{C(E)}}else{D(E,result)}})}};function loadFormResults(data){tabSubmit=false;script=$(data).find("script").text();step=$(data).find("step").text();if($("#step-"+step)!=null&&$("#formtabs > ul").length>0){$("#link-step-"+step).click()}if(script!=""){eval(script)}else{formerror=$(data).find("formerror").text();if(formerror!=""){$("#formerror").html(formerror)}}}function firstTime(){newVisitor=0;var C=" "+document.cookie+";";var B="__utmb=";var A=C.indexOf(B);if(A<=1){newVisitor=1}}function trackVisit(){var E="__utmg";if(!cookieExist(E)){setCookie(E,generateId(),"90")}var C=getCookie(E);var A=new Date();var B=A.getDate()+"-"+(1+A.getMonth())+"-"+A.getFullYear()+" "+A.getHours()+":"+A.getMinutes()+":"+A.getSeconds();var D=C+"|"+getVars()+"|"+B;if(newVisitor){pageTracker._trackPageview("/crossvisittracking/?qid="+D)}}function cookieExist(C){var B=false;var A=""+document.cookie;if(A.indexOf(C)>-1){B=true}return B}function setCookie(E,D,C){var B=new Date();var A=new Date();if(C==null||C==0){C=1}A.setTime(B.getTime()+3600000*24*C);document.cookie=E+"="+escape(D)+";expires="+A.toGMTString()}function getCookie(D){var C=""+document.cookie;var B=C.indexOf(D);if(B==-1||D==""){return""}var A=C.indexOf(";",B);if(A==-1){A=C.length}return unescape(C.substring(B+D.length+1,A))}function generateId(){var D=Math.floor(Math.random()*1000);var B=new Date();var C=B.getMonth()+1;var A=B.getFullYear()+C+B.getDate()+"-"+B.getHours()+B.getSeconds()+"-"+D;return(A)}function _uGC(A,G,E){if(!A||A==""||!G||G==""||!E||E==""){return"-"}var C,D,B,F="";C=A.indexOf(G);B=G.indexOf("=")+1;if(C>-1){D=A.indexOf(E,C);if(D<0){D=A.length}F=A.substring((C+B),D)}return F}function getVars(){var C=_uGC(document.cookie,"__utmz=",";");urchin_source=_uGC(C,"utmcsr=","|");urchin_medium=_uGC(C,"utmcmd=","|");urchin_term=_uGC(C,"utmctr=","|");urchin_content=_uGC(C,"utmcct=","|");urchin_campaign=_uGC(C,"utmccn=","|");var B=_uGC(C,"utmgclid=","|");if(B){urchin_source="google";urchin_medium="cpc"}var A=urchin_source;A+="|"+urchin_medium;A+="|"+urchin_term;A+="|"+urchin_content;A+="|"+urchin_campaign;return A}var cancel_timeout=false;$(document).ready(function(){$("#pane1, #pane2, .toggle-pane").hide();var A=$(document.createElement("select"));A.attr("id","select-country");$(".toggle-pane").eq(0).siblings("ul").find("a").each(function(){var B=$(document.createElement("option"));B.text($(this).text());B.val($(this).parent().attr("class"));A.append(B)});A.change(selLang);$(".toggle-pane").eq(0).parent().append(A);selLang();$(".submit-selects").click(function(){var B="http://www.vogels.com";window.location=B+$("#select-language").val();return false})});function selLang(){$("#select-language").remove();var A=$(document.createElement("select"));A.attr("id","select-language");$(".toggle-pane").eq(1).siblings("ul").find("a").each(function(){if($(this).parent().hasClass("sub_"+$("#select-country").val())){var B=$(document.createElement("option"));B.text($(this).text());B.val($(this).attr("href"));A.append(B)}});$(".toggle-pane").eq(1).parent().append(A)}function set_cookie(B,G,I,F,H,J,E,A){var D=B+"="+escape(G);if(I){var C=new Date(I,F,H);D+="; expires="+C.toGMTString()}else{var C=new Date();C.setDate(C.getDate()+365);D+="; expires="+C.toGMTString()}if(J){D+="; path="+escape(J)}if(E){D+="; domain="+escape(E)}if(A){D+="; secure"}document.cookie=D}function get_cookie(B){var A=document.cookie.match("(^|;) ?"+B+"=([^;]*)(;|$)");if(A){return(unescape(A[2]))}else{return null}}function delete_cookie(B){var A=new Date();A.setTime(A.getTime()-1);document.cookie=B+="=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/"}function containsAtomairValue(A,C){var B=A.length;while(B--){if(A[B]==C){return true}}return false}$(function(){$("#tab_container_1 > ul").tabs()});$(function(){$("#tab_container_2 > ul").tabs()});function chooseLanguage(A){delete_cookie("languagelink");delete_cookie("country");document.location.href=A}var requiredVersion=5;var useRedirect=false;var flash2Installed=false;var flash3Installed=false;var flash4Installed=false;var flash5Installed=false;var flash6Installed=false;var flash7Installed=false;var flash8Installed=false;var flash9Installed=false;var maxVersion=9;var actualVersion=0;var hasRightVersion=false;var jsVersion=1;var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.indexOf("Windows")!=-1)?true:false;if(isIE&&isWin){document.write("<SCRIPT LANGUAGE=VBScript> \n");document.write("on error resume next \n");document.write('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');document.write('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');document.write('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');document.write('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');document.write('flash7Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n');document.write('flash8Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8"))) \n');document.write('flash9Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9"))) \n');document.write("</SCRIPT> \n")}jsVersion=1.1;detectFlash=function(){if(navigator.plugins){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var isVersion2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+isVersion2].description;var flashVersion=parseInt(flashDescription.charAt(flashDescription.indexOf(".")-1));flash2Installed=flashVersion==2;flash3Installed=flashVersion==3;flash4Installed=flashVersion==4;flash5Installed=flashVersion==5;flash6Installed=flashVersion==6;flash7Installed=flashVersion==7;flash8Installed=flashVersion==8;flash9Installed=flashVersion==9}}for(var i=2;i<=maxVersion;i++){if(eval("flash"+i+"Installed")==true){actualVersion=i}}if(navigator.userAgent.indexOf("WebTV")!=-1){actualVersion=2}if(actualVersion>=requiredVersion){hasRightVersion=true;if(useRedirect){if(jsVersion>1){window.location.replace(flashPage)}else{window.location=flashPage}}}else{if(useRedirect){if(jsVersion>1){window.location.replace((actualVersion>=2)?upgradePage:noFlashPage)}else{window.location=(actualVersion>=2)?upgradePage:noFlashPage}}}};writeFlash=function(E,B,D,A){var C=A;if(C==""){C='Voor deze site heeft u <a target="_blank" href="http://www.microsoft.com/download/">Microsoft Internet Explorer</a> versie 5.5 (of hoger) en de <a target="_blank" href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&P5_Language=English">Macromedia Flash plugin</a> versie '+requiredVersion+" (of hoger) nodig."}var F='<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="'+B+'" HEIGHT="'+D+'" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"><PARAM NAME="MOVIE" VALUE="'+E+'"><PARAM NAME="PLAY" VALUE="true"><PARAM NAME="LOOP" VALUE="false"><PARAM NAME="QUALITY" VALUE="high"><PARAM NAME="MENU" VALUE="false"><EMBED SRC="'+E+'" WIDTH="'+B+'" HEIGHT="'+D+'" PLAY="true" LOOP="false" QUALITY="high" MENU="false" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED><NOEMBED>'+C+"</NOEMBED></OBJECT>";if(hasRightVersion){document.write(F)}else{document.write(C)}};$(document).ready(function(){if($("h1.producttitle").length>0){$("ul#breadcrumbs").after("<h1>"+$("h1.producttitle").html()+"</h1>");$("h1.producttitle").remove()}$(".result-afb li span, .sort-video li span, .sort-specs li span, .image-thumbs dd a, .sort-column span a, .news-column .prodres-img a, .split-thema-right-bottom dl dd a").prepend("<img src='/static/vogelsinternetpresentation/images/globals/border-86x65.png' class='border86x65' alt='' />")});
