/* Copyright (c) 2007-2009 SPIL GAMES.  DO NOT COPY THIS CODE. */
;(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(e,b){e=e||document;if(e.nodeType){this[0]=e;this.length=1;this.context=e;return this}if(typeof e==="string"){var c=M.exec(e);if(c&&(c[1]||!b)){if(c[1]){e=T.clean([c[1]],b)}else{var a=document.getElementById(c[3]);if(a&&a.id!=c[3]){return T().find(e)}var d=T(a||[]);d.context=document;d.selector=e;return d}}else{return T(b).find(e)}}else{if(T.isFunction(e)){return T(document).ready(e)}}if(e.selector&&e.context){this.selector=e.selector;this.context=e.context}return this.setArray(T.makeArray(e))},selector:"",jquery:"1.3.1",size:function(){return this.length},get:function(a){return a===ab?T.makeArray(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(e){for(c in d){T.attr(b?this.style:this,c,T.prop(this,d[c],b,e,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,find:function(c){if(this.length===1&&!/,/.test(c)){var a=this.pushStack([],"find",c);a.length=0;T.find(c,this[0],a);return a}else{var b=T.map(this,function(d){return T.find(c,d)});return this.pushStack(/[^+>] [^+>]/.test(c)?T.unique(b):b,"find",c)}},clone:function(b){var c=this.map(function(){if(!T.support.noCloneEvent&&!T.isXMLDoc(this)){var d=this.cloneNode(true),e=document.createElement("div");e.appendChild(d);return T.clean([e.innerHTML])[0]}else{return this.cloneNode(true)}});var a=c.find("*").andSelf().each(function(){if(this[aa]!==ab){this[aa]=null}});if(b===true){this.find("*").andSelf().each(function(f){if(this.nodeType==3){return}var g=T.data(this,"events");for(var d in g){for(var e in g[d]){T.event.add(a[f],d,g[d][e],g[d][e].data)}}})}return c},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(b){var a=T.expr.match.POS.test(b)?T(b):null;return this.map(function(){var c=this;while(c&&c.ownerDocument){if(a?a.index(c)>-1:T(c).is(b)){return c}c=c.parentNode}})},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 i=this[0];if(i){if(T.nodeName(i,"option")){return(i.attributes.value||{}).specified?i.value:i.text}if(T.nodeName(i,"select")){var e=i.selectedIndex,b=[],a=i.options,f=i.type=="select-one";if(e<0){return null}for(var h=f?e:0,d=f?e+1:a.length;h<d;h++){var g=a[h];if(g.selected){c=T(g).val();if(f){return c}b.push(c)}}return b}return(i.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 j=T.makeArray(c);T("option",this).each(function(){this.selected=(T.inArray(this.value,j)>=0||T.inArray(this.text,j)>=0)});if(!j.length){this.selectedIndex=-1}}else{this.value=c}}})},html:function(a){return a===ab?(this[0]?this[0].innerHTML: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 e=(this[0].ownerDocument||this[0]).createDocumentFragment(),h=T.clean(d,(this[0].ownerDocument||this[0]),e),f=e.firstChild,j=this.length>1?e.cloneNode(true):e;if(f){for(var g=0,i=this.length;g<i;g++){b.call(c(this[g],f),g>0?j.cloneNode(true):e)}}if(h){T.each(h,E)}}return this;function c(l,k){return a&&T.nodeName(l,"table")&&T.nodeName(k,"tr")?(l.getElementsByTagName("tbody")[0]||l.appendChild(l.ownerDocument.createElement("tbody"))):l}}};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]||{},e=1,d=arguments.length,h=false,f;if(typeof c==="boolean"){h=c;c=arguments[1]||{};e=2}if(typeof c!=="object"&&!T.isFunction(c)){c={}}if(d==e){c=this;--e}for(;e<d;e++){if((f=arguments[e])!=null){for(var g in f){var b=c[g],a=f[g];if(c===a){continue}if(h&&a&&typeof a==="object"&&!a.nodeType){c[g]=T.extend(h,b||(a.length!=null?[]:{}),a)}else{if(a!==ab){c[g]=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){a=T.trim(a);if(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(e,a,f){var g,d=0,c=e.length;if(f){if(c===ab){for(g in e){if(a.apply(e[g],f)===false){break}}}else{for(;d<c;){if(a.apply(e[d++],f)===false){break}}}}else{if(c===ab){for(g in e){if(a.call(e[g],g,e[g])===false){break}}}else{for(var b=e[0];d<c&&a.call(b,d,b)!==false;b=e[++d]){}}}return e},prop:function(b,a,c,d,e){if(T.isFunction(a)){a=a.call(b,d)}return typeof a==="number"&&c=="curCSS"&&!ag.test(e)?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 e={};for(var d in c){e[d]=b.style[d];b.style[d]=c[d]}a.call(b);for(var d in c){b.style[d]=e[d]}},css:function(e,g,c){if(g=="width"||g=="height"){var a,f={position:"absolute",visibility:"hidden",display:"block"},b=g=="width"?["Left","Right"]:["Top","Bottom"];function d(){a=g=="width"?e.offsetWidth:e.offsetHeight;var i=0,h=0;T.each(b,function(){i+=parseFloat(T.curCSS(e,"padding"+this,true))||0;h+=parseFloat(T.curCSS(e,"border"+this+"Width",true))||0});a-=Math.round(i+h)}if(T(e).is(":visible")){d()}else{T.swap(e,f,d)}return Math.max(0,a)}return T.curCSS(e,g,c)},curCSS:function(e,h,g){var b,i=e.style;if(h=="opacity"&&!T.support.opacity){b=T.attr(i,"opacity");return b==""?"1":b}if(h.match(/float/i)){h=H}if(!g&&i&&i[h]){b=i[h]}else{if(Q.getComputedStyle){if(h.match(/float/i)){h="float"}h=h.replace(/([A-Z])/g,"-$1").toLowerCase();var a=Q.getComputedStyle(e,null);if(a){b=a.getPropertyValue(h)}if(h=="opacity"&&b==""){b="1"}}else{if(e.currentStyle){var d=h.replace(/\-(\w)/g,function(k,j){return j.toUpperCase()});b=e.currentStyle[h]||e.currentStyle[d];if(!/^\d+(px)?$/i.test(b)&&/^\d/.test(b)){var f=i.left,c=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left;i.left=b||0;b=i.pixelLeft+"px";i.left=f;e.runtimeStyle.left=c}}}}return b},clean:function(g,b,d){b=b||document;if(typeof b.createElement==="undefined"){b=b.ownerDocument||b[0]&&b[0].ownerDocument||document}if(!d&&g.length===1&&typeof g[0]==="string"){var e=/^<(\w+)\s*\/?>$/.exec(g[0]);if(e){return[b.createElement(e[1])]}}var f=[],h=[],a=b.createElement("div");T.each(g,function(k,i){if(typeof i==="number"){i+=""}if(!i){return}if(typeof i==="string"){i=i.replace(/(<(\w+)[^>]*?)\/>/g,function(p,o,q){return q.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?p:o+"></"+q+">"});var l=T.trim(i).toLowerCase();var j=!l.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!l.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||l.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!l.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!l.indexOf("<td")||!l.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!l.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!T.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];a.innerHTML=j[1]+i+j[2];while(j[0]--){a=a.lastChild}if(!T.support.tbody){var m=!l.indexOf("<table")&&l.indexOf("<tbody")<0?a.firstChild&&a.firstChild.childNodes:j[1]=="<table>"&&l.indexOf("<tbody")<0?a.childNodes:[];for(var n=m.length-1;n>=0;--n){if(T.nodeName(m[n],"tbody")&&!m[n].childNodes.length){m[n].parentNode.removeChild(m[n])}}}if(!T.support.leadingWhitespace&&/^\s/.test(i)){a.insertBefore(b.createTextNode(i.match(/^\s*/)[0]),a.firstChild)}i=T.makeArray(a.childNodes)}if(i.nodeType){f.push(i)}else{f=T.merge(f,i)}});if(d){for(var c=0;f[c];c++){if(T.nodeName(f[c],"script")&&(!f[c].type||f[c].type.toLowerCase()==="text/javascript")){h.push(f[c].parentNode?f[c].parentNode.removeChild(f[c]):f[c])}else{if(f[c].nodeType===1){f.splice.apply(f,[c+1,0].concat(T.makeArray(f[c].getElementsByTagName("script"))))}d.appendChild(f[c])}}return h}return f},attr:function(c,f,b){if(!c||c.nodeType==3||c.nodeType==8){return ab}var e=!T.isXMLDoc(c),a=b!==ab;f=e&&T.props[f]||f;if(c.tagName){var g=/href|src|style/.test(f);if(f=="selected"&&c.parentNode){c.parentNode.selectedIndex}if(f in c&&e&&!g){if(a){if(f=="type"&&T.nodeName(c,"input")&&c.parentNode){throw"type property can't be changed"}c[f]=b}if(T.nodeName(c,"form")&&c.getAttributeNode(f)){return c.getAttributeNode(f).nodeValue}if(f=="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[f]}if(!T.support.style&&e&&f=="style"){return T.attr(c.style,"cssText",b)}if(a){c.setAttribute(f,""+b)}var h=!T.support.hrefNormalized&&e&&g?c.getAttribute(f,2):c.getAttribute(f);return h===null?ab:h}if(!T.support.opacity&&f=="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)+"":""}f=f.replace(/-([a-z])/ig,function(j,i){return i.toUpperCase()});if(a){c[f]=b}return c[f]},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,e){var d=0,c,a=b.length;if(!T.support.getAll){while((c=e[d++])!=null){if(c.nodeType!=8){b[a++]=c}}}else{while((c=e[d++])!=null){b[a++]=c}}return b},unique:function(a){var f=[],g={};try{for(var e=0,d=a.length;e<d;e++){var b=T.data(a[e]);if(!g[b]){g[b]=true;f.push(a[e])}}}catch(c){f=a}return f},grep:function(e,a,f){var d=[];for(var c=0,b=e.length;c<b;c++){if(!f!=!a(e[c],c)){d.push(e[c])}}return d},map:function(f,a){var e=[];for(var d=0,c=f.length;d<c;d++){var b=a(f[d],d);if(b!=null){e[e.length]=b}}return e.concat.apply([],e)}});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(){var c=arguments;return this.each(function(){for(var e=0,d=c.length;e<d;e++){T(c[e])[a](this)}})}});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).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,h=0,l=Object.prototype.toString;var m=function(r,v,o,aj){o=o||[];v=v||document;if(v.nodeType!==1&&v.nodeType!==9){return[]}if(!r||typeof r!=="string"){return o}var q=[],t,C,z,w,ai,u,s=true;b.lastIndex=0;while((t=b.exec(r))!==null){q.push(t[1]);if(t[2]){u=RegExp.rightContext;break}}if(q.length>1&&g.exec(r)){if(q.length===2&&k.relative[q[0]]){C=j(q[0]+q[1],v)}else{C=k.relative[q[0]]?[v]:m(q.shift(),v);while(q.length){r=q.shift();if(k.relative[r]){r+=q.shift()}C=j(r,C)}}}else{var D=aj?{expr:q.pop(),set:n(aj)}:m.find(q.pop(),q.length===1&&v.parentNode?v.parentNode:v,c(v));C=m.filter(D.expr,D.set);if(q.length>0){z=n(C)}else{s=false}while(q.length){var A=q.pop(),B=A;if(!k.relative[A]){A=""}else{B=q.pop()}if(B==null){B=v}k.relative[A](z,B,c(v))}}if(!z){z=C}if(!z){throw"Syntax error, unrecognized expression: "+(A||r)}if(l.call(z)==="[object Array]"){if(!s){o.push.apply(o,z)}else{if(v.nodeType===1){for(var p=0;z[p]!=null;p++){if(z[p]&&(z[p]===true||z[p].nodeType===1&&i(v,z[p]))){o.push(C[p])}}}else{for(var p=0;z[p]!=null;p++){if(z[p]&&z[p].nodeType===1){o.push(C[p])}}}}}else{n(z,o)}if(u){m(u,v,o,aj)}return o};m.matches=function(p,o){return m(p,null,null,o)};m.find=function(p,w,o){var q,s;if(!p){return[]}for(var t=0,u=k.order.length;t<u;t++){var r=k.order[t],s;if((s=k.match[r].exec(p))){var v=RegExp.leftContext;if(v.substr(v.length-1)!=="\\"){s[1]=(s[1]||"").replace(/\\/g,"");q=k.find[r](s,w,o);if(q!=null){p=p.replace(k.match[r],"");break}}}}if(!q){q=w.getElementsByTagName("*")}return{set:q,expr:p}};m.filter=function(ai,o,B,t){var u=ai,z=[],q=o,r,w;while(ai&&o.length){for(var p in k.filter){if((r=k.match[p].exec(ai))!=null){var v=k.filter[p],A,C;w=false;if(q==z){z=[]}if(k.preFilter[p]){r=k.preFilter[p](r,q,B,z,t);if(!r){w=A=true}else{if(r===true){continue}}}if(r){for(var s=0;(C=q[s])!=null;s++){if(C){A=v(C,r,s,q);var D=t^!!A;if(B&&A!=null){if(D){w=true}else{q[s]=false}}else{if(D){z.push(C);w=true}}}}}if(A!==ab){if(!B){q=z}ai=ai.replace(k.match[p],"");if(!w){return[]}break}}}ai=ai.replace(/\s*,\s*/,"");if(ai==u){if(w==null){throw"Syntax error, unrecognized expression: "+ai}else{break}}u=ai}return q};var k=m.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(o){return o.getAttribute("href")}},relative:{"+":function(o,r){for(var q=0,s=o.length;q<s;q++){var p=o[q];if(p){var t=p.previousSibling;while(t&&t.nodeType!==1){t=t.previousSibling}o[q]=typeof r==="string"?t||false:t===r}}if(typeof r==="string"){m.filter(r,o,true)}},">":function(u,r,t){if(typeof r==="string"&&!/\W/.test(r)){r=t?r:r.toUpperCase();for(var q=0,s=u.length;q<s;q++){var o=u[q];if(o){var p=o.parentNode;u[q]=p.nodeName===r?p:false}}}else{for(var q=0,s=u.length;q<s;q++){var o=u[q];if(o){u[q]=typeof r==="string"?o.parentNode:o.parentNode===r}}if(typeof r==="string"){m.filter(r,u,true)}}},"":function(p,r,t){var q="done"+(h++),s=a;if(!r.match(/\W/)){var o=r=t?r:r.toUpperCase();s=d}s("parentNode",r,q,p,o,t)},"~":function(p,r,t){var q="done"+(h++),s=a;if(typeof r==="string"&&!r.match(/\W/)){var o=r=t?r:r.toUpperCase();s=d}s("previousSibling",r,q,p,o,t)}},find:{ID:function(q,p,o){if(typeof p.getElementById!=="undefined"&&!o){var r=p.getElementById(q[1]);return r?[r]:[]}},NAME:function(q,p,o){if(typeof p.getElementsByName!=="undefined"&&!o){return p.getElementsByName(q[1])}},TAG:function(p,o){return o.getElementsByTagName(p[1])}},preFilter:{CLASS:function(p,r,q,s,t){p=" "+p[1].replace(/\\/g,"")+" ";var u;for(var o=0;(u=r[o])!=null;o++){if(u){if(t^(" "+u.className+" ").indexOf(p)>=0){if(!q){s.push(u)}}else{if(q){r[o]=false}}}}return false},ID:function(o){return o[1].replace(/\\/g,"")},TAG:function(p,q){for(var o=0;q[o]===false;o++){}return q[o]&&c(q[o])?p[1]:p[1].toUpperCase()},CHILD:function(p){if(p[1]=="nth"){var o=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(p[2]=="even"&&"2n"||p[2]=="odd"&&"2n+1"||!/\D/.test(p[2])&&"0n+"+p[2]||p[2]);p[2]=(o[1]+(o[2]||1))-0;p[3]=o[3]-0}p[0]="done"+(h++);return p},ATTR:function(o){var p=o[1].replace(/\\/g,"");if(k.attrMap[p]){o[1]=k.attrMap[p]}if(o[2]==="~="){o[4]=" "+o[4]+" "}return o},PSEUDO:function(o,r,q,s,t){if(o[1]==="not"){if(o[3].match(b).length>1){o[3]=m(o[3],null,null,r)}else{var p=m.filter(o[3],r,q,true^t);if(!q){s.push.apply(s,p)}return false}}else{if(k.match.POS.test(o[0])){return true}}return o},POS:function(o){o.unshift(true);return o}},filters:{enabled:function(o){return o.disabled===false&&o.type!=="hidden"},disabled:function(o){return o.disabled===true},checked:function(o){return o.checked===true},selected:function(o){o.parentNode.selectedIndex;return o.selected===true},parent:function(o){return !!o.firstChild},empty:function(o){return !o.firstChild},has:function(o,p,q){return !!m(q[3],o).length},header:function(o){return/h\d/i.test(o.nodeName)},text:function(o){return"text"===o.type},radio:function(o){return"radio"===o.type},checkbox:function(o){return"checkbox"===o.type},file:function(o){return"file"===o.type},password:function(o){return"password"===o.type},submit:function(o){return"submit"===o.type},image:function(o){return"image"===o.type},reset:function(o){return"reset"===o.type},button:function(o){return"button"===o.type||o.nodeName.toUpperCase()==="BUTTON"},input:function(o){return/input|select|textarea|button/i.test(o.nodeName)}},setFilters:{first:function(o,p){return p===0},last:function(p,q,r,o){return q===o.length-1},even:function(o,p){return p%2===0},odd:function(o,p){return p%2===1},lt:function(o,p,q){return p<q[3]-0},gt:function(o,p,q){return p>q[3]-0},nth:function(o,p,q){return q[3]-0==p},eq:function(o,p,q){return q[3]-0==p}},filter:{CHILD:function(w,t){var q=t[1],p=w.parentNode;var r=t[0];if(p&&(!p[r]||!w.nodeIndex)){var s=1;for(var v=p.firstChild;v;v=v.nextSibling){if(v.nodeType==1){v.nodeIndex=s++}}p[r]=s-1}if(q=="first"){return w.nodeIndex==1}else{if(q=="last"){return w.nodeIndex==p[r]}else{if(q=="only"){return p[r]==1}else{if(q=="nth"){var z=false,u=t[2],o=t[3];if(u==1&&o==0){return true}if(u==0){if(w.nodeIndex==o){z=true}}else{if((w.nodeIndex-o)%u==0&&(w.nodeIndex-o)/u>=0){z=true}}return z}}}}},PSEUDO:function(u,q,p,t){var r=q[1],o=k.filters[r];if(o){return o(u,p,q,t)}else{if(r==="contains"){return(u.textContent||u.innerText||"").indexOf(q[3])>=0}else{if(r==="not"){var v=q[3];for(var p=0,s=v.length;p<s;p++){if(v[p]===u){return false}}return true}}}},ID:function(o,p){return o.nodeType===1&&o.getAttribute("id")===p},TAG:function(o,p){return(p==="*"&&o.nodeType===1)||o.nodeName===p},CLASS:function(o,p){return p.test(o.className)},ATTR:function(o,q){var s=k.attrHandle[q[1]]?k.attrHandle[q[1]](o):o[q[1]]||o.getAttribute(q[1]),t=s+"",p=q[2],r=q[4];return s==null?p==="!=":p==="="?t===r:p==="*="?t.indexOf(r)>=0:p==="~="?(" "+t+" ").indexOf(r)>=0:!q[4]?s:p==="!="?t!=r:p==="^="?t.indexOf(r)===0:p==="$="?t.substr(t.length-r.length)===r:p==="|="?t===r||t.substr(0,r.length+1)===r+"-":false},POS:function(o,r,q,t){var s=r[2],p=k.setFilters[s];if(p){return p(o,q,r,t)}}}};var g=k.match.POS;for(var e in k.match){k.match[e]=RegExp(k.match[e].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var n=function(o,p){o=Array.prototype.slice.call(o);if(p){p.push.apply(p,o);return p}return o};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(f){n=function(o,p){var r=p||[];if(l.call(o)==="[object Array]"){Array.prototype.push.apply(r,o)}else{if(typeof o.length==="number"){for(var q=0,s=o.length;q<s;q++){r.push(o[q])}}else{for(var q=0;o[q];q++){r.push(o[q])}}}return r}}(function(){var p=document.createElement("form"),o="script"+(new Date).getTime();p.innerHTML="<input name='"+o+"'/>";var q=document.documentElement;q.insertBefore(p,q.firstChild);if(!!document.getElementById(o)){k.find.ID=function(r,u,t){if(typeof u.getElementById!=="undefined"&&!t){var s=u.getElementById(r[1]);return s?s.id===r[1]||typeof s.getAttributeNode!=="undefined"&&s.getAttributeNode("id").nodeValue===r[1]?[s]:ab:[]}};k.filter.ID=function(t,s){var r=typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id");return t.nodeType===1&&r&&r.nodeValue===s}}q.removeChild(p)})();(function(){var o=document.createElement("div");o.appendChild(document.createComment(""));if(o.getElementsByTagName("*").length>0){k.find.TAG=function(s,t){var p=t.getElementsByTagName(s[1]);if(s[1]==="*"){var q=[];for(var r=0;p[r];r++){if(p[r].nodeType===1){q.push(p[r])}}p=q}return p}}o.innerHTML="<a href='#'></a>";if(o.firstChild&&o.firstChild.getAttribute("href")!=="#"){k.attrHandle.href=function(p){return p.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var p=m,o=document.createElement("div");o.innerHTML="<p class='TEST'></p>";if(o.querySelectorAll&&o.querySelectorAll(".TEST").length===0){return}m=function(u,q,s,r){q=q||document;if(!r&&q.nodeType===9&&!c(q)){try{return n(q.querySelectorAll(u),s)}catch(t){}}return p(u,q,s,r)};m.find=p.find;m.filter=p.filter;m.selectors=p.selectors;m.matches=p.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){k.order.splice(1,0,"CLASS");k.find.CLASS=function(p,o){return o.getElementsByClassName(p[1])}}function d(v,p,q,z,o,A){for(var s=0,u=z.length;s<u;s++){var w=z[s];if(w){w=w[v];var r=false;while(w&&w.nodeType){var t=w[q];if(t){r=z[t];break}if(w.nodeType===1&&!A){w[q]=s}if(w.nodeName===p){r=w;break}w=w[v]}z[s]=r}}}function a(v,q,r,z,p,o){for(var t=0,u=z.length;t<u;t++){var w=z[t];if(w){w=w[v];var s=false;while(w&&w.nodeType){if(w[r]){s=z[w[r]];break}if(w.nodeType===1){if(!o){w[r]=t}if(typeof q!=="string"){if(w===q){s=true;break}}else{if(m.filter(q,[w]).length>0){s=w;break}}}w=w[v]}z[t]=s}}}var i=document.compareDocumentPosition?function(o,p){return o.compareDocumentPosition(p)&16}:function(o,p){return o!==p&&(o.contains?o.contains(p):true)};var c=function(o){return o.nodeType===9&&o.documentElement.nodeName!=="HTML"||!!o.ownerDocument&&c(o.ownerDocument)};var j=function(s,t){var p=[],o="",v,q=t.nodeType?[t]:t;while((v=k.match.PSEUDO.exec(s))){o+=v[0];s=s.replace(k.match.PSEUDO,"")}s=k.relative[s]?s+"*":s;for(var u=0,r=q.length;u<r;u++){m(s,q[u],p)}return m.filter(o,p)};T.find=m;T.filter=m.filter;T.expr=m.selectors;T.expr[":"]=T.expr.filters;m.selectors.filters.hidden=function(o){return"hidden"===o.type||T.css(o,"display")==="none"||T.css(o,"visibility")==="hidden"};m.selectors.filters.visible=function(o){return"hidden"!==o.type&&T.css(o,"display")!=="none"&&T.css(o,"visibility")!=="hidden"};m.selectors.filters.animated=function(o){return T.grep(T.timers,function(p){return o===p.elem}).length};T.multiFilter=function(o,q,p){if(p){o=":not("+o+")"}return m.matches(o,q)};T.dir=function(p,q){var r=[],o=p[q];while(o&&o!=document){if(o.nodeType==1){r.push(o)}o=o[q]}return r};T.nth=function(o,s,q,p){s=s||1;var r=0;for(;o;o=o[q]){if(o.nodeType==1&&++r==s){break}}return o};T.sibling=function(o,p){var q=[];for(;o;o=o.nextSibling){if(o.nodeType==1&&o!=p){q.push(o)}}return q};return;W.Sizzle=m})();T.event={add:function(c,f,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 e=d;d=this.proxy(e);d.data=a}var g=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(f.split(/\s+/),function(k,j){var i=j.split(".");j=i.shift();d.type=i.slice().sort().join(".");var h=g[j];if(T.event.specialAll[j]){T.event.specialAll[j].setup.call(c,a,i)}if(!h){h=g[j]={};if(!T.event.special[j]||T.event.special[j].setup.call(c,a,i)===false){if(c.addEventListener){c.addEventListener(j,b,false)}else{if(c.attachEvent){c.attachEvent("on"+j,b)}}}}h[d.guid]=d;T.event.global[j]=true});c=null},guid:1,global:{},remove:function(b,e,c){if(b.nodeType==3||b.nodeType==8){return}var f=T.data(b,"events"),g,h;if(f){if(e===ab||(typeof e==="string"&&e.charAt(0)==".")){for(var d in f){this.remove(b,d+(e||""))}}else{if(e.type){c=e.handler;e=e.type}T.each(e.split(/\s+/),function(m,k){var i=k.split(".");k=i.shift();var l=RegExp("(^|\\.)"+i.slice().sort().join(".*\\.")+"(\\.|$)");if(f[k]){if(c){delete f[k][c.guid]}else{for(var j in f[k]){if(l.test(f[k][j].type)){delete f[k][j]}}}if(T.event.specialAll[k]){T.event.specialAll[k].teardown.call(b,i)}for(g in f[k]){break}if(!g){if(!T.event.special[k]||T.event.special[k].teardown.call(b,i)===false){if(b.removeEventListener){b.removeEventListener(k,T.data(b,"handle"),false)}else{if(b.detachEvent){b.detachEvent("on"+k,T.data(b,"handle"))}}}g=null;delete f[k]}}})}for(g in f){break}if(!g){var a=T.data(b,"handle");if(a){a.elem=null}T.removeData(b,"events");T.removeData(b,"handle")}}},trigger:function(d,b,e,h){var f=d.type||d;if(!h){d=typeof d==="object"?d[aa]?d:T.extend(T.Event(f),d):T.Event(f);if(f.indexOf("!")>=0){d.type=f=f.slice(0,-1);d.exclusive=true}if(!e){d.stopPropagation();if(this.global[f]){T.each(T.cache,function(){if(this.events&&this.events[f]){T.event.trigger(d,b,this.handle.elem)}})}}if(!e||e.nodeType==3||e.nodeType==8){return ab}d.result=ab;d.target=e;b=T.makeArray(b);b.unshift(d)}d.currentTarget=e;var c=T.data(e,"handle");if(c){c.apply(e,b)}if((!e[f]||(T.nodeName(e,"a")&&f=="click"))&&e["on"+f]&&e["on"+f].apply(e,b)===false){d.result=false}if(!h&&e[f]&&!d.isDefaultPrevented()&&!(T.nodeName(e,"a")&&f=="click")){this.triggered=true;try{e[f]()}catch(a){}}this.triggered=false;if(!d.isPropagationStopped()){var g=e.parentNode||e.ownerDocument;if(g){T.event.trigger(d,b,g,true)}}},handle:function(b){var c,h;b=arguments[0]=T.event.fix(b||W.event);var a=b.type.split(".");b.type=a.shift();c=!a.length&&!b.exclusive;var d=RegExp("(^|\\.)"+a.slice().sort().join(".*\\.")+"(\\.|$)");h=(T.data(this,"events")||{})[b.type];for(var f in h){var e=h[f];if(c||d.test(e.type)){b.handler=e;b.data=e.data;var g=e.apply(this,arguments);if(g!==ab){b.result=g;if(g===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 e=c;c=T.Event(e);for(var d=this.props.length,a;d;){a=this.props[--d];c[a]=e[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,f=document.body;c.pageX=c.clientX+(b&&b.scrollLeft||f&&f.scrollLeft||0)-(b.clientLeft||0);c.pageY=c.clientY+(b&&b.scrollTop||f&&f.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(e){T(this).unbind(e,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(g,f){if(d.test(f.type)){var e=T(a.target).closest(f.data)[0];if(e){c.push({elem:e,fn:f})}}});T.each(c,function(){if(this.fn.call(this.elem,a,this.fn.data)===false){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&&typeof W.frameElement==="undefined"){(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 f=document.documentElement,e=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("*"),g=a.getElementsByTagName("a")[0];if(!d||!d.length||!g){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(g.getAttribute("style")),hrefNormalized:g.getAttribute("href")==="/a",opacity:g.style.opacity==="0.5",cssFloat:!!g.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};e.type="text/javascript";try{e.appendChild(document.createTextNode("window."+b+"=1;"))}catch(c){}f.insertBefore(e,f.firstChild);if(W[b]){T.support.scriptEval=true;delete W[b]}f.removeChild(e);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 h=document.createElement("div");h.style.width="1px";h.style.paddingLeft="1px";document.body.appendChild(h);T.boxModel=T.support.boxModel=h.offsetWidth===2;document.body.removeChild(h)})})();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(e,b,a){if(typeof e!=="string"){return this._load(e)}var c=e.indexOf(" ");if(c>=0){var g=e.slice(c,e.length);e=e.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 f=this;T.ajax({url:e,type:d,dataType:"html",data:b,complete:function(i,h){if(h=="success"||h=="notmodified"){f.html(g?T("<div/>").append(i.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(g):i.responseText)}if(a){f.each(a,[i.responseText,h,i])}}});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/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,e){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,r=/=\?(&|$)/g,f,b,q=k.type.toUpperCase();if(k.data&&k.processData&&typeof k.data!=="string"){k.data=T.param(k.data)}if(k.dataType=="jsonp"){if(q=="GET"){if(!k.url.match(r)){k.url+=(k.url.match(/\?/)?"&":"?")+(k.jsonp||"callback")+"=?"}}else{if(!k.data||!k.data.match(r)){k.data=(k.data?k.data+"&":"")+(k.jsonp||"callback")+"=?"}}k.dataType="json"}if(k.dataType=="json"&&(k.data&&k.data.match(r)||k.url.match(r))){a="jsonp"+N++;if(k.data){k.data=(k.data+"").replace(r,"="+a+"$1")}k.url=k.url.replace(r,"="+a+"$1");k.dataType="script";W[a]=function(u){b=u;o();l();W[a]=ab;try{delete W[a]}catch(t){}if(p){p.removeChild(d)}}}if(k.dataType=="script"&&k.cache==null){k.cache=false}if(k.cache===false&&q=="GET"){var s=ad();var c=k.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+s+"$2");k.url=c+((c==k.url)?(k.url.match(/\?/)?"&":"?")+"_="+s:"")}if(k.data&&q=="GET"){k.url+=(k.url.match(/\?/)?"&":"?")+k.data;k.data=null}if(k.global&&!T.active++){T.event.trigger("ajaxStart")}var g=/^(\w+:)?\/\/([^\/?#]+)/.exec(k.url);if(k.dataType=="script"&&q=="GET"&&g&&(g[1]&&g[1]!=location.protocol||g[2]!=location.host)){var p=document.getElementsByTagName("head")[0];var d=document.createElement("script");d.src=k.url;if(k.scriptCharset){d.charset=k.scriptCharset}if(!a){var i=false;d.onload=d.onreadystatechange=function(){if(!i&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){i=true;o();l();p.removeChild(d)}}}p.appendChild(d);return ab}var m=false;var n=k.xhr();if(k.username){n.open(q,k.url,k.async,k.username,k.password)}else{n.open(q,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(e){}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 j=function(v){if(n.readyState==0){if(h){clearInterval(h);h=null;if(k.global&&!--T.active){T.event.trigger("ajaxStop")}}}else{if(!m&&n&&(n.readyState==4||v=="timeout")){m=true;if(h){clearInterval(h);h=null}f=v=="timeout"?"timeout":!T.httpSuccess(n)?"error":k.ifModified&&T.httpNotModified(n,k.url)?"notmodified":"success";if(f=="success"){try{b=T.httpData(n,k.dataType,k)}catch(t){f="parsererror"}}if(f=="success"){var u;try{u=n.getResponseHeader("Last-Modified")}catch(t){}if(k.ifModified&&u){T.lastModified[k.url]=u}if(!a){o()}}else{T.handleError(k,n,f)}l();if(v){n.abort()}if(k.async){n=null}}}};if(k.async){var h=setInterval(j,13);if(k.timeout>0){setTimeout(function(){if(n&&!m){j("timeout")}},k.timeout)}}try{n.send(k.data)}catch(e){T.handleError(k,n,null,e)}if(!k.async){j()}function o(){if(k.success){k.success(b,f)}if(k.global){T.event.trigger("ajaxSuccess",[n,k])}}function l(){if(k.complete){k.complete(n,f)}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 e=a.getResponseHeader("content-type"),f=c=="xml"||!c&&e&&e.indexOf("xml")>=0,b=f?a.responseXML:a.responseText;if(f&&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(f,e){b[b.length]=encodeURIComponent(f)+"="+encodeURIComponent(e)}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 e=0,g=this.length;e<g;e++){var h=T.data(this[e],"olddisplay");this[e].style.display=h||"";if(T.css(this[e],"display")==="none"){var f=this[e].tagName,b;if(V[f]){b=V[f]}else{var d=T("<"+f+" />").appendTo("body");b=d.css("display");if(b==="none"){b="block"}d.remove();V[f]=b}this[e].style.display=T.data(this[e],"olddisplay",b)}}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 e=T.data(this[c],"olddisplay");if(!e&&e!=="none"){T.data(this[c],"olddisplay",T.css(this[c],"display"))}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 e=T.speed(d,b,c);return this[e.queue===false?"each":"queue"](function(){var g=T.extend({},e),i,f=this.nodeType==1&&T(this).is(":hidden"),h=this;for(i in a){if(a[i]=="hide"&&f||a[i]=="show"&&!f){return g.complete.call(this)}if((i=="height"||i=="width")&&this.style){g.display=T.css(this,"display");g.overflow=this.style.overflow}}if(g.overflow!=null){this.style.overflow="hidden"}g.curAnim=T.extend({},a);T.each(a,function(o,k){var l=new T.fx(h,g,o);if(/toggle|show|hide/.test(k)){l[k=="toggle"?f?"show":"hide":k](a)}else{var m=k.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),j=l.cur(true)||0;if(m){var p=parseFloat(m[2]),n=m[3]||"px";if(n!="px"){h.style[o]=(p||1)+n;j=((p||1)/l.cur(true))*j;h.style[o]=j+n}if(m[1]){p=((m[1]=="-="?-1:1)*p)+j}l.custom(j,p,n)}else{l.custom(j,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 e=this;function d(f){return e.step(f)}d.elem=this.elem;if(d()&&T.timers.push(d)==1){U=setInterval(function(){var f=T.timers;for(var g=0;g<f.length;g++){if(!f[g]()){f.splice(g--,1)}}if(!f.length){clearInterval(U)}},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 f=true;for(var e in this.options.curAnim){if(this.options.curAnim[e]!==true){f=false}}if(f){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 f=this[0].getBoundingClientRect(),c=this[0].ownerDocument,g=c.body,h=c.documentElement,a=h.clientTop||g.clientTop||0,b=h.clientLeft||g.clientLeft||0,d=f.top+(self.pageYOffset||T.boxModel&&h.scrollTop||g.scrollTop)-a,e=f.left+(self.pageXOffset||T.boxModel&&h.scrollLeft||g.scrollLeft)-b;return{top:d,left:e}}}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 f=this[0],i=f.offsetParent,j=f,a=f.ownerDocument,c,h=a.documentElement,e=a.body,d=a.defaultView,k=d.getComputedStyle(f,null),b=f.offsetTop,g=f.offsetLeft;while((f=f.parentNode)&&f!==e&&f!==h){c=d.getComputedStyle(f,null);b-=f.scrollTop,g-=f.scrollLeft;if(f===i){b+=f.offsetTop,g+=f.offsetLeft;if(T.offset.doesNotAddBorder&&!(T.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(f.tagName))){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0}j=i,i=f.offsetParent}if(T.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0}k=c}if(k.position==="relative"||k.position==="static"){b+=e.offsetTop,g+=e.offsetLeft}if(k.position==="fixed"){b+=Math.max(h.scrollTop,e.scrollTop),g+=Math.max(h.scrollLeft,e.scrollLeft)}return{top:b,left:g}}}T.offset={initialize:function(){if(this.initialized){return}var c=document.body,i=document.createElement("div"),g,h,a,f,b,j,e=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(j in b){i.style[j]=b[j]}i.innerHTML=d;c.insertBefore(i,c.firstChild);g=i.firstChild,h=g.firstChild,f=g.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(h.offsetTop!==5);this.doesAddBorderForTableAndCells=(f.offsetTop===5);g.style.overflow="hidden",g.style.position="relative";this.subtractsBorderForOverflowNotVisible=(h.offsetTop===-5);c.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(c.offsetTop===0);c.style.marginTop=e;c.removeChild(i);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,e;if(this[0]){var d=this.offsetParent(),a=this.offset(),f=/^body|html$/i.test(d[0].tagName)?{top:0,left:0}:d.offset();a.top-=Y(this,"marginTop");a.left-=Y(this,"marginLeft");f.top+=Y(d,"borderTopWidth");f.left+=Y(d,"borderLeftWidth");e={top:a.top-f.top,left:a.left-f.left}}return e},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 e=b?"Left":"Top",c=b?"Right":"Bottom";T.fn["inner"+d]=function(){return this[d.toLowerCase()]()+Y(this,"padding"+e)+Y(this,"padding"+c)};T.fn["outer"+d]=function(f){return this["inner"+d]()+Y(this,"border"+e+"Width")+Y(this,"border"+c+"Width")+(f?Y(this,"margin"+e)+Y(this,"margin"+c):0)};var a=d.toLowerCase();T.fn[a]=function(f){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]):f===ab?(this.length?T.css(this[0],a):null):this.css(a,typeof f==="string"?f:f+"px")}})})();var flash=new Object();flash.load=function(z,B,n,u,A,p,q){var o=n.replace(/\/([^\/])+\.swf(.*)$/,"/");if(typeof s=="undefined"){var s=new Object()}if(typeof s.util=="undefined"){s.util=new Object()}if(typeof s.SWFObjectUtil=="undefined"){s.SWFObjectUtil=new Object()}s.SWFObject=function(l,d,c,k,i,f,b,j,g,a){if(!document.getElementById){return}this.DETECT_KEY=a?a:"detectflash";this.skipDetect=s.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(l){this.setAttribute("swf",l)}if(d){this.setAttribute("id",d)}if(c){this.setAttribute("width",c)}if(k){this.setAttribute("height",k)}if(i){this.setAttribute("version",new s.PlayerVersion(i.toString().split(".")))}this.installedVer=s.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){s.SWFObject.doPrepUnload=true}if(f){this.addParam("bgcolor",f)}var e=b?b:"high";this.addParam("quality",e);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var h=(j)?j:window.location;this.setAttribute("xiRedirectUrl",h);this.setAttribute("redirectUrl","");if(g){this.setAttribute("redirectUrl",g)}};s.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(b,a){this.attributes[b]=a},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c[c.length]=b+"="+a[b]}return c},getSWFHTML:function(){var c='"application/x-shockwave-flash"';var e="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000";var a="";if(z=="sw"){c='type="application/x-director"';e="clsid:166B1BCA-3F9C-11CF-8075-444553540000"}if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}a="<embed "+c+' src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'" allowScriptAccess="'+u+'" pluginspage="http://www.macromedia.com/go/getflashplayer"';a+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';if(z=="swf"){a+=' base="'+o+'" '}var b=this.getParams();for(var f in b){a+=[f]+'="'+b[f]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){a+='flashvars="'+d+'"'}a+="/>"}else{if(z=="sw"){a='<object id="'+this.getAttribute("id")+'" classid="'+e+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';var b=this.getParams();for(var f in b){a+='<param name="'+f+'" value="'+b[f]+'" />'}a+='<param name="allowScriptAccess" value="'+u+'" />';a+='<param name="src" value="'+this.getAttribute("swf")+'" />';a+='<param name="swStretchStyle" value="meet" />';a+="</object>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}a='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';a+='<param name="movie" value="'+this.getAttribute("swf")+'" />';a+='<param name="allowScriptAccess" value="'+u+'" />';a+='<param name="base" value="'+o+'" />';var b=this.getParams();for(var f in b){a+='<param name="'+f+'" value="'+b[f]+'" />'}var d=this.getVariablePairs().join("&");if(d.length>0){a+='<param name="flashvars" value="'+d+'" />'}a+="</object>"}}return a},write:function(c){if(this.getAttribute("useExpressInstall")){var b=new s.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(b)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var a=(typeof c=="string")?document.getElementById(c):c;a.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};s.SWFObjectUtil.getPlayerVersion=function(){var c=new s.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var e=navigator.plugins["Shockwave Flash"];if(e&&e.description){c=new s.PlayerVersion(e.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var b=1;var d=3;while(b){try{d++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+d);c=new s.PlayerVersion([d,0,0])}catch(a){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(a){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c=new s.PlayerVersion([6,0,21]);b.AllowScriptAccess=u}catch(a){if(c.major==6){return c}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(a){}}if(b!=null){c=new s.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return c};s.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};s.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};s.util={getRequestParameter:function(a){var b=document.location.search||document.location.hash;if(a==null){return b}if(b){var c=b.substring(1).split("&");for(var d=0;d<c.length;d++){if(c[d].substring(0,c[d].indexOf("="))==a){return c[d].substring((c[d].indexOf("=")+1))}}}return""}};s.SWFObjectUtil.cleanupSWFs=function(){var a=document.getElementsByTagName("OBJECT");for(var b=a.length-1;b>=0;b--){a[b].style.display="none";for(var c in a[b]){if(typeof a[b][c]=="function"){a[b][c]=function(){}}}}};if(s.SWFObject.doPrepUnload){if(!s.unloadSet){s.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",s.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",s.SWFObjectUtil.prepUnload);s.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var t=s.util.getRequestParameter;var w=s.SWFObject;var r=s.SWFObject;var A=A>0?A:"100%";var p=p>0?p:"100%";var v=new w(n,B+"_mc",A,p,"6");if(q=="transparent"){v.addParam("wmode","transparent")}if(u){v.addParam("allowScriptAccess",u)}v.write(B)};_ge=function(b){if(document.getElementById){var a=document.getElementById(b)}else{if(document.all){var a=document.all[b]}}return a};String.prototype.isEmpty=function(){if(this==""||this==null||this=="undefined"){return true}return false};function isArray(a){if(typeof(a)!="undefined"&&a!=""){return(typeof(a.length)=="undefined")?false:true}return false}function gotolink(a){window.top.location.href=a}function gotopage(b,c){try{setTimeout("gotolink('"+b+"')",c)}catch(a){}}checkPlugins=function(){var a="http://www.girlsgogames.nl/plugin_check.html";var b=window.open(a,"cp","width=400,height=350,scrollbar=no,resizable=no");centerWindow(b,400,350)};centerWindow=function(b,g,i){var f=screen.availHeight;var a=screen.availWidth;var d=a/2-g/2;var c=f/2-i/2;try{b.moveTo(d,c)}catch(j){}};var actShockwave_version=10;var actFlash_version=9;var ShockMode=0;checkShockwave=function(){if(navigator.mimeTypes&&navigator.mimeTypes["application/x-director"]&&navigator.mimeTypes["application/x-director"].enabledPlugin){if(navigator.plugins&&navigator.plugins["Shockwave for Director"]&&(versionIndex=navigator.plugins["Shockwave for Director"].description.indexOf("."))!=-1){var a=navigator.plugins["Shockwave for Director"].description.substring(versionIndex-2,versionIndex);versionIndex=parseInt(a);if(versionIndex>=actShockwave_version){ShockMode=1}}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("MSIE")>=0&&(navigator.userAgent.indexOf("Windows 95")>=0||navigator.userAgent.indexOf("Windows 98")>=0||navigator.userAgent.indexOf("Windows NT")>=0)){document.write("<SCRIPT LANGUAGE=VBScript> \n");document.write("on error resume next \n");document.write('ShockMode = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.1")))\n');document.write("</SCRIPT> \n")}}if(ShockMode){return true}else{if(!(navigator.appName&&navigator.appName.indexOf("Netscape")>=0&&navigator.appVersion.indexOf("2.")>=0)){return false}}};var flashinstalled=0;var flashversion=0;MSDetect="false";checkFlash=function(){if(navigator.plugins&&navigator.plugins.length){x=navigator.plugins["Shockwave Flash"];if(x){flashinstalled=2;if(x.description){y=x.description;flashversion=y.charAt(y.indexOf(".")-1)}}else{flashinstalled=1}if(navigator.plugins["Shockwave Flash 2.0"]){flashinstalled=2;flashversion=2}}else{if(navigator.mimeTypes&&navigator.mimeTypes.length){x=navigator.mimeTypes["application/x-shockwave-flash"];if(x&&x.enabledPlugin){flashinstalled=2}else{flashinstalled=1}}else{MSDetect="true"}}document.write("<SCRIPT LANGUAGE=VBScript>\n");document.write("on error resume next \n");document.write('If MSDetect = "true" Then\n');document.write("   For iii = 2 to actFlash_version\n");document.write('      If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & iii))) Then\n');document.write("      \n");document.write("      Else\n");document.write("          flashinstalled = 2\n");document.write("          flashversion = iii\n");document.write("      End If\n");document.write("   Next\n");document.write("End If\n");document.write("If flashinstalled = 0 Then\n");document.write("   flashinstalled = 1\n");document.write("End If\n");document.write("</SCRIPT> \n");if(flashinstalled!=0&&flashversion>=actFlash_version){return true}return false};checkJava=function(){return navigator.javaEnabled()};function getFlashMovieObject(a){if(window.document[a]){return window.document[a]}if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[a]){return document.embeds[a]}}else{return document.getElementById(a)}}var preTimer=10000;var actPerc=0;var preFull=10000;var spillpretimeout=null;var sometime=null;var spillpreLang=new Array();spillpreLang.whileloading="Game is being loaded";spillpreLang.clicktoclose="Close the advertisement and go on to the game";function showSpillGameNow(movieName,dWidth,dHeight,cbfoo){$("#spillpre_ad").hide();$("#"+movieName).css("width",dWidth+"px");$("#"+movieName).css("height",dHeight+"px");clearTimeout(spillpretimeout);spillpretimeout=-1;try{var callback=eval(cbfoo);callback()}catch(e){try{console.log("CANNOT CALL CALLBACK FUNCTION (after)")}catch(e){}}showSpillGameNow=function(){}}function check98percent(j,h,i,g,a,d){var f=h.substr(0,h.length-3);var b=parseInt((preFull-i)*100/preFull);var e=getFlashMovieObject(""+h);var c=e.PercentLoaded();if(j==c){showSpillGameNow(f,g,a,d);if(sometime!=null){clearTimeout(sometime);sometime=null}}}function SpillPreload(d,c,i,g,h,l){var b=d.substr(0,d.length-3);var j=parseInt((preFull-g)*100/preFull);var a=getFlashMovieObject(""+d);var k=a.PercentLoaded();if(k<0){k=100}actPerc=j<k?j:k;var e=h;var f=parseInt((actPerc*e)/100);$("#spillpre_bar").css("width",f+"px");$("#spillpre_percent").html("<span>"+actPerc+"%</span>");preTimer-=200;if(j>=100){sometime=setTimeout("check98percent('"+k+"','"+d+"','"+g+"','"+c+"', '"+i+"', '"+l+"')",2500)}if(actPerc<100){if(k>=100){$("#spillpre_whilead").hide();$("#spillpre_closead").show()}if(spillpretimeout!=-1){spillpretimeout=setTimeout("SpillPreload('"+d+"','"+c+"','"+i+"','"+preTimer+"','"+h+"','"+l+"')",200)}}else{clearTimeout(spillpretimeout);spillpretimeout=-1;showSpillGameNow(b,c,i,l)}}var flashLoadTries=0;var flashLoadTriesMax=3;function startPreloaderIfMovieExist(f,i,a,j,d,k){flashLoadTries++;try{var g=getFlashMovieObject(f);var b=g.PercentLoaded();spillpretimeout=setTimeout("SpillPreload('"+f+"', '"+i+"','"+a+"','"+j+"','"+d+"','"+k+"')",500)}catch(c){if(flashLoadTries<=flashLoadTriesMax){try{console.log("couldn't load preloader ["+flashLoadtries+"]")}catch(c){}setTimeout("startPreloaderIfMovieExist('"+f+"', '"+i+"','"+a+"','"+j+"','"+d+"','"+k+"')",1000)}else{var l=f.substr(0,f.length-3);showSpillGameNow(l,i,a,k);try{console.log("couldn't load preloader after "+flashLoadTries+" tries.")}catch(c){}}}}function showSpillPreloader(flashDivId,ad,width,height,barwidth,cbfooBefore,cbfooAfter,extraParams){if(extraParams.preloader_time){preFull=extraParams.preloader_time;preTimer=extraParams.preloader_time}if(cbfooBefore!=null){try{var callbackBefore=eval(cbfooBefore);callbackBefore()}catch(e){try{console.log("CANNOT CALL CALLBACK FUNCTION (before)")}catch(e){}}}try{if(js_spillpre_whileloading!=""&&js_spillpre_whileloading!=null&&js_spillpre_whileloading!="undefined"){spillpreLang.whileloading=js_spillpre_whileloading}if(js_spillpre_click2close!=""&&js_spillpre_click2close!=null&&js_spillpre_click2close!="undefined"){spillpreLang.clicktoclose=js_spillpre_click2close}}catch(e){}var barWidth=barwidth;$("#"+flashDivId).css("width","0px");$("#"+flashDivId).css("height","0px");$("#"+flashDivId).after('<div id="spillpre_ad"><div id="spillpre_loader"><div id="spillpre_bar">&#160;</div></div></div>');$("#spillpre_ad").css("width",extraParams.ad_width+"px");$("#spillpre_ad").prepend('<div id="spillpre_adcont">'+ad+"</div>");$("#spillpre_ad").append('<div id="spillpre_c2c_container"></div>');if(extraParams.loading_bar=="0"){$("#spillpre_loader").hide();$("#spillpre_c2c_container").hide()}$("#spillpre_c2c_container").css("width",barWidth+"px");$("#spillpre_c2c_container").append('<div id="spillpre_click2close"><div id="spillpre_whilead">'+spillpreLang.whileloading+"</div></div>");$("#spillpre_c2c_container").append('<div id="spillpre_percent">&#160;</div>');$("#spillpre_click2close").css("width",(barWidth-35)+"px");$("#spillpre_percent").css("width","35px");$("#spillpre_c2c_container").after('<div id="spillpre_clear">&#160;</div>');$("#spillpre_loader").css("width",barWidth+"px");$("#spillpre_click2close").append('<a id="spillpre_closead" href="#" onClick="showSpillGameNow(\''+flashDivId+"','"+width+"','"+height+"','"+cbfooAfter+'\'); return false;" style="display: none;">'+spillpreLang.clicktoclose+"</a>");setTimeout("startPreloaderIfMovieExist('"+flashDivId+"_mc', '"+width+"','"+height+"','"+preTimer+"','"+barWidth+"','"+cbfooAfter+"')",1000)}function at_display(b){var a=window.open();for(var c in b){a.document.write(c+" = "+b[c]+"<br>")}}function at_show_aux(f,e){var b=document.getElementById(f);var d=document.getElementById(e);var a=(d.at_position=="y")?b.offsetHeight+2:0;var g=(d.at_position=="x")?b.offsetWidth+2:0;for(;b;b=b.offsetParent){a+=b.offsetTop;g+=b.offsetLeft}d.style.visibility="visible"}function at_show(){var a=document.getElementById(this["at_parent"]);var b=document.getElementById(this["at_child"]);at_show_aux(a.id,b.id);clearTimeout(b.at_timeout)}function at_hide(){var a=document.getElementById(this["at_child"]);a.at_timeout=setTimeout("document.getElementById('"+a.id+"').style.visibility = 'hidden'",333)}function at_click(){var a=document.getElementById(this["at_parent"]);var b=document.getElementById(this["at_child"]);if(b.style.visibility!="visible"){at_show_aux(a.id,b.id)}else{b.style.visibility="hidden"}return false}function at_attach(h,e,g,f,b){var a=document.getElementById(h);var d=document.getElementById(e);a.at_parent=a.id;d.at_parent=a.id;a.at_child=d.id;d.at_child=d.id;a.at_position=f;d.at_position=f;d.style.position="absolute";d.style.visibility="hidden";if(b!=undefined){a.style.cursor=b}switch(g){case"click":a.onclick=at_click;a.onmouseout=at_hide;d.onmouseover=at_show;d.onmouseout=at_hide;break;case"hover":a.onmouseover=at_show;a.onmouseout=at_hide;d.onmouseover=at_show;d.onmouseout=at_hide;break}}function trackIt(a){try{pageTracker._trackPageview(a+"")}catch(b){}}function upFrame(b,c,e,a){var d=window.open("","po1234","width="+c+",height="+e+",top=0,left=0,resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no");d.document.writeln("<html><head><title>"+a+'</title><style type="text/css">body {padding: 0px; margin: 0px; border: 0px;}</style></head><body onLoad="self.focus();"><iframe src="'+b+'" width="100%" height="100%" frameborder="0" scrolling="no" marginwidth="0" marginheight="0">&nbsp;</iframe></body></html>');d.document.close()}(function($){var loaded=false;$.fn.prerol=function(options){var prerolCallbackFunction=null;closeAdd=function(pixel){if(!loaded){if(pixel){$("body").append(pixel)}cleanUpElements();if(prerolCallbackFunction!=null){eval(prerolCallbackFunction)}loaded=true}};createElements=function(target,options){try{$(target).append('<div id="prerolPlaceholder" style="width:100%"></div>');$("div#prerolPlaceholder").append('<div id="addPlaceholder" style="width:'+options.width+"px;height:"+options.height+'px"></div>').append('<div id="progressPlaceholder"></div>').append('<a id="closeLink" href="#" onclick="closeAdd(\''+options.closePixel+"')\">"+options.closeText+"</a>");$("div#prerolPlaceholder div#addPlaceholder").append(options.iframe);if(options.showProgress){$("div#prerolPlaceholder div#progressPlaceholder").append('<div id="progressBar" style="width:'+options.progressWidth+"px;height:"+options.progressHeight+'px;background-color:white;border:solid 1px black"><div id="percent" style="width:0px;height:'+options.progressHeight+'px"></div></div>').append('<p id="progressText"></p>')}}catch(ex){closeAdd()}};cleanUpElements=function(){$("div#prerolPlaceholder").children().each(function(){$(this).remove()});$("div#prerolPlaceholder").remove();return false};progressCounter=function(count,progressText){try{if(parseInt(count/1000)>0){$("div#prerolPlaceholder div#progressPlaceholder p#progressText").text(progressText.replace("%1$s",count/1000));var t=setTimeout("progressCounter("+parseInt(count-1000)+',"'+progressText+'")',1000)}else{closeAdd()}}catch(ex){closeAdd()}};startCounter=function(options){try{$("div#prerolPlaceholder div#progressPlaceholder div#percent").animate({width:options.progressWidth+"px"},options.progressTime);progressCounter(options.progressTime,options.progressText)}catch(ex){closeAdd()}};var target=$(this);var defaults={width:300,height:250,callbackFunction:"loadSWF()",showProgress:true,progressTime:15000,progressWidth:122,progressHeight:14,progressText:"The game will start in %1$s seconds",closeText:"Click here to go directly to the game.",iframe:"<iframe id='a83105c9' name='a83105c9' framespacing='0' frameborder='no' scrolling='no' width='300' height='250'></iframe>",showAd:true};var options=$.extend(defaults,options);prerolCallbackFunction=options.callbackFunction;if(options.showAd==true){createElements(target,options);startCounter(options)}else{closeAdd()}}})(jQuery);function CreateBookmarkLink(b){var a=document.location.href;if(window.sidebar&&!document.all){window.sidebar.addPanel(b,a,"")}else{if(window.external){window.external.AddFavorite(a,b)}else{if(window.opera&&window.print){return false}}}}(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.6rc6",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n){return}for(var m=0;m<n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j)},cssCache:{},css:function(j){if(c.ui.cssCache[j]){return c.ui.cssCache[j]}var k=c('<div class="ui-gen"></div>').addClass(j).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");c.ui.cssCache[j]=!!((!(/auto|default/).test(k.css("cursor"))||(/^[1-9]/).test(k.css("height"))||(/^[1-9]/).test(k.css("width"))||!(/none/).test(k.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(k.css("backgroundColor"))));try{c("body").get(0).removeChild(k.get(0))}catch(l){}return c.ui.cssCache[j]},hasScroll:function(m,k){if(c(m).css("overflow")=="hidden"){return false}var j=(k&&k=="left")?"scrollLeft":"scrollTop",l=false;if(m[j]>0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},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}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=true;this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(a){a.widget("ui.accordion",{_init:function(){var d=this.options,b=this;this.running=0;if(d.navigation){var c=this.element.find("a").filter(d.navigationFilter);if(c.length){if(c.filter(d.header).length){this.active=c}else{this.active=c.parent().parent().prev();c.addClass("ui-accordion-content-active")}}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");this.headers=this.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){a(this).removeClass("ui-state-hover")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");this.active=this._findActive(this.active||d.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");a("<span/>").addClass("ui-icon "+d.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);if(a.browser.msie){this.element.find("a").css("zoom","1")}this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(e){return b._keydown(e)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex","0")}else{this.active.attr("aria-expanded","true").attr("tabIndex","0")}if(!a.browser.safari){this.headers.find("a").attr("tabIndex","-1")}if(d.event){this.element.bind((d.event)+".accordion",function(e){return b._clickHandler.call(b,e)})}},destroy:function(){this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();this.headers.next().removeClass("ui-accordion-content ui-accordion-content-active")},_keydown:function(e){var g=this.options,f=a.ui.keyCode;if(g.disabled||e.altKey||e.ctrlKey){return}var d=this.headers.length;var b=this.headers.index(e.target);var c=false;switch(e.keyCode){case f.RIGHT:case f.DOWN:c=this.headers[(b+1)%d];break;case f.LEFT:case f.UP:c=this.headers[(b-1+d)%d];break;case f.SPACE:case f.ENTER:return this._clickHandler({target:e.target})}if(c){a(e.target).attr("tabIndex","-1");a(c).attr("tabIndex","0");c.focus();return false}return true},resize:function(){var e=this.options,d;if(e.fillSpace){if(a.browser.msie){var b=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();if(a.browser.msie){this.element.parent().css("overflow",b)}this.headers.each(function(){d-=a(this).outerHeight()});var c=0;this.headers.next().each(function(){c=Math.max(c,a(this).innerHeight()-a(this).height())}).height(d-c).css("overflow","auto")}else{if(e.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,a(this).outerHeight())}).height(d)}}},activate:function(b){this._clickHandler({target:this._findActive(b)[0]})},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(f){var h=this.options;if(h.disabled){return false}if(!f.target&&!h.alwaysOpen){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(h.icons.headerSelected).addClass(h.icons.header);this.active.next().addClass("ui-accordion-content-active");var c=this.active.next(),g={options:h,newHeader:a([]),oldHeader:h.active,newContent:a([]),oldContent:c},b=(this.active=a([]));this._toggle(b,c,g);return false}var d=a(f.target);d=a(d.parents(h.header)[0]||d);var e=d[0]==this.active[0];if(this.running||(h.alwaysOpen&&e)){return false}if(!d.is(h.header)){return}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(h.icons.headerSelected).addClass(h.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!e){d.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(h.icons.header).addClass(h.icons.headerSelected);d.next().addClass("ui-accordion-content-active")}var b=d.next(),c=this.active.next(),g={options:h,newHeader:e&&!h.alwaysOpen?a([]):d,oldHeader:this.active,newContent:e&&!h.alwaysOpen?a([]):b.find("> *"),oldContent:c.find("> *")},i=this.headers.index(this.active[0])>this.headers.index(d[0]);this.active=e?a([]):d;this._toggle(b,c,g,e,i);return false},_toggle:function(b,i,g,j,k){var d=this.options,m=this;this.toShow=b;this.toHide=i;this.data=g;var c=function(){if(!m){return}return m._completed.apply(m,arguments)};this._trigger("changestart",null,this.data);this.running=i.size()===0?b.size():i.size();if(d.animated){var f={};if(!d.alwaysOpen&&j){f={toShow:a([]),toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}else{f={toShow:b,toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}if(!d.proxied){d.proxied=d.animated}if(!d.proxiedDuration){d.proxiedDuration=d.duration}d.animated=a.isFunction(d.proxied)?d.proxied(f):d.proxied;d.duration=a.isFunction(d.proxiedDuration)?d.proxiedDuration(f):d.proxiedDuration;var l=a.ui.accordion.animations,e=d.duration,h=d.animated;if(!l[h]){l[h]=function(n){this.slide(n,{easing:h,duration:e||700})}}l[h](f)}else{if(!d.alwaysOpen&&j){b.toggle()}else{i.hide();b.show()}c(true)}i.prev().attr("aria-expanded","false").attr("tabIndex","-1");b.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(b){var c=this.options;this.running=b?0:--this.running;if(this.running){return}if(c.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""})}this._trigger("change",null,this.data)}});a.extend(a.ui.accordion,{version:"1.6rc6",defaults:{active:null,autoHeight:true,alwaysOpen:true,animated:"slide",clearStyle:false,event:"click",fillSpace:false,header:"a",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(j,h){j=a.extend({easing:"swing",duration:300},j,h);if(!j.toHide.size()){j.toShow.animate({height:"show"},j);return}var b=j.toHide.height(),i=j.toShow.height(),c=i/b,d=j.toShow.css("overflow"),e={},g={},f=["height","paddingTop","paddingBottom"];a.each(f,function(k,l){g[l]="hide";e[l]=parseFloat(j.toShow.css(l))});j.toShow.css({height:0,overflow:"hidden"}).show();j.toHide.filter(":hidden").each(j.complete).end().filter(":visible").animate(g,{step:function(l,m){if(!j.toShow[0]){return}var k=m.start!=m.end?(m.now-m.start)/(m.end-m.start):0,n=k*e[m.prop];if(a.browser.msie||a.browser.opera){n=Math.ceil(n)}j.toShow[0].style[m.prop]=n+"px"},duration:j.duration,easing:j.easing,complete:function(){if(!j.autoHeight){j.toShow.css("height","auto")}j.toShow.css({overflow:d});j.complete()}})},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1000:200})},easeslide:function(b){this.slide(b,{easing:"easeinout",duration:700})}}})})(jQuery);(function(a){a.widget("ui.draggable",a.extend({},a.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.cssNamespace&&this.element.addClass(this.options.cssNamespace+"-draggable"));(this.options.disabled&&this.element.addClass(this.options.cssNamespace+"-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return}this.element.removeData("draggable").unbind(".draggable").removeClass(this.options.cssNamespace+"-draggable "+this.options.cssNamespace+"-draggable-dragging "+this.options.cssNamespace+"-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is("."+this.options.cssNamespace+"-resizable-handle")){return false}this.handle=this._getHandle(b);if(!this.handle){return false}return true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;if(c.cursorAt){this._adjustOffsetFromHelper(c.cursorAt)}if(c.containment){this._setContainment()}this._trigger("start",b);this._cacheHelperProportions();if(a.ui.ddmanager&&!c.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,b)}this.helper.addClass(c.cssNamespace+"-draggable-dragging");this._mouseDrag(b,true);return true},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!d){var c=this._uiHash();this._trigger("drag",b,c);this.position=c.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,b)}return false},_mouseStop:function(c){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,c)}if(this.dropped){d=this.dropped;this.dropped=false}if((this.options.revert=="invalid"&&!d)||(this.options.revert=="valid"&&d)||this.options.revert===true||(a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d))){var b=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger("stop",c);b._clear()})}else{this._trigger("stop",c);this._clear()}return false},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==b.target){c=true}});return c},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):(d.helper=="clone"?this.element.clone():this.element);if(!b.parents("body").length){b.appendTo((d.appendTo=="parent"?this.element[0].parentNode:d.appendTo))}if(b[0]!=this.element[0]&&!(/(fixed|absolute)/).test(b.css("position"))){b.css("position","absolute")}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body&&a.browser.mozilla)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)&&e.containment.constructor!=Array){var c=a(e.containment)[0];if(!c){return}var d=a(e.containment).offset();var b=(a(c).css("overflow")!="hidden");this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else{if(e.containment.constructor==Array){this.containment=e.containment}}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f=="absolute"?1:-1;var e=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c)}},_generatePosition:function(e){var h=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0]){d=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top<this.containment[1]){c=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left>this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top>this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:(!(g-this.offset.click.top<this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?(!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:(!(f-this.offset.click.left<this.containment[0])?f-h.grid[0]:f+h.grid[0])):f}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(i?0:b.scrollTop()))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:b.scrollLeft()))}},_clear:function(){this.helper.removeClass(this.options.cssNamespace+"-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(b,c,d){d=d||this._uiHash();a.ui.plugin.call(this,b,[c,d]);if(b=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return a.widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(b){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));a.extend(a.ui.draggable,{version:"1.6rc6",eventPrefix:"drag",defaults:{appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cssNamespace:"ui",cursor:"default",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});a.ui.plugin.add("draggable","connectToSortable",{start:function(b,d){var c=a(this).data("draggable"),e=c.options;c.sortables=[];a(e.connectToSortable).each(function(){a(typeof this=="string"?this+"":this).each(function(){if(a.data(this,"sortable")){var f=a.data(this,"sortable");c.sortables.push({instance:f,shouldRevert:f.options.revert});f._refreshItems();f._trigger("activate",b,c)}})})},stop:function(b,d){var c=a(this).data("draggable");a.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;c.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(b);this.instance.options.helper=this.instance.options._helper;if(c.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",b,c)}})},drag:function(c,f){var e=a(this).data("draggable"),b=this;var d=function(i){var n=this.offset.click.top,m=this.offset.click.left;var g=this.positionAbs.top,k=this.positionAbs.left;var j=i.height,l=i.width;var p=i.top,h=i.left;return a.ui.isOver(g+n,k+m,p,h,j,l)};a.each(e.sortables,function(g){if(d.call(e,this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(b).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return f.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top;e._trigger("toSortable",c);e.dropped=this.instance.element;this.instance.fromOutside=e}if(this.instance.currentItem){this.instance._mouseDrag(c)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}e._trigger("fromSortable",c);e.dropped=false}}})}});a.ui.plugin.add("draggable","cursor",{start:function(c,d){var b=a("body"),e=a(this).data("draggable").options;if(b.css("cursor")){e._cursor=b.css("cursor")}b.css("cursor",e.cursor)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._cursor){a("body").css("cursor",d._cursor)}}});a.ui.plugin.add("draggable","iframeFix",{start:function(b,c){var d=a(this).data("draggable").options;a(d.iframeFix===true?"iframe":d.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")})},stop:function(b,c){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(c,d){var b=a(d.helper),e=a(this).data("draggable").options;if(b.css("opacity")){e._opacity=b.css("opacity")}b.css("opacity",e.opacity)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._opacity){a(c.helper).css("opacity",d._opacity)}}});a.ui.plugin.add("draggable","scroll",{start:function(c,d){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){b.overflowOffset=b.scrollParent.offset()}},drag:function(d,e){var c=a(this).data("draggable"),f=c.options,b=false;if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){if(!f.axis||f.axis!="x"){if((c.overflowOffset.top+c.scrollParent[0].offsetHeight)-d.pageY<f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop+f.scrollSpeed}else{if(d.pageY-c.overflowOffset.top<f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop-f.scrollSpeed}}}if(!f.axis||f.axis!="y"){if((c.overflowOffset.left+c.scrollParent[0].offsetWidth)-d.pageX<f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft+f.scrollSpeed}else{if(d.pageX-c.overflowOffset.left<f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft-f.scrollSpeed}}}}else{if(!f.axis||f.axis!="x"){if(d.pageY-a(document).scrollTop()<f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed)}else{if(a(window).height()-(d.pageY-a(document).scrollTop())<f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+f.scrollSpeed)}}}if(!f.axis||f.axis!="y"){if(d.pageX-a(document).scrollLeft()<f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-f.scrollSpeed)}else{if(a(window).width()-(d.pageX-a(document).scrollLeft())<f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed)}}}}if(b!==false&&a.ui.ddmanager&&!f.dropBehaviour){a.ui.ddmanager.prepareOffsets(c,d)}}});a.ui.plugin.add("draggable","snap",{start:function(c,d){var b=a(this).data("draggable"),e=b.options;b.snapElements=[];a(e.snap.constructor!=String?(e.snap.items||":data(draggable)"):e.snap).each(function(){var g=a(this);var f=g.offset();if(this!=b.element[0]){b.snapElements.push({item:this,width:g.outerWidth(),height:g.outerHeight(),top:f.top,left:f.left})}})},drag:function(u,p){var g=a(this).data("draggable"),q=g.options;var A=q.snapTolerance;var z=p.absolutePosition.left,w=z+g.helperProportions.width,f=p.absolutePosition.top,e=f+g.helperProportions.height;for(var v=g.snapElements.length-1;v>=0;v--){var s=g.snapElements[v].left,n=s+g.snapElements[v].width,m=g.snapElements[v].top,C=m+g.snapElements[v].height;if(!((s-A<z&&z<n+A&&m-A<f&&f<C+A)||(s-A<z&&z<n+A&&m-A<e&&e<C+A)||(s-A<w&&w<n+A&&m-A<f&&f<C+A)||(s-A<w&&w<n+A&&m-A<e&&e<C+A))){if(g.snapElements[v].snapping){(g.options.snap.release&&g.options.snap.release.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=false;continue}if(q.snapMode!="inner"){var c=Math.abs(m-e)<=A;var B=Math.abs(C-f)<=A;var j=Math.abs(s-w)<=A;var k=Math.abs(n-z)<=A;if(c){p.position.top=g._convertPositionTo("relative",{top:m-g.helperProportions.height,left:0}).top-g.margins.top}if(B){p.position.top=g._convertPositionTo("relative",{top:C,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:s-g.helperProportions.width}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n}).left-g.margins.left}}var h=(c||B||j||k);if(q.snapMode!="outer"){var c=Math.abs(m-f)<=A;var B=Math.abs(C-e)<=A;var j=Math.abs(s-z)<=A;var k=Math.abs(n-w)<=A;if(c){p.position.top=g._convertPositionTo("relative",{top:m,left:0}).top-g.margins.top}if(B){p.position.top=g._convertPositionTo("relative",{top:C-g.helperProportions.height,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:s}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n-g.helperProportions.width}).left-g.margins.left}}if(!g.snapElements[v].snapping&&(c||B||j||k||h)){(g.options.snap.snap&&g.options.snap.snap.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=(c||B||j||k||h)}}});a.ui.plugin.add("draggable","stack",{start:function(b,c){var e=a(this).data("draggable").options;var d=a.makeArray(a(e.stack.group)).sort(function(g,f){return(parseInt(a(g).css("zIndex"),10)||e.stack.min)-(parseInt(a(f).css("zIndex"),10)||e.stack.min)});a(d).each(function(f){this.style.zIndex=e.stack.min+f});this[0].style.zIndex=e.stack.min+d.length}});a.ui.plugin.add("draggable","zIndex",{start:function(c,d){var b=a(d.helper),e=a(this).data("draggable").options;if(b.css("zIndex")){e._zIndex=b.css("zIndex")}b.css("zIndex",e.zIndex)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._zIndex){a(c.helper).css("zIndex",d._zIndex)}}})})(jQuery);(function(a){a.fn.sslider=function(l){var g=this;var k=null;var j=0;var c=a(g).height();var d=0;var f={handlerObj:".slider-handler",pos:null,start:null,stop:null,sld:null};var b=a.extend(f,l);d=b.pos||0;var e=function(m){return Math.round((100*m)/(c-h))};var i=function(m){return Math.round(m*(c-h)/100)};if(b.start){a(g).bind("start",b.start)}if(b.stop){a(g).bind("start",b.stop)}if(b.slide){a(g).bind("sld",b.slide)}if(a(g).find(b.handlerObj).length>0){k=a(g).find(b+":first")}var h=a(k).height();a(k).draggable({axis:"y",containment:"parent",start:function(m){a(g).trigger("start",[m])},stop:function(m){a(g).trigger("stop",[m])},drag:function(m){percent=e(a(k).css("top").slice(0,-2));d=percent;a(g).trigger("sld",[percent])}});a(k).bind("drag",function(){percent=e(a(k).css("top").slice(0,-2));d=percent;a(g).trigger("sld",[percent])});a(g).bind("move",function(n,m){if((d+m)>=0&&(d+m)<=100){a(k).css("top",i(d+m)+"px").trigger("drag")}if((d+m)<0){a(k).css("top",i(0)+"px").trigger("drag")}if((d+m)>100){a(k).css("top",i(100)+"px").trigger("drag")}});a(k).css("top",i(d)+"px").trigger("drag",[])}})(jQuery);(function(){jQuery.fn.imgError=function(c){var c=$.extend({noimage:"/img/noimage_small.gif"},c);var a=[];var d=c.noimage||"";var b=this;return this.each(function(e,g){var f=new Image();$(f).error(function(){if(d!=""&&$('img[src="'+$(this).attr("src")+'"]').attr("src")!=d){var i=$(b).eq(e)[0].attributes;var j=[];var h={w:$(b).eq(e).width(),h:$(b).eq(e).height()};var k=$('<img src="'+d+'" />');$(i).each(function(l,m){if(m.nodeName.toLowerCase()!="src"){if(m.nodeValue!=""&&m.nodeValue!=null&&m.nodeValue!="undefined"&&m.nodeValue!==false){$(k).attr(m.nodeName,m.nodeValue)}}});$(b).eq(e).before(k).remove()}}).attr("src",$(this).attr("src"))})}})(jQuery);(function(d){var a=d.fn.height,c=d.fn.width;d.fn.extend({height:function(){if(this[0]==window){return self.innerHeight||d.boxModel&&document.documentElement.clientHeight||document.body.clientHeight}if(this[0]==document){return Math.max(document.body.scrollHeight,document.body.offsetHeight)}return a.apply(this,arguments)},width:function(){if(this[0]==window){return self.innerWidth||d.boxModel&&document.documentElement.clientWidth||document.body.clientWidth}if(this[0]==document){return Math.max(document.body.scrollWidth,document.body.offsetWidth)}return c.apply(this,arguments)},innerHeight:function(){return this[0]==window||this[0]==document?this.height():this.is(":visible")?this[0].offsetHeight-b(this,"borderTopWidth")-b(this,"borderBottomWidth"):this.height()+b(this,"paddingTop")+b(this,"paddingBottom")},innerWidth:function(){return this[0]==window||this[0]==document?this.width():this.is(":visible")?this[0].offsetWidth-b(this,"borderLeftWidth")-b(this,"borderRightWidth"):this.width()+b(this,"paddingLeft")+b(this,"paddingRight")},outerHeight:function(){return this[0]==window||this[0]==document?this.height():this.is(":visible")?this[0].offsetHeight:this.height()+b(this,"borderTopWidth")+b(this,"borderBottomWidth")+b(this,"paddingTop")+b(this,"paddingBottom")},outerWidth:function(){return this[0]==window||this[0]==document?this.width():this.is(":visible")?this[0].offsetWidth:this.width()+b(this,"borderLeftWidth")+b(this,"borderRightWidth")+b(this,"paddingLeft")+b(this,"paddingRight")},scrollLeft:function(f){if(f!=undefined){return this.each(function(){if(this==window||this==document){window.scrollTo(f,d(window).scrollTop())}else{this.scrollLeft=f}})}if(this[0]==window||this[0]==document){return self.pageXOffset||d.boxModel&&document.documentElement.scrollLeft||document.body.scrollLeft}return this[0].scrollLeft},scrollTop:function(f){if(f!=undefined){return this.each(function(){if(this==window||this==document){window.scrollTo(d(window).scrollLeft(),f)}else{this.scrollTop=f}})}if(this[0]==window||this[0]==document){return self.pageYOffset||d.boxModel&&document.documentElement.scrollTop||document.body.scrollTop}return this[0].scrollTop},position:function(o,j){var g=this[0],m=g.parentNode,i=g.offsetParent,o=d.extend({margin:false,border:false,padding:false,scroll:false},o||{}),l=g.offsetLeft,k=g.offsetTop,h=g.scrollLeft,n=g.scrollTop;if(d.browser.mozilla||d.browser.msie){l+=b(g,"borderLeftWidth");k+=b(g,"borderTopWidth")}if(d.browser.mozilla){do{if(d.browser.mozilla&&m!=g&&d.css(m,"overflow")!="visible"){l+=b(m,"borderLeftWidth");k+=b(m,"borderTopWidth")}if(m==i){break}}while((m=m.parentNode)&&(m.tagName.toLowerCase()!="body"||m.tagName.toLowerCase()!="html"))}var f=e(g,o,l,k,h,n);if(j){d.extend(j,f);return this}else{return f}},offset:function(g,l){var k=0,j=0,t=0,o=0,u=this[0],i=this[0],h,f,s=d.css(u,"position"),r=d.browser.mozilla,m=d.browser.msie,w=d.browser.safari,q=d.browser.opera,n=false,p=false,g=d.extend({margin:true,border:false,padding:false,scroll:true,lite:false},g||{});if(g.lite){return this.offsetLite(g,l)}if(u.tagName.toLowerCase()=="body"){k=u.offsetLeft;j=u.offsetTop;if(r){k+=b(u,"marginLeft")+(b(u,"borderLeftWidth")*2);j+=b(u,"marginTop")+(b(u,"borderTopWidth")*2)}else{if(q){k+=b(u,"marginLeft");j+=b(u,"marginTop")}else{if(m&&jQuery.boxModel){k+=b(u,"borderLeftWidth");j+=b(u,"borderTopWidth")}}}}else{do{f=d.css(i,"position");k+=i.offsetLeft;j+=i.offsetTop;if(r||m){k+=b(i,"borderLeftWidth");j+=b(i,"borderTopWidth");if(r&&f=="absolute"){n=true}if(m&&f=="relative"){p=true}}h=i.offsetParent;if(g.scroll||r){do{if(g.scroll){t+=i.scrollLeft;o+=i.scrollTop}if(r&&i!=u&&d.css(i,"overflow")!="visible"){k+=b(i,"borderLeftWidth");j+=b(i,"borderTopWidth")}i=i.parentNode}while(i!=h)}i=h;if(i.tagName.toLowerCase()=="body"||i.tagName.toLowerCase()=="html"){if((w||(m&&d.boxModel))&&s!="absolute"&&s!="fixed"){k+=b(i,"marginLeft");j+=b(i,"marginTop")}if((r&&!n&&s!="fixed")||(m&&s=="static"&&!p)){k+=b(i,"borderLeftWidth");j+=b(i,"borderTopWidth")}break}}while(i)}var v=e(u,g,k,j,t,o);if(l){d.extend(l,v);return this}else{return v}},offsetLite:function(n,i){var k=0,j=0,g=0,m=0,l=this[0],h,n=d.extend({margin:true,border:false,padding:false,scroll:true},n||{});do{k+=l.offsetLeft;j+=l.offsetTop;h=l.offsetParent;if(n.scroll){do{g+=l.scrollLeft;m+=l.scrollTop;l=l.parentNode}while(l!=h)}l=h}while(l&&l.tagName.toLowerCase()!="body"&&l.tagName.toLowerCase()!="html");var f=e(this[0],n,k,j,g,m);if(i){d.extend(i,f);return this}else{return f}}});var b=function(f,g){return parseInt(d.css(f.jquery?f[0]:f,g))||0};var e=function(j,i,g,k,f,h){if(!i.margin){g-=b(j,"marginLeft");k-=b(j,"marginTop")}if(i.border&&(d.browser.safari||d.browser.opera)){g+=b(j,"borderLeftWidth");k+=b(j,"borderTopWidth")}else{if(!i.border&&!(d.browser.safari||d.browser.opera)){g-=b(j,"borderLeftWidth");k-=b(j,"borderTopWidth")}}if(i.padding){g+=b(j,"paddingLeft");k+=b(j,"paddingTop")}if(i.scroll){f-=j.scrollLeft;h-=j.scrollTop}return i.scroll?{top:k-h,left:g-f,scrollTop:h,scrollLeft:f}:{top:k,left:g}}})(jQuery);(function(e){var b={},k,m,o,j=e.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),a=false;e.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip",fancyImages:{topLeft:"",topRight:"",bottomLeft:"",bottomRight:""}},block:function(){e.tooltip.blocked=!e.tooltip.blocked}};e.fn.extend({tooltip:function(p){p=e.extend({},e.tooltip.defaults,p);h(p);return this.each(function(){e.data(this,"tooltip",p);this.tOpacity=b.parent.css("opacity");this.tooltipText=this.title;e(this).removeAttr("title");this.alt=""}).mouseover(l).mouseout(f).click(f)},fixPNG:j?function(){return this.each(function(){var p=e(this).css("backgroundImage");if(p.match(/^url\(["']?(.*\.png)["']?\)$/i)){p=RegExp.$1;e(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+p+"')"}).each(function(){var q=e(this).css("position");if(q!="absolute"&&q!="relative"){e(this).css("position","relative")}})}})}:function(){return this},unfixPNG:j?function(){return this.each(function(){e(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){e(this)[e(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});function h(p){if(b.parent){return}b.parent=e('<div id="'+p.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if(e.fn.bgiframe){b.parent.bgiframe()}b.title=e("h3",b.parent);b.body=e("div.body",b.parent);b.url=e("div.url",b.parent)}function c(p){return e.data(p,"tooltip")}function g(p){if(c(this).delay){o=setTimeout(n,c(this).delay)}else{n()}a=!!c(this).track;e(document.body).bind("mousemove",d);d(p)}function l(){if(e.tooltip.blocked||this==k||(!this.tooltipText&&!c(this).bodyHandler)){return}k=this;m=this.tooltipText;if(c(this).bodyHandler){b.title.hide();var s=c(this).bodyHandler.call(this);if(s.nodeType||s.jquery){b.body.empty().append(s)}else{b.body.html(s)}b.body.show()}else{if(c(this).showBody){var r=m.split(c(this).showBody);b.title.html(r.shift()).show();b.body.empty();for(var q=0,p;(p=r[q]);q++){if(q>0){b.body.append("<br/>")}b.body.append(p)}b.body.hideWhenEmpty()}else{b.title.html(m).show();b.body.hide()}}if(c(this).showURL&&e(this).url()){b.url.html(e(this).url().replace("http://","")).show()}else{b.url.hide()}b.parent.addClass(c(this).extraClass);if(c(this).fixPNG){b.parent.fixPNG()}g.apply(this,arguments)}function n(){o=null;if((!j||!e.fn.bgiframe)&&c(k).fade){if(b.parent.is(":animated")){b.parent.stop().show().fadeTo(c(k).fade,k.tOpacity)}else{b.parent.is(":visible")?b.parent.fadeTo(c(k).fade,k.tOpacity):b.parent.fadeIn(c(k).fade)}}else{b.parent.show()}d()}function d(p){if(e.tooltip.blocked){return}if(p&&p.target.tagName=="OPTION"){return}if(!a&&b.parent.is(":visible")){e(document.body).unbind("mousemove",d)}if(k==null){e(document.body).unbind("mousemove",d);return}b.parent.removeClass("viewport-right").removeClass("viewport-bottom");b.parent.removeClass("topRight").removeClass("bottomRight").removeClass("topLeft").removeClass("bottomLeft");b.parent.css({background:"none"});var s=b.parent[0].offsetLeft;var A=b.parent[0].offsetTop;if(p){s=p.pageX+c(k).left;A=p.pageY+c(k).top;var B="auto";if(c(k).positionLeft){B=e(window).width()-s;s="auto"}b.parent.css({left:s,right:B,top:A})}var C=i(),z=b.parent[0];var w=C.x+C.cx;var t=z.offsetLeft+z.offsetWidth;var u=C.y+C.cy;var r=z.offsetTop+z.offsetHeight;var q=e.browser.msie&&parseInt(Math.floor(e.browser.version))==6?true:false;if(w<t&&u>r){b.parent.addClass("topRight");if(c(k).fancyImages.topRight!=""){b.parent.css({background:"url("+c(k).fancyImages.topRight+") no-repeat"})}}else{if(w<t&&u<r){b.parent.addClass("bottomRight");if(c(k).fancyImages.bottomRight!=""){b.parent.css({background:"url("+c(k).fancyImages.bottomRight+") no-repeat"})}}else{if(w>t&&u>r){b.parent.addClass("topLeft");if(c(k).fancyImages.topLeft!=""){b.parent.css({background:"url("+c(k).fancyImages.topLeft+") no-repeat"})}}else{if(w>t&&u<r){b.parent.addClass("bottomLeft");if(c(k).fancyImages.bottomLeft!=""){b.parent.css({background:"url("+c(k).fancyImages.bottomLeft+") no-repeat"})}}}}}if(C.x+C.cx<z.offsetLeft+z.offsetWidth){s-=z.offsetWidth+20+c(k).left;b.parent.css({left:s+"px"})}if(C.y+C.cy<z.offsetTop+z.offsetHeight){A-=z.offsetHeight+20+c(k).top;b.parent.css({top:A+"px"})}if(q&&c(k).fixPNG){b.parent.fixPNG()}}function i(){return{x:e(window).scrollLeft(),y:e(window).scrollTop(),cx:e(window).width(),cy:e(window).height()}}function f(r){if(e.tooltip.blocked){return}if(o){clearTimeout(o)}k=null;var q=c(this);function p(){b.parent.removeClass(q.extraClass).hide().css("opacity","")}if((!j||!e.fn.bgiframe)&&q.fade){if(b.parent.is(":animated")){b.parent.stop().fadeTo(q.fade,0,p)}else{b.parent.stop().fadeOut(q.fade,p)}}else{p()}if(c(this).fixPNG){b.parent.unfixPNG()}}})(jQuery);var actualWidth=0;var actualHeight=0;var startWidth=0;var startHeight=0;var ratio=1.1;zoom=function(c){var a=$("div#flashobj");actualWidth=$(a).width();actualHeight=$(a).height();startWidth=actualWidth;startHeight=actualHeight;switch(c){case 1:var b=actualWidth;actualWidth=Math.ceil(ratio*actualWidth);actualHeight=Math.ceil((actualHeight*actualWidth)/b);break;case -1:var b=actualWidth;actualWidth=Math.ceil(actualWidth/ratio);actualHeight=Math.ceil((actualHeight*actualWidth)/b);break}if(actualWidth>838){diff=actualWidth-startWidth;$("div.main").width(parseInt($("div.main").width())+diff);$("div#main_content").width(parseInt($("div#main_content").width())+diff);$("div.header").width(parseInt($("div.header").width())+diff);$("div.fiolet.footer").width(parseInt($("div.fiolet.footer").width())+diff)}$(a).width(actualWidth);$(a).height(actualHeight)};resetZoom=function(){if(startWidth>0&&startHeight>0){var a=_ge("flashobj");actualWidth=0;actualHeight=0;a.style.width=GameWidth+"px";a.style.height=GameHeight+"px";$("div.main").width('980px');$("div#main_content").width('838px');$("div.header").width('979px');$("div.fiolet.footer").width('979px')}};fixsize=function(){};jq_cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+m.path:"";var g=m.domain?"; domain="+m.domain:"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=(k[h]||"").replace(/^\s+|\s+$/g,"");if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};_spiHBreturnHotbox=function(d,m){var k=m||"_spiHB";var b=jq_cookie(k);try{if(b==null||b.indexOf("|")==-1){b=new Array()}else{b=b.split("|");for(var f=0;f<b.length;++f){b[f]=b[f].split("%")}}}catch(g){b=new Array()}var a=-1;for(var f=0;f<d.length;++f){if(d[f].cap>0){var l=false;for(var c=0;f<b.length;++c){try{if(b[c][0]==d[f].id&&b[c][1]<d[f].cap){l=true;a=f;break}else{if(b[c][0]==d[f].id&&b[c][1]>=d[f].cap){l=true;break}}}catch(h){break}}if(!l){a=f;break}else{if(l&&a!=-1){break}}}else{if(d[f].cap==-1){a=f;break}}}if(a==-1){a=0;b=new Array()}var n="";try{for(var f=0;f<d.length;++f){if(d[f].cap>0){var l=false;for(var c=0;f<b.length;++c){if(b[c][0]==d[f].id){if(a==f){b[c][1]=parseInt(b[c][1])+1}n+="|"+b[c][0]+"%"+b[c][1];l=true;break}}if(!l){if(a==f){n+="|"+d[f].id+"%1"}else{n+="|"+d[f].id+"%0"}}}}}catch(h){n=""}jq_cookie(k,n.substr(1),{expires:14,path:"/"});return d[a]};_spiHBRenderCode=function(b){var a="";if(b.type=="image"){a='<div id="hotbox" style="width:300px;height:269px; margin: 0 auto;"><!-- hotbox -->';if(b.linktype!="popup"){a+='<a href="'+b.link+'" target="_'+b.linktype+'"><img width="300" height="269" src="'+b.object+'" alt="'+b.alt+'" title="'+b.alt+'" border="0" /></a></div>'}else{a+='<a href="#" onclick="window.open(\''+b.link+"', 'popup', 'width="+b.width+",height="+b.height+',top=0,left=0, resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no\')"><img width="300" height="269" src="'+b.object+'" alt="'+b.alt+'" title="'+b.alt+'" border="0" /></a></div>'}}else{a+='<script language="javascript">\n';a+='document.write(\'<div id="hotbox" align="center" style="width: 140px; height: 337px; margin: 0 auto;"></div>\')\n';a+="flash.wmode = ''\n";a+="flash.load('swf', 'hotbox', '"+b.object+"','sameDomain','337','140')\n";a+="function flashHotbox() {\n";if(b.linktype!="popup"){if(b.linktype=="self"){a+="document.location.href = '"+b.link+"'\n"}else{a+="window.open('"+b.link+"', 'popup')\n"}}else{a+="window.open('"+b.link+"', 'popup', 'width="+b.width+",height="+b.height+",top=0,left=0, resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no')\n"}a+="}\n";a+="<\/script>\n"}return a};

	$(function(){
		var clearText = function(thefield){ 
			if (thefield.defaultValue==thefield.value) ;
          	thefield.value = "";
        };
		
		$('#menu_child').hide();
		$('#menu_parent').mouseover(function(){
				$('#menu_child').show();
			}).mouseout(function(){
				$('#menu_child').hide();
		});
		$('#menu_child').mouseover(function(){
			$('#menu_parent').unbind('mouseout');
			$('#menu_child').show();
		}).mouseout(function(){
			$('#menu_parent').unbind('mouseout');
			$('#menu_child').hide();
			$('#menu_parent').mouseout(function(){
				$('#menu_child').hide();
			});
		});

		$('input#searchtext').focus(function(){
			clearText(this);
		});
		$('form#search2').submit(function(){return checkSFValid(this, 'search', 3)});
		
		if (window.sidebar && !document.all){
          $('div#bookmark').hide();
        }
		$('a#searchlink').click(function(){
			$('form#search2').submit();
			return false;
		})
		
		$("img[src*=/100x75/]").imgError({noimage:'/img/noimage_small.gif'});
        $("img[src*=/200x120/]").imgError({noimage:'/img/noimage.gif'});
		$("img[src*=/thumbnails/subcatthumbnails/]").imgError({noimage:'/img/noimage.gif'});

		$('a[rel="external"]').attr('target','_blank');
		$('div#navigation ul li a').addClass('menuhover');
	});;// sprintf functions
function str_repeat(i,m){for(var o=[];m>0;o[--m]=i);return(o.join(''))};
function sprintf(){var i=0,a,f=arguments[i++],o=[],m,p,c,x;while(f){if(m=/^[^\x25]+/.exec(f))o.push(m[0]);else if(m=/^\x25{2}/.exec(f))o.push('%');else if(m=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(f)){if(((a=arguments[m[1]||i++])==null)||(a==undefined))throw("Too few arguments.");if(/[^s]/.test(m[7])&&(typeof(a)!='number'))throw("Expecting number but found "+typeof(a));switch(m[7]){case'b':a=a.toString(2);break;case'c':a=String.fromCharCode(a);break;case'd':a=parseInt(a);break;case'e':a=m[6]?a.toExponential(m[6]):a.toExponential();break;case'f':a=m[6]?parseFloat(a).toFixed(m[6]):parseFloat(a);break;case'o':a=a.toString(8);break;case's':a=((a=String(a))&&m[6]?a.substring(0,m[6]):a);break;case'u':a=Math.abs(a);break;case'x':a=a.toString(16);break;case'X':a=a.toString(16).toUpperCase();break}a=(/[def]/.test(m[7])&&m[2]&&a>0?'+'+a:a);c=m[3]?m[3]=='0'?'0':m[3].charAt(1):' ';x=m[5]-String(a).length;p=m[5]?str_repeat(c,x):'';o.push(m[4]?a+p:p+a)}else throw("Huh ?!");f=f.substring(m[0].length)}return o.join('')};
    
;/* jquery.swfobject.license.txt */
(function(a){a.flashPlayerVersion=function(){var d,b=null,i=false,h="ShockwaveFlash.ShockwaveFlash";if(!(d=navigator.plugins["Shockwave Flash"])){try{b=new ActiveXObject(h+".7")}catch(g){try{b=new ActiveXObject(h+".6");d=[6,0,21];b.AllowScriptAccess="always"}catch(f){if(d&&d[0]===6){i=true}}if(!i){try{b=new ActiveXObject(h)}catch(e){d="X 0,0,0"}}}if(!i&&b){try{d=b.GetVariable("$version")}catch(c){}}}else{d=d.description}d=d.match(/^[A-Za-z\s]*?(\d+)(\.|,)(\d+)(\s+r|,)(\d+)/);return[d[1]*1,d[3]*1,d[5]*1]}();a.flashExpressInstaller="expressInstall.swf";a.hasFlashPlayer=(a.flashPlayerVersion[0]!==0);a.hasFlashPlayerVersion=function(c){var b=a.flashPlayerVersion;c=(/string|integer/.test(typeof c))?c.toString().split("."):c;return(c)?(b[0]>=(c.major||c[0]||b[0])&&b[1]>=(c.minor||c[1]||b[1])&&b[2]>=(c.release||c[2]||b[2])):(b[0]!==0)};a.flash=function(q){if(!a.hasFlashPlayer){return false}var f=q.url||"",o=q.type||"swf",n=q.params||{},h=document.createElement("body"),e,p,k,g,m,l,j,i;q.height=q.height||180;q.width=q.width||320;if(q.hasVersion&&!a.hasFlashPlayerVersion(q.hasVersion)){a.extend(q,{id:"SWFObjectExprInst",height:Math.max(q.height,137),width:Math.max(q.width,214)});f=q.expressInstaller||a.flashExpressInstaller;n={flashvars:{MMredirectURL:window.location.href,MMplayerType:(a.browser.msie&&a.browser.win)?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}}if(q.flashvars&&typeof n==="object"){a.extend(n,{flashvars:q.flashvars})}for(m in (l=["url","type","expressInstall","hasVersion","params","flashvars"])){delete q[l[m]]}e=[];for(m in q){if(typeof q[m]==="object"){p=[];for(l in q[m]){p.push(l.replace(/([A-Z])/,"-$1").toLowerCase()+":"+q[m][l]+";")}q[m]=p.join("")}e.push(m+'="'+q[m]+'"')}q=e.join(" ");if(typeof n==="object"){e=[];for(m in n){if(typeof n[m]==="object"){p=[];for(l in n[m]){if(typeof n[m][l]==="object"){k=[];for(j in n[m][l]){if(typeof n[m][l][j]==="object"){g=[];for(i in n[m][l][j]){g.push(i.replace(/([A-Z])/,"-$1").toLowerCase()+":"+n[m][l][j][i]+";")}n[m][l][j]=g.join("")}k.push(j+"{"+n[m][l][j]+"}")}n[m][l]=k.join("")}p.push(window.escape(l)+"="+window.escape(n[m][l]))}n[m]=p.join("&amp;")}e.push('<PARAM NAME="'+m+'" VALUE="'+n[m]+'">')}n=e.join("")}if(o=="swf"){if(!(/style=/.test(q))){q+=' style="vertical-align:text-top;"'}if(!(/style=(.*?)vertical-align/.test(q))){q=q.replace(/style="/,'style="vertical-align:text-top;')}}if(a.browser.msie){if(o=="swf"){q+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';n='<PARAM NAME="movie" VALUE="'+f+'">'+n}else{q+=' classid="clsid:233C1507-6A77-46A4-9443-F871F945D258" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=11,0,0,0"';n='<param name=PlayerVersion value=11><PARAM NAME="src" VALUE="'+f+'">'+n}}else{if(o=="swf"){q+=' type="application/x-shockwave-flash" data="'+f+'"'}else{q+=' codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=11,0,0,0" type="application/x-director" data="'+f+'"';n='<param name=PlayerVersion value=11><PARAM NAME="src" VALUE="'+f+'">'+n}}return"<OBJECT "+q+">"+n+"</OBJECT>"};a.fn.flash=function(c){if(!a.hasFlashPlayer){return this}var b=0,d;while((d=this.eq(b++))[0]){d.html(a.flash(a.extend({},c)));if(d[0].firstChild.getAttribute("id")==="SWFObjectExprInst"){b=this.length}}return this}}(jQuery));;(function(e){var w={adWidth:300,adHeight:250,showAd:true,forcePreroll:false,usePercentsInPreroll:true,loadingBar:true,fileType:"swf",contentId:"#flashobj",preloadId:"#flashobj_mc",beforeCallback:null,afterCallback:null,skipCallback:null,gameInsertCallback:null,loadingText:"Loading game...",afterLoadingText:"Game loaded. Click here to start the game\u2026",progressbarText:"The game will start in %d seconds",closeText:"Close the advertisement and go on to the game.",advertisementText:"Advertisement",tickInterval:200,progressTime:15000,showSkipTime:0,barWidth:300,adType:"iframe",adCode:""};var a=0;var d=0;var v=0;var h=this;var k=0;var r=false;var o=false;var m=false;var u,A,f,s,l,y,z,c;var p=function(){if(u!=null){clearInterval(u);u=null}if(c!=null){clearTimeout(c);c=null}if(f!=null){clearTimeout(f);f=null}e(A).remove();if(w.afterCallback!=null){w.afterCallback.call(h,w)}if(w.fileType!="swf"||w.forcePreroll){w.gameInsertCallback.call(h)}else{e(w.contentId).css({width:l,height:y})}};var q=function(){if(w.skipCallback!=null){w.skipCallback.call(h,w)}p()};var j=function(B){r=B?false:r;if(v<=0&&!r){if(z){if(!o){e("#ap_skiptext").empty().append(e('<a href="javascript:void(0);">'+w.closeText+"</a>").click(q));o=true}}else{if(B){if(!o){e("#ap_skiptext").empty().append(e('<a href="javascript:void(0);">'+w.afterLoadingText+"</a>").click(q));o=true}}else{e("#ap_skiptext").empty().append(w.loadingText)}}r=true;return}else{if(v>0&&!z&&!B&&!r){e("#ap_skiptext").empty().append(w.loadingText);r=true}}v-=w.tickInterval};var x=function(){e(A).css({width:(w.adWidth+"px")});e(A).prepend('<div id="ap_adtext">'+w.advertisementText+"</div>");if(w.adType=="iframe"){e(A).append('<div id="ap_adframe"></div>');e("#ap_adframe").css({width:(w.adWidth+"px"),height:(w.adHeight+"px")});e("#ap_adframe").append(w.adCode)}else{e("#ap_adframe").css({width:(w.adWidth+"px"),height:(w.adHeight+"px")})}if(w.loadingBar&&!m){e(A).append('<div id="ap_progressbar"></div>');e("#ap_progressbar").css("width",w.barWidth+"px");if(z&&!w.usePercentsInPreroll){e("#ap_progressbar").reportprogress(0,100,sprintf(w.progressbarText,Math.ceil(w.progressTime/1000)),w.barWidth)}else{e("#ap_progressbar").reportprogress(0,100,"0%",w.barWidth)}}if(!m){e(A).append('<div id="ap_skiptext"></div>')}j()};var n=function(){d+=w.tickInterval;a=Math.round(100*d/w.progressTime);if(w.usePercentsInPreroll){e("#ap_progressbar").reportprogress(a,100,a+"%")}else{e("#ap_progressbar").reportprogress(a,100,sprintf(w.progressbarText,Math.ceil((w.progressTime-d)/1000)))}j();if(a>=100){if(!m){p()}}};var i=function(C){var B=e(w.preloadId)[0].PercentLoaded();if(C==B){if(!m){p()}if(f!=null){clearTimeout(sometime);f=null}}};var g=function(){var B=parseInt((w.progressTime-s)*100/w.progressTime);var C=e(w.preloadId)[0].PercentLoaded();if(C<0){C=100}a=B<C?B:C;e("#ap_progressbar").reportprogress(a,100,a+"%");s-=w.tickInterval;if(B>=100){f=setTimeout(function(){i(C)},2500)}if(a<100){if(C>=100){j(true)}else{j()}}else{if(!m){p()}}};var b;b=function(){k++;try{var B=e(w.preloadId)[0].PercentLoaded();u=setInterval(g,w.tickInterval);x()}catch(C){if(k<=3){setTimeout(b,1000)}else{if(!m){p()}}}};var t=function(){if(w.beforeCallback!=null){w.beforeCallback.call(h,w)}v=w.showSkipTime;if(w.fileType!="swf"||w.forcePreroll){z=true;u=setInterval(n,w.tickInterval);x()}else{w.gameInsertCallback.call(h);y=e(w.contentId).css("height");l=e(w.contentId).css("width");e(w.contentId).css({width:"0px",height:"0px"});z=false;b();s=w.progressTime}};e.spiPreloaderNeoEdge=function(B){return function(C){if(C=="AD_STARTED"){if(parent){m=true}c=setTimeout(p,B||30000)}if(C=="AD_COMPLETED"){p()}}};e.fn.spiPreloader=function(B){A=e(this);e.extend(w,B);if(w.showAd==true){t()}else{if(w.beforeCallback!=null){w.beforeCallback.call(h,w)}w.gameInsertCallback.call(h,w);if(w.afterCallback!=null){w.afterCallback.call(h,w)}}}})(jQuery);;(function(a){a.fn.reportprogress=function(e,g,d,f){var b=100;var c=f||300;if(g){b=g}return this.each(function(){var j=a(this);var i=j.find(".progress");if(i.length!=1){i=a("<div class='progress'></div>");j.append("<div class='text'>&nbsp;</div>");a("<span class='text'>&nbsp;</span>").css("width",j.css("width")).appendTo(i);j.append(i)}var h=Math.round(e/b*100);i.css("width",h+"%");if(d){j.find(".text").html(d)}})}})(jQuery);