var a,APE={Config:{identifier:"ape",init:true,frequency:0,scripts:[]},Client:function(c){if(c)this.core=c}};a=APE.Client.prototype;a.eventProxy=[];a.fireEvent=function(c,u,v){this.core.fireEvent(c,u,v)};a.addEvent=function(c,u,v){var m=u.bind(this),s=this;if(this.core==undefined)this.eventProxy.push([c,u,v]);else{s=this.core.addEvent(c,m,v);this.core.$originalEvents[c]=this.core.$originalEvents[c]||[];this.core.$originalEvents[c][u]=m}return s};
a.removeEvent=function(c,u){return this.core.removeEvent(c,u)};a.onRaw=function(c,u,v){this.addEvent("raw_"+c.toLowerCase(),u,v)};a.onCmd=function(c,u,v){this.addEvent("cmd_"+c.toLowerCase(),u,v)};a.onError=function(c,u,v){this.addEvent("error_"+c,u,v)};a.cookie={};a.cookie.write=function(c,u){document.cookie=c+"="+encodeURIComponent(u)+"; domain="+document.domain};
a.cookie.read=function(c){c=c+"=";for(var u=document.cookie.split(";"),v=0;v<u.length;v++){for(var m=u[v];m.charAt(0)==" ";)m=m.substring(1,m.length);if(m.indexOf(c)==0)return decodeURIComponent(m.substring(c.length,m.length))}return null};
a.load=function(c){c=c||{};c.transport=c.transport||APE.Config.transport||0;c.frequency=c.frequency||0;c.domain=c.domain||APE.Config.domain||document.domain;c.scripts=c.scripts||APE.Config.scripts;c.server=c.server||APE.Config.server;c.init=function(D){this.core=D;for(D=0;D<this.eventProxy.length;D++)this.addEvent.apply(this,this.eventProxy[D])}.bind(this);if(c.transport!=2&&c.domain!="auto")document.domain=c.domain;if(c.domain=="auto")document.domain=document.domain;var u=this.cookie.read("APE_Cookie"),
v=eval("("+u+")");if(v)c.frequency=v.frequency+1;else u='{"frequency":0}';u=u.replace(new RegExp('"frequency":([ 0-9]+)',"g"),'"frequency":'+c.frequency);this.cookie.write("APE_Cookie",u);var m=document.createElement("iframe");m.setAttribute("id","ape_"+c.identifier);m.style.display="none";m.style.position="absolute";m.style.left="-300px";m.style.top="-300px";document.body.appendChild(m);if(c.transport==2){u=m.contentDocument;if(!u)u=m.contentWindow.document;u.open();v="<html><head></head>";for(var s=
0;s<c.scripts.length;s++)v+='<script src="'+c.scripts[s]+'"><\/script>';v+="<body></body></html>";u.write(v);u.close()}else{m.setAttribute("src","http://"+c.frequency+"."+c.server+'/?[{"cmd":"script","params":{"domain":"'+document.domain+'","scripts":["'+c.scripts.join('","')+'"]}}]');if(navigator.product=="Gecko")m.contentWindow.location.href=m.getAttribute("src")}m.onload=function(){m.contentWindow.APE?m.contentWindow.APE.init(c):setTimeout(m.onload,100)}};
if(Function.prototype.bind==null)Function.prototype.bind=function(c,u){return this.create({bind:c,arguments:u})};if(Function.prototype.create==null)Function.prototype.create=function(c){var u=this;c=c||{};return function(){var v=c.arguments||arguments;if(v&&!v.length)v=[v];return function(){return u.apply(c.bind||null,v)}()}};APE.Config.baseUrl="http://cliic.com/js/";APE.Config.domain="cliic.com";APE.Config.server="ape.cliic.com";APE.Config.scripts=[APE.Config.baseUrl+"/apeCore.js"];(function(){function c(b,d){d.src?e.ajax({url:d.src,async:false,dataType:"script"}):e.globalEval(d.text||d.textContent||d.innerHTML||"");d.parentNode&&d.parentNode.removeChild(d)}function u(){return+new Date}function v(b,d){return b[0]&&parseInt(e.curCSS(b[0],d,true),10)||0}function m(){return false}function s(){return true}function D(b){var d=RegExp("(^|\\.)"+b.type+"(\\.|$)"),g=true,k=[];e.each(e.data(this,"events").live||[],function(o,r){if(d.test(r.type))(o=e(b.target).closest(r.data)[0])&&k.push({elem:o,
fn:r})});k.sort(function(o,r){return e.data(o.elem,"closest")-e.data(r.elem,"closest")});e.each(k,function(){if(this.fn.call(this.elem,b,this.fn.data)===false)return g=false});return g}function J(b,d){return["live",b,d.replace(/\./g,"`").replace(/ /g,"|")].join(".")}function S(){if(!A){A=true;if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);e.ready()},false);else if(document.attachEvent){document.attachEvent("onreadystatechange",
function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);e.ready()}});document.documentElement.doScroll&&G==G.top&&function(){if(!e.isReady){try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}e.ready()}}()}e.event.add(G,"load",e.ready)}}function N(b,d){var g={};e.each(da.concat.apply([],da.slice(0,d)),function(){g[this]=b});return g}var G=this,B,K=G.jQuery,H=G.$,e=G.jQuery=G.$=function(b,d){return new e.fn.init(b,
d)},W=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,Y=/^.[^:#\[\.,]*$/;e.fn=e.prototype={init:function(b,d){b=b||document;if(b.nodeType){this[0]=b;this.length=1;this.context=b;return this}if(typeof b==="string"){var g=W.exec(b);if(g&&(g[1]||!d))if(g[1])b=e.clean([g[1]],d);else{if((d=document.getElementById(g[3]))&&d.id!=g[3])return e().find(b);g=e(d||[]);g.context=document;g.selector=b;return g}else return e(d).find(b)}else if(e.isFunction(b))return e(document).ready(b);if(b.selector&&b.context){this.selector=
b.selector;this.context=b.context}return this.setArray(e.isArray(b)?b:e.makeArray(b))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(b){return b===B?Array.prototype.slice.call(this):this[b]},pushStack:function(b,d,g){b=e(b);b.prevObject=this;b.context=this.context;if(d==="find")b.selector=this.selector+(this.selector?" ":"")+g;else if(d)b.selector=this.selector+"."+d+"("+g+")";return b},setArray:function(b){this.length=0;Array.prototype.push.apply(this,b);return this},
each:function(b,d){return e.each(this,b,d)},index:function(b){return e.inArray(b&&b.jquery?b[0]:b,this)},attr:function(b,d,g){var k=b;if(typeof b==="string")if(d===B)return this[0]&&e[g||"attr"](this[0],b);else{k={};k[b]=d}return this.each(function(o){for(b in k)e.attr(g?this.style:this,b,e.prop(this,k[b],g,o,b))})},css:function(b,d){if((b=="width"||b=="height")&&parseFloat(d)<0)d=B;return this.attr(b,d,"curCSS")},text:function(b){if(typeof b!=="object"&&b!=null)return this.empty().append((this[0]&&
this[0].ownerDocument||document).createTextNode(b));var d="";e.each(b||this,function(){e.each(this.childNodes,function(){if(this.nodeType!=8)d+=this.nodeType!=1?this.nodeValue:e.fn.text([this])})});return d},wrapAll:function(b){if(this[0]){b=e(b,this[0].ownerDocument).clone();this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(b){return this.each(function(){e(this).contents().wrapAll(b)})},
wrap:function(b){return this.each(function(){e(this).wrapAll(b)})},append:function(){return this.domManip(arguments,true,function(b){this.nodeType==1&&this.appendChild(b)})},prepend:function(){return this.domManip(arguments,true,function(b){this.nodeType==1&&this.insertBefore(b,this.firstChild)})},before:function(){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)})},after:function(){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
this.nextSibling)})},end:function(){return this.prevObject||e([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var d=this.pushStack([],"find",b);d.length=0;e.find(b,this[0],d);return d}else return this.pushStack(e.unique(e.map(this,function(g){return e.find(b,g)})),"find",b)},clone:function(b){var d=this.map(function(){if(!e.support.noCloneEvent&&!e.isXMLDoc(this)){var o=this.outerHTML;if(!o){o=this.ownerDocument.createElement("div");o.appendChild(this.cloneNode(true));
o=o.innerHTML}return e.clean([o.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else return this.cloneNode(true)});if(b===true){var g=this.find("*").andSelf(),k=0;d.find("*").andSelf().each(function(){if(this.nodeName===g[k].nodeName){var o=e.data(g[k],"events");for(var r in o)for(var x in o[r])e.event.add(this,r,o[r][x],o[r][x].data);k++}})}return d},filter:function(b){return this.pushStack(e.isFunction(b)&&e.grep(this,function(d,g){return b.call(d,g)})||e.multiFilter(b,e.grep(this,
function(d){return d.nodeType===1})),"filter",b)},closest:function(b){var d=e.expr.match.POS.test(b)?e(b):null,g=0;return this.map(function(){for(var k=this;k&&k.ownerDocument;){if(d?d.index(k)>-1:e(k).is(b)){e.data(k,"closest",g);return k}k=k.parentNode;g++}})},not:function(b){if(typeof b==="string")if(Y.test(b))return this.pushStack(e.multiFilter(b,this,true),"not",b);else b=e.multiFilter(b,this);var d=b.length&&b[b.length-1]!==B&&!b.nodeType;return this.filter(function(){return d?e.inArray(this,
b)<0:this!=b})},add:function(b){return this.pushStack(e.unique(e.merge(this.get(),typeof b==="string"?e(b):e.makeArray(b))))},is:function(b){return!!b&&e.multiFilter(b,this).length>0},hasClass:function(b){return!!b&&this.is("."+b)},val:function(b){if(b===B){var d=this[0];if(d){if(e.nodeName(d,"option"))return(d.attributes.value||{}).specified?d.value:d.text;if(e.nodeName(d,"select")){var g=d.selectedIndex,k=[],o=d.options;d=d.type=="select-one";if(g<0)return null;var r=d?g:0;for(g=d?g+1:o.length;r<
g;r++){var x=o[r];if(x.selected){b=e(x).val();if(d)return b;k.push(b)}}return k}return(d.value||"").replace(/\r/g,"")}return B}if(typeof b==="number")b+="";return this.each(function(){if(this.nodeType==1)if(e.isArray(b)&&/radio|checkbox/.test(this.type))this.checked=e.inArray(this.value,b)>=0||e.inArray(this.name,b)>=0;else if(e.nodeName(this,"select")){var y=e.makeArray(b);e("option",this).each(function(){this.selected=e.inArray(this.value,y)>=0||e.inArray(this.text,y)>=0});if(!y.length)this.selectedIndex=
-1}else this.value=b})},html:function(b){return b===B?this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null:this.empty().append(b)},replaceWith:function(b){return this.after(b).remove()},eq:function(b){return this.slice(b,+b+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(b){return this.pushStack(e.map(this,function(d,g){return b.call(d,g,d)}))},andSelf:function(){return this.add(this.prevObject)},
domManip:function(b,d,g){function k(R,U){return d&&e.nodeName(R,"table")&&e.nodeName(U,"tr")?R.getElementsByTagName("tbody")[0]||R.appendChild(R.ownerDocument.createElement("tbody")):R}if(this[0]){var o=(this[0].ownerDocument||this[0]).createDocumentFragment();b=e.clean(b,this[0].ownerDocument||this[0],o);var r=o.firstChild;if(r)for(var x=0,y=this.length;x<y;x++)g.call(k(this[x],r),this.length>1||x>0?o.cloneNode(true):o);b&&e.each(b,c)}return this}};e.fn.init.prototype=e.fn;e.extend=e.fn.extend=function(){var b=
arguments[0]||{},d=1,g=arguments.length,k=false,o;if(typeof b==="boolean"){k=b;b=arguments[1]||{};d=2}if(typeof b!=="object"&&!e.isFunction(b))b={};if(g==d){b=this;--d}for(;d<g;d++)if((o=arguments[d])!=null)for(var r in o){var x=b[r],y=o[r];if(b!==y)if(k&&y&&typeof y==="object"&&!y.nodeType)b[r]=e.extend(k,x||(y.length!=null?[]:{}),y);else if(y!==B)b[r]=y}return b};var V=/z-?index|font-?weight|opacity|zoom|line-?height/i,j=document.defaultView||{},n=Object.prototype.toString;e.extend({noConflict:function(b){G.$=
H;if(b)G.jQuery=K;return e},isFunction:function(b){return n.call(b)==="[object Function]"},isArray:function(b){return n.call(b)==="[object Array]"},isXMLDoc:function(b){return b.nodeType===9&&b.documentElement.nodeName!=="HTML"||!!b.ownerDocument&&e.isXMLDoc(b.ownerDocument)},globalEval:function(b){if(b&&/\S/.test(b)){var d=document.getElementsByTagName("head")[0]||document.documentElement,g=document.createElement("script");g.type="text/javascript";if(e.support.scriptEval)g.appendChild(document.createTextNode(b));
else g.text=b;d.insertBefore(g,d.firstChild);d.removeChild(g)}},nodeName:function(b,d){return b.nodeName&&b.nodeName.toUpperCase()==d.toUpperCase()},each:function(b,d,g){var k,o=0,r=b.length;if(g)if(r===B)for(k in b){if(d.apply(b[k],g)===false)break}else for(;o<r;){if(d.apply(b[o++],g)===false)break}else if(r===B)for(k in b){if(d.call(b[k],k,b[k])===false)break}else for(g=b[0];o<r&&d.call(g,o,g)!==false;g=b[++o]);return b},prop:function(b,d,g,k,o){if(e.isFunction(d))d=d.call(b,k);return typeof d===
"number"&&g=="curCSS"&&!V.test(o)?d+"px":d},className:{add:function(b,d){e.each((d||"").split(/\s+/),function(g,k){if(b.nodeType==1&&!e.className.has(b.className,k))b.className+=(b.className?" ":"")+k})},remove:function(b,d){if(b.nodeType==1)b.className=d!==B?e.grep(b.className.split(/\s+/),function(g){return!e.className.has(d,g)}).join(" "):""},has:function(b,d){return b&&e.inArray(d,(b.className||b).toString().split(/\s+/))>-1}},swap:function(b,d,g){var k={};for(var o in d){k[o]=b.style[o];b.style[o]=
d[o]}g.call(b);for(o in d)b.style[o]=k[o]},css:function(b,d,g,k){if(d=="width"||d=="height"){var o;g={position:"absolute",visibility:"hidden",display:"block"};var r=d=="width"?["Left","Right"]:["Top","Bottom"];function x(){o=d=="width"?b.offsetWidth:b.offsetHeight;k!=="border"&&e.each(r,function(){k||(o-=parseFloat(e.curCSS(b,"padding"+this,true))||0);if(k==="margin")o+=parseFloat(e.curCSS(b,"margin"+this,true))||0;else o-=parseFloat(e.curCSS(b,"border"+this+"Width",true))||0})}b.offsetWidth!==0?
x():e.swap(b,g,x);return Math.max(0,Math.round(o))}return e.curCSS(b,d,g)},curCSS:function(b,d,g){var k,o=b.style;if(d=="opacity"&&!e.support.opacity){k=e.attr(o,"opacity");return k==""?"1":k}if(d.match(/float/i))d=I;if(!g&&o&&o[d])k=o[d];else if(j.getComputedStyle){if(d.match(/float/i))d="float";d=d.replace(/([A-Z])/g,"-$1").toLowerCase();if(b=j.getComputedStyle(b,null))k=b.getPropertyValue(d);if(d=="opacity"&&k=="")k="1"}else if(b.currentStyle){k=d.replace(/\-(\w)/g,function(r,x){return x.toUpperCase()});
k=b.currentStyle[d]||b.currentStyle[k];if(!/^\d+(px)?$/i.test(k)&&/^\d/.test(k)){d=o.left;g=b.runtimeStyle.left;b.runtimeStyle.left=b.currentStyle.left;o.left=k||0;k=o.pixelLeft+"px";o.left=d;b.runtimeStyle.left=g}}return k},clean:function(b,d,g){d=d||document;if(typeof d.createElement==="undefined")d=d.ownerDocument||d[0]&&d[0].ownerDocument||document;if(!g&&b.length===1&&typeof b[0]==="string"){var k=/^<(\w+)\s*\/?>$/.exec(b[0]);if(k)return[d.createElement(k[1])]}var o=[];k=[];var r=d.createElement("div");
e.each(b,function(x,y){if(typeof y==="number")y+="";if(y){if(typeof y==="string"){y=y.replace(/(<(\w+)[^>]*?)\/>/g,function(T,Z,ca){return ca.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?T:Z+"></"+ca+">"});x=y.replace(/^\s+/,"").substring(0,10).toLowerCase();var R=!x.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!x.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||x.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!x.indexOf("<tr")&&[2,"<table><tbody>",
"</tbody></table>"]||(!x.indexOf("<td")||!x.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!x.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!e.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];for(r.innerHTML=R[1]+y+R[2];R[0]--;)r=r.lastChild;if(!e.support.tbody){var U=/<tbody/i.test(y);x=!x.indexOf("<table")&&!U?r.firstChild&&r.firstChild.childNodes:R[1]=="<table>"&&!U?r.childNodes:[];for(R=x.length-1;R>=0;--R)e.nodeName(x[R],"tbody")&&
!x[R].childNodes.length&&x[R].parentNode.removeChild(x[R])}!e.support.leadingWhitespace&&/^\s/.test(y)&&r.insertBefore(d.createTextNode(y.match(/^\s*/)[0]),r.firstChild);y=e.makeArray(r.childNodes)}if(y.nodeType)o.push(y);else o=e.merge(o,y)}});if(g){for(b=0;o[b];b++)if(e.nodeName(o[b],"script")&&(!o[b].type||o[b].type.toLowerCase()==="text/javascript"))k.push(o[b].parentNode?o[b].parentNode.removeChild(o[b]):o[b]);else{o[b].nodeType===1&&o.splice.apply(o,[b+1,0].concat(e.makeArray(o[b].getElementsByTagName("script"))));
g.appendChild(o[b])}return k}return o},attr:function(b,d,g){if(!b||b.nodeType==3||b.nodeType==8)return B;var k=!e.isXMLDoc(b),o=g!==B;d=k&&e.props[d]||d;if(b.tagName){var r=/href|src|style/.test(d);if(d in b&&k&&!r){if(o){if(d=="type"&&e.nodeName(b,"input")&&b.parentNode)throw"type property can't be changed";b[d]=g}if(e.nodeName(b,"form")&&b.getAttributeNode(d))return b.getAttributeNode(d).nodeValue;if(d=="tabIndex")return(d=b.getAttributeNode("tabIndex"))&&d.specified?d.value:b.nodeName.match(/(button|input|object|select|textarea)/i)?
0:b.nodeName.match(/^(a|area)$/i)&&b.href?0:B;return b[d]}if(!e.support.style&&k&&d=="style")return e.attr(b.style,"cssText",g);o&&b.setAttribute(d,""+g);b=!e.support.hrefNormalized&&k&&r?b.getAttribute(d,2):b.getAttribute(d);return b===null?B:b}if(!e.support.opacity&&d=="opacity"){if(o){b.zoom=1;b.filter=(b.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(g)+""=="NaN"?"":"alpha(opacity="+g*100+")")}return b.filter&&b.filter.indexOf("opacity=")>=0?parseFloat(b.filter.match(/opacity=([^)]*)/)[1])/
100+"":""}d=d.replace(/-([a-z])/ig,function(x,y){return y.toUpperCase()});if(o)b[d]=g;return b[d]},trim:function(b){return(b||"").replace(/^\s+|\s+$/g,"")},makeArray:function(b){var d=[];if(b!=null){var g=b.length;if(g==null||typeof b==="string"||e.isFunction(b)||b.setInterval)d[0]=b;else for(;g;)d[--g]=b[g]}return d},inArray:function(b,d){for(var g=0,k=d.length;g<k;g++)if(d[g]===b)return g;return-1},merge:function(b,d){var g=0,k,o=b.length;if(e.support.getAll)for(;(k=d[g++])!=null;)b[o++]=k;else for(;(k=
d[g++])!=null;)if(k.nodeType!=8)b[o++]=k;return b},unique:function(b){var d=[],g={};try{for(var k=0,o=b.length;k<o;k++){var r=e.data(b[k]);if(!g[r]){g[r]=true;d.push(b[k])}}}catch(x){d=b}return d},grep:function(b,d,g){for(var k=[],o=0,r=b.length;o<r;o++)!g!=!d(b[o],o)&&k.push(b[o]);return k},map:function(b,d){for(var g=[],k=0,o=b.length;k<o;k++){var r=d(b[k],k);if(r!=null)g[g.length]=r}return g.concat.apply([],g)}});var p=navigator.userAgent.toLowerCase();e.browser={version:(p.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||
[0,"0"])[1],safari:/webkit/.test(p),opera:/opera/.test(p),msie:/msie/.test(p)&&!/opera/.test(p),mozilla:/mozilla/.test(p)&&!/(compatible|webkit)/.test(p)};e.each({parent:function(b){return b.parentNode},parents:function(b){return e.dir(b,"parentNode")},next:function(b){return e.nth(b,2,"nextSibling")},prev:function(b){return e.nth(b,2,"previousSibling")},nextAll:function(b){return e.dir(b,"nextSibling")},prevAll:function(b){return e.dir(b,"previousSibling")},siblings:function(b){return e.sibling(b.parentNode.firstChild,
b)},children:function(b){return e.sibling(b.firstChild)},contents:function(b){return e.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:e.makeArray(b.childNodes)}},function(b,d){e.fn[b]=function(g){var k=e.map(this,d);if(g&&typeof g=="string")k=e.multiFilter(g,k);return this.pushStack(e.unique(k),b,g)}});e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,d){e.fn[b]=function(g){for(var k=[],o=e(g),r=0,x=o.length;r<
x;r++){var y=(r>0?this.clone(true):this).get();e.fn[d].apply(e(o[r]),y);k=k.concat(y)}return this.pushStack(k,b,g)}});e.each({removeAttr:function(b){e.attr(this,b,"");this.nodeType==1&&this.removeAttribute(b)},addClass:function(b){e.className.add(this,b)},removeClass:function(b){e.className.remove(this,b)},toggleClass:function(b,d){if(typeof d!=="boolean")d=!e.className.has(this,b);e.className[d?"add":"remove"](this,b)},remove:function(b){if(!b||e.filter(b,[this]).length){e("*",this).add([this]).each(function(){e.event.remove(this);
e.removeData(this)});this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(e(this).children().remove();this.firstChild;)this.removeChild(this.firstChild)}},function(b,d){e.fn[b]=function(){return this.each(d,arguments)}});var f="jQuery"+u(),t=0,z={};e.extend({cache:{},data:function(b,d,g){b=b==G?z:b;var k=b[f];k||(k=b[f]=++t);if(d&&!e.cache[k])e.cache[k]={};if(g!==B)e.cache[k][d]=g;return d?e.cache[k][d]:k},removeData:function(b,d){b=b==G?z:b;var g=b[f];if(d){if(e.cache[g]){delete e.cache[g][d];
d="";for(d in e.cache[g])break;d||e.removeData(b)}}else{try{delete b[f]}catch(k){b.removeAttribute&&b.removeAttribute(f)}delete e.cache[g]}},queue:function(b,d,g){if(b){d=(d||"fx")+"queue";var k=e.data(b,d);if(!k||e.isArray(g))k=e.data(b,d,e.makeArray(g));else g&&k.push(g)}return k},dequeue:function(b,d){var g=e.queue(b,d),k=g.shift();if(!d||d==="fx")k=g[0];k!==B&&k.call(b)}});e.fn.extend({data:function(b,d){var g=b.split(".");g[1]=g[1]?"."+g[1]:"";if(d===B){var k=this.triggerHandler("getData"+g[1]+
"!",[g[0]]);if(k===B&&this.length)k=e.data(this[0],b);return k===B&&g[1]?this.data(g[0]):k}else return this.trigger("setData"+g[1]+"!",[g[0],d]).each(function(){e.data(this,b,d)})},removeData:function(b){return this.each(function(){e.removeData(this,b)})},queue:function(b,d){if(typeof b!=="string"){d=b;b="fx"}if(d===B)return e.queue(this[0],b);return this.each(function(){var g=e.queue(this,b,d);b=="fx"&&g.length==1&&g[0].call(this)})},dequeue:function(b){return this.each(function(){e.dequeue(this,
b)})}});(function(){function b(h,l,q,w,C,E){C=h=="previousSibling"&&!E;for(var L=0,X=w.length;L<X;L++){var O=w[L];if(O){if(C&&O.nodeType===1){O.sizcache=q;O.sizset=L}O=O[h];for(var aa=false;O;){if(O.sizcache===q){aa=w[O.sizset];break}if(O.nodeType===1&&!E){O.sizcache=q;O.sizset=L}if(O.nodeName===l){aa=O;break}O=O[h]}w[L]=aa}}}function d(h,l,q,w,C,E){C=h=="previousSibling"&&!E;for(var L=0,X=w.length;L<X;L++){var O=w[L];if(O){if(C&&O.nodeType===1){O.sizcache=q;O.sizset=L}O=O[h];for(var aa=false;O;){if(O.sizcache===
q){aa=w[O.sizset];break}if(O.nodeType===1){if(!E){O.sizcache=q;O.sizset=L}if(typeof l!=="string"){if(O===l){aa=true;break}}else if(r.filter(l,[O]).length>0){aa=O;break}}O=O[h]}w[L]=aa}}}var g=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,k=0,o=Object.prototype.toString,r=function(h,l,q,w){q=q||[];l=l||document;if(l.nodeType!==1&&l.nodeType!==9)return[];if(!h||typeof h!=="string")return q;var C=[],E,L,X,O=true;for(g.lastIndex=
0;(E=g.exec(h))!==null;){C.push(E[1]);if(E[2]){X=RegExp.rightContext;break}}if(C.length>1&&y.exec(h))if(C.length===2&&x.relative[C[0]])E=fa(C[0]+C[1],l);else for(E=x.relative[C[0]]?[l]:r(C.shift(),l);C.length;){h=C.shift();if(x.relative[h])h+=C.shift();E=fa(h,E)}else{E=w?{expr:C.pop(),set:U(w)}:r.find(C.pop(),C.length===1&&l.parentNode?l.parentNode:l,P(l));E=r.filter(E.expr,E.set);if(C.length>0)L=U(E);else O=false;for(;C.length;){var aa=C.pop(),ea=aa;if(x.relative[aa])ea=C.pop();else aa="";if(ea==
null)ea=l;x.relative[aa](L,ea,P(l))}}L||(L=E);if(!L)throw"Syntax error, unrecognized expression: "+(aa||h);if(o.call(L)==="[object Array]")if(O)if(l.nodeType===1)for(h=0;L[h]!=null;h++){if(L[h]&&(L[h]===true||L[h].nodeType===1&&ca(l,L[h])))q.push(E[h])}else for(h=0;L[h]!=null;h++)L[h]&&L[h].nodeType===1&&q.push(E[h]);else q.push.apply(q,L);else U(L,q);if(X){r(X,l,q,w);if(Z){hasDuplicate=false;q.sort(Z);if(hasDuplicate)for(h=1;h<q.length;h++)q[h]===q[h-1]&&q.splice(h--,1)}}return q};r.matches=function(h,
l){return r(h,null,null,l)};r.find=function(h,l,q){var w,C;if(!h)return[];for(var E=0,L=x.order.length;E<L;E++){var X=x.order[E];if(C=x.match[X].exec(h)){var O=RegExp.leftContext;if(O.substr(O.length-1)!=="\\"){C[1]=(C[1]||"").replace(/\\/g,"");w=x.find[X](C,l,q);if(w!=null){h=h.replace(x.match[X],"");break}}}}w||(w=l.getElementsByTagName("*"));return{set:w,expr:h}};r.filter=function(h,l,q,w){for(var C=h,E=[],L=l,X,O,aa=l&&l[0]&&P(l[0]);h&&l.length;){for(var ea in x.filter)if((X=x.match[ea].exec(h))!=
null){var ka=x.filter[ea],ga,ha;O=false;if(L==E)E=[];if(x.preFilter[ea])if(X=x.preFilter[ea](X,L,q,E,w,aa)){if(X===true)continue}else O=ga=true;if(X)for(var ia=0;(ha=L[ia])!=null;ia++)if(ha){ga=ka(ha,X,ia,L);var ja=w^!!ga;if(q&&ga!=null)if(ja)O=true;else L[ia]=false;else if(ja){E.push(ha);O=true}}if(ga!==B){q||(L=E);h=h.replace(x.match[ea],"");if(!O)return[];break}}if(h==C)if(O==null)throw"Syntax error, unrecognized expression: "+h;else break;C=h}return L};var x=r.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(h){return h.getAttribute("href")}},relative:{"+":function(h,l,q){var w=typeof l==="string",C=w&&!/\W/.test(l);w=w&&!C;if(C&&!q)l=l.toUpperCase();q=0;C=h.length;for(var E;q<C;q++)if(E=h[q]){for(;(E=E.previousSibling)&&E.nodeType!==1;);h[q]=w||E&&E.nodeName===l?E||false:E===l}w&&r.filter(l,h,true)},">":function(h,l,q){var w=typeof l==="string";if(w&&!/\W/.test(l)){l=q?l:l.toUpperCase();q=0;for(var C=h.length;q<C;q++){var E=h[q];if(E){w=E.parentNode;h[q]=w.nodeName===
l?w:false}}}else{q=0;for(C=h.length;q<C;q++)if(E=h[q])h[q]=w?E.parentNode:E.parentNode===l;w&&r.filter(l,h,true)}},"":function(h,l,q){var w=k++,C=d;if(!l.match(/\W/)){var E=l=q?l:l.toUpperCase();C=b}C("parentNode",l,w,h,E,q)},"~":function(h,l,q){var w=k++,C=d;if(typeof l==="string"&&!l.match(/\W/)){var E=l=q?l:l.toUpperCase();C=b}C("previousSibling",l,w,h,E,q)}},find:{ID:function(h,l,q){if(typeof l.getElementById!=="undefined"&&!q)return(h=l.getElementById(h[1]))?[h]:[]},NAME:function(h,l){if(typeof l.getElementsByName!==
"undefined"){var q=[];l=l.getElementsByName(h[1]);for(var w=0,C=l.length;w<C;w++)l[w].getAttribute("name")===h[1]&&q.push(l[w]);return q.length===0?null:q}},TAG:function(h,l){return l.getElementsByTagName(h[1])}},preFilter:{CLASS:function(h,l,q,w,C,E){h=" "+h[1].replace(/\\/g,"")+" ";if(E)return h;E=0;for(var L;(L=l[E])!=null;E++)if(L)if(C^(L.className&&(" "+L.className+" ").indexOf(h)>=0))q||w.push(L);else if(q)l[E]=false;return false},ID:function(h){return h[1].replace(/\\/g,"")},TAG:function(h,
l){for(var q=0;l[q]===false;q++);return l[q]&&P(l[q])?h[1]:h[1].toUpperCase()},CHILD:function(h){if(h[1]=="nth"){var l=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(h[2]=="even"&&"2n"||h[2]=="odd"&&"2n+1"||!/\D/.test(h[2])&&"0n+"+h[2]||h[2]);h[2]=l[1]+(l[2]||1)-0;h[3]=l[3]-0}h[0]=k++;return h},ATTR:function(h,l,q,w,C,E){l=h[1].replace(/\\/g,"");if(!E&&x.attrMap[l])h[1]=x.attrMap[l];if(h[2]==="~=")h[4]=" "+h[4]+" ";return h},PSEUDO:function(h,l,q,w,C){if(h[1]==="not")if(h[3].match(g).length>1||/^\w/.test(h[3]))h[3]=
r(h[3],null,null,l);else{h=r.filter(h[3],l,q,true^C);q||w.push.apply(w,h);return false}else if(x.match.POS.test(h[0])||x.match.CHILD.test(h[0]))return true;return h},POS:function(h){h.unshift(true);return h}},filters:{enabled:function(h){return h.disabled===false&&h.type!=="hidden"},disabled:function(h){return h.disabled===true},checked:function(h){return h.checked===true},selected:function(h){return h.selected===true},parent:function(h){return!!h.firstChild},empty:function(h){return!h.firstChild},
has:function(h,l,q){return!!r(q[3],h).length},header:function(h){return/h\d/i.test(h.nodeName)},text:function(h){return"text"===h.type},radio:function(h){return"radio"===h.type},checkbox:function(h){return"checkbox"===h.type},file:function(h){return"file"===h.type},password:function(h){return"password"===h.type},submit:function(h){return"submit"===h.type},image:function(h){return"image"===h.type},reset:function(h){return"reset"===h.type},button:function(h){return"button"===h.type||h.nodeName.toUpperCase()===
"BUTTON"},input:function(h){return/input|select|textarea|button/i.test(h.nodeName)}},setFilters:{first:function(h,l){return l===0},last:function(h,l,q,w){return l===w.length-1},even:function(h,l){return l%2===0},odd:function(h,l){return l%2===1},lt:function(h,l,q){return l<q[3]-0},gt:function(h,l,q){return l>q[3]-0},nth:function(h,l,q){return q[3]-0==l},eq:function(h,l,q){return q[3]-0==l}},filter:{PSEUDO:function(h,l,q,w){var C=l[1],E=x.filters[C];if(E)return E(h,q,l,w);else if(C==="contains")return(h.textContent||
h.innerText||"").indexOf(l[3])>=0;else if(C==="not"){l=l[3];q=0;for(w=l.length;q<w;q++)if(l[q]===h)return false;return true}},CHILD:function(h,l){var q=l[1],w=h;switch(q){case "only":case "first":for(;w=w.previousSibling;)if(w.nodeType===1)return false;if(q=="first")return true;w=h;case "last":for(;w=w.nextSibling;)if(w.nodeType===1)return false;return true;case "nth":q=l[2];var C=l[3];if(q==1&&C==0)return true;l=l[0];var E=h.parentNode;if(E&&(E.sizcache!==l||!h.nodeIndex)){var L=0;for(w=E.firstChild;w;w=
w.nextSibling)if(w.nodeType===1)w.nodeIndex=++L;E.sizcache=l}h=h.nodeIndex-C;return q==0?h==0:h%q==0&&h/q>=0}},ID:function(h,l){return h.nodeType===1&&h.getAttribute("id")===l},TAG:function(h,l){return l==="*"&&h.nodeType===1||h.nodeName===l},CLASS:function(h,l){return(" "+(h.className||h.getAttribute("class"))+" ").indexOf(l)>-1},ATTR:function(h,l){var q=l[1];h=x.attrHandle[q]?x.attrHandle[q](h):h[q]!=null?h[q]:h.getAttribute(q);q=h+"";var w=l[2];l=l[4];return h==null?w==="!=":w==="="?q===l:w===
"*="?q.indexOf(l)>=0:w==="~="?(" "+q+" ").indexOf(l)>=0:!l?q&&h!==false:w==="!="?q!=l:w==="^="?q.indexOf(l)===0:w==="$="?q.substr(q.length-l.length)===l:w==="|="?q===l||q.substr(0,l.length+1)===l+"-":false},POS:function(h,l,q,w){var C=x.setFilters[l[2]];if(C)return C(h,q,l,w)}}},y=x.match.POS;for(var R in x.match)x.match[R]=RegExp(x.match[R].source+/(?![^\[]*\])(?![^\(]*\))/.source);var U=function(h,l){h=Array.prototype.slice.call(h);if(l){l.push.apply(l,h);return l}return h};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(T){U=
function(h,l){l=l||[];if(o.call(h)==="[object Array]")Array.prototype.push.apply(l,h);else if(typeof h.length==="number")for(var q=0,w=h.length;q<w;q++)l.push(h[q]);else for(q=0;h[q];q++)l.push(h[q]);return l}}var Z;if(document.documentElement.compareDocumentPosition)Z=function(h,l){h=h.compareDocumentPosition(l)&4?-1:h===l?0:1;if(h===0)hasDuplicate=true;return h};else if("sourceIndex"in document.documentElement)Z=function(h,l){h=h.sourceIndex-l.sourceIndex;if(h===0)hasDuplicate=true;return h};else if(document.createRange)Z=
function(h,l){var q=h.ownerDocument.createRange(),w=l.ownerDocument.createRange();q.selectNode(h);q.collapse(true);w.selectNode(l);w.collapse(true);h=q.compareBoundaryPoints(Range.START_TO_END,w);if(h===0)hasDuplicate=true;return h};(function(){var h=document.createElement("form"),l="script"+(new Date).getTime();h.innerHTML="<input name='"+l+"'/>";var q=document.documentElement;q.insertBefore(h,q.firstChild);if(document.getElementById(l)){x.find.ID=function(w,C,E){if(typeof C.getElementById!=="undefined"&&
!E)return(C=C.getElementById(w[1]))?C.id===w[1]||typeof C.getAttributeNode!=="undefined"&&C.getAttributeNode("id").nodeValue===w[1]?[C]:B:[]};x.filter.ID=function(w,C){var E=typeof w.getAttributeNode!=="undefined"&&w.getAttributeNode("id");return w.nodeType===1&&E&&E.nodeValue===C}}q.removeChild(h)})();(function(){var h=document.createElement("div");h.appendChild(document.createComment(""));if(h.getElementsByTagName("*").length>0)x.find.TAG=function(l,q){q=q.getElementsByTagName(l[1]);if(l[1]==="*"){l=
[];for(var w=0;q[w];w++)q[w].nodeType===1&&l.push(q[w]);q=l}return q};h.innerHTML="<a href='#'></a>";if(h.firstChild&&typeof h.firstChild.getAttribute!=="undefined"&&h.firstChild.getAttribute("href")!=="#")x.attrHandle.href=function(l){return l.getAttribute("href",2)}})();document.querySelectorAll&&function(){var h=r,l=document.createElement("div");l.innerHTML="<p class='TEST'></p>";if(!(l.querySelectorAll&&l.querySelectorAll(".TEST").length===0)){r=function(q,w,C,E){w=w||document;if(!E&&w.nodeType===
9&&!P(w))try{return U(w.querySelectorAll(q),C)}catch(L){}return h(q,w,C,E)};r.find=h.find;r.filter=h.filter;r.selectors=h.selectors;r.matches=h.matches}}();document.getElementsByClassName&&document.documentElement.getElementsByClassName&&function(){var h=document.createElement("div");h.innerHTML="<div class='test e'></div><div class='test'></div>";if(h.getElementsByClassName("e").length!==0){h.lastChild.className="e";if(h.getElementsByClassName("e").length!==1){x.order.splice(1,0,"CLASS");x.find.CLASS=
function(l,q,w){if(typeof q.getElementsByClassName!=="undefined"&&!w)return q.getElementsByClassName(l[1])}}}}();var ca=document.compareDocumentPosition?function(h,l){return h.compareDocumentPosition(l)&16}:function(h,l){return h!==l&&(h.contains?h.contains(l):true)},P=function(h){return h.nodeType===9&&h.documentElement.nodeName!=="HTML"||!!h.ownerDocument&&P(h.ownerDocument)},fa=function(h,l){var q=[],w="",C;for(l=l.nodeType?[l]:l;C=x.match.PSEUDO.exec(h);){w+=C[0];h=h.replace(x.match.PSEUDO,"")}h=
x.relative[h]?h+"*":h;C=0;for(var E=l.length;C<E;C++)r(h,l[C],q);return r.filter(w,q)};e.find=r;e.filter=r.filter;e.expr=r.selectors;e.expr[":"]=e.expr.filters;r.selectors.filters.hidden=function(h){return h.offsetWidth===0||h.offsetHeight===0};r.selectors.filters.visible=function(h){return h.offsetWidth>0||h.offsetHeight>0};r.selectors.filters.animated=function(h){return e.grep(e.timers,function(l){return h===l.elem}).length};e.multiFilter=function(h,l,q){if(q)h=":not("+h+")";return r.matches(h,
l)};e.dir=function(h,l){var q=[];for(h=h[l];h&&h!=document;){h.nodeType==1&&q.push(h);h=h[l]}return q};e.nth=function(h,l,q){l=l||1;for(var w=0;h;h=h[q])if(h.nodeType==1&&++w==l)break;return h};e.sibling=function(h,l){for(var q=[];h;h=h.nextSibling)h.nodeType==1&&h!=l&&q.push(h);return q}})();e.event={add:function(b,d,g,k){if(!(b.nodeType==3||b.nodeType==8)){if(b.setInterval&&b!=G)b=G;if(!g.guid)g.guid=this.guid++;if(k!==B){g=this.proxy(g);g.data=k}var o=e.data(b,"events")||e.data(b,"events",{}),
r=e.data(b,"handle")||e.data(b,"handle",function(){return typeof e!=="undefined"&&!e.event.triggered?e.event.handle.apply(arguments.callee.elem,arguments):B});r.elem=b;e.each(d.split(/\s+/),function(x,y){x=y.split(".");y=x.shift();g.type=x.slice().sort().join(".");var R=o[y];e.event.specialAll[y]&&e.event.specialAll[y].setup.call(b,k,x);if(!R){R=o[y]={};if(!e.event.special[y]||e.event.special[y].setup.call(b,k,x)===false)if(b.addEventListener)b.addEventListener(y,r,false);else b.attachEvent&&b.attachEvent("on"+
y,r)}R[g.guid]=g;e.event.global[y]=true});b=null}},guid:1,global:{},remove:function(b,d,g){if(!(b.nodeType==3||b.nodeType==8)){var k=e.data(b,"events"),o;if(k){if(d===B||typeof d==="string"&&d.charAt(0)==".")for(var r in k)this.remove(b,r+(d||""));else{if(d.type){g=d.handler;d=d.type}e.each(d.split(/\s+/),function(x,y){x=y.split(".");y=x.shift();var R=RegExp("(^|\\.)"+x.slice().sort().join(".*\\.")+"(\\.|$)");if(k[y]){if(g)delete k[y][g.guid];else for(var U in k[y])R.test(k[y][U].type)&&delete k[y][U];
e.event.specialAll[y]&&e.event.specialAll[y].teardown.call(b,x);for(o in k[y])break;if(!o){if(!e.event.special[y]||e.event.special[y].teardown.call(b,x)===false)if(b.removeEventListener)b.removeEventListener(y,e.data(b,"handle"),false);else b.detachEvent&&b.detachEvent("on"+y,e.data(b,"handle"));o=null;delete k[y]}}})}for(o in k)break;if(!o){if(d=e.data(b,"handle"))d.elem=null;e.removeData(b,"events");e.removeData(b,"handle")}}}},trigger:function(b,d,g,k){var o=b.type||b;if(!k){b=typeof b==="object"?
b[f]?b:e.extend(e.Event(o),b):e.Event(o);if(o.indexOf("!")>=0){b.type=o=o.slice(0,-1);b.exclusive=true}if(!g){b.stopPropagation();this.global[o]&&e.each(e.cache,function(){this.events&&this.events[o]&&e.event.trigger(b,d,this.handle.elem)})}if(!g||g.nodeType==3||g.nodeType==8)return B;b.result=B;b.target=g;d=e.makeArray(d);d.unshift(b)}b.currentTarget=g;var r=e.data(g,"handle");r&&r.apply(g,d);if((!g[o]||e.nodeName(g,"a")&&o=="click")&&g["on"+o]&&g["on"+o].apply(g,d)===false)b.result=false;if(!k&&
g[o]&&!b.isDefaultPrevented()&&!(e.nodeName(g,"a")&&o=="click")){this.triggered=true;try{g[o]()}catch(x){}}this.triggered=false;if(!b.isPropagationStopped())(g=g.parentNode||g.ownerDocument)&&e.event.trigger(b,d,g,true)},handle:function(b){var d,g;b=arguments[0]=e.event.fix(b||G.event);b.currentTarget=this;g=b.type.split(".");b.type=g.shift();d=!g.length&&!b.exclusive;var k=RegExp("(^|\\.)"+g.slice().sort().join(".*\\.")+"(\\.|$)");g=(e.data(this,"events")||{})[b.type];for(var o in g){var r=g[o];
if(d||k.test(r.type)){b.handler=r;b.data=r.data;r=r.apply(this,arguments);if(r!==B){b.result=r;if(r===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(b){if(b[f])return b;var d=b;b=e.Event(d);for(var g=this.props.length,k;g;){k=this.props[--g];b[k]=d[k]}if(!b.target)b.target=b.srcElement||document;if(b.target.nodeType==3)b.target=b.target.parentNode;if(!b.relatedTarget&&b.fromElement)b.relatedTarget=b.fromElement==b.target?b.toElement:b.fromElement;if(b.pageX==null&&b.clientX!=null){d=document.documentElement;g=document.body;b.pageX=b.clientX+(d&&d.scrollLeft||g&&g.scrollLeft||0)-(d.clientLeft||0);b.pageY=b.clientY+(d&&d.scrollTop||
g&&g.scrollTop||0)-(d.clientTop||0)}if(!b.which&&(b.charCode||b.charCode===0?b.charCode:b.keyCode))b.which=b.charCode||b.keyCode;if(!b.metaKey&&b.ctrlKey)b.metaKey=b.ctrlKey;if(!b.which&&b.button)b.which=b.button&1?1:b.button&2?3:b.button&4?2:0;return b},proxy:function(b,d){d=d||function(){return b.apply(this,arguments)};d.guid=b.guid=b.guid||d.guid||this.guid++;return d},special:{ready:{setup:S,teardown:function(){}}},specialAll:{live:{setup:function(b,d){e.event.add(this,d[0],D)},teardown:function(b){if(b.length){var d=
0,g=RegExp("(^|\\.)"+b[0]+"(\\.|$)");e.each(e.data(this,"events").live||{},function(){g.test(this.type)&&d++});d<1&&e.event.remove(this,b[0],D)}}}}};e.Event=function(b){if(!this.preventDefault)return new e.Event(b);if(b&&b.type){this.originalEvent=b;this.type=b.type}else this.type=b;this.timeStamp=u();this[f]=true};e.Event.prototype={preventDefault:function(){this.isDefaultPrevented=s;var b=this.originalEvent;if(b){b.preventDefault&&b.preventDefault();b.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=
s;var b=this.originalEvent;if(b){b.stopPropagation&&b.stopPropagation();b.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=s;this.stopPropagation()},isDefaultPrevented:m,isPropagationStopped:m,isImmediatePropagationStopped:m};var F=function(b){for(var d=b.relatedTarget;d&&d!=this;)try{d=d.parentNode}catch(g){d=this}if(d!=this){b.type=b.data;e.event.handle.apply(this,arguments)}};e.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(b,d){e.event.special[d]=
{setup:function(){e.event.add(this,b,F,d)},teardown:function(){e.event.remove(this,b,F)}}});e.fn.extend({bind:function(b,d,g){return b=="unload"?this.one(b,d,g):this.each(function(){e.event.add(this,b,g||d,g&&d)})},one:function(b,d,g){var k=e.event.proxy(g||d,function(o){e(this).unbind(o,k);return(g||d).apply(this,arguments)});return this.each(function(){e.event.add(this,b,k,g&&d)})},unbind:function(b,d){return this.each(function(){e.event.remove(this,b,d)})},trigger:function(b,d){return this.each(function(){e.event.trigger(b,
d,this)})},triggerHandler:function(b,d){if(this[0]){b=e.Event(b);b.preventDefault();b.stopPropagation();e.event.trigger(b,d,this[0]);return b.result}},toggle:function(b){for(var d=arguments,g=1;g<d.length;)e.event.proxy(b,d[g++]);return this.click(e.event.proxy(b,function(k){this.lastToggle=(this.lastToggle||0)%g;k.preventDefault();return d[this.lastToggle++].apply(this,arguments)||false}))},hover:function(b,d){return this.mouseenter(b).mouseleave(d)},ready:function(b){S();e.isReady?b.call(document,
e):e.readyList.push(b);return this},live:function(b,d){d=e.event.proxy(d);d.guid+=this.selector+b;e(document).bind(J(b,this.selector),this.selector,d);return this},die:function(b,d){e(document).unbind(J(b,this.selector),d?{guid:d.guid+this.selector+b}:null);return this}});e.extend({isReady:false,readyList:[],ready:function(){if(!e.isReady){e.isReady=true;if(e.readyList){e.each(e.readyList,function(){this.call(document,e)});e.readyList=null}e(document).triggerHandler("ready")}}});var A=false;e.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(b,d){e.fn[d]=function(g){return g?this.bind(d,g):this.trigger(d)}});e(G).bind("unload",function(){for(var b in e.cache)b!=1&&e.cache[b].handle&&e.event.remove(e.cache[b].handle.elem)});(function(){e.support={};var b=document.documentElement,d=document.createElement("script"),g=document.createElement("div"),k="script"+(new Date).getTime();g.style.display="none";g.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 o=g.getElementsByTagName("*"),r=g.getElementsByTagName("a")[0];if(!(!o||!o.length||!r)){e.support={leadingWhitespace:g.firstChild.nodeType==3,tbody:!g.getElementsByTagName("tbody").length,objectAll:!!g.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!g.getElementsByTagName("link").length,style:/red/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:r.style.opacity==="0.5",cssFloat:!!r.style.cssFloat,scriptEval:false,noCloneEvent:true,
boxModel:null};d.type="text/javascript";try{d.appendChild(document.createTextNode("window."+k+"=1;"))}catch(x){}b.insertBefore(d,b.firstChild);if(G[k]){e.support.scriptEval=true;delete G[k]}b.removeChild(d);if(g.attachEvent&&g.fireEvent){g.attachEvent("onclick",function(){e.support.noCloneEvent=false;g.detachEvent("onclick",arguments.callee)});g.cloneNode(true).fireEvent("onclick")}e(function(){var y=document.createElement("div");y.style.width=y.style.paddingLeft="1px";document.body.appendChild(y);
e.boxModel=e.support.boxModel=y.offsetWidth===2;document.body.removeChild(y).style.display="none"})}})();var I=e.support.cssFloat?"cssFloat":"styleFloat";e.props={"for":"htmlFor","class":"className","float":I,cssFloat:I,styleFloat:I,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};e.fn.extend({_load:e.fn.load,load:function(b,d,g){if(typeof b!=="string")return this._load(b);var k=b.indexOf(" ");if(k>=0){var o=b.slice(k,b.length);b=b.slice(0,
k)}k="GET";if(d)if(e.isFunction(d)){g=d;d=null}else if(typeof d==="object"){d=e.param(d);k="POST"}var r=this;e.ajax({url:b,type:k,dataType:"html",data:d,complete:function(x,y){if(y=="success"||y=="notmodified")r.html(o?e("<div/>").append(x.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(o):x.responseText);g&&r.each(g,[x.responseText,y,x])}});return this},serialize:function(){return e.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?
e.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(b,d){b=e(this).val();return b==null?null:e.isArray(b)?e.map(b,function(g){return{name:d.name,value:g}}):{name:d.name,value:b}}).get()}});e.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,d){e.fn[d]=function(g){return this.bind(d,g)}});var M=u();e.extend({get:function(b,
d,g,k){if(e.isFunction(d)){g=d;d=null}return e.ajax({type:"GET",url:b,data:d,success:g,dataType:k})},getScript:function(b,d){return e.get(b,null,d,"script")},getJSON:function(b,d,g){return e.get(b,d,g,"json")},post:function(b,d,g,k){if(e.isFunction(d)){g=d;d={}}return e.ajax({type:"POST",url:b,data:d,success:g,dataType:k})},ajaxSetup:function(b){e.extend(e.ajaxSettings,b)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,
xhr:function(){return G.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(b){function d(){b.success&&b.success(x,r);b.global&&e.event.trigger("ajaxSuccess",[P,b])}function g(){b.complete&&b.complete(P,r);b.global&&e.event.trigger("ajaxComplete",[P,b]);b.global&&!--e.active&&
e.event.trigger("ajaxStop")}b=e.extend(true,b,e.extend(true,{},e.ajaxSettings,b));var k,o=/=\?(&|$)/g,r,x,y=b.type.toUpperCase();if(b.data&&b.processData&&typeof b.data!=="string")b.data=e.param(b.data);if(b.dataType=="jsonp"){if(y=="GET")b.url.match(o)||(b.url+=(b.url.match(/\?/)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||!b.data.match(o))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType=="json"&&(b.data&&b.data.match(o)||b.url.match(o))){k="jsonp"+
M++;if(b.data)b.data=(b.data+"").replace(o,"="+k+"$1");b.url=b.url.replace(o,"="+k+"$1");b.dataType="script";G[k]=function(w){x=w;d();g();G[k]=B;try{delete G[k]}catch(C){}U&&U.removeChild(T)}}if(b.dataType=="script"&&b.cache==null)b.cache=false;if(b.cache===false&&y=="GET"){o=u();var R=b.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+o+"$2");b.url=R+(R==b.url?(b.url.match(/\?/)?"&":"?")+"_="+o:"")}if(b.data&&y=="GET"){b.url+=(b.url.match(/\?/)?"&":"?")+b.data;b.data=null}b.global&&!e.active++&&e.event.trigger("ajaxStart");
o=/^(\w+:)?\/\/([^\/?#]+)/.exec(b.url);if(b.dataType=="script"&&y=="GET"&&o&&(o[1]&&o[1]!=location.protocol||o[2]!=location.host)){var U=document.getElementsByTagName("head")[0],T=document.createElement("script");T.src=b.url;if(b.scriptCharset)T.charset=b.scriptCharset;if(!k){var Z=false;T.onload=T.onreadystatechange=function(){if(!Z&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){Z=true;d();g();T.onload=T.onreadystatechange=null;U.removeChild(T)}}}U.appendChild(T);return B}var ca=
false,P=b.xhr();b.username?P.open(y,b.url,b.async,b.username,b.password):P.open(y,b.url,b.async);try{b.data&&P.setRequestHeader("Content-Type",b.contentType);if(b.ifModified)P.setRequestHeader("If-Modified-Since",e.lastModified[b.url]||"Thu, 01 Jan 1970 00:00:00 GMT");P.setRequestHeader("X-Requested-With","XMLHttpRequest");P.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*":b.accepts._default)}catch(fa){}if(b.beforeSend&&b.beforeSend(P,b)===false){b.global&&
!--e.active&&e.event.trigger("ajaxStop");P.abort();return false}b.global&&e.event.trigger("ajaxSend",[P,b]);var h=function(w){if(P.readyState==0){if(l){clearInterval(l);l=null;b.global&&!--e.active&&e.event.trigger("ajaxStop")}}else if(!ca&&P&&(P.readyState==4||w=="timeout")){ca=true;if(l){clearInterval(l);l=null}r=w=="timeout"?"timeout":!e.httpSuccess(P)?"error":b.ifModified&&e.httpNotModified(P,b.url)?"notmodified":"success";if(r=="success")try{x=e.httpData(P,b.dataType,b)}catch(C){r="parsererror"}if(r==
"success"){var E;try{E=P.getResponseHeader("Last-Modified")}catch(L){}if(b.ifModified&&E)e.lastModified[b.url]=E;k||d()}else e.handleError(b,P,r);g();w&&P.abort();if(b.async)P=null}};if(b.async){var l=setInterval(h,13);b.timeout>0&&setTimeout(function(){P&&!ca&&h("timeout")},b.timeout)}try{P.send(b.data)}catch(q){e.handleError(b,P,null,q)}b.async||h();return P},handleError:function(b,d,g,k){b.error&&b.error(d,g,k);b.global&&e.event.trigger("ajaxError",[d,b,k])},active:0,httpSuccess:function(b){try{return!b.status&&
location.protocol=="file:"||b.status>=200&&b.status<300||b.status==304||b.status==1223}catch(d){}return false},httpNotModified:function(b,d){try{var g=b.getResponseHeader("Last-Modified");return b.status==304||g==e.lastModified[d]}catch(k){}return false},httpData:function(b,d,g){var k=b.getResponseHeader("content-type");b=(k=d=="xml"||!d&&k&&k.indexOf("xml")>=0)?b.responseXML:b.responseText;if(k&&b.documentElement.tagName=="parsererror")throw"parsererror";if(g&&g.dataFilter)b=g.dataFilter(b,d);if(typeof b===
"string"){d=="script"&&e.globalEval(b);if(d=="json")b=G.eval("("+b+")")}return b},param:function(b){function d(o,r){g[g.length]=encodeURIComponent(o)+"="+encodeURIComponent(r)}var g=[];if(e.isArray(b)||b.jquery)e.each(b,function(){d(this.name,this.value)});else for(var k in b)e.isArray(b[k])?e.each(b[k],function(){d(k,this)}):d(k,e.isFunction(b[k])?b[k]():b[k]);return g.join("&").replace(/%20/g,"+")}});var ba={},Q,da=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft",
"marginRight","paddingLeft","paddingRight"],["opacity"]];e.fn.extend({show:function(b,d){if(b)return this.animate(N("show",3),b,d);else{b=0;for(d=this.length;b<d;b++){var g=e.data(this[b],"olddisplay");this[b].style.display=g||"";if(e.css(this[b],"display")==="none"){g=this[b].tagName;var k;if(ba[g])k=ba[g];else{var o=e("<"+g+" />").appendTo("body");k=o.css("display");if(k==="none")k="block";o.remove();ba[g]=k}e.data(this[b],"olddisplay",k)}}b=0;for(d=this.length;b<d;b++)this[b].style.display=e.data(this[b],
"olddisplay")||"";return this}},hide:function(b,d){if(b)return this.animate(N("hide",3),b,d);else{b=0;for(d=this.length;b<d;b++){var g=e.data(this[b],"olddisplay");!g&&g!=="none"&&e.data(this[b],"olddisplay",e.css(this[b],"display"))}b=0;for(d=this.length;b<d;b++)this[b].style.display="none";return this}},_toggle:e.fn.toggle,toggle:function(b,d){var g=typeof b==="boolean";return e.isFunction(b)&&e.isFunction(d)?this._toggle.apply(this,arguments):b==null||g?this.each(function(){var k=g?b:e(this).is(":hidden");
e(this)[k?"show":"hide"]()}):this.animate(N("toggle",3),b,d)},fadeTo:function(b,d,g){return this.animate({opacity:d},b,g)},animate:function(b,d,g,k){var o=e.speed(d,g,k);return this[o.queue===false?"each":"queue"](function(){var r=e.extend({},o),x,y=this.nodeType==1&&e(this).is(":hidden"),R=this;for(x in b){if(b[x]=="hide"&&y||b[x]=="show"&&!y)return r.complete.call(this);if((x=="height"||x=="width")&&this.style){r.display=e.css(this,"display");r.overflow=this.style.overflow}}if(r.overflow!=null)this.style.overflow=
"hidden";r.curAnim=e.extend({},b);e.each(b,function(U,T){var Z=new e.fx(R,r,U);if(/toggle|show|hide/.test(T))Z[T=="toggle"?y?"show":"hide":T](b);else{var ca=T.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),P=Z.cur(true)||0;if(ca){T=parseFloat(ca[2]);var fa=ca[3]||"px";if(fa!="px"){R.style[U]=(T||1)+fa;P=(T||1)/Z.cur(true)*P;R.style[U]=P+fa}if(ca[1])T=(ca[1]=="-="?-1:1)*T+P;Z.custom(P,T,fa)}else Z.custom(P,T,"")}});return true})},stop:function(b,d){var g=e.timers;b&&this.queue([]);this.each(function(){for(var k=
g.length-1;k>=0;k--)if(g[k].elem==this){d&&g[k](true);g.splice(k,1)}});d||this.dequeue();return this}});e.each({slideDown:N("show",1),slideUp:N("hide",1),slideToggle:N("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,d){e.fn[b]=function(g,k){return this.animate(d,g,k)}});e.extend({speed:function(b,d,g){var k=typeof b==="object"?b:{complete:g||!g&&d||e.isFunction(b)&&b,duration:b,easing:g&&d||d&&!e.isFunction(d)&&d};k.duration=e.fx.off?0:typeof k.duration==="number"?k.duration:
e.fx.speeds[k.duration]||e.fx.speeds._default;k.old=k.complete;k.complete=function(){k.queue!==false&&e(this).dequeue();e.isFunction(k.old)&&k.old.call(this)};return k},easing:{linear:function(b,d,g,k){return g+k*b},swing:function(b,d,g,k){return(-Math.cos(b*Math.PI)/2+0.5)*k+g}},timers:[],fx:function(b,d,g){this.options=d;this.elem=b;this.prop=g;if(!d.orig)d.orig={}}});e.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(e.fx.step[this.prop]||e.fx.step._default)(this);
if((this.prop=="height"||this.prop=="width")&&this.elem.style)this.elem.style.display="block"},cur:function(b){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(b=parseFloat(e.css(this.elem,this.prop,b)))&&b>-10000?b:parseFloat(e.curCSS(this.elem,this.prop))||0},custom:function(b,d,g){function k(r){return o.step(r)}this.startTime=u();this.start=b;this.end=d;this.unit=g||this.unit||"px";this.now=this.start;this.pos=this.state=0;var o=
this;k.elem=this.elem;if(k()&&e.timers.push(k)&&!Q)Q=setInterval(function(){for(var r=e.timers,x=0;x<r.length;x++)r[x]()||r.splice(x--,1);if(!r.length){clearInterval(Q);Q=B}},13)},show:function(){this.options.orig[this.prop]=e.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());e(this.elem).show()},hide:function(){this.options.orig[this.prop]=e.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(b){var d=
u();if(b||d>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();b=this.options.curAnim[this.prop]=true;for(var g in this.options.curAnim)if(this.options.curAnim[g]!==true)b=false;if(b){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(e.css(this.elem,"display")=="none")this.elem.style.display="block"}this.options.hide&&e(this.elem).hide();if(this.options.hide||this.options.show)for(var k in this.options.curAnim)e.attr(this.elem.style,
k,this.options.orig[k]);this.options.complete.call(this.elem)}return false}else{g=d-this.startTime;this.state=g/this.options.duration;this.pos=e.easing[this.options.easing||(e.easing.swing?"swing":"linear")](this.state,g,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};e.extend(e.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){e.attr(b.elem.style,"opacity",b.now)},_default:function(b){if(b.elem.style&&b.elem.style[b.prop]!=
null)b.elem.style[b.prop]=b.now+b.unit;else b.elem[b.prop]=b.now}}});e.fn.offset=document.documentElement.getBoundingClientRect?function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return e.offset.bodyOffset(this[0]);var b=this[0].getBoundingClientRect(),d=this[0].ownerDocument,g=d.body;d=d.documentElement;return{top:b.top+(self.pageYOffset||e.boxModel&&d.scrollTop||g.scrollTop)-(d.clientTop||g.clientTop||0),left:b.left+(self.pageXOffset||e.boxModel&&d.scrollLeft||g.scrollLeft)-
(d.clientLeft||g.clientLeft||0)}}:function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return e.offset.bodyOffset(this[0]);e.offset.initialized||e.offset.initialize();var b=this[0],d=b.offsetParent,g=b.ownerDocument,k,o=g.documentElement,r=g.body;g=g.defaultView;k=g.getComputedStyle(b,null);for(var x=b.offsetTop,y=b.offsetLeft;(b=b.parentNode)&&b!==r&&b!==o;){k=g.getComputedStyle(b,null);x-=b.scrollTop;y-=b.scrollLeft;if(b===d){x+=b.offsetTop;y+=b.offsetLeft;if(e.offset.doesNotAddBorder&&
!(e.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.tagName))){x+=parseInt(k.borderTopWidth,10)||0;y+=parseInt(k.borderLeftWidth,10)||0}d=b.offsetParent}if(e.offset.subtractsBorderForOverflowNotVisible&&k.overflow!=="visible"){x+=parseInt(k.borderTopWidth,10)||0;y+=parseInt(k.borderLeftWidth,10)||0}k=k}if(k.position==="relative"||k.position==="static"){x+=r.offsetTop;y+=r.offsetLeft}if(k.position==="fixed"){x+=Math.max(o.scrollTop,r.scrollTop);y+=Math.max(o.scrollLeft,r.scrollLeft)}return{top:x,
left:y}};e.offset={initialize:function(){if(!this.initialized){var b=document.body,d=document.createElement("div"),g,k,o,r=b.style.marginTop;g={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(k in g)d.style[k]=g[k];d.innerHTML='<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.insertBefore(d,b.firstChild);g=d.firstChild;k=g.firstChild;o=g.nextSibling.firstChild.firstChild;this.doesNotAddBorder=k.offsetTop!==5;this.doesAddBorderForTableAndCells=o.offsetTop===5;g.style.overflow="hidden";g.style.position="relative";this.subtractsBorderForOverflowNotVisible=k.offsetTop===-5;b.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=b.offsetTop===0;b.style.marginTop=r;b.removeChild(d);this.initialized=true}},bodyOffset:function(b){e.offset.initialized||e.offset.initialize();
var d=b.offsetTop,g=b.offsetLeft;if(e.offset.doesNotIncludeMarginInBodyOffset){d+=parseInt(e.curCSS(b,"marginTop",true),10)||0;g+=parseInt(e.curCSS(b,"marginLeft",true),10)||0}return{top:d,left:g}}};e.fn.extend({position:function(){var b;if(this[0]){b=this.offsetParent();var d=this.offset(),g=/^body|html$/i.test(b[0].tagName)?{top:0,left:0}:b.offset();d.top-=v(this,"marginTop");d.left-=v(this,"marginLeft");g.top+=v(b,"borderTopWidth");g.left+=v(b,"borderLeftWidth");b={top:d.top-g.top,left:d.left-
g.left}}return b},offsetParent:function(){for(var b=this[0].offsetParent||document.body;b&&!/^body|html$/i.test(b.tagName)&&e.css(b,"position")=="static";)b=b.offsetParent;return e(b)}});e.each(["Left","Top"],function(b,d){var g="scroll"+d;e.fn[g]=function(k){if(!this[0])return null;return k!==B?this.each(function(){this==G||this==document?G.scrollTo(!b?k:e(G).scrollLeft(),b?k:e(G).scrollTop()):(this[g]=k)}):this[0]==G||this[0]==document?self[b?"pageYOffset":"pageXOffset"]||e.boxModel&&document.documentElement[g]||
document.body[g]:this[0][g]}});e.each(["Height","Width"],function(b,d){var g=d.toLowerCase();e.fn["inner"+d]=function(){return this[0]?e.css(this[0],g,false,"padding"):null};e.fn["outer"+d]=function(o){return this[0]?e.css(this[0],g,false,o?"margin":"border"):null};var k=d.toLowerCase();e.fn[k]=function(o){return this[0]==G?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]):o===B?this.length?e.css(this[0],k):null:this.css(k,typeof o==="string"?o:o+"px")}})})();(function(c){function u(s){var D;if(s&&s.constructor==Array&&s.length==3)return s;if(D=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(s))return[parseInt(D[1]),parseInt(D[2]),parseInt(D[3])];if(D=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(s))return[parseFloat(D[1])*2.55,parseFloat(D[2])*2.55,parseFloat(D[3])*2.55];if(D=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(s))return[parseInt(D[1],16),parseInt(D[2],
16),parseInt(D[3],16)];if(D=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(s))return[parseInt(D[1]+D[1],16),parseInt(D[2]+D[2],16),parseInt(D[3]+D[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(s))return m.transparent;return m[c.trim(s).toLowerCase()]}function v(s,D){var J;do{J=c.curCSS(s,D);if(J!=""&&J!="transparent"||c.nodeName(s,"body"))break;D="backgroundColor"}while(s=s.parentNode);return u(J)}c.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color",
"outlineColor"],function(s,D){c.fx.step[D]=function(J){if(!J.colorInit){J.start=v(J.elem,D);J.end=u(J.end);J.colorInit=true}J.elem.style[D]="rgb("+[Math.max(Math.min(parseInt(J.pos*(J.end[0]-J.start[0])+J.start[0]),255),0),Math.max(Math.min(parseInt(J.pos*(J.end[1]-J.start[1])+J.start[1]),255),0),Math.max(Math.min(parseInt(J.pos*(J.end[2]-J.start[2])+J.start[2]),255),0)].join(",")+")"}});var m={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],
cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,
255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]}})(jQuery);(function(c){c.ifixpng=function(v){c.ifixpng.pixel=v};c.ifixpng.getPixel=function(){return c.ifixpng.pixel||"images/pixel.gif"};var u={ltie7:c.browser.msie&&c.browser.version<7,filter:function(v){return"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+v+"')"}};c.fn.ifixpng=u.ltie7?function(){return this.each(function(){var v=c(this),m=c("base").attr("href");if(m)m=m.replace(/\/[^\/]+$/,"/");if(v.is("img")||v.is("input")){if(v.attr("src"))if(v.attr("src").match(/.*\.png([?].*)?$/i)){m=
m&&v.attr("src").search(/^(\/|http:)/i)?m+v.attr("src"):v.attr("src");v.css({filter:u.filter(m),width:v.width(),height:v.height()}).attr({src:c.ifixpng.getPixel()}).positionFix()}}else{var s=v.css("backgroundImage");if(s.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)){s=RegExp.$1;s=m&&s.substring(0,1)!="/"?m+s:s;v.css({backgroundImage:"none",filter:u.filter(s)}).children().children().positionFix()}}})}:function(){return this};c.fn.iunfixpng=u.ltie7?function(){return this.each(function(){var v=c(this),
m=v.css("filter");if(m.match(/src=["']?(.*\.png([?].*)?)["']?/i)){m=RegExp.$1;v.is("img")||v.is("input")?v.attr({src:m}).css({filter:""}):v.css({filter:"",background:"url("+m+")"})}})}:function(){return this};c.fn.positionFix=function(){return this.each(function(){var v=c(this),m=v.css("position");m!="absolute"&&m!="relative"&&v.css({position:"relative"})})}})(jQuery);(function(c){var u=c.browser.msie&&c.browser.version==6,v=null;c.fn.jOverlay=function(m){function s(G){m.center&&c.center(G)}c("#jOverlay").length&&c.closeOverlay();v=null;null!==null&&clearTimeout(null);m=c.extend({},c.fn.jOverlay.options,m);var D=this.is("*")?this:"#jOverlayContent",J=u?"absolute":"fixed",S=/([^\/\\]+)\.(png|gif|jpeg|jpg|bmp)$/i.test(m.url),N=m.imgLoading?"<img id='jOverlayLoading' src='"+m.imgLoading+"' style='position:"+J+"; z-index:"+(m.zIndex+9)+";'/>":"";c("body").prepend(N+
"<div id='jOverlay' /><div id='jOverlayContent' style='position:"+J+"; z-index:"+(m.zIndex+5)+"; display:none;'/>");c("#jOverlayLoading").load(function(){s(this)});if(u){c("select").hide();c("#jOverlayContent select").show()}c("#jOverlay").css({backgroundColor:m.color,position:J,top:"0px",left:"0px",filter:"alpha(opacity="+m.opacity*100+")",opacity:m.opacity,zIndex:m.zIndex,width:!u?"100%":c(window).width()+"px",height:!u?"100%":c(document).height()+"px"}).show();if(this.is("*")){v=this.prev();c("#jOverlayContent").html(this.show().attr("display",
m.autoHide?"none":this.css("display")));if(!S){s("#jOverlayContent");c("#jOverlayContent").show();!m.url&&c.isFunction(m.success)&&m.success(this)}}S&&c("<img/>").load(function(){var G=c.resize(this.width,this.height);c(this).css({width:G.width,height:G.height});c(D).html(this);s("#jOverlayContent");c("#jOverlayLoading").fadeOut(500);c("#jOverlayContent").show();c.isFunction(m.success)&&m.success(this)}).error(function(){alert("Image ("+m.url+") not found.");c.closeOverlay()}).attr({src:m.url,alt:m.url});
m.url&&!S&&c.ajax({type:m.method,data:m.data,url:m.url,success:function(G){c("#jOverlayLoading").fadeOut(500);c(D).html(G).show();s("#jOverlayContent");c.isFunction(m.success)&&m.success(G)},error:function(){alert("URL ("+m.url+") not found.");c.closeOverlay()}});if(u){c(window).scroll(function(){s("#jOverlayContent")});c(window).resize(function(){c("#jOverlay").css({width:c(window).width()+"px",height:c(document).height()+"px"});s("#jOverlayContent")})}c(document).keydown(function(G){G.keyCode==
27&&c.closeOverlay()});m.bgClickToClose&&c("#jOverlay").click(c.closeOverlay);if(Number(m.timeout)>0)jOverlayTimer=setTimeout(c.closeOverlay,Number(m.timeout));c("#jOverlayContent").css(m.css||{})};c.resize=function(m,s){var D=c(window).width()-150,J=c(window).height()-150;if(m>D){s*=D/m;m=D;if(s>J){m*=J/s;s=J}}else if(s>J){m*=J/s;s=J;if(m>D){s*=D/m;m=D}}return{width:m,height:s}};c.center=function(m){m=c(m);var s=m.width();m.css({width:s+"px",marginLeft:"-"+s/2+"px",marginTop:"-"+m.height()/2+"px",
height:"auto",top:!u?"50%":c(window).scrollTop()+c(window).height()/2+"px",left:"50%"})};c.fn.jOverlay.options={method:"GET",data:"",url:"",color:"#000",opacity:"0.6",zIndex:9999,center:true,imgLoading:"",bgClickToClose:true,success:null,timeout:0,autoHide:true,css:{}};c.closeOverlay=function(){u&&c("select").show();if(v!==null)if(v!==null){var m=c("#jOverlayContent").children();v.after(m.css("display",m.attr("display")));m.removeAttr("display")}c("#jOverlayLoading, #jOverlayContent, #jOverlay").remove()}})(jQuery);var tb_pathToImage="../../img/ajax_loading.gif";$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox");imgLoader=new Image;imgLoader.src=tb_pathToImage});function tb_init(c){$(c).click(function(){tb_show(this.title||this.name||null,this.href||this.alt,this.rel||false);this.blur();return false})}
function tb_show(c,u,v){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}else if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}tb_detectMacXFF()?
$("#TB_overlay").addClass("TB_overlayMacFFBGHack"):$("#TB_overlay").addClass("TB_overlayBG");if(c===null)c="";$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$("#TB_load").show();var m=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/,s=(u.indexOf("?")!==-1?u.substr(0,u.indexOf("?")):u).toLowerCase().match(m);if(s==".jpg"||s==".jpeg"||s==".png"||s==".gif"||s==".bmp"){TB_imageCount=TB_NextHTML=TB_NextURL=TB_NextCaption=TB_PrevHTML=TB_PrevURL=TB_PrevCaption="";TB_FoundURL=false;if(v){TB_TempArray=
$("a[@rel="+v+"]").get();for(TB_Counter=0;TB_Counter<TB_TempArray.length&&TB_NextHTML==="";TB_Counter++){TB_TempArray[TB_Counter].href.toLowerCase().match(m);if(TB_TempArray[TB_Counter].href!=u)if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>"}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>"}else{TB_FoundURL=
true;TB_imageCount="Image "+(TB_Counter+1)+" of "+TB_TempArray.length}}}imgPreloader=new Image;imgPreloader.onload=function(){imgPreloader.onload=null;var N=tb_getPageSize(),G=N[0]-150;N=N[1]-150;var B=imgPreloader.width,K=imgPreloader.height;if(B>G){K*=G/B;B=G;if(K>N){B*=N/K;K=N}}else if(K>N){B*=N/K;K=N;if(B>G){K*=G/B;B=G}}TB_WIDTH=B+30;TB_HEIGHT=K+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+u+"' width='"+B+"' height='"+K+"' alt='"+c+"'/></a><div id='TB_caption'>"+
c+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>Fermer</a> ou touche Echap</div>");$("#TB_closeWindowButton").click(tb_remove);if(TB_PrevHTML!==""){function H(){$(document).unbind("click",H)&&$(document).unbind("click",H);$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,v);return false}$("#TB_prev").click(H)}if(TB_NextHTML!==""){function e(){$("#TB_window").remove();
$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,v);return false}$("#TB_next").click(e)}document.onkeydown=function(W){keycode=W==null?event.keyCode:W.which;if(keycode==27)tb_remove();else if(keycode==190){if(TB_NextHTML!=""){document.onkeydown="";e()}}else if(keycode==188)if(TB_PrevHTML!=""){document.onkeydown="";H()}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=u}else{var D=u.replace(/^[^\?]+\??/,
""),J=tb_parseQuery(D);TB_WIDTH=J.width*1+30||630;TB_HEIGHT=J.height*1+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(u.indexOf("TB_iframe")!=-1){urlNoQuery=u.split("TB_");$("#TB_iframeContent").remove();if(J.modal!="true")$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+c+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>Fermer</a> ou touche Echap</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+
Math.round(Math.random()*1E3)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>");else{$("#TB_overlay").unbind();$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1E3)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>")}}else if($("#TB_window").css("display")!="block")if(J.modal!=
"true")$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+c+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>fermer</a> ou touche Echap</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>")}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+
"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(c)}$("#TB_closeWindowButton").click(tb_remove);if(u.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+J.inlineId).children());$("#TB_window").unload(function(){$("#"+J.inlineId).append($("#TB_ajaxContent").children())});tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"})}else if(u.indexOf("TB_iframe")!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();
$("#TB_window").css({display:"block"})}}else $("#TB_ajaxContent").load(u+="&random="+(new Date).getTime(),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})})}if(!J.modal)document.onkeyup=function(N){keycode=N==null?event.keyCode:N.which;keycode==27&&tb_remove()}}catch(S){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}
function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";document.onkeyup="";return false}
function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt(TB_WIDTH/2,10)+"px",width:TB_WIDTH+"px"});jQuery.browser.msie&&jQuery.browser.version<7||$("#TB_window").css({marginTop:"-"+parseInt(TB_HEIGHT/2,10)+"px"})}function tb_parseQuery(c){var u={};if(!c)return u;c=c.split(/[;&]/);for(var v=0;v<c.length;v++){var m=c[v].split("=");if(!(!m||m.length!=2)){var s=unescape(m[0]);m=unescape(m[1]);m=m.replace(/\+/g," ");u[s]=m}}return u}
function tb_getPageSize(){var c=document.documentElement;return arrayPageSize=[window.innerWidth||self.innerWidth||c&&c.clientWidth||document.body.clientWidth,window.innerHeight||self.innerHeight||c&&c.clientHeight||document.body.clientHeight]}function tb_detectMacXFF(){var c=navigator.userAgent.toLowerCase();if(c.indexOf("mac")!=-1&&c.indexOf("firefox")!=-1)return true};(function(c){function u(j,n,p){var f=this;f.id=p;f.options=n;f.status={animated:false,rendered:false,disabled:false,focused:false};f.elements={target:j.addClass(f.options.style.classes.target),tooltip:null,wrapper:null,content:null,contentWrapper:null,title:null,button:null,tip:null,bgiframe:null};f.cache={mouse:{},position:{},toggle:0};f.timers={};c.extend(f,f.options.api,{show:function(t){function z(){f.options.position.type!=="static"&&f.focus();f.onShow.call(f,t);c.browser.msie&&f.elements.tooltip.get(0).style.removeAttribute("filter")}
var F;if(!f.status.rendered)return c.fn.qtip.log.error.call(f,2,c.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"show");if(f.elements.tooltip.css("display")!=="none")return f;f.elements.tooltip.stop(true,false);if(f.beforeShow.call(f,t)===false)return f;f.cache.toggle=1;f.options.position.type!=="static"&&f.updatePosition(t,f.options.show.effect.length>0);if(typeof f.options.show.solo=="object")F=c(f.options.show.solo);else if(f.options.show.solo===true)F=c("div.qtip").not(f.elements.tooltip);F&&F.each(function(){c(this).qtip("api").status.rendered===
true&&c(this).qtip("api").hide()});if(typeof f.options.show.effect.type=="function"){f.options.show.effect.type.call(f.elements.tooltip,f.options.show.effect.length);f.elements.tooltip.queue(function(){z();c(this).dequeue()})}else{switch(f.options.show.effect.type.toLowerCase()){case "fade":f.elements.tooltip.fadeIn(f.options.show.effect.length,z);break;case "slide":f.elements.tooltip.slideDown(f.options.show.effect.length,function(){z();f.options.position.type!=="static"&&f.updatePosition(t,true)});
break;case "grow":f.elements.tooltip.show(f.options.show.effect.length,z);break;default:f.elements.tooltip.show(null,z);break}f.elements.tooltip.addClass(f.options.style.classes.active)}return c.fn.qtip.log.error.call(f,1,c.fn.qtip.constants.EVENT_SHOWN,"show")},hide:function(t){function z(){f.onHide.call(f,t)}if(f.status.rendered){if(f.elements.tooltip.css("display")==="none")return f}else return c.fn.qtip.log.error.call(f,2,c.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"hide");clearTimeout(f.timers.show);
f.elements.tooltip.stop(true,false);if(f.beforeHide.call(f,t)===false)return f;f.cache.toggle=0;if(typeof f.options.hide.effect.type=="function"){f.options.hide.effect.type.call(f.elements.tooltip,f.options.hide.effect.length);f.elements.tooltip.queue(function(){z();c(this).dequeue()})}else{switch(f.options.hide.effect.type.toLowerCase()){case "fade":f.elements.tooltip.fadeOut(f.options.hide.effect.length,z);break;case "slide":f.elements.tooltip.slideUp(f.options.hide.effect.length,z);break;case "grow":f.elements.tooltip.hide(f.options.hide.effect.length,
z);break;default:f.elements.tooltip.hide(null,z);break}f.elements.tooltip.removeClass(f.options.style.classes.active)}return c.fn.qtip.log.error.call(f,1,c.fn.qtip.constants.EVENT_HIDDEN,"hide")},updatePosition:function(t,z){var F,A,I,M,ba,Q,da;if(f.status.rendered){if(f.options.position.type=="static")return c.fn.qtip.log.error.call(f,1,c.fn.qtip.constants.CANNOT_POSITION_STATIC,"updatePosition")}else return c.fn.qtip.log.error.call(f,2,c.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updatePosition");
A={position:{left:0,top:0},dimensions:{height:0,width:0},corner:f.options.position.corner.target};I={position:f.getPosition(),dimensions:f.getDimensions(),corner:f.options.position.corner.tooltip};if(f.options.position.target!=="mouse"){if(f.options.position.target.get(0).nodeName.toLowerCase()=="area"){M=f.options.position.target.attr("coords").split(",");for(F=0;F<M.length;F++)M[F]=parseInt(M[F]);F=f.options.position.target.parent("map").attr("name");ba=c('img[usemap="#'+F+'"]:first').offset();
A.position={left:Math.floor(ba.left+M[0]),top:Math.floor(ba.top+M[1])};switch(f.options.position.target.attr("shape").toLowerCase()){case "rect":A.dimensions={width:Math.ceil(Math.abs(M[2]-M[0])),height:Math.ceil(Math.abs(M[3]-M[1]))};break;case "circle":A.dimensions={width:M[2]+1,height:M[2]+1};break;case "poly":A.dimensions={width:M[0],height:M[1]};for(F=0;F<M.length;F++)if(F%2==0){if(M[F]>A.dimensions.width)A.dimensions.width=M[F];if(M[F]<M[0])A.position.left=Math.floor(ba.left+M[F])}else{if(M[F]>
A.dimensions.height)A.dimensions.height=M[F];if(M[F]<M[1])A.position.top=Math.floor(ba.top+M[F])}A.dimensions.width-=A.position.left-ba.left;A.dimensions.height-=A.position.top-ba.top;break;default:return c.fn.qtip.log.error.call(f,4,c.fn.qtip.constants.INVALID_AREA_SHAPE,"updatePosition")}A.dimensions.width-=2;A.dimensions.height-=2}else if(f.options.position.target.add(document.body).length===1){A.position={left:c(document).scrollLeft(),top:c(document).scrollTop()};A.dimensions={height:c(window).height(),
width:c(window).width()}}else{A.position=typeof f.options.position.target.attr("qtip")!=="undefined"?f.options.position.target.qtip("api").cache.position:f.options.position.target.offset();A.dimensions={height:f.options.position.target.outerHeight(),width:f.options.position.target.outerWidth()}}Q=c.extend({},A.position);if(A.corner.search(/right/i)!==-1)Q.left+=A.dimensions.width;if(A.corner.search(/bottom/i)!==-1)Q.top+=A.dimensions.height;if(A.corner.search(/((top|bottom)Middle)|center/)!==-1)Q.left+=
A.dimensions.width/2;if(A.corner.search(/((left|right)Middle)|center/)!==-1)Q.top+=A.dimensions.height/2}else{A.position=Q={left:f.cache.mouse.x,top:f.cache.mouse.y};A.dimensions={height:1,width:1}}if(I.corner.search(/right/i)!==-1)Q.left-=I.dimensions.width;if(I.corner.search(/bottom/i)!==-1)Q.top-=I.dimensions.height;if(I.corner.search(/((top|bottom)Middle)|center/)!==-1)Q.left-=I.dimensions.width/2;if(I.corner.search(/((left|right)Middle)|center/)!==-1)Q.top-=I.dimensions.height/2;M=c.browser.msie?
1:0;c.browser.msie&&parseInt(c.browser.version.charAt(0));if(f.options.style.border.radius>0){if(I.corner.search(/Left/)!==-1)Q.left-=f.options.style.border.radius;else if(I.corner.search(/Right/)!==-1)Q.left+=f.options.style.border.radius;if(I.corner.search(/Top/)!==-1)Q.top-=f.options.style.border.radius;else if(I.corner.search(/Bottom/)!==-1)Q.top+=f.options.style.border.radius}if(M){if(I.corner.search(/top/)!==-1)Q.top-=M;else if(I.corner.search(/bottom/)!==-1)Q.top+=M;if(I.corner.search(/left/)!==
-1)Q.left-=M;else if(I.corner.search(/right/)!==-1)Q.left+=M;if(I.corner.search(/leftMiddle|rightMiddle/)!==-1)Q.top-=1}if(f.options.position.adjust.screen===true)Q=B.call(f,Q,A,I);if(f.options.position.target==="mouse"&&f.options.position.adjust.mouse===true){A=f.options.position.adjust.screen===true&&f.elements.tip?f.elements.tip.attr("rel"):f.options.position.corner.tooltip;Q.left+=A.search(/right/i)!==-1?-6:6;Q.top+=A.search(/bottom/i)!==-1?-6:6}!f.elements.bgiframe&&c.browser.msie&&parseInt(c.browser.version.charAt(0))==
6&&c("select, object").each(function(){da=c(this).offset();da.bottom=da.top+c(this).height();da.right=da.left+c(this).width();Q.top+I.dimensions.height>=da.top&&Q.left+I.dimensions.width>=da.left&&V.call(f)});Q.left+=f.options.position.adjust.x;Q.top+=f.options.position.adjust.y;A=f.getPosition();if(Q.left!=A.left||Q.top!=A.top){A=f.beforePositionUpdate.call(f,t);if(A===false)return f;f.cache.position=Q;if(z===true){f.status.animated=true;f.elements.tooltip.animate(Q,200,"swing",function(){f.status.animated=
false})}else f.elements.tooltip.css(Q);f.onPositionUpdate.call(f,t);typeof t!=="undefined"&&t.type&&t.type!=="mousemove"&&c.fn.qtip.log.error.call(f,1,c.fn.qtip.constants.EVENT_POSITION_UPDATED,"updatePosition")}return f},updateWidth:function(t){var z;if(f.status.rendered){if(t&&typeof t!=="number")return c.fn.qtip.log.error.call(f,2,"newWidth must be of type number","updateWidth")}else return c.fn.qtip.log.error.call(f,2,c.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateWidth");z=f.elements.contentWrapper.siblings().add(f.elements.tip).add(f.elements.button);
if(!t)if(typeof f.options.style.width.value=="number")t=f.options.style.width.value;else{f.elements.tooltip.css({width:"auto"});z.hide();c.browser.msie&&f.elements.wrapper.add(f.elements.contentWrapper.children()).css({zoom:"normal"});t=f.getDimensions().width+1;if(!f.options.style.width.value){if(t>f.options.style.width.max)t=f.options.style.width.max;if(t<f.options.style.width.min)t=f.options.style.width.min}}if(t%2!==0)t-=1;f.elements.tooltip.width(t);z.show();f.options.style.border.radius&&f.elements.tooltip.find(".qtip-betweenCorners").each(function(){c(this).width(t-
f.options.style.border.radius*2)});if(c.browser.msie){f.elements.wrapper.add(f.elements.contentWrapper.children()).css({zoom:"1"});f.elements.wrapper.width(t);f.elements.bgiframe&&f.elements.bgiframe.width(t).height(f.getDimensions.height)}return c.fn.qtip.log.error.call(f,1,c.fn.qtip.constants.EVENT_WIDTH_UPDATED,"updateWidth")},updateStyle:function(t){var z,F,A,I;if(f.status.rendered){if(typeof t!=="string"||!c.fn.qtip.styles[t])return c.fn.qtip.log.error.call(f,2,c.fn.qtip.constants.STYLE_NOT_DEFINED,
"updateStyle")}else return c.fn.qtip.log.error.call(f,2,c.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateStyle");f.options.style=e.call(f,c.fn.qtip.styles[t],f.options.user.style);f.elements.content.css(K(f.options.style));f.options.content.title.text!==false&&f.elements.title.css(K(f.options.style.title,true));f.elements.contentWrapper.css({borderColor:f.options.style.border.color});if(f.options.style.tip.corner!==false)if(c("<canvas>").get(0).getContext){t=f.elements.tooltip.find(".qtip-tip canvas:first");
F=t.get(0).getContext("2d");F.clearRect(0,0,300,300);A=t.parent("div[rel]:first").attr("rel");I=W(A,f.options.style.tip.size.width,f.options.style.tip.size.height);J.call(f,t,I,f.options.style.tip.color||f.options.style.border.color)}else if(c.browser.msie){t=f.elements.tooltip.find('.qtip-tip [nodeName="shape"]');t.attr("fillcolor",f.options.style.tip.color||f.options.style.border.color)}if(f.options.style.border.radius>0){f.elements.tooltip.find(".qtip-betweenCorners").css({backgroundColor:f.options.style.border.color});
if(c("<canvas>").get(0).getContext){z=Y(f.options.style.border.radius);f.elements.tooltip.find(".qtip-wrapper canvas").each(function(){F=c(this).get(0).getContext("2d");F.clearRect(0,0,300,300);A=c(this).parent("div[rel]:first").attr("rel");s.call(f,c(this),z[A],f.options.style.border.radius,f.options.style.border.color)})}else c.browser.msie&&f.elements.tooltip.find('.qtip-wrapper [nodeName="arc"]').each(function(){c(this).attr("fillcolor",f.options.style.border.color)})}return c.fn.qtip.log.error.call(f,
1,c.fn.qtip.constants.EVENT_STYLE_UPDATED,"updateStyle")},updateContent:function(t,z){function F(){f.updateWidth();if(z!==false){f.options.position.type!=="static"&&f.updatePosition(f.elements.tooltip.is(":visible"),true);f.options.style.tip.corner!==false&&S.call(f)}}var A,I,M;if(f.status.rendered){if(!t)return c.fn.qtip.log.error.call(f,2,c.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateContent")}else return c.fn.qtip.log.error.call(f,2,c.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateContent");A=
f.beforeContentUpdate.call(f,t);if(typeof A=="string")t=A;else if(A===false)return;c.browser.msie&&f.elements.contentWrapper.children().css({zoom:"normal"});t.jquery&&t.length>0?t.clone(true).appendTo(f.elements.content).show():f.elements.content.html(t);I=f.elements.content.find("img[complete=false]");if(I.length>0){M=0;I.each(function(){c('<img src="'+c(this).attr("src")+'" />').load(function(){++M==I.length&&F()})})}else F();f.onContentUpdate.call(f);return c.fn.qtip.log.error.call(f,1,c.fn.qtip.constants.EVENT_CONTENT_UPDATED,
"loadContent")},loadContent:function(t,z,F){function A(I){f.onContentLoad.call(f);c.fn.qtip.log.error.call(f,1,c.fn.qtip.constants.EVENT_CONTENT_LOADED,"loadContent");f.updateContent(I)}if(!f.status.rendered)return c.fn.qtip.log.error.call(f,2,c.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"loadContent");if(f.beforeContentLoad.call(f)===false)return f;F=="post"?c.post(t,z,A):c.get(t,z,A);return f},updateTitle:function(t){if(f.status.rendered){if(!t)return c.fn.qtip.log.error.call(f,2,c.fn.qtip.constants.NO_CONTENT_PROVIDED,
"updateTitle")}else return c.fn.qtip.log.error.call(f,2,c.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateTitle");returned=f.beforeTitleUpdate.call(f);if(returned===false)return f;if(f.elements.button)f.elements.button=f.elements.button.clone(true);f.elements.title.html(t);f.elements.button&&f.elements.title.prepend(f.elements.button);f.onTitleUpdate.call(f);return c.fn.qtip.log.error.call(f,1,c.fn.qtip.constants.EVENT_TITLE_UPDATED,"updateTitle")},focus:function(t){var z,F,A;if(f.status.rendered){if(f.options.position.type==
"static")return c.fn.qtip.log.error.call(f,1,c.fn.qtip.constants.CANNOT_FOCUS_STATIC,"focus")}else return c.fn.qtip.log.error.call(f,2,c.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"focus");z=parseInt(f.elements.tooltip.css("z-index"));F=6E3+c("div.qtip[qtip]").length-1;if(!f.status.focused&&z!==F){z=f.beforeFocus.call(f,t);if(z===false)return f;c("div.qtip[qtip]").not(f.elements.tooltip).each(function(){if(c(this).qtip("api").status.rendered===true){A=parseInt(c(this).css("z-index"));typeof A=="number"&&
A>-1&&c(this).css({zIndex:parseInt(c(this).css("z-index"))-1});c(this).qtip("api").status.focused=false}});f.elements.tooltip.css({zIndex:F});f.status.focused=true;f.onFocus.call(f,t);c.fn.qtip.log.error.call(f,1,c.fn.qtip.constants.EVENT_FOCUSED,"focus")}return f},disable:function(t){if(!f.status.rendered)return c.fn.qtip.log.error.call(f,2,c.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"disable");if(t)if(f.status.disabled)c.fn.qtip.log.error.call(f,1,c.fn.qtip.constants.TOOLTIP_ALREADY_DISABLED,"disable");
else{f.status.disabled=true;c.fn.qtip.log.error.call(f,1,c.fn.qtip.constants.EVENT_DISABLED,"disable")}else if(f.status.disabled){f.status.disabled=false;c.fn.qtip.log.error.call(f,1,c.fn.qtip.constants.EVENT_ENABLED,"disable")}else c.fn.qtip.log.error.call(f,1,c.fn.qtip.constants.TOOLTIP_ALREADY_ENABLED,"disable");return f},destroy:function(){var t,z;if(f.beforeDestroy.call(f)===false)return f;if(f.status.rendered){f.options.show.when.target.unbind("mousemove.qtip",f.updatePosition);f.options.show.when.target.unbind("mouseout.qtip",
f.hide);f.options.show.when.target.unbind(f.options.show.when.event+".qtip");f.options.hide.when.target.unbind(f.options.hide.when.event+".qtip");f.elements.tooltip.unbind(f.options.hide.when.event+".qtip");f.elements.tooltip.unbind("mouseover.qtip",f.focus);f.elements.tooltip.remove()}else f.options.show.when.target.unbind(f.options.show.when.event+".qtip-create");if(typeof f.elements.target.data("qtip")=="object"){z=f.elements.target.data("qtip").interfaces;if(typeof z=="object"&&z.length>0)for(t=
0;t<z.length-1;t++)z[t].id==f.id&&z.splice(t,1)}delete c.fn.qtip.interfaces[f.id];if(typeof z=="object"&&z.length>0)f.elements.target.data("qtip").current=z.length-1;else f.elements.target.removeData("qtip");f.onDestroy.call(f);c.fn.qtip.log.error.call(f,1,c.fn.qtip.constants.EVENT_DESTROYED,"destroy");return f.elements.target},getPosition:function(){var t,z;if(!f.status.rendered)return c.fn.qtip.log.error.call(f,2,c.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getPosition");(t=f.elements.tooltip.css("display")!==
"none"?false:true)&&f.elements.tooltip.css({visiblity:"hidden"}).show();z=f.elements.tooltip.offset();t&&f.elements.tooltip.css({visiblity:"visible"}).hide();return z},getDimensions:function(){var t,z;if(!f.status.rendered)return c.fn.qtip.log.error.call(f,2,c.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getDimensions");(t=!f.elements.tooltip.is(":visible")?true:false)&&f.elements.tooltip.css({visiblity:"hidden"}).show();z={height:f.elements.tooltip.outerHeight(),width:f.elements.tooltip.outerWidth()};
t&&f.elements.tooltip.css({visiblity:"visible"}).hide();return z}})}function v(){var j,n,p,f;j=this;j.beforeRender.call(j);j.status.rendered=true;j.elements.tooltip='<div qtip="'+j.id+'" class="qtip '+(j.options.style.classes.tooltip||j.options.style)+'"style="display:none; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0;position:'+j.options.position.type+';">  <div class="qtip-wrapper" style="position:relative; overflow:hidden; text-align:left;">    <div class="qtip-contentWrapper" style="overflow:hidden;">       <div class="qtip-content '+
j.options.style.classes.content+'"></div></div></div></div>';j.elements.tooltip=c(j.elements.tooltip);j.elements.tooltip.appendTo(j.options.position.container);j.elements.tooltip.data("qtip",{current:0,interfaces:[j]});j.elements.wrapper=j.elements.tooltip.children("div:first");j.elements.contentWrapper=j.elements.wrapper.children("div:first").css({background:j.options.style.background});j.elements.content=j.elements.contentWrapper.children("div:first").css(K(j.options.style));c.browser.msie&&j.elements.wrapper.add(j.elements.content).css({zoom:1});
j.options.hide.when.event=="unfocus"&&j.elements.tooltip.attr("unfocus",true);typeof j.options.style.width.value=="number"&&j.updateWidth();if(c("<canvas>").get(0).getContext||c.browser.msie){j.options.style.border.radius>0?m.call(j):j.elements.contentWrapper.css({border:j.options.style.border.width+"px solid "+j.options.style.border.color});j.options.style.tip.corner!==false&&D.call(j)}else{j.elements.contentWrapper.css({border:j.options.style.border.width+"px solid "+j.options.style.border.color});
j.options.style.border.radius=0;j.options.style.tip.corner=false;c.fn.qtip.log.error.call(j,2,c.fn.qtip.constants.CANVAS_VML_NOT_SUPPORTED,"render")}if(typeof j.options.content.text=="string"&&j.options.content.text.length>0||j.options.content.text.jquery&&j.options.content.text.length>0)n=j.options.content.text;else if(typeof j.elements.target.attr("title")=="string"&&j.elements.target.attr("title").length>0){n=j.elements.target.attr("title").replace("\\n","<br />");j.elements.target.attr("title",
"")}else if(typeof j.elements.target.attr("alt")=="string"&&j.elements.target.attr("alt").length>0){n=j.elements.target.attr("alt").replace("\\n","<br />");j.elements.target.attr("alt","")}else{n=" ";c.fn.qtip.log.error.call(j,1,c.fn.qtip.constants.NO_VALID_CONTENT,"render")}j.options.content.title.text!==false&&N.call(j);j.updateContent(n);G.call(j);j.options.show.ready===true&&j.show();if(j.options.content.url!==false){n=j.options.content.url;p=j.options.content.data;f=j.options.content.method||
"get";j.loadContent(n,p,f)}j.onRender.call(j);c.fn.qtip.log.error.call(j,1,c.fn.qtip.constants.EVENT_RENDERED,"render")}function m(){var j,n,p,f,t,z,F,A,I;j=this;j.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove();p=j.options.style.border.width;f=j.options.style.border.radius;t=j.options.style.border.color||j.options.style.tip.color;z=Y(f);F={};for(n in z){F[n]='<div rel="'+n+'" style="'+(n.search(/Left/)!==-1?"left":"right")+":0; position:absolute; height:"+f+"px; width:"+f+'px; overflow:hidden; line-height:0.1px; font-size:1px">';
if(c("<canvas>").get(0).getContext)F[n]+='<canvas height="'+f+'" width="'+f+'" style="vertical-align: top"></canvas>';else if(c.browser.msie){A=f*2+3;F[n]+='<v:arc stroked="false" fillcolor="'+t+'" startangle="'+z[n][0]+'" endangle="'+z[n][1]+'" style="width:'+A+"px; height:"+A+"px; margin-top:"+(n.search(/bottom/)!==-1?-2:-1)+"px; margin-left:"+(n.search(/Right/)!==-1?z[n][2]-3.5:-1)+'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>'}F[n]+="</div>"}n=j.getDimensions().width-
Math.max(p,f)*2;n='<div class="qtip-betweenCorners" style="height:'+f+"px; width:"+n+"px; overflow:hidden; background-color:"+t+'; line-height:0.1px; font-size:1px;">';j.elements.wrapper.prepend('<div class="qtip-borderTop" dir="ltr" style="height:'+f+"px; margin-left:"+f+'px; line-height:0.1px; font-size:1px; padding:0;">'+F.topLeft+F.topRight+n);j.elements.wrapper.append('<div class="qtip-borderBottom" dir="ltr" style="height:'+f+"px; margin-left:"+f+'px; line-height:0.1px; font-size:1px; padding:0;">'+
F.bottomLeft+F.bottomRight+n);if(c("<canvas>").get(0).getContext)j.elements.wrapper.find("canvas").each(function(){I=z[c(this).parent("[rel]:first").attr("rel")];s.call(j,c(this),I,f,t)});else c.browser.msie&&j.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>');F=Math.max(f,f+(p-f));p=Math.max(p-f,0);j.elements.contentWrapper.css({border:"0px solid "+t,borderWidth:p+"px "+F+"px"})}function s(j,n,p,f){j=j.get(0).getContext("2d");j.fillStyle=f;j.beginPath();j.arc(n[0],
n[1],p,0,Math.PI*2,false);j.fill()}function D(j){var n,p,f,t,z;n=this;n.elements.tip!==null&&n.elements.tip.remove();p=n.options.style.tip.color||n.options.style.border.color;if(n.options.style.tip.corner!==false){if(!j)j=n.options.style.tip.corner;f=W(j,n.options.style.tip.size.width,n.options.style.tip.size.height);n.elements.tip='<div class="'+n.options.style.classes.tip+'" dir="ltr" rel="'+j+'" style="position:absolute; height:'+n.options.style.tip.size.height+"px; width:"+n.options.style.tip.size.width+
'px; margin:0 auto; line-height:0.1px; font-size:1px;">';if(c("<canvas>").get(0).getContext)n.elements.tip+='<canvas height="'+n.options.style.tip.size.height+'" width="'+n.options.style.tip.size.width+'"></canvas>';else if(c.browser.msie){t=n.options.style.tip.size.width+","+n.options.style.tip.size.height;z="m"+f[0][0]+","+f[0][1];z+=" l"+f[1][0]+","+f[1][1];z+=" "+f[2][0]+","+f[2][1];z+=" xe";n.elements.tip+='<v:shape fillcolor="'+p+'" stroked="false" filled="true" path="'+z+'" coordsize="'+t+
'" style="width:'+n.options.style.tip.size.width+"px; height:"+n.options.style.tip.size.height+"px; line-height:0.1px; display:inline-block; behavior:url(#default#VML); vertical-align:"+(j.search(/top/)!==-1?"bottom":"top")+'"></v:shape>';n.elements.tip+='<v:image style="behavior:url(#default#VML);"></v:image>';n.elements.contentWrapper.css("position","relative")}n.elements.tooltip.prepend(n.elements.tip+"</div>");n.elements.tip=n.elements.tooltip.find("."+n.options.style.classes.tip).eq(0);c("<canvas>").get(0).getContext&&
J.call(n,n.elements.tip.find("canvas:first"),f,p);j.search(/top/)!==-1&&c.browser.msie&&parseInt(c.browser.version.charAt(0))===6&&n.elements.tip.css({marginTop:-4});S.call(n,j)}}function J(j,n,p){j=j.get(0).getContext("2d");j.fillStyle=p;j.beginPath();j.moveTo(n[0][0],n[0][1]);j.lineTo(n[1][0],n[1][1]);j.lineTo(n[2][0],n[2][1]);j.fill()}function S(j){var n,p;n=this;if(!(n.options.style.tip.corner===false||!n.elements.tip)){j||(j=n.elements.tip.attr("rel"));p=positionAdjust=c.browser.msie?1:0;n.elements.tip.css(j.match(/left|right|top|bottom/)[0],
0);if(j.search(/top|bottom/)!==-1){if(c.browser.msie)positionAdjust=parseInt(c.browser.version.charAt(0))===6?j.search(/top/)!==-1?-3:1:j.search(/top/)!==-1?1:2;if(j.search(/Middle/)!==-1)n.elements.tip.css({left:"50%",marginLeft:-(n.options.style.tip.size.width/2)});else if(j.search(/Left/)!==-1)n.elements.tip.css({left:n.options.style.border.radius-p});else j.search(/Right/)!==-1&&n.elements.tip.css({right:n.options.style.border.radius+p});j.search(/top/)!==-1?n.elements.tip.css({top:-positionAdjust}):
n.elements.tip.css({bottom:positionAdjust})}else if(j.search(/left|right/)!==-1){if(c.browser.msie)positionAdjust=parseInt(c.browser.version.charAt(0))===6?1:j.search(/left/)!==-1?1:2;if(j.search(/Middle/)!==-1)n.elements.tip.css({top:"50%",marginTop:-(n.options.style.tip.size.height/2)});else if(j.search(/Top/)!==-1)n.elements.tip.css({top:n.options.style.border.radius-p});else j.search(/Bottom/)!==-1&&n.elements.tip.css({bottom:n.options.style.border.radius+p});j.search(/left/)!==-1?n.elements.tip.css({left:-positionAdjust}):
n.elements.tip.css({right:positionAdjust})}j="padding-"+j.match(/left|right|top|bottom/)[0];p=n.options.style.tip.size[j.search(/left|right/)!==-1?"width":"height"];n.elements.tooltip.css("padding",0);n.elements.tooltip.css(j,p);if(c.browser.msie&&parseInt(c.browser.version.charAt(0))==6){j=parseInt(n.elements.tip.css("margin-top"))||0;j+=parseInt(n.elements.content.css("margin-top"))||0;n.elements.tip.css({marginTop:j})}}}function N(){var j=this;j.elements.title!==null&&j.elements.title.remove();
j.elements.title=c('<div class="'+j.options.style.classes.title+'">').css(K(j.options.style.title,true)).css({zoom:c.browser.msie?1:0}).prependTo(j.elements.contentWrapper);j.options.content.title.text&&j.updateTitle.call(j,j.options.content.title.text);if(j.options.content.title.button!==false&&typeof j.options.content.title.button=="string")j.elements.button=c('<a class="'+j.options.style.classes.button+'" style="float:right; position: relative"></a>').css(K(j.options.style.button,true)).html(j.options.content.title.button).prependTo(j.elements.title).click(function(n){j.status.disabled||
j.hide(n)})}function G(){function j(A){if(p.status.disabled!==true){if(p.options.hide.when.event=="inactive"){c(z).each(function(){t.bind(this+".qtip-inactive",F);p.elements.content.bind(this+".qtip-inactive",F)});F()}clearTimeout(p.timers.show);clearTimeout(p.timers.hide);p.timers.show=setTimeout(function(){p.show(A)},p.options.show.delay)}}function n(A){if(p.status.disabled!==true){if(p.options.hide.fixed===true&&p.options.hide.when.event.search(/mouse(out|leave)/i)!==-1&&c(A.relatedTarget).parents("div.qtip[qtip]").length>
0){A.stopPropagation();A.preventDefault();clearTimeout(p.timers.hide);return false}clearTimeout(p.timers.show);clearTimeout(p.timers.hide);p.elements.tooltip.stop(true,true);p.timers.hide=setTimeout(function(){p.hide(A)},p.options.hide.delay)}}var p,f,t,z;p=this;f=p.options.show.when.target;t=p.options.hide.when.target;if(p.options.hide.fixed)t=t.add(p.elements.tooltip);if(p.options.hide.when.event=="inactive"){z=["click","dblclick","mousedown","mouseup","mousemove","mouseout","mouseenter","mouseleave",
"mouseover"];function F(A){if(p.status.disabled!==true){clearTimeout(p.timers.inactive);p.timers.inactive=setTimeout(function(){c(z).each(function(){t.unbind(this+".qtip-inactive");p.elements.content.unbind(this+".qtip-inactive")});p.hide(A)},p.options.hide.delay)}}}else p.options.hide.fixed===true&&p.elements.tooltip.bind("mouseover.qtip",function(){p.status.disabled!==true&&clearTimeout(p.timers.hide)});if(p.options.show.when.target.add(p.options.hide.when.target).length===1&&p.options.show.when.event==
p.options.hide.when.event&&p.options.hide.when.event!=="inactive"||p.options.hide.when.event=="unfocus"){p.cache.toggle=0;f.bind(p.options.show.when.event+".qtip",function(A){p.cache.toggle==0?j(A):n(A)})}else{f.bind(p.options.show.when.event+".qtip",j);p.options.hide.when.event!=="inactive"&&t.bind(p.options.hide.when.event+".qtip",n)}p.options.position.type.search(/(fixed|absolute)/)!==-1&&p.elements.tooltip.bind("mouseover.qtip",p.focus);p.options.position.target==="mouse"&&p.options.position.type!==
"static"&&f.bind("mousemove.qtip",function(A){p.cache.mouse={x:A.pageX,y:A.pageY};p.status.disabled===false&&p.options.position.adjust.mouse===true&&p.options.position.type!=="static"&&p.elements.tooltip.css("display")!=="none"&&p.updatePosition(A)})}function B(j,n,p){var f,t,z,F;f=this;if(p.corner=="center")return n.position;t=c.extend({},j);F={x:false,y:false};z={left:t.left<c.fn.qtip.cache.screen.scroll.left,right:t.left+p.dimensions.width+2>=c.fn.qtip.cache.screen.width+c.fn.qtip.cache.screen.scroll.left,
top:t.top<c.fn.qtip.cache.screen.scroll.top,bottom:t.top+p.dimensions.height+2>=c.fn.qtip.cache.screen.height+c.fn.qtip.cache.screen.scroll.top};z={left:z.left&&(p.corner.search(/right/i)!=-1||p.corner.search(/right/i)==-1&&!z.right),right:z.right&&(p.corner.search(/left/i)!=-1||p.corner.search(/left/i)==-1&&!z.left),top:z.top&&p.corner.search(/top/i)==-1,bottom:z.bottom&&p.corner.search(/bottom/i)==-1};if(z.left){t.left=f.options.position.target!=="mouse"?n.position.left+n.dimensions.width:f.cache.mouse.x;
F.x="Left"}else if(z.right){t.left=f.options.position.target!=="mouse"?n.position.left-p.dimensions.width:f.cache.mouse.x-p.dimensions.width;F.x="Right"}if(z.top){t.top=f.options.position.target!=="mouse"?n.position.top+n.dimensions.height:f.cache.mouse.y;F.y="top"}else if(z.bottom){t.top=f.options.position.target!=="mouse"?n.position.top-p.dimensions.height:f.cache.mouse.y-p.dimensions.height;F.y="bottom"}if(t.left<0){t.left=j.left;F.x=false}if(t.top<0){t.top=j.top;F.y=false}if(f.options.style.tip.corner!==
false){t.corner=new String(p.corner);if(F.x!==false)t.corner=t.corner.replace(/Left|Right|Middle/,F.x);if(F.y!==false)t.corner=t.corner.replace(/top|bottom/,F.y);t.corner!==f.elements.tip.attr("rel")&&D.call(f,t.corner)}return t}function K(j,n){var p;j=c.extend(true,{},j);for(p in j)if(n===true&&p.search(/(tip|classes)/i)!==-1)delete j[p];else!n&&p.search(/(width|border|tip|title|classes|user)/i)!==-1&&delete j[p];return j}function H(j){if(typeof j.tip!=="object")j.tip={corner:j.tip};if(typeof j.tip.size!==
"object")j.tip.size={width:j.tip.size,height:j.tip.size};if(typeof j.border!=="object")j.border={width:j.border};if(typeof j.width!=="object")j.width={value:j.width};if(typeof j.width.max=="string")j.width.max=parseInt(j.width.max.replace(/([0-9]+)/i,"$1"));if(typeof j.width.min=="string")j.width.min=parseInt(j.width.min.replace(/([0-9]+)/i,"$1"));if(typeof j.tip.size.x=="number"){j.tip.size.width=j.tip.size.x;delete j.tip.size.x}if(typeof j.tip.size.y=="number"){j.tip.size.height=j.tip.size.y;delete j.tip.size.y}return j}
function e(){var j,n,p;j=this;p=[true,{}];for(n=0;n<arguments.length;n++)p.push(arguments[n]);for(n=[c.extend.apply(c,p)];typeof n[0].name=="string";)n.unshift(H(c.fn.qtip.styles[n[0].name]));n.unshift(true,{classes:{tooltip:"qtip-"+(arguments[0].name||"defaults")}},c.fn.qtip.styles.defaults);n=c.extend.apply(c,n);p=c.browser.msie?1:0;n.tip.size.width+=p;n.tip.size.height+=p;if(n.tip.size.width%2>0)n.tip.size.width+=1;if(n.tip.size.height%2>0)n.tip.size.height+=1;if(n.tip.corner===true)n.tip.corner=
j.options.position.corner.tooltip==="center"?false:j.options.position.corner.tooltip;return n}function W(j,n,p){n={bottomRight:[[0,0],[n,p],[n,0]],bottomLeft:[[0,0],[n,0],[0,p]],topRight:[[0,p],[n,0],[n,p]],topLeft:[[0,0],[0,p],[n,p]],topMiddle:[[0,p],[n/2,0],[n,p]],bottomMiddle:[[0,0],[n,0],[n/2,p]],rightMiddle:[[0,0],[n,p/2],[0,p]],leftMiddle:[[n,0],[n,p],[0,p/2]]};n.leftTop=n.bottomRight;n.rightTop=n.bottomLeft;n.leftBottom=n.topRight;n.rightBottom=n.topLeft;return n[j]}function Y(j){var n;if(c("<canvas>").get(0).getContext)n=
{topLeft:[j,j],topRight:[0,j],bottomLeft:[j,0],bottomRight:[0,0]};else if(c.browser.msie)n={topLeft:[-90,90,0],topRight:[-90,90,-j],bottomLeft:[90,270,0],bottomRight:[90,270,-j]};return n}function V(){var j,n;j=this;n=j.getDimensions();j.elements.bgiframe=j.elements.wrapper.prepend('<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:false" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=\'0\'); border: 1px solid red; height:'+n.height+"px; width:"+
n.width+'px" />').children(".qtip-bgiframe:first")}c.fn.qtip=function(j,n){var p,f,t,z,F,A,I,M;if(typeof j=="string"){typeof c(this).data("qtip")!=="object"&&c.fn.qtip.log.error.call(self,1,c.fn.qtip.constants.NO_TOOLTIP_PRESENT,false);if(j=="api")return c(this).data("qtip").interfaces[c(this).data("qtip").current];else if(j=="interfaces")return c(this).data("qtip").interfaces}else{j||(j={});if(typeof j.content!=="object"||j.content.jquery&&j.content.length>0)j.content={text:j.content};if(typeof j.content.title!==
"object")j.content.title={text:j.content.title};if(typeof j.position!=="object")j.position={corner:j.position};if(typeof j.position.corner!=="object")j.position.corner={target:j.position.corner,tooltip:j.position.corner};if(typeof j.show!=="object")j.show={when:j.show};if(typeof j.show.when!=="object")j.show.when={event:j.show.when};if(typeof j.show.effect!=="object")j.show.effect={type:j.show.effect};if(typeof j.hide!=="object")j.hide={when:j.hide};if(typeof j.hide.when!=="object")j.hide.when={event:j.hide.when};
if(typeof j.hide.effect!=="object")j.hide.effect={type:j.hide.effect};if(typeof j.style!=="object")j.style={name:j.style};j.style=H(j.style);z=c.extend(true,{},c.fn.qtip.defaults,j);z.style=e.call({options:z},z.style);z.user=c.extend(true,{},j)}return c(this).each(function(){if(typeof j=="string"){A=j.toLowerCase();t=c(this).qtip("interfaces");if(typeof t=="object")if(n===true&&A=="destroy")for(;t.length>0;)t[t.length-1].destroy();else{if(n!==true)t=[c(this).qtip("api")];for(p=0;p<t.length;p++)if(A==
"destroy")t[p].destroy();else if(t[p].status.rendered===true)if(A=="show")t[p].show();else if(A=="hide")t[p].hide();else if(A=="focus")t[p].focus();else if(A=="disable")t[p].disable(true);else A=="enable"&&t[p].disable(false)}}else{I=c.extend(true,{},z);I.hide.effect.length=z.hide.effect.length;I.show.effect.length=z.show.effect.length;if(I.position.container===false)I.position.container=c(document.body);if(I.position.target===false)I.position.target=c(this);if(I.show.when.target===false)I.show.when.target=
c(this);if(I.hide.when.target===false)I.hide.when.target=c(this);f=c.fn.qtip.interfaces.length;for(p=0;p<f;p++)if(typeof c.fn.qtip.interfaces[p]=="undefined"){f=p;break}F=new u(c(this),I,f);c.fn.qtip.interfaces[f]=F;if(typeof c(this).data("qtip")=="object"){if(typeof c(this).attr("qtip")==="undefined")c(this).data("qtip").current=c(this).data("qtip").interfaces.length;c(this).data("qtip").interfaces.push(F)}else c(this).data("qtip",{current:0,interfaces:[F]});if(I.content.prerender===false&&I.show.when.event!==
false&&I.show.ready!==true)I.show.when.target.bind(I.show.when.event+".qtip-"+f+"-create",{qtip:f},function(ba){M=c.fn.qtip.interfaces[ba.data.qtip];M.options.show.when.target.unbind(M.options.show.when.event+".qtip-"+ba.data.qtip+"-create");M.cache.mouse={x:ba.pageX,y:ba.pageY};v.call(M);M.options.show.when.target.trigger(M.options.show.when.event)});else{F.cache.mouse={x:I.show.when.target.offset().left,y:I.show.when.target.offset().top};v.call(F)}}})};c(document).ready(function(){c.fn.qtip.cache=
{screen:{scroll:{left:c(window).scrollLeft(),top:c(window).scrollTop()},width:c(window).width(),height:c(window).height()}};var j;c(window).bind("resize scroll",function(n){clearTimeout(j);j=setTimeout(function(){if(n.type==="scroll")c.fn.qtip.cache.screen.scroll={left:c(window).scrollLeft(),top:c(window).scrollTop()};else{c.fn.qtip.cache.screen.width=c(window).width();c.fn.qtip.cache.screen.height=c(window).height()}for(i=0;i<c.fn.qtip.interfaces.length;i++){var p=c.fn.qtip.interfaces[i];if(p.status.rendered===
true&&(p.options.position.type!=="static"||p.options.position.adjust.scroll&&n.type==="scroll"||p.options.position.adjust.resize&&n.type==="resize"))p.updatePosition(n,true)}},100)});c(document).bind("mousedown.qtip",function(n){c(n.target).parents("div.qtip").length===0&&c(".qtip[unfocus]").each(function(){var p=c(this).qtip("api");c(this).is(":visible")&&!p.status.disabled&&c(n.target).add(p.elements.target).length>1&&p.hide(n)})})});c.fn.qtip.interfaces=[];c.fn.qtip.log={error:function(){return this}};
c.fn.qtip.constants={};c.fn.qtip.defaults={content:{prerender:false,text:false,url:false,data:null,title:{text:false,button:false}},position:{target:false,corner:{target:"bottomRight",tooltip:"topLeft"},adjust:{x:0,y:0,mouse:true,screen:false,scroll:true,resize:true},type:"absolute",container:false},show:{when:{target:false,event:"mouseover"},effect:{type:"fade",length:100},delay:140,solo:false,ready:false},hide:{when:{target:false,event:"mouseout"},effect:{type:"fade",length:100},delay:0,fixed:false},
api:{beforeRender:function(){},onRender:function(){},beforePositionUpdate:function(){},onPositionUpdate:function(){},beforeShow:function(){},onShow:function(){},beforeHide:function(){},onHide:function(){},beforeContentUpdate:function(){},onContentUpdate:function(){},beforeContentLoad:function(){},onContentLoad:function(){},beforeTitleUpdate:function(){},onTitleUpdate:function(){},beforeDestroy:function(){},onDestroy:function(){},beforeFocus:function(){},onFocus:function(){}}};c.fn.qtip.styles={defaults:{background:"white",
color:"#111",overflow:"hidden",textAlign:"left",width:{min:0,max:250},padding:"5px 9px",border:{width:1,radius:0,color:"#d3d3d3"},tip:{corner:false,color:false,size:{width:13,height:13},opacity:1},title:{background:"#e1e1e1",fontWeight:"bold",padding:"7px 12px"},button:{cursor:"pointer"},classes:{target:"",tip:"qtip-tip",title:"qtip-title",button:"qtip-button",content:"qtip-content",active:"qtip-active"}},cream:{border:{width:3,radius:0,color:"#F9E98E"},title:{background:"#F0DE7D",color:"#A27D35"},
background:"#FBF7AA",color:"#A27D35",classes:{tooltip:"qtip-cream"}},light:{border:{width:3,radius:0,color:"#E2E2E2"},title:{background:"#f1f1f1",color:"#454545"},background:"white",color:"#454545",classes:{tooltip:"qtip-light"}},dark:{border:{width:3,radius:0,color:"#303030"},title:{background:"#404040",color:"#f3f3f3"},background:"#505050",color:"#f3f3f3",classes:{tooltip:"qtip-dark"}},red:{border:{width:3,radius:0,color:"#CE6F6F"},title:{background:"#f28279",color:"#9C2F2F"},background:"#F79992",
color:"#9C2F2F",classes:{tooltip:"qtip-red"}},green:{border:{width:3,radius:0,color:"#A9DB66"},title:{background:"#b9db8c",color:"#58792E"},background:"#CDE6AC",color:"#58792E",classes:{tooltip:"qtip-green"}},blue:{border:{width:3,radius:0,color:"#ADD9ED"},title:{background:"#D0E9F5",color:"#5E99BD"},background:"#E5F6FE",color:"#4D9FBF",classes:{tooltip:"qtip-blue"}}}})(jQuery);jQuery.cookie=function(c,u,v){if(typeof u!="undefined"){v=v||{};if(u===null){u="";v.expires=-1}var m="";if(v.expires&&(typeof v.expires=="number"||v.expires.toUTCString)){if(typeof v.expires=="number"){m=new Date;m.setTime(m.getTime()+v.expires*24*60*60*1E3)}else m=v.expires;m="; expires="+m.toUTCString()}var s=v.path?"; path="+v.path:"",D=v.domain?"; domain="+v.domain:"";v=v.secure?"; secure":"";document.cookie=[c,"=",encodeURIComponent(u),m,s,D,v].join("")}else{u=null;if(document.cookie&&document.cookie!=
""){v=document.cookie.split(";");for(m=0;m<v.length;m++){s=jQuery.trim(v[m]);if(s.substring(0,c.length+1)==c+"="){u=decodeURIComponent(s.substring(c.length+1));break}}}return u}};$(document).ready(function(){function c(){G=true;$.cookie("pagetimelimit","test",{expires:1/144});var B="auction_"+$(this).attr("title"),K=$("#"+B+" .product-bt"),H=$("#"+B+" .bid-loading"),e=$("#"+B+" .bid-message"),W=$("#cliic-balance");K.hide(1);H.show(1);$.ajax({url:$(this).attr("href")+"/"+Math.random(),dataType:"json",success:function(Y){Y.Auction.success&&W.text()>0&&W.html(W.text()-1);e.html(Y.Auction.message).show(1).animate({opacity:1},2500).hide(1);$("#infobox").css("background-color",
"#43aad0");Y.Auction.message2?$("#infobox").html(Y.Auction.message2).show(1).animate({opacity:1},3500).hide(1):$("#infobox").html(Y.Auction.message).show(1).animate({opacity:1},3500).hide(1);H.hide(1);G=false},error:function(){}});return false}function u(){$.cookie("pagetimelimit","test",{expires:1/144});$.ajax({url:$(this).attr("href")+"/"+Math.random(),dataType:"json",success:function(B){$("#infobox").css("background-color","#43aad0");$("#infobox").html(B.message).show(1).animate({opacity:1},3500).hide(1);
$("#cliicwatch_"+B.auction_id).html(B.url);$(".bidwatch-button-delete").click(v)},error:function(){}});return false}function v(){$.cookie("pagetimelimit","test",{expires:1/144});$.ajax({url:$(this).attr("href")+"/"+Math.random(),dataType:"json",success:function(B){$("#infobox").css("background-color","#43aad0");$("#infobox").html(B.message).show(1).animate({opacity:1},3500).hide(1);$("#cliicwatch_"+B.auction_id).html(B.url);$(".bidwatch-button-add").click(u)},error:function(){}});return false}fetchTimestamp=
function(){return parseInt($("#timestamp").text())};var m=10;if($("#auctionupdatefrequency"))m=parseInt($("#auctionupdatefrequency").text());var s=$("#userid").text()!=""?parseInt($("#userid").text()):0;m*=1E3;var D=[],J="",S=[];$(".auction-item").each(function(){var B=$(this).attr("id"),K=$(this).attr("title"),H=$("#"+B+" .countdown");if(H)if(H.attr("title")>fetchTimestamp()||H.attr("title")=="-62169984561"){D.push(B);J=J+B+"="+K+"&"}S[K]=false});var N=new Date,G=false;if(apeActive){if(D.length>
0)ApeCliic=new apeCliic({channels:D,winalertbox:S,userid:s,cliic:c,currency:"&euro;",clicked:G})}else setInterval(function(){if(J){getStatusUrl=$("#bid-history").length?"/getstatus.php?histories=yes&time="+N.getTime()+"&"+Math.random():"/getstatus.php?time="+N.getTime()+"&"+Math.random();$.ajax({url:getStatusUrl,dataType:"json",type:"POST",timeout:2999,global:false,data:J,success:function(B){$.each(B,function(K,H){K=$("#"+H.Auction.element).attr("title");if(S[K]==false&&H.Auction.end_time!="-62169984561"){var e=
$("#"+H.Auction.element),W=$("#"+H.Auction.element+" .countdown").attr("title"),Y=$("#"+H.Auction.element+" .bid-bidder"),V=$("#"+H.Auction.element+" .countdown"),j=$("#"+H.Auction.element+" .product-meta"),n=$("#"+H.Auction.element+" .closes-on"),p=$("#"+H.Auction.element+" .product-bt"),f=$("#"+H.Auction.element+" .bid-info"),t=$("#"+H.Auction.element+" .bid-price"),z=$("#"+H.Auction.element+" .auction-title").html();if(n.text().substring(0,13)=="next_auctions")if(parseInt(n.attr("title"))>0)if(H.Auction.end_time-
H.Auction.serverTimestamp<parseInt(n.attr("title"))&&H.Auction.end_time!="-62169984561")if(H.Auction.peak_only==0||H.Auction.peak_only==1&&H.Auction.isPeakNow==1){K=e.attr("title");if($("#expert-page").length==0)if(n.text().substring(14,15)=="0"){$("#"+H.Auction.element).remove();$.ajax({url:"/auctions/auction/"+K+"/"+Math.random(),success:function(I){$("#products").append(I);$(".bid-button").click(c);$("#infobox").css("background-color","#f18d1b");$("#infobox").html("Le produit "+z+" vient d'\ufffdtre mis en jeu !").show(1).animate({opacity:1},
3500).hide(1)},error:function(){}})}else{if($(".star-product .product-bt").attr("title")=="ended"||$(".star-product .product-bt").text()==""){$("#"+H.Auction.element).remove();$(".star-product").remove();$.ajax({url:"/auctions/auctionstar/"+K+"/"+Math.random(),success:function(I){$("#prodstar").append(I);$(".bid-button").click(c);$("#infobox").css("background-color","#f18d1b");$("#infobox").html("Le produit "+z+" vient d'\ufffdtre mis en jeu !").show(1).animate({opacity:1},3500).hide(1)},error:function(){}})}}else{$("#"+
H.Auction.element).remove();$.ajax({url:"/auctions/auctionexpert/"+Math.random(),success:function(I){$("#table-products").html(I);$(".bid-button").click(c);$("#infobox").css("background-color","#f18d1b");$("#infobox").html("Le produit "+z+" vient d'\ufffdtre mis en jeu !").show(1).animate({opacity:1},3500).hide(1)},error:function(){}})}}if(Y.text()!=H.LastBid.username){H.LastBid.username!="-----"?Y.html(H.LastBid.username+" a la main"):Y.html("Pas encore de cliics");if(H.LastBid.id==s){j.css("background-position",
"bottom left");p.hide(1);f.show(1)}else{j.css("background-position","top left");f.hide(1);G||p.show(1)}}if(W!=H.Auction.end_time){V.attr("title",H.Auction.end_time);t.html(H.Auction.start_price);$("#no-bid-history").remove();if(document.getElementById("bid-history")){$("#bid-history dl").text()&&$("#bid-history dl").remove();var F=parseFloat(H.Auction.start_price.replace(",","."))+0.01;$.each(H.Histories,function(I,M){I=I+1;F=Math.round((F-0.01)*100)/100;M='<dl><dd class="number">'+I+'</dd><dt class="name">'+
M.User.username+"</dt><dd><span>Valeur apr\ufffds Cliic : </span>"+F.toString().replace(".",",")+" \ufffd </dd><dd><span>Heure du Cliic : </span>"+M.Bid.created+"</dd><dd><span>Mode du Cliic : </span>"+M.Bid.description+"</dd></dl>";$("#bid-history").append(M)});n.text(H.Auction.closes_on);$("#bid-savings-price").html(H.Auction.savings.price);$("#bid-savings-percentage").html(H.Auction.savings.percentage.toString().substr(0,4).replace(".",",")+"%")}V.animate({color:"#E30000"},500).animate({color:"white"},
1E3);$("#"+H.Auction.element+" .bid-value").animate({color:"#E30000"},500).animate({color:"white"},1E3);$("#"+H.Auction.element+" .bid-value-expert").animate({color:"#E30000"},500).animate({color:"#1a1c21"},1E3);$("#"+H.Auction.element+" .bid-bidder").animate({color:"#E30000"},500).animate({color:"#1a1c21"},1E3)}if(H.Auction.peak_only==1&&H.Auction.isPeakNow==0){V.text("Pause");p.hide(1)}else if(H.Auction.end_time-H.Auction.serverTimestamp>0){V.html(H.Auction.end_time_string);H.Auction.time_left<=
15?V.css("color","#DF0D0D"):V.removeAttr("style")}if(H.Auction.time_left<1&&H.Auction.closed==1){V.css("color","#413D32");j.css("background-position","center left");if(H.LastBid.id==s){if(S[K]==false){V.text("C'est gagn\ufffd");var A="Vous avez remport\ufffd le produit "+z+" !";f.css("background-position","bottom left")}}else if(S[K]==false){V.text("C'est fini");A="Le produit "+z+" a \ufffdt\ufffd remport\ufffd !";f.css("background-position","bottom left")}V.css("color","#413D32");f.css("background-position",
"bottom left");p.hide(1);f.show(1);p.attr("title","ended");$("#infobox").css("background-color","#C1CC16");$("#infobox").html(A).show(1).animate({opacity:1},3500).hide(1);S[K]=true}else H.Auction.time_left==1&&H.Auction.closed==0&&V.text("V\ufffdrification")}})},error:function(){}})}},m);$(".bid-button").click(c);$(".productImageThumb").length&&$(".productImageThumb").click(function(){$(".productImageMax").fadeOut("fast").attr("src",$(this).attr("href")).fadeIn("fast");return false});$("#CategoryId").length&&
$("#CategoryId").change(function(){document.location="/categories/view/"+$("#CategoryId option:selected").attr("value")});$("#myselectbox").length&&$("#myselectbox").change(function(){document.location="/categories/view/"+$("#myselectbox option:selected").attr("value")});$("#select-all").click(function(){$("form :checkbox").each(function(){this.checked=true})});$("#select-none").click(function(){$("form :checkbox").each(function(){this.checked=false})});$("#footer").ifixpng();$("#ReferralIndexForm").submit(function(){$("#loading").jOverlay({color:"black",
opacity:0.7,bgClickToClose:false,css:{padding:"10px 25px 10px 25px",border:"2px solid #ddd",background:"#fff"}})});$("#ReferralAutoForm").submit(function(){$("#loading").jOverlay({color:"black",opacity:0.7,bgClickToClose:false,css:{padding:"10px 25px 10px 25px",border:"2px solid #ddd",background:"#fff"}})});$("#ReferralImportContactsForm").submit(function(){$("#loading").jOverlay({color:"black",opacity:0.7,bgClickToClose:false,css:{padding:"10px 25px 10px 25px",border:"2px solid #ddd",background:"#fff"}})});
$(window).scroll(function(){$("#infobox").animate({top:$(window).scrollTop()+"px"},{queue:false,duration:100})});jQuery.browser.msie&&$(function(){$("#BidbutlerAuctionId").mouseover(function(){$(this).data("origWidth",$(this).css("width")).css("width","auto")}).blur(function(){$(this).css("width","130px")})});$("input[name='data[NewsletterSetting][frequency]']:radio").change(function(){$("input[name='data[NewsletterSetting][frequency]']:checked").val()==0?$("#desabo").show():$("#desabo").hide()});
$("input[name='paiement_pack']:radio, input[name='paiement_enc']:radio").click(function(){var B,K=this.name;B=K=="paiement_pack"?"/packages/buy/"+$("input[name='paiement_pack']:checked").val()+"/"+$("#package_id").text()+"/ajax":"/auctions/buy/"+$("input[name='paiement_enc']:checked").val()+"/"+$("#auction_id").text()+"/ajax";$.ajax({url:B,success:function(H){$("#paiement_form").html(H);$("#PaymentRequest").submit(function(){if(K=="paiement_pack")if($("#code").length>0){if($("#code").attr("value")==
"")return false;url_from="/packages/pending/"+$("#reference").attr("value")+"/"+$("#code").attr("value")}else url_from="/packages/pending/"+$("#reference").attr("value");else url_from="/auctions/pending/"+$("#reference").attr("value");var e=false;$.ajax({url:url_from,async:false,success:function(){e=true},error:function(){}});if(e)return true})},error:function(){}});if(this.id=="mode1"){$("#paypal").css("background-position","top left");$("#card").css("background-position","bottom left");$("#allopass").css("background-position",
"top left")}else if(this.id=="mode2"){$("#card").css("background-position","top left");$("#paypal").css("background-position","bottom left");$("#allopass").css("background-position","top left")}else if(this.id=="mode3"){$("#card").css("background-position","top left");$("#paypal").css("background-position","top left");$("#allopass").css("background-position","bottom left")}});$("#card, #paypal, #allopass").click(function(){$("#card, #paypal, #allopass").css("background-position","top left");$(this).css("background-position",
"bottom left")});$("img[tooltip]").each(function(){$(this).css("cursor","pointer");$(this).qtip({content:$(this).attr("tooltip"),position:{corner:{target:"topMiddle",tooltip:"bottomMiddle"}},style:{name:"dark",textAlign:"center",background:"#28261f",color:"#fff",padding:"2px 4px 2px 4px",width:{max:200,min:0},border:{width:0,radius:5,color:"#28261f"},tip:"bottomMiddle"}})});$(".bidwatch-button-add").click(u);$(".bidwatch-button-delete").click(v)});var apeCliic=function(c){this.winalertbox=c.winalertbox;this.clicked=c.clicked;this.userid=c.userid;this.cliic=c.cliic;this.currency=c.currency;this.nextTickFn=[];this.userid=c.userid;this.last_ut=this.ut=0;this.auctions=[];this.auctionsEl=[];this.endingAuctions=[];this.timeUpdating=false;var u=[];if(c.channels)for(var v=0;v<c.channels.length;v++){this.auctionsEl.push(c.channels[v]);u.push("*"+c.channels[v].substring(8))}this.load({channel:u,connectOptions:{}});this.addEvent("apeDisconnect",function(){clearInterval(this.timer);
$(".bid-button").hide(1);$(".auction-item").each(function(){var m=$(this).attr("id");(m=$("#"+m+" .countdown"))&&m.html("- - : - -")});this.disonnected=true});this.addEvent("apeReconnect",function(){});this.onError("004",function(){this.load({channel:u,connectOptions:{}})});this.addEvent("ready",function(){this.timeUpdating||this.startUpdateTime()});this.onRaw("peak",function(m){var s=m.data.pipe.properties;s.Auction.serverTimestamp=parseInt(m.time);s.Auction.end_time=parseInt(s.Auction.end_time);
this.auctions[s.Auction.id]=s;this.updateAuctions(s)});this.onRaw("channel",function(m){var s=m.data.pipe.properties;s.Auction.start_price=decodeURIComponent(s.Auction.start_price);s.Auction.serverTimestamp=parseInt(m.time);s.Auction.end_time=parseInt(s.Auction.end_time);this.auctions[s.Auction.id]=s;this.updateAuctions(s);if(document.getElementById("bid-history")&&s.Auction.history.length>0){m=this.currency;var D=$("#bid-history dl");if(D.length==0){$("#no-bid-history").remove();var J=s.Auction.LastBid.created.split(" ");
J=J[1].split(":");J='<dl><dd class="number">1</dd><dt class="name">'+s.LastBid.username+"</dt><dd><span>Valeur apr\u00e8s Cliic : </span>"+s.Auction.start_price+" </dd><dd><span>Heure du Cliic : </span>"+("Aujourd'hui, "+J[0]+":"+J[1])+"</dd><dd><span>Mode du Cliic : </span>"+s.LastBid.type+"</dd></dl>";$("#bid-history").append(J)}var S=s.Auction.start_price;S=parseFloat(s.Auction.start_price.replace(/[^,0-9]/g,"").replace(",","."))+0.01;if(D.length<s.Auction.history.length)for(var N=D.length;N<s.Auction.history.length;N++){el=
$(D[1]).clone();$("#bid-history h2").after(el)}D=$("#bid-history dl");for(N=0;N<s.Auction.history.length;N++){el=$(D[N]);el.children("dd.number");el.children("dt.name").text(s.Auction.history[N].username);el.find("span").each(function(B,K){K=$(K).parent().contents()[1];if(N!=0)if(B==1){B=s.Auction.history[N].created.split(" ");B=B[1].split(":");K.nodeValue="Aujourd'hui, "+B[0]+":"+B[1]}else if(B==2)K.nodeValue=s.Auction.history[N].type.replace("+"," ")})}D=$("#bid-history dl");D.each(function(B,K){el=
$(K);K=el.children("dd.number");S=Math.round((S-0.01)*100)/100;K.next().next().contents()[1].nodeValue=S+"\u20ac";K.text(B+1)});D=Math.floor(parseFloat($(".auction-item .price").text().replace(/[^,0-9]/g,"").replace(",",".")));J=parseFloat(s.Auction.start_price.replace(/[^,0-9]/g,"").replace(",","."));var G=D-J;$("#"+s.Auction.element+" .bid-price").html(decodeURIComponent(s.Auction.start_price));$("#bid-savings-price").html(G+m);$("#bid-savings-percentage").html(((D-J)*100/D).toString().substr(0,
4).replace(".",",")+"%")}if(this.disonnected){this.disonnected=false;this.last_ut=0;this.cliic=this.org_cliic;$(".bid-button").show(1);this.startUpdateTime()}});this.onRaw("lastseconds",function(m){this.endingAuctions[m.data.id]=true;clearInterval(this.timer);this.last_ut=0;this.startUpdateTime()});this.onRaw("verif",function(m){$("#auction_"+m.data.id+" .countdown").text("V\u00e9rification")});this.onRaw("auctionStart",function(m){var s=m.data;s.Auction.serverTimestamp=parseInt(m.time);s.Auction.end_time=
parseInt(s.Auction.end_time);this.updateAuctions(s)});this.onRaw("endAuction",function(m){var s=m.data;s.Auction.serverTimestamp=parseInt(m.time);s.Auction.end_time=parseInt(s.Auction.end_time);this.updateAuctions(s)});this.addEvent("onRaw",function(m){this.ut=m.time});this.onRaw("bid",function(m){m.data.Auction.serverTimestamp=parseInt(m.time);m.data.Auction.end_time=parseInt(m.data.Auction.end_time);this.auctions[m.data.Auction.id]=m.data;this.endingAuctions[m.data.Auction.id]&&delete this.endingAuctions[m.data.Auction.id];
this.updatePriceQueu.push(m.data);this.updatePrice();this.updateAuctions(m.data);this.updateAuctionsTime()})};apeCliic.prototype=new APE.Client;a=apeCliic.prototype;a.startUpdateTime=function(){this.timeUpdating=true;var c=this;this.timer=setInterval(function(){c.updateTime.apply(c)},100);this.updatePriceQueu=[]};
a.updatePrice=function(c){c=this.updatePriceQueu.shift();var u=this.currency;$("#"+c.Auction.element+" .countdown").attr("title");$("#"+c.Auction.element+" .countdown");$("#"+c.Auction.element+" .bid-price").html(decodeURIComponent(c.Auction.start_price));if(document.getElementById("bid-history")){var v=$("#bid-history dl");if(v.length==0){$("#no-bid-history").remove();var m=c.Auction.LastBid.created.split(" ");m=m[1].split(":");m='<dl><dd class="number">1</dd><dt class="name">'+c.LastBid.username+
"</dt><dd><span>Valeur apr\u00e8s Cliic : </span>"+c.Auction.start_price+" </dd><dd><span>Heure du Cliic : </span>"+("Aujourd'hui, "+m[0]+":"+m[1])+"</dd><dd><span>Mode du Cliic : </span>"+c.LastBid.type+"</dd></dl>";$("#bid-history").append(m)}var s=c.Auction.start_price;s=parseFloat(c.Auction.start_price.replace(/[^,0-9]/g,"").replace(",","."))+0.01;v.each(function(S,N){el=$(N);el.children("dd.number");if(S==4||v.length-1==S){if(v.length<5&&v.length-1==S)el=el.clone();$("#bid-history h2").after(el);
el.children("dt.name").text(c.LastBid.username);el.find("span").each(function(G,B){B=$(B).parent().contents()[1];if(G!=0)if(G==1){G=c.LastBid.created.split(" ");G=G[1].split(":");B.nodeValue="Aujourd'hui, "+G[0]+":"+G[1]}else if(G==2)B.nodeValue=c.LastBid.type.replace("+"," ")})}});v=$("#bid-history dl");v.each(function(S,N){el=$(N);N=el.children("dd.number");s=Math.round((s-0.01)*100)/100;N.next().next().contents()[1].nodeValue=" "+s+"\u20ac";N.text(S+1)});m=Math.floor(parseFloat($(".auction-item .price").text().replace(/[^,0-9]/g,
"").replace(",",".")));var D=parseFloat(c.Auction.start_price.replace(/[^,0-9]/g,"").replace(",",".")),J=m-D;$("#bid-savings-price").html(J+u);$("#bid-savings-percentage").html(((m-D)*100/m).toString().substr(0,4).replace(".",",")+"%")}this.updatePriceQueu.length>0&&this.updatePrice()};
a.getStringTime=function(c){now=this.ut;c=c-now;if(c<0)c=0;var u=Math.floor(c/86400);if(u<1)u="";else u+="d";c-=u*86400;u=Math.floor(c/3600);if(u<10)u="0"+u;c-=u*3600;u=Math.floor(c/60);if(u<10)u=u;c-=u*60;c=c;if(c<10)c="0"+c;return'<span class="min">'+u+'</span>min <span class="sec">'+c+"</span>s"};a.updateTime=function(){var c=new Date;c=c.getTime();var u=false;if(this.last_ut==0)this.last_ut=c-1;for(;c-this.last_ut>1;){u=true;this.last_ut+=1E3}if(u){this.updateAuctionsTime();this.ut++}};
a.updateAuctionsTime=function(){for(var c=false,u,v=0;v<this.auctionsEl.length;v++){u=this.auctionsEl[v];var m=$("#"+u+" .countdown");if(m.attr("closed")!=1&&m.attr("pause")!=1){var s=$("#"+u+" .countdown").attr("title");m.html(this.getStringTime(s));s=s-now;s<=15&&s>0?m.css("color","#DF0D0D"):m.removeAttr("style");if(!this.endingAuctions[u.substring(8)]&&s==6)c=true;s<1&&m.text("V\u00e9rification")}}c&&this.core.check()};
a.updateAuctions=function(c){var u=this.winalertbox,v=this.userid,m=this.cliic,s=this.clicked,D=$("#"+c.Auction.element).attr("title");if(u[D]==false&&c.Auction.end_time!="-62169984561"){var J=$("#"+c.Auction.element),S=$("#"+c.Auction.element+" .countdown").attr("title"),N=$("#"+c.Auction.element+" .bid-bidder"),G=$("#"+c.Auction.element+" .countdown"),B=$("#"+c.Auction.element+" .product-meta"),K=$("#"+c.Auction.element+" .closes-on"),H=$("#"+c.Auction.element+" .product-bt"),e=$("#"+c.Auction.element+
" .bid-info");$("#"+c.Auction.element+" .bid-price");var W=$("#"+c.Auction.element+" .auction-title").html();if(K.text().substring(0,13)=="next_auctions")if(parseInt(K.attr("title"))>0)if(c.Auction.end_time-c.Auction.serverTimestamp<=parseInt(K.attr("title"))&&c.Auction.end_time!="-62169987600")if(c.Auction.peak_only==0||c.Auction.peak_only==1&&c.Auction.isPeakNow==1){D=J.attr("title");if($("#expert-page").length==0)if(K.text().substring(14,15)=="0"){$("#"+c.Auction.element).remove();$.ajax({url:"/auctions/auction/"+
D+"/"+Math.random(),success:function(V){$("#products").append(V);$(".bid-button").click(m);$("#infobox").css("background-color","#f18d1b");$("#infobox").html("Le produit "+W+" vient d'\u00eatre mis en jeu !").show(1).animate({opacity:1},3500).hide(1);ApeCliic.updateAuctions(c)},error:function(){}})}else{if($(".star-product .product-bt").attr("title")=="ended"||$(".star-product .product-bt").text()==""){$("#"+c.Auction.element).remove();$(".star-product").remove();$.ajax({url:"/auctions/auctionstar/"+
D+"/"+Math.random(),success:function(V){$("#prodstar").append(V);$(".bid-button").click(m);$("#infobox").css("background-color","#f18d1b");$("#infobox").html("Le produit "+W+" vient d'\u00eatre mis en jeu !").show(1).animate({opacity:1},3500).hide(1);ApeCliic.updateAuctions(c)},error:function(){}})}}else{$("#"+c.Auction.element).remove();$.ajax({url:"/auctions/auctionexpert/"+Math.random(),success:function(V){$("#table-products").html(V);$(".bid-button").click(m);$("#infobox").css("background-color",
"#f18d1b");$("#infobox").html("Le produit "+W+" vient d'\u00eatre mis en jeu !").show(1).animate({opacity:1},3500).hide(1);for(var j in ApeCliic.auctions)ApeCliic.updateAuctions(ApeCliic.auctions[j])},error:function(){}})}}if(N.text()!=c.LastBid.username){c.LastBid.username!="-----"?N.html(c.LastBid.username+" a la main"):N.html("Pas encore de cliics");if(c.LastBid.id==v){B.css("background-position","bottom left");H.hide(1);e.show(1)}else{B.css("background-position","top left");e.hide(1);s||H.show(1)}}if(S!=
c.Auction.end_time){G.attr("title",c.Auction.end_time);G.animate({color:"#E30000"},500).animate({color:"white"},1E3);$("#"+c.Auction.element+" .bid-value").animate({color:"#E30000"},500).animate({color:"white"},1E3);$("#"+c.Auction.element+" .bid-value-expert").animate({color:"#E30000"},500).animate({color:"#1a1c21"},1E3);$("#"+c.Auction.element+" .bid-bidder").animate({color:"#E30000"},500).animate({color:"#1a1c21"},1E3)}if(c.Auction.peak_only==1&&c.Auction.isPeakNow==0){G.text("Pause");G.attr("pause",
1);H.hide(1)}else G.attr("pause",0);if(c.Auction.time_left<1&&c.Auction.closed==1){G.css("color","#413D32");B.css("background-position","center left");if(c.LastBid.id==v){if(u[D]==false){G.text("C'est gagn\u00e9");var Y="Vous avez remport\u00e9 le produit "+W+" !"}}else if(u[D]==false){G.html("C'est fini");Y="Le produit "+W+" a \u00e9t\u00e9 remport\u00e9 !"}G.attr("closed",1);G.css("color","#413D32");e.css("background-position","bottom left");H.hide(1);e.show(1);H.attr("title","ended");$("#infobox").css("background-color",
"#C1CC16");$("#infobox").html(Y).show(1).animate({opacity:1},3500).hide(1);u[D]=true}}};
