/*
 * jQuery clueTip plugin
 * Version 1.1  (2010-10-20)
 * @requires jQuery v1.3+
 *
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */
/*
 *
 * Full list of options/settings can be found at the bottom of this file and at http://plugins.learningjquery.com/cluetip/
 *
 * Examples can be found at http://plugins.learningjquery.com/cluetip/demo/
 *
*/
(function(a){a.cluetip={version:"1.1pre"};var b,c,d,e,f,g,h,i,j="appendTo",k="body",l="ui-widget ui-widget-content ui-cluetip";a.fn.cluetip=function(m,n){function q(b,c){var d=b.dropShadow&&b.dropShadowSteps?+b.dropShadowSteps:0;if(a.support.boxShadow){var e=d===0?"0 0 ":"1px 1px ";return a("#cluetip").css(a.support.boxShadow,e+d+"px rgba(0,0,0,0.5)"),!1}var f=a("#cluetip .cluetip-drop-shadow");if(d==f.length)return f;f.remove();var g=[];for(var h=0;h<d;)g[h++]='<div style="top:'+h+"px;left:"+h+'px;"></div>';return c=a(g.join("")).css({position:"absolute",backgroundColor:"#000",zIndex:o-1,opacity:.1}).addClass("cluetip-drop-shadow").prependTo("#cluetip"),c}typeof m=="object"&&(n=m,m=null);if(m=="destroy")return this.removeData("cluetip").unbind(".cluetip");n=a.extend(!0,{},a.fn.cluetip.defaults,n||{});if(!a("#cluetip").length){a(['<div id="cluetip">','<div id="cluetip-outer" class="ui-cluetip-outer">','<h3 id="cluetip-title" class="ui-widget-header ui-cluetip-header"></h3>','<div id="cluetip-inner" class="ui-widget-content ui-cluetip-content"></div>',"</div>",'<div id="cluetip-extra"></div>','<div id="cluetip-arrows" class="cluetip-arrows"></div>',"</div>"].join(""))[j](k).hide();var o=+n.cluezIndex;b=a("#cluetip").css({position:"absolute"}),d=a("#cluetip-outer").css({position:"relative",zIndex:o}),c=a("#cluetip-inner"),e=a("#cluetip-title"),f=a("#cluetip-arrows"),g=a('<div id="cluetip-waitimage"></div>').css({position:"absolute"}).insertBefore(b).hide()}var p=(parseInt(b.css("paddingLeft"),10)||0)+(parseInt(b.css("paddingRight"),10)||0);return this.each(function(j){function U(){return!1}var k=this,r=a(this),s=a.extend(!0,{},n,a.metadata?r.metadata():a.meta?r.data():{}),t=!1;o=+s.cluezIndex,r.data("cluetip",{title:k.title,zIndex:o});var u=!1,v=0,w=r.attr(s.attribute),x=s.cluetipClass;if(!w&&!s.splitTitle&&!m)return!0;s.local&&s.localPrefix&&(w=s.localPrefix+w),s.local&&s.hideLocal&&w&&a(w+":first").hide();var y=parseInt(s.topOffset,10),z=parseInt(s.leftOffset,10),A,B,C=isNaN(parseInt(s.height,10))?"auto":/\D/g.test(s.height)?s.height:s.height+"px",D,E,F,G,H,I,J=parseInt(s.width,10)||275,K=J+p+s.dropShadowSteps,L=this.offsetWidth,M,N,O,P,Q,R,S=s.attribute!="title"?r.attr(s.titleAttribute):"";s.splitTitle&&(S==undefined&&(S=""),R=S.split(s.splitTitle),S=R.shift()),s.escapeTitle&&(S=S.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;"));var T,V=function(e){if(!s.onActivate(r))return!1;u=!0,b.removeClass().css({width:J}),w==r.attr("href")&&r.css("cursor",s.cursor),s.hoverClass&&r.addClass(s.hoverClass),E=F=r.offset().top,M=r.offset().left,P=e.pageX,H=e.pageY,k.tagName.toLowerCase()!="area"&&(D=a(document).scrollTop(),Q=a(window).width());if(s.positionBy=="fixed")N=L+M+z,b.css({left:N});else{N=L>M&&M>K||M+L+K+z>Q?M-K-z:L+M+z;if(k.tagName.toLowerCase()=="area"||s.positionBy=="mouse"||L+K>Q)P+20+K>Q?(b.addClass(" cluetip-"+x),N=P-K-z>=0?P-K-z-parseInt(b.css("marginLeft"),10)+parseInt(c.css("marginRight"),10):P-K/2):N=P+z;var h=N<0?e.pageY+y:e.pageY;b.css({left:N>0&&s.positionBy!="bottomTop"?N:P+K/2>Q?Q/2-K/2:Math.max(P-K/2,0),zIndex:r.data("cluetip").zIndex}),f.css({zIndex:r.data("cluetip").zIndex+1})}B=a(window).height();if(m)typeof m=="function"&&(m=m.call(k)),c.html(m),W(h);else if(R){var l=R.length;c.html(l?R[0]:"");if(l>1)for(var n=1;n<l;n++)c.append('<div class="split-body">'+R[n]+"</div>");W(h)}else if(!s.local&&w.indexOf("#")!==0)if(/\.(jpe?g|tiff?|gif|png)(?:\?.*)?$/i.test(w))c.html('<img src="'+w+'" alt="'+S+'" />'),W(h);else if(t&&s.ajaxCache)c.html(t),W(h);else{var o=s.ajaxSettings.beforeSend,p=s.ajaxSettings.error,q=s.ajaxSettings.success,v=s.ajaxSettings.complete,A={cache:!1,url:w,beforeSend:function(a){o&&o.call(k,a,b,c),d.children().empty(),s.waitImage&&g.css({top:H+20,left:P+20,zIndex:r.data("cluetip").zIndex-1}).show()},error:function(a,d){u&&(p?p.call(k,a,d,b,c):c.html("<i>sorry, the contents could not be loaded</i>"))},success:function(a,d){t=s.ajaxProcess.call(k,a),u&&(q&&q.call(k,a,d,b,c),c.html(t))},complete:function(d,e){v&&v.call(k,d,e,b,c);var f=c[0].getElementsByTagName("img");i=f.length;for(var j=0,l=f.length;j<l;j++)f[j].complete&&i--;i&&!a.browser.opera?a(f).bind("load error",function(){i--,i<1&&(g.hide(),u&&W(h))}):(g.hide(),u&&W(h))}},C=a.extend(!0,{},s.ajaxSettings,A);a.ajax(C)}else if(s.local){var G=a(w+(/#\S+$/.test(w)?"":":eq("+j+")")).clone(!0).show();s.localIdSuffix&&G.attr("id",G[0].id+s.localIdSuffix),c.html(G),W(h)}},W=function(g){function j(){}b.addClass("cluetip-"+x);if(s.truncate){var i=c.text().slice(0,s.truncate)+"...";c.html(i)}S?e.show().html(S):s.showTitle?e.show().html("&nbsp;"):e.hide();if(s.sticky){var m=a('<div id="cluetip-close"><a href="#">'+s.closeText+"</a></div>");s.closePosition=="bottom"?m.appendTo(c):s.closePosition=="title"?m.prependTo(e):m.prependTo(c),m.bind("click.cluetip",function(){return Y(),!1}),s.mouseOutClose?b.bind("mouseleave.cluetip",function(){Y()}):b.unbind("mouseleave.cluetip")}var n="";d.css({zIndex:r.data("cluetip").zIndex,overflow:C=="auto"?"visible":"auto",height:C}),A=C=="auto"?Math.max(b.outerHeight(),b.height()):parseInt(C,10),G=F,I=D+B,s.positionBy=="fixed"?G=F-s.dropShadowSteps+y:N<P&&Math.max(N,0)+K>P||s.positionBy=="bottomTop"?F+A+y>I&&H-D>A+y?(G=H-A-y,n="top"):(G=H+y,n="bottom"):F+A+y>I?G=A>=B?D:I-A-y:r.css("display")=="block"||k.tagName.toLowerCase()=="area"||s.positionBy=="mouse"?G=g-y:G=F-s.dropShadowSteps,n==""&&(N<M?n="left":n="right");var o=" clue-"+n+"-"+x+" cluetip-"+x;x=="rounded"&&(o+=" ui-corner-all"),b.css({top:G+"px"}).attr({className:l+o});if(s.arrows){var p=F-G-s.dropShadowSteps;f.css({top:/(left|right)/.test(n)&&N>=0&&p>0?p+"px":/(left|right)/.test(n)?0:""}).show()}else f.hide();h=q(s),h&&h.length&&h.hide().css({height:A,width:J,zIndex:r.data("cluetip").zIndex-1}).show(),b.hide()[s.fx.open](s.fx.openSpeed||0),a.fn.bgiframe&&b.bgiframe(),s.delayedClose>0&&(v=setTimeout(Y,s.delayedClose)),s.onShow.call(k,b,c)},X=function(a){u=!1,g.hide();if(!s.sticky||/click|toggle/.test(s.activation))Y(),clearTimeout(v);s.hoverClass&&r.removeClass(s.hoverClass)},Y=function(){d.parent().hide().removeClass(),s.onHide.call(k,b,c),r.removeClass("cluetip-clicked"),S&&r.attr(s.titleAttribute,S),r.css("cursor",""),s.arrows&&f.css({top:""})};a(document).bind("hideCluetip",function(a){Y()});if(/click|toggle/.test(s.activation))r.bind("click.cluetip",function(c){return b.is(":hidden")||!r.is(".cluetip-clicked")?(V(c),a(".cluetip-clicked").removeClass("cluetip-clicked"),r.addClass("cluetip-clicked")):X(c),this.blur(),!1});else if(s.activation=="focus")r.bind("focus.cluetip",function(a){r.attr("title",""),V(a)}),r.bind("blur.cluetip",function(a){r.attr("title",r.data("thisInfo").title),X(a)});else{r[s.clickThrough?"unbind":"bind"]("click",U);var Z=function(a){if(s.tracking==1){var c=N-a.pageX,d=G?G-a.pageY:F-a.pageY;r.bind("mousemove.cluetip",function(a){b.css({left:a.pageX+c,top:a.pageY+d})})}};a.fn.hoverIntent&&s.hoverIntent?r.hoverIntent({sensitivity:s.hoverIntent.sensitivity,interval:s.hoverIntent.interval,over:function(a){V(a),Z(a)},timeout:s.hoverIntent.timeout,out:function(a){X(a),r.unbind("mousemove.cluetip")}}):r.bind("mouseenter.cluetip",function(a){V(a),Z(a)}).bind("mouseleave.cluetip",function(a){X(a),r.unbind("mousemove.cluetip")}),r.bind("mouseover.cluetip",function(a){r.attr("title","")}).bind("mouseleave.cluetip",function(a){r.attr("title",r.data("cluetip").title)})}}),this},function(){a.support=a.support||{};var b=document.createElement("div"),c=b.style,d=["boxShadow"],e=["moz","Moz","webkit","o"];for(var f=0,g=d.length;f<g;f++){var h=d[f],i=h.charAt(0).toUpperCase()+h.slice(1);if(typeof c[h]!="undefined")a.support[h]=h;else for(var j=0,k=e.length;j<k;j++)if(typeof c[e[j]+i]!="undefined"){a.support[h]=e[j]+i;break}}b=null}(),a.fn.cluetip.defaults={width:275,height:"auto",cluezIndex:97,positionBy:"auto",topOffset:15,leftOffset:15,local:!1,localPrefix:null,localIdSuffix:null,hideLocal:!0,attribute:"rel",titleAttribute:"title",splitTitle:"",escapeTitle:!1,showTitle:!0,cluetipClass:"default",hoverClass:"",waitImage:!0,cursor:"help",arrows:!1,dropShadow:!0,dropShadowSteps:6,sticky:!1,mouseOutClose:!1,activation:"hover",clickThrough:!0,tracking:!1,delayedClose:0,closePosition:"top",closeText:"Close",truncate:0,fx:{open:"show",openSpeed:""},hoverIntent:{sensitivity:3,interval:50,timeout:0},onActivate:function(a){return!0},onShow:function(a,b){},onHide:function(a,b){},ajaxCache:!0,ajaxProcess:function(a){return a=a.replace(/<(script|style|title)[^<]+<\/(script|style|title)>/gm,"").replace(/<(link|meta)[^>]+>/g,""),a},ajaxSettings:{dataType:"html"},debug:!1},a.cluetip.setup=function(a){a&&a.insertionType&&a.insertionType.match(/appendTo|prependTo|insertBefore|insertAfter/)&&(j=a.insertionType),a&&a.insertionElement&&(k=a.insertionElement)}})(jQuery);var swfobject=function(){function A(){if(t)return;try{var a=i.getElementsByTagName("body")[0].appendChild(Q("span"));a.parentNode.removeChild(a)}catch(b){return}t=!0;var c=l.length;for(var d=0;d<c;d++)l[d]()}function B(a){t?a():l[l.length]=a}function C(b){if(typeof h.addEventListener!=a)h.addEventListener("load",b,!1);else if(typeof i.addEventListener!=a)i.addEventListener("load",b,!1);else if(typeof h.attachEvent!=a)R(h,"onload",b);else if(typeof h.onload=="function"){var c=h.onload;h.onload=function(){c(),b()}}else h.onload=b}function D(){k?E():F()}function E(){var c=i.getElementsByTagName("body")[0],d=Q(b);d.setAttribute("type",e);var f=c.appendChild(d);if(f){var g=0;(function(){if(typeof f.GetVariable!=a){var b=f.GetVariable("$version");b&&(b=b.split(" ")[1].split(","),y.pv=[parseInt(b[0],10),parseInt(b[1],10),parseInt(b[2],10)])}else if(g<10){g++,setTimeout(arguments.callee,10);return}c.removeChild(d),f=null,F()})()}else F()}function F(){var b=m.length;if(b>0)for(var c=0;c<b;c++){var d=m[c].id,e=m[c].callbackFn,f={success:!1,id:d};if(y.pv[0]>0){var g=P(d);if(g)if(S(m[c].swfVersion)&&!(y.wk&&y.wk<312))U(d,!0),e&&(f.success=!0,f.ref=G(d),e(f));else if(m[c].expressInstall&&H()){var h={};h.data=m[c].expressInstall,h.width=g.getAttribute("width")||"0",h.height=g.getAttribute("height")||"0",g.getAttribute("class")&&(h.styleclass=g.getAttribute("class")),g.getAttribute("align")&&(h.align=g.getAttribute("align"));var i={},j=g.getElementsByTagName("param"),k=j.length;for(var l=0;l<k;l++)j[l].getAttribute("name").toLowerCase()!="movie"&&(i[j[l].getAttribute("name")]=j[l].getAttribute("value"));I(h,i,d,e)}else J(g),e&&e(f)}else{U(d,!0);if(e){var n=G(d);n&&typeof n.SetVariable!=a&&(f.success=!0,f.ref=n),e(f)}}}}function G(c){var d=null,e=P(c);if(e&&e.nodeName=="OBJECT")if(typeof e.SetVariable!=a)d=e;else{var f=e.getElementsByTagName(b)[0];f&&(d=f)}return d}function H(){return!u&&S("6.0.65")&&(y.win||y.mac)&&!(y.wk&&y.wk<312)}function I(b,c,d,e){u=!0,r=e||null,s={success:!1,id:d};var g=P(d);if(g){g.nodeName=="OBJECT"?(p=K(g),q=null):(p=g,q=d),b.id=f;if(typeof b.width==a||!/%$/.test(b.width)&&parseInt(b.width,10)<310)b.width="310";if(typeof b.height==a||!/%$/.test(b.height)&&parseInt(b.height,10)<137)b.height="137";i.title=i.title.slice(0,47)+" - Flash Player Installation";var j=y.ie&&y.win?"ActiveX":"PlugIn",k="MMredirectURL="+h.location.toString().replace(/&/g,"%26")+"&MMplayerType="+j+"&MMdoctitle="+i.title;typeof c.flashvars!=a?c.flashvars+="&"+k:c.flashvars=k;if(y.ie&&y.win&&g.readyState!=4){var l=Q("div");d+="SWFObjectNew",l.setAttribute("id",d),g.parentNode.insertBefore(l,g),g.style.display="none",function(){g.readyState==4?g.parentNode.removeChild(g):setTimeout(arguments.callee,10)}()}L(b,c,d)}}function J(a){if(y.ie&&y.win&&a.readyState!=4){var b=Q("div");a.parentNode.insertBefore(b,a),b.parentNode.replaceChild(K(a),b),a.style.display="none",function(){a.readyState==4?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)}()}else a.parentNode.replaceChild(K(a),a)}function K(a){var c=Q("div");if(y.win&&y.ie)c.innerHTML=a.innerHTML;else{var d=a.getElementsByTagName(b)[0];if(d){var e=d.childNodes;if(e){var f=e.length;for(var g=0;g<f;g++)(e[g].nodeType!=1||e[g].nodeName!="PARAM")&&e[g].nodeType!=8&&c.appendChild(e[g].cloneNode(!0))}}}return c}function L(c,d,f){var g,h=P(f);if(y.wk&&y.wk<312)return g;if(h){typeof c.id==a&&(c.id=f);if(y.ie&&y.win){var i="";for(var j in c)c[j]!=Object.prototype[j]&&(j.toLowerCase()=="data"?d.movie=c[j]:j.toLowerCase()=="styleclass"?i+=' class="'+c[j]+'"':j.toLowerCase()!="classid"&&(i+=" "+j+'="'+c[j]+'"'));var k="";for(var l in d)d[l]!=Object.prototype[l]&&(k+='<param name="'+l+'" value="'+d[l]+'" />');h.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+i+">"+k+"</object>",n[n.length]=c.id,g=P(c.id)}else{var m=Q(b);m.setAttribute("type",e);for(var o in c)c[o]!=Object.prototype[o]&&(o.toLowerCase()=="styleclass"?m.setAttribute("class",c[o]):o.toLowerCase()!="classid"&&m.setAttribute(o,c[o]));for(var p in d)d[p]!=Object.prototype[p]&&p.toLowerCase()!="movie"&&M(m,p,d[p]);h.parentNode.replaceChild(m,h),g=m}}return g}function M(a,b,c){var d=Q("param");d.setAttribute("name",b),d.setAttribute("value",c),a.appendChild(d)}function N(a){var b=P(a);b&&b.nodeName=="OBJECT"&&(y.ie&&y.win?(b.style.display="none",function(){b.readyState==4?O(a):setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b))}function O(a){var b=P(a);if(b){for(var c in b)typeof b[c]=="function"&&(b[c]=null);b.parentNode.removeChild(b)}}function P(a){var b=null;try{b=i.getElementById(a)}catch(c){}return b}function Q(a){return i.createElement(a)}function R(a,b,c){a.attachEvent(b,c),o[o.length]=[a,b,c]}function S(a){var b=y.pv,c=a.split(".");return c[0]=parseInt(c[0],10),c[1]=parseInt(c[1],10)||0,c[2]=parseInt(c[2],10)||0,b[0]>c[0]||b[0]==c[0]&&b[1]>c[1]||b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]?!0:!1}function T(c,d,e,f){if(y.ie&&y.mac)return;var g=i.getElementsByTagName("head")[0];if(!g)return;var h=e&&typeof e=="string"?e:"screen";f&&(v=null,w=null);if(!v||w!=h){var j=Q("style");j.setAttribute("type","text/css"),j.setAttribute("media",h),v=g.appendChild(j),y.ie&&y.win&&typeof i.styleSheets!=a&&i.styleSheets.length>0&&(v=i.styleSheets[i.styleSheets.length-1]),w=h}y.ie&&y.win?v&&typeof v.addRule==b&&v.addRule(c,d):v&&typeof i.createTextNode!=a&&v.appendChild(i.createTextNode(c+" {"+d+"}"))}function U(a,b){if(!x)return;var c=b?"visible":"hidden";t&&P(a)?P(a).style.visibility=c:T("#"+a,"visibility:"+c)}function V(b){var c=/[\\\"<>\.;]/,d=c.exec(b)!=null;return d&&typeof encodeURIComponent!=a?encodeURIComponent(b):b}var a="undefined",b="object",c="Shockwave Flash",d="ShockwaveFlash.ShockwaveFlash",e="application/x-shockwave-flash",f="SWFObjectExprInst",g="onreadystatechange",h=window,i=document,j=navigator,k=!1,l=[D],m=[],n=[],o=[],p,q,r,s,t=!1,u=!1,v,w,x=!0,y=function(){var f=typeof i.getElementById!=a&&typeof i.getElementsByTagName!=a&&typeof i.createElement!=a,g=j.userAgent.toLowerCase(),l=j.platform.toLowerCase(),m=l?/win/.test(l):/win/.test(g),n=l?/mac/.test(l):/mac/.test(g),o=/webkit/.test(g)?parseFloat(g.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,p=!1,q=[0,0,0],r=null;if(typeof j.plugins!=a&&typeof j.plugins[c]==b)r=j.plugins[c].description,r&&(typeof j.mimeTypes==a||!j.mimeTypes[e]||!!j.mimeTypes[e].enabledPlugin)&&(k=!0,p=!1,r=r.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),q[0]=parseInt(r.replace(/^(.*)\..*$/,"$1"),10),q[1]=parseInt(r.replace(/^.*\.(.*)\s.*$/,"$1"),10),q[2]=/[a-zA-Z]/.test(r)?parseInt(r.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof h.ActiveXObject!=a)try{var s=new ActiveXObject(d);s&&(r=s.GetVariable("$version"),r&&(p=!0,r=r.split(" ")[1].split(","),q=[parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10)]))}catch(t){}return{w3:f,pv:q,wk:o,ie:p,win:m,mac:n}}(),z=function(){if(!y.w3)return;(typeof i.readyState!=a&&i.readyState=="complete"||typeof i.readyState==a&&(i.getElementsByTagName("body")[0]||i.body))&&A(),t||(typeof i.addEventListener!=a&&i.addEventListener("DOMContentLoaded",A,!1),y.ie&&y.win&&(i.attachEvent(g,function(){i.readyState=="complete"&&(i.detachEvent(g,arguments.callee),A())}),h==top&&function(){if(t)return;try{i.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}A()}()),y.wk&&function(){if(t)return;if(!/loaded|complete/.test(i.readyState)){setTimeout(arguments.callee,0);return}A()}(),C(A))}(),W=function(){y.ie&&y.win&&window.attachEvent("onunload",function(){var a=o.length;for(var b=0;b<a;b++)o[b][0].detachEvent(o[b][1],o[b][2]);var c=n.length;for(var d=0;d<c;d++)N(n[d]);for(var e in y)y[e]=null;y=null;for(var f in swfobject)swfobject[f]=null;swfobject=null})}();return{registerObject:function(a,b,c,d){if(y.w3&&a&&b){var e={};e.id=a,e.swfVersion=b,e.expressInstall=c,e.callbackFn=d,m[m.length]=e,U(a,!1)}else d&&d({success:!1,id:a})},getObjectById:function(a){if(y.w3)return G(a)},embedSWF:function(c,d,e,f,g,h,i,j,k,l){var m={success:!1,id:d};y.w3&&!(y.wk&&y.wk<312)&&c&&d&&e&&f&&g?(U(d,!1),B(function(){e+="",f+="";var n={};if(k&&typeof k===b)for(var o in k)n[o]=k[o];n.data=c,n.width=e,n.height=f;var p={};if(j&&typeof j===b)for(var q in j)p[q]=j[q];if(i&&typeof i===b)for(var r in i)typeof p.flashvars!=a?p.flashvars+="&"+r+"="+i[r]:p.flashvars=r+"="+i[r];if(S(g)){var s=L(n,p,d);n.id==d&&U(d,!0),m.success=!0,m.ref=s}else{if(h&&H()){n.data=h,I(n,p,d,l);return}U(d,!0)}l&&l(m)})):l&&l(m)},switchOffAutoHideShow:function(){x=!1},ua:y,getFlashPlayerVersion:function(){return{major:y.pv[0],minor:y.pv[1],release:y.pv[2]}},hasFlashPlayerVersion:S,createSWF:function(a,b,c){return y.w3?L(a,b,c):undefined},showExpressInstall:function(a,b,c,d){y.w3&&H()&&I(a,b,c,d)},removeSWF:function(a){y.w3&&N(a)},createCSS:function(a,b,c,d){y.w3&&T(a,b,c,d)},addDomLoadEvent:B,addLoadEvent:C,getQueryParamValue:function(a){var b=i.location.search||i.location.hash;if(b){/\?/.test(b)&&(b=b.split("?")[1]);if(a==null)return V(b);var c=b.split("&");for(var d=0;d<c.length;d++)if(c[d].substring(0,c[d].indexOf("="))==a)return V(c[d].substring(c[d].indexOf("=")+1))}return""},expressInstallCallback:function(){if(u){var a=P(f);a&&p&&(a.parentNode.replaceChild(p,a),q&&(U(q,!0),y.ie&&y.win&&(p.style.display="block")),r&&r(s)),u=!1}}}}();jQuery(function(a){var b=function(){a("#filter-spinner").toggle()};a("#filter-form").bind("ajax:success",function(b,c,d,e){a("#list").html(e.responseText)}).bind("ajax:beforeSend",function(){b()}).bind("ajax:complete",function(){b()})}),jQuery(function(a){var b=function(){a("#table-search-spinner").toggle()};a("#table-search-form").live("ajax:success",function(b,c,d,e){a("#list").html(e.responseText)}).live("ajax:beforeSend",function(){b()}).bind("ajax:complete",function(){b()})}),jQuery(function(a){a("#filter-reset").live("click",function(){var b=a(this);a("#filter-options").val("").effect("highlight",{},3e3),b.parent().submit()})}),jQuery(function(a){a("#table-search-reset").live("click",function(){var b=a(this);a(":input",b.closest("form")).not(":button, :submit, :reset, :hidden").val("").removeAttr("checked").removeAttr("selected"),b.parent().submit()})}),jQuery(function(a){a("a.page-link").live("ajax:success",function(b,c,d){update_id=a(this).parent().attr("data-update"),a("#"+update_id).html(c)})}),jQuery(function(a){a("#method_type").live("change",function(){var b=a(this);if(b.attr("data-confirm")&&b.triggerAndReturn("confirm")&&!confirm(b.attr("data-confirm")))return b.val(a("option:first",b).val()),!1;a.post(b.attr("data-remote"),{method_type:a(this).val()},function(a){a})})}),jQuery(function(a){a("#show-option-panel").live("click",function(){var b=a("#option-panel");b.toggle("slow")})})
