(function(){
window.jspackager = {};
jspackager.devmode = false;
jspackager.jsList = {"__basic-behaviour":["jquery","ui-core-mini","posAround","classparser","jquery-social-b","ui-scroller","flowplayer","jquery-mousewheel","jquery-swfobject","swfobject","ui-a11y-ext","jquery-objscale","ui-cOverlay","jquery.imgpreload","showbox","init-behaviour"],"_ie6-behaviour":["DD_belatedPNG_0.0.8a","init-ie6"]};
window.apertoDevmode = jspackager.devmode;
window.devModuleList =jspackager.jsList;
var basicScript = ["__basic-behaviour"], srcMatch = /(.*)__basic-behaviour\.js$/;
function loadModul(path){
for(var j = 0, leng = basicScript.length; j < leng; j++){
document.write('<script type="text/javascript" src="'+path+basicScript[j]+'.js"><\/script>');
}
}
var querys = location.search, 
hash = location.hash;
if(hash === '#devmode'){
basicScript = devModuleList[basicScript];
jspackager.devmode = true;
window.apertoDevmode = true;
} else {
querys = querys.replace(/^\?/,'').split(/&|=/);
for(var i = 0, len = querys.length; i < len; i++){
if(querys[i] == 'devmode'){
basicScript = jspackager.jsList[basicScript];
jspackager.devmode = true;
window.apertoDevmode = true;
break;
}
}
}
if(jspackager.devmode){
var scripts = document.getElementsByTagName('script'),
src,
path;
for(var i = 0, len = scripts.length; i < len; i++){
src = scripts[i].getAttribute('src');
if(src){
path = srcMatch.exec(src);
if(path && path[0] && path[1]){
jspackager.jsPath = path[1];
loadModul(path[1]);
}
}
}
}
})();
if(!window.jspackager || !jspackager.devmode){
//jquery
;(function(){var y=this,undefined,_jQuery=y.jQuery,_$=y.$,jQuery=y.jQuery=y.$=function(a,b){return new jQuery.fn.init(a,b)},quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/;jQuery.fn=jQuery.prototype={init:function(a,b){a=a||document;if(a.nodeType){this[0]=a;this.length=1;this.context=a;return this}if(typeof a==="string"){var c=quickExpr.exec(a);if(c&&(c[1]||!b)){if(c[1])a=jQuery.clean([c[1]],b);else{var d=document.getElementById(c[3]);if(d&&d.id!=c[3])return jQuery().find(a);var e=jQuery(d||[]);e.context=document;e.selector=a;return e}}else return jQuery(b).find(a)}else if(jQuery.isFunction(a))return jQuery(document).ready(a);if(a.selector&&a.context){this.selector=a.selector;this.context=a.context}return this.setArray(jQuery.isArray(a)?a:jQuery.makeArray(a))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return a===undefined?Array.prototype.slice.call(this):this[a]},pushStack:function(a,b,c){var d=jQuery(a);d.prevObject=this;d.context=this.context;if(b==="find")d.selector=this.selector+(this.selector?" ":"")+c;else if(b)d.selector=this.selector+"."+b+"("+c+")";return d},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(a,b){return jQuery.each(this,a,b)},index:function(a){return jQuery.inArray(a&&a.jquery?a[0]:a,this)},attr:function(a,b,c){var d=a;if(typeof a==="string")if(b===undefined)return this[0]&&jQuery[c||"attr"](this[0],a);else{d={};d[a]=b}return this.each(function(i){for(a in d)jQuery.attr(c?this.style:this,a,jQuery.prop(this,d[a],c,i,a))})},css:function(a,b){if((a=='width'||a=='height')&&parseFloat(b)<0)b=undefined;return this.attr(a,b,"curCSS")},text:function(a){if(typeof a!=="object"&&a!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(a));var b="";jQuery.each(a||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)b+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])})});return b},wrapAll:function(b){if(this[0]){var c=jQuery(b,this[0].ownerDocument).clone();if(this[0].parentNode)c.insertBefore(this[0]);c.map(function(){var a=this;while(a.firstChild)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(function(){jQuery(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){jQuery(this).wrapAll(a)})},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1)this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1)this.insertBefore(a,this.firstChild)})},before:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var c=this.pushStack([],"find",b);c.length=0;jQuery.find(b,this[0],c);return c}else{return this.pushStack(jQuery.unique(jQuery.map(this,function(a){return jQuery.find(b,a)})),"find",b)}},clone:function(d){var e=this.map(function(){if(!jQuery.support.noCloneEvent&&!jQuery.isXMLDoc(this)){var a=this.outerHTML;if(!a){var b=this.ownerDocument.createElement("div");b.appendChild(this.cloneNode(true));a=b.innerHTML}return jQuery.clean([a.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else return this.cloneNode(true)});if(d===true){var f=this.find("*").andSelf(),i=0;e.find("*").andSelf().each(function(){if(this.nodeName!==f[i].nodeName)return;var a=jQuery.data(f[i],"events");for(var b in a){for(var c in a[b]){jQuery.event.add(this,b,a[b][c],a[b][c].data)}}i++})}return e},filter:function(b){return this.pushStack(jQuery.isFunction(b)&&jQuery.grep(this,function(a,i){return b.call(a,i)})||jQuery.multiFilter(b,jQuery.grep(this,function(a){return a.nodeType===1})),"filter",b)},closest:function(b){var c=jQuery.expr.match.POS.test(b)?jQuery(b):null,closer=0;return this.map(function(){var a=this;while(a&&a.ownerDocument){if(c?c.index(a)>-1:jQuery(a).is(b)){jQuery.data(a,"closest",closer);return a}a=a.parentNode;closer++}})},not:function(a){if(typeof a==="string")if(isSimple.test(a))return this.pushStack(jQuery.multiFilter(a,this,true),"not",a);else a=jQuery.multiFilter(a,this);var b=a.length&&a[a.length-1]!==undefined&&!a.nodeType;return this.filter(function(){return b?jQuery.inArray(this,a)<0:this!=a})},add:function(a){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof a==="string"?jQuery(a):jQuery.makeArray(a))))},is:function(a){return!!a&&jQuery.multiFilter(a,this).length>0},hasClass:function(a){return!!a&&this.is("."+a)},val:function(b){if(b===undefined){var c=this[0];if(c){if(jQuery.nodeName(c,'option'))return(c.attributes.value||{}).specified?c.value:c.text;if(jQuery.nodeName(c,"select")){var d=c.selectedIndex,values=[],options=c.options,one=c.type=="select-one";if(d<0)return null;for(var i=one?d:0,max=one?d+1:options.length;i<max;i++){var e=options[i];if(e.selected){b=jQuery(e).val();if(one)return b;values.push(b)}}return values}return(c.value||"").replace(/\r/g,"")}return undefined}if(typeof b==="number")b+='';return this.each(function(){if(this.nodeType!=1)return;if(jQuery.isArray(b)&&/radio|checkbox/.test(this.type))this.checked=(jQuery.inArray(this.value,b)>=0||jQuery.inArray(this.name,b)>=0);else if(jQuery.nodeName(this,"select")){var a=jQuery.makeArray(b);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,a)>=0||jQuery.inArray(this.text,a)>=0)});if(!a.length)this.selectedIndex=-1}else this.value=b})},html:function(a){return a===undefined?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(a)},replaceWith:function(a){return this.after(a).remove()},eq:function(i){return this.slice(i,+i+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(jQuery.map(this,function(a,i){return b.call(a,i,a)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(c,d,e){if(this[0]){var f=(this[0].ownerDocument||this[0]).createDocumentFragment(),scripts=jQuery.clean(c,(this[0].ownerDocument||this[0]),f),first=f.firstChild;if(first)for(var i=0,l=this.length;i<l;i++)e.call(root(this[i],first),this.length>1||i>0?f.cloneNode(true):f);if(scripts)jQuery.each(scripts,evalScript)}return this;function root(a,b){return d&&jQuery.nodeName(a,"table")&&jQuery.nodeName(b,"tr")?(a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody"))):a}}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,a){if(a.src)jQuery.ajax({url:a.src,async:false,dataType:"script"});else jQuery.globalEval(a.text||a.textContent||a.innerHTML||"");if(a.parentNode)a.parentNode.removeChild(a)}function now(){return+new Date}jQuery.extend=jQuery.fn.extend=function(){var a=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(typeof a==="boolean"){deep=a;a=arguments[1]||{};i=2}if(typeof a!=="object"&&!jQuery.isFunction(a))a={};if(length==i){a=this;--i}for(;i<length;i++)if((options=arguments[i])!=null)for(var b in options){var c=a[b],copy=options[b];if(a===copy)continue;if(deep&&copy&&typeof copy==="object"&&!copy.nodeType)a[b]=jQuery.extend(deep,c||(copy.length!=null?[]:{}),copy);else if(copy!==undefined)a[b]=copy}return a};var z=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{},toString=Object.prototype.toString;jQuery.extend({noConflict:function(a){y.$=_$;if(a)y.jQuery=_jQuery;return jQuery},isFunction:function(a){return toString.call(a)==="[object Function]"},isArray:function(a){return toString.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&jQuery.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&&/\S/.test(a)){var b=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.support.scriptEval)script.appendChild(document.createTextNode(a));else script.text=a;b.insertBefore(script,b.firstChild);b.removeChild(script)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()},each:function(a,b,c){var d,i=0,length=a.length;if(c){if(length===undefined){for(d in a)if(b.apply(a[d],c)===false)break}else for(;i<length;)if(b.apply(a[i++],c)===false)break}else{if(length===undefined){for(d in a)if(b.call(a[d],d,a[d])===false)break}else for(var e=a[0];i<length&&b.call(e,i,e)!==false;e=a[++i]){}}return a},prop:function(a,b,c,i,d){if(jQuery.isFunction(b))b=b.call(a,i);return typeof b==="number"&&c=="curCSS"&&!z.test(d)?b+"px":b},className:{add:function(b,c){jQuery.each((c||"").split(/\s+/),function(i,a){if(b.nodeType==1&&!jQuery.className.has(b.className,a))b.className+=(b.className?" ":"")+a})},remove:function(b,c){if(b.nodeType==1)b.className=c!==undefined?jQuery.grep(b.className.split(/\s+/),function(a){return!jQuery.className.has(c,a)}).join(" "):""},has:function(a,b){return a&&jQuery.inArray(b,(a.className||a).toString().split(/\s+/))>-1}},swap:function(a,b,c){var d={};for(var e in b){d[e]=a.style[e];a.style[e]=b[e]}c.call(a);for(var e in b)a.style[e]=d[e]},css:function(a,b,c,d){if(b=="width"||b=="height"){var e,props={position:"absolute",visibility:"hidden",display:"block"},which=b=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){e=b=="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return;jQuery.each(which,function(){if(!d)e-=parseFloat(jQuery.curCSS(a,"padding"+this,true))||0;if(d==="margin")e+=parseFloat(jQuery.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(jQuery.curCSS(a,"border"+this+"Width",true))||0})}if(a.offsetWidth!==0)getWH();else jQuery.swap(a,props,getWH);return Math.max(0,Math.round(e))}return jQuery.curCSS(a,b,c)},curCSS:function(c,d,e){var f,style=c.style;if(d=="opacity"&&!jQuery.support.opacity){f=jQuery.attr(style,"opacity");return f==""?"1":f}if(d.match(/float/i))d=E;if(!e&&style&&style[d])f=style[d];else if(defaultView.getComputedStyle){if(d.match(/float/i))d="float";d=d.replace(/([A-Z])/g,"-$1").toLowerCase();var g=defaultView.getComputedStyle(c,null);if(g)f=g.getPropertyValue(d);if(d=="opacity"&&f=="")f="1"}else if(c.currentStyle){var h=d.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()});f=c.currentStyle[d]||c.currentStyle[h];if(!/^\d+(px)?$/i.test(f)&&/^\d/.test(f)){var i=style.left,rsLeft=c.runtimeStyle.left;c.runtimeStyle.left=c.currentStyle.left;style.left=f||0;f=style.pixelLeft+"px";style.left=i;c.runtimeStyle.left=rsLeft}}return f},clean:function(h,k,l){k=k||document;if(typeof k.createElement==="undefined")k=k.ownerDocument||k[0]&&k[0].ownerDocument||document;if(!l&&h.length===1&&typeof h[0]==="string"){var m=/^<(\w+)\s*\/?>$/.exec(h[0]);if(m)return[k.createElement(m[1])]}var n=[],scripts=[],div=k.createElement("div");jQuery.each(h,function(i,d){if(typeof d==="number")d+='';if(!d)return;if(typeof d==="string"){d=d.replace(/(<(\w+)[^>]*?)\/>/g,function(a,b,c){return c.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?a:b+"></"+c+">"});var e=d.replace(/^\s+/,"").substring(0,10).toLowerCase();var f=!e.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!e.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||e.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!e.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!e.indexOf("<td")||!e.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!e.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!jQuery.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=f[1]+d+f[2];while(f[0]--)div=div.lastChild;if(!jQuery.support.tbody){var g=/<tbody/i.test(d),tbody=!e.indexOf("<table")&&!g?div.firstChild&&div.firstChild.childNodes:f[1]=="<table>"&&!g?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j)if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length)tbody[j].parentNode.removeChild(tbody[j])}if(!jQuery.support.leadingWhitespace&&/^\s/.test(d))div.insertBefore(k.createTextNode(d.match(/^\s*/)[0]),div.firstChild);d=jQuery.makeArray(div.childNodes)}if(d.nodeType)n.push(d);else n=jQuery.merge(n,d)});if(l){for(var i=0;n[i];i++){if(jQuery.nodeName(n[i],"script")&&(!n[i].type||n[i].type.toLowerCase()==="text/javascript")){scripts.push(n[i].parentNode?n[i].parentNode.removeChild(n[i]):n[i])}else{if(n[i].nodeType===1)n.splice.apply(n,[i+1,0].concat(jQuery.makeArray(n[i].getElementsByTagName("script"))));l.appendChild(n[i])}}return scripts}return n},attr:function(c,d,e){if(!c||c.nodeType==3||c.nodeType==8)return undefined;var f=!jQuery.isXMLDoc(c),set=e!==undefined;d=f&&jQuery.props[d]||d;if(c.tagName){var g=/href|src|style/.test(d);if(d=="selected"&&c.parentNode)c.parentNode.selectedIndex;if(d in c&&f&&!g){if(set){if(d=="type"&&jQuery.nodeName(c,"input")&&c.parentNode)throw"type property can't be changed";c[d]=e}if(jQuery.nodeName(c,"form")&&c.getAttributeNode(d))return c.getAttributeNode(d).nodeValue;if(d=="tabIndex"){var h=c.getAttributeNode("tabIndex");return h&&h.specified?h.value:c.nodeName.match(/(button|input|object|select|textarea)/i)?0:c.nodeName.match(/^(a|area)$/i)&&c.href?0:undefined}return c[d]}if(!jQuery.support.style&&f&&d=="style")return jQuery.attr(c.style,"cssText",e);if(set)c.setAttribute(d,""+e);var i=!jQuery.support.hrefNormalized&&f&&g?c.getAttribute(d,2):c.getAttribute(d);return i===null?undefined:i}if(!jQuery.support.opacity&&d=="opacity"){if(set){c.zoom=1;c.filter=(c.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(e)+''=="NaN"?"":"alpha(opacity="+e*100+")")}return c.filter&&c.filter.indexOf("opacity=")>=0?(parseFloat(c.filter.match(/opacity=([^)]*)/)[1])/100)+'':""}d=d.replace(/-([a-z])/ig,function(a,b){return b.toUpperCase()});if(set)c[d]=e;return c[d]},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var b=[];if(a!=null){var i=a.length;if(i==null||typeof a==="string"||jQuery.isFunction(a)||a.setInterval)b[0]=a;else while(i)b[--i]=a[i]}return b},inArray:function(a,b){for(var i=0,length=b.length;i<length;i++)if(b[i]===a)return i;return-1},merge:function(a,b){var i=0,elem,pos=a.length;if(!jQuery.support.getAll){while((elem=b[i++])!=null)if(elem.nodeType!=8)a[pos++]=elem}else while((elem=b[i++])!=null)a[pos++]=elem;return a},unique:function(a){var b=[],done={};try{for(var i=0,length=a.length;i<length;i++){var c=jQuery.data(a[i]);if(!done[c]){done[c]=true;b.push(a[i])}}}catch(e){b=a}return b},grep:function(a,b,c){var d=[];for(var i=0,length=a.length;i<length;i++)if(!c!=!b(a[i],i))d.push(a[i]);return d},map:function(a,b){var c=[];for(var i=0,length=a.length;i<length;i++){var d=b(a[i],i);if(d!=null)c[c.length]=d}return c.concat.apply([],c)}});var A=navigator.userAgent.toLowerCase();jQuery.browser={version:(A.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,'0'])[1],safari:/webkit/.test(A),opera:/opera/.test(A),msie:/msie/.test(A)&&!/opera/.test(A),mozilla:/mozilla/.test(A)&&!/(compatible|webkit)/.test(A)};jQuery.each({parent:function(a){return a.parentNode},parents:function(a){return jQuery.dir(a,"parentNode")},next:function(a){return jQuery.nth(a,2,"nextSibling")},prev:function(a){return jQuery.nth(a,2,"previousSibling")},nextAll:function(a){return jQuery.dir(a,"nextSibling")},prevAll:function(a){return jQuery.dir(a,"previousSibling")},siblings:function(a){return jQuery.sibling(a.parentNode.firstChild,a)},children:function(a){return jQuery.sibling(a.firstChild)},contents:function(a){return jQuery.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:jQuery.makeArray(a.childNodes)}},function(c,d){jQuery.fn[c]=function(a){var b=jQuery.map(this,d);if(a&&typeof a=="string")b=jQuery.multiFilter(a,b);return this.pushStack(jQuery.unique(b),c,a)}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(d,e){jQuery.fn[d]=function(a){var b=[],insert=jQuery(a);for(var i=0,l=insert.length;i<l;i++){var c=(i>0?this.clone(true):this).get();jQuery.fn[e].apply(jQuery(insert[i]),c);b=b.concat(c)}return this.pushStack(b,d,a)}});jQuery.each({removeAttr:function(a){jQuery.attr(this,a,"");if(this.nodeType==1)this.removeAttribute(a)},addClass:function(a){jQuery.className.add(this,a)},removeClass:function(a){jQuery.className.remove(this,a)},toggleClass:function(a,b){if(typeof b!=="boolean")b=!jQuery.className.has(this,a);jQuery.className[b?"add":"remove"](this,a)},remove:function(a){if(!a||jQuery.filter(a,[this]).length){jQuery("*",this).add([this]).each(function(){jQuery.event.remove(this);jQuery.removeData(this)});if(this.parentNode)this.parentNode.removeChild(this)}},empty:function(){jQuery(this).children().remove();while(this.firstChild)this.removeChild(this.firstChild)}},function(a,b){jQuery.fn[a]=function(){return this.each(b,arguments)}});function num(a,b){return a[0]&&parseInt(jQuery.curCSS(a[0],b,true),10)||0}var B="jQuery"+now(),uuid=0,windowData={};jQuery.extend({cache:{},data:function(a,b,c){a=a==y?windowData:a;var d=a[B];if(!d)d=a[B]=++uuid;if(b&&!jQuery.cache[d])jQuery.cache[d]={};if(c!==undefined)jQuery.cache[d][b]=c;return b?jQuery.cache[d][b]:d},removeData:function(a,b){a=a==y?windowData:a;var c=a[B];if(b){if(jQuery.cache[c]){delete jQuery.cache[c][b];b="";for(b in jQuery.cache[c])break;if(!b)jQuery.removeData(a)}}else{try{delete a[B]}catch(e){if(a.removeAttribute)a.removeAttribute(B)}delete jQuery.cache[c]}},queue:function(a,b,c){if(a){b=(b||"fx")+"queue";var q=jQuery.data(a,b);if(!q||jQuery.isArray(c))q=jQuery.data(a,b,jQuery.makeArray(c));else if(c)q.push(c)}return q},dequeue:function(a,b){var c=jQuery.queue(a,b),fn=c.shift();if(!b||b==="fx")fn=c[0];if(fn!==undefined)fn.call(a)}});jQuery.fn.extend({data:function(a,b){var c=a.split(".");c[1]=c[1]?"."+c[1]:"";if(b===undefined){var d=this.triggerHandler("getData"+c[1]+"!",[c[0]]);if(d===undefined&&this.length)d=jQuery.data(this[0],a);return d===undefined&&c[1]?this.data(c[0]):d}else return this.trigger("setData"+c[1]+"!",[c[0],b]).each(function(){jQuery.data(this,a,b)})},removeData:function(a){return this.each(function(){jQuery.removeData(this,a)})},queue:function(b,c){if(typeof b!=="string"){c=b;b="fx"}if(c===undefined)return jQuery.queue(this[0],b);return this.each(function(){var a=jQuery.queue(this,b,c);if(b=="fx"&&a.length==1)a[0].call(this)})},dequeue:function(a){return this.each(function(){jQuery.dequeue(this,a)})}});(function(){var k=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,done=0,toString=Object.prototype.toString;var o=function(a,b,c,d){c=c||[];b=b||document;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!a||typeof a!=="string"){return c}var e=[],m,set,checkSet,check,mode,extra,prune=true;k.lastIndex=0;while((m=k.exec(a))!==null){e.push(m[1]);if(m[2]){extra=RegExp.rightContext;break}}if(e.length>1&&q.exec(a)){if(e.length===2&&p.relative[e[0]]){set=x(e[0]+e[1],b)}else{set=p.relative[e[0]]?[b]:o(e.shift(),b);while(e.length){a=e.shift();if(p.relative[a])a+=e.shift();set=x(a,set)}}}else{var f=d?{expr:e.pop(),set:t(d)}:o.find(e.pop(),e.length===1&&b.parentNode?b.parentNode:b,w(b));set=o.filter(f.expr,f.set);if(e.length>0){checkSet=t(set)}else{prune=false}while(e.length){var g=e.pop(),pop=g;if(!p.relative[g]){g=""}else{pop=e.pop()}if(pop==null){pop=b}p.relative[g](checkSet,pop,w(b))}}if(!checkSet){checkSet=set}if(!checkSet){throw"Syntax error, unrecognized expression: "+(g||a);}if(toString.call(checkSet)==="[object Array]"){if(!prune){c.push.apply(c,checkSet)}else if(b.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&v(b,checkSet[i]))){c.push(set[i])}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){c.push(set[i])}}}}else{t(checkSet,c)}if(extra){o(extra,b,c,d);if(u){hasDuplicate=false;c.sort(u);if(hasDuplicate){for(var i=1;i<c.length;i++){if(c[i]===c[i-1]){c.splice(i--,1)}}}}}return c};o.matches=function(a,b){return o(a,null,null,b)};o.find=function(a,b,c){var d,match;if(!a){return[]}for(var i=0,l=p.order.length;i<l;i++){var e=p.order[i],match;if((match=p.match[e].exec(a))){var f=RegExp.leftContext;if(f.substr(f.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");d=p.find[e](match,b,c);if(d!=null){a=a.replace(p.match[e],"");break}}}}if(!d){d=b.getElementsByTagName("*")}return{set:d,expr:a}};o.filter=function(a,b,c,d){var e=a,result=[],curLoop=b,match,anyFound,isXMLFilter=b&&b[0]&&w(b[0]);while(a&&b.length){for(var f in p.filter){if((match=p.match[f].exec(a))!=null){var g=p.filter[f],found,item;anyFound=false;if(curLoop==result){result=[]}if(p.preFilter[f]){match=p.preFilter[f](match,curLoop,c,result,d,isXMLFilter);if(!match){anyFound=found=true}else if(match===true){continue}}if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=g(item,match,i,curLoop);var h=d^!!found;if(c&&found!=null){if(h){anyFound=true}else{curLoop[i]=false}}else if(h){result.push(item);anyFound=true}}}}if(found!==undefined){if(!c){curLoop=result}a=a.replace(p.match[f],"");if(!anyFound){return[]}break}}}if(a==e){if(anyFound==null){throw"Syntax error, unrecognized expression: "+a;}else{break}}e=a}return curLoop};var p=o.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(a){return a.getAttribute("href")}},relative:{"+":function(a,b,c){var d=typeof b==="string",isTag=d&&!/\W/.test(b),isPartStrNotTag=d&&!isTag;if(isTag&&!c){b=b.toUpperCase()}for(var i=0,l=a.length,elem;i<l;i++){if((elem=a[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}a[i]=isPartStrNotTag||elem&&elem.nodeName===b?elem||false:elem===b}}if(isPartStrNotTag){o.filter(b,a,true)}},">":function(a,b,c){var d=typeof b==="string";if(d&&!/\W/.test(b)){b=c?b:b.toUpperCase();for(var i=0,l=a.length;i<l;i++){var e=a[i];if(e){var f=e.parentNode;a[i]=f.nodeName===b?f:false}}}else{for(var i=0,l=a.length;i<l;i++){var e=a[i];if(e){a[i]=d?e.parentNode:e.parentNode===b}}if(d){o.filter(b,a,true)}}},"":function(a,b,c){var d=done++,checkFn=dirCheck;if(!b.match(/\W/)){var e=b=c?b:b.toUpperCase();checkFn=dirNodeCheck}checkFn("parentNode",b,d,a,e,c)},"~":function(a,b,c){var d=done++,checkFn=dirCheck;if(typeof b==="string"&&!b.match(/\W/)){var e=b=c?b:b.toUpperCase();checkFn=dirNodeCheck}checkFn("previousSibling",b,d,a,e,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c){var m=b.getElementById(a[1]);return m?[m]:[]}},NAME:function(a,b,c){if(typeof b.getElementsByName!=="undefined"){var d=[],results=b.getElementsByName(a[1]);for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===a[1]){d.push(results[i])}}return d.length===0?null:d}},TAG:function(a,b){return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(/\\/g,"")+" ";if(f){return a}for(var i=0,elem;(elem=b[i])!=null;i++){if(elem){if(e^(elem.className&&(" "+elem.className+" ").indexOf(a)>=0)){if(!c)d.push(elem)}else if(c){b[i]=false}}}return false},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(a,b){for(var i=0;b[i]===false;i++){}return b[i]&&w(b[i])?a[1]:a[1].toUpperCase()},CHILD:function(a){if(a[1]=="nth"){var b=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a[2]=="even"&&"2n"||a[2]=="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=(b[1]+(b[2]||1))-0;a[3]=b[3]-0}a[0]=done++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1].replace(/\\/g,"");if(!f&&p.attrMap[g]){a[1]=p.attrMap[g]}if(a[2]==="~="){a[4]=" "+a[4]+" "}return a},PSEUDO:function(a,b,c,d,e){if(a[1]==="not"){if(a[3].match(k).length>1||/^\w/.test(a[3])){a[3]=o(a[3],null,null,b)}else{var f=o.filter(a[3],b,c,true^e);if(!c){d.push.apply(d,f)}return false}}else if(p.match.POS.test(a[0])||p.match.CHILD.test(a[0])){return true}return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){a.parentNode.selectedIndex;return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,i,b){return!!o(b[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.type},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toUpperCase()==="BUTTON"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,i){return i===0},last:function(a,i,b,c){return i===c.length-1},even:function(a,i){return i%2===0},odd:function(a,i){return i%2===1},lt:function(a,i,b){return i<b[3]-0},gt:function(a,i,b){return i>b[3]-0},nth:function(a,i,b){return b[3]-0==i},eq:function(a,i,b){return b[3]-0==i}},filter:{PSEUDO:function(a,b,i,c){var d=b[1],filter=p.filters[d];if(filter){return filter(a,i,b,c)}else if(d==="contains"){return(a.textContent||a.innerText||"").indexOf(b[3])>=0}else if(d==="not"){var e=b[3];for(var i=0,l=e.length;i<l;i++){if(e[i]===a){return false}}return true}},CHILD:function(a,b){var c=b[1],node=a;switch(c){case'only':case'first':while(node=node.previousSibling){if(node.nodeType===1)return false}if(c=='first')return true;node=a;case'last':while(node=node.nextSibling){if(node.nodeType===1)return false}return true;case'nth':var d=b[2],last=b[3];if(d==1&&last==0){return true}var e=b[0],parent=a.parentNode;if(parent&&(parent.sizcache!==e||!a.nodeIndex)){var f=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++f}}parent.sizcache=e}var g=a.nodeIndex-last;if(d==0){return g==0}else{return(g%d==0&&g/d>=0)}}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return(b==="*"&&a.nodeType===1)||a.nodeName===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],result=p.attrHandle[c]?p.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),value=result+"",s=b[2],check=b[4];return result==null?s==="!=":s==="="?value===check:s==="*="?value.indexOf(check)>=0:s==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:s==="!="?value!=check:s==="^="?value.indexOf(check)===0:s==="$="?value.substr(value.length-check.length)===check:s==="|="?value===check||value.substr(0,check.length+1)===check+"-":false},POS:function(a,b,i,c){var d=b[2],filter=p.setFilters[d];if(filter){return filter(a,i,b,c)}}}};var q=p.match.POS;for(var s in p.match){p.match[s]=RegExp(p.match[s].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var t=function(a,b){a=Array.prototype.slice.call(a);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(e){t=function(a,b){var c=b||[];if(toString.call(a)==="[object Array]"){Array.prototype.push.apply(c,a)}else{if(typeof a.length==="number"){for(var i=0,l=a.length;i<l;i++){c.push(a[i])}}else{for(var i=0;a[i];i++){c.push(a[i])}}}return c}}var u;if(document.documentElement.compareDocumentPosition){u=function(a,b){var c=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(c===0){hasDuplicate=true}return c}}else if("sourceIndex"in document.documentElement){u=function(a,b){var c=a.sourceIndex-b.sourceIndex;if(c===0){hasDuplicate=true}return c}}else if(document.createRange){u=function(a,b){var c=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();c.selectNode(a);c.collapse(true);bRange.selectNode(b);bRange.collapse(true);var d=c.compareBoundaryPoints(Range.START_TO_END,bRange);if(d===0){hasDuplicate=true}return d}}(function(){var d=document.createElement("form"),id="script"+(new Date).getTime();d.innerHTML="<input name='"+id+"'/>";var e=document.documentElement;e.insertBefore(d,e.firstChild);if(!!document.getElementById(id)){p.find.ID=function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c){var m=b.getElementById(a[1]);return m?m.id===a[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===a[1]?[m]:undefined:[]}};p.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}}e.removeChild(d)})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0){p.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var i=0;c[i];i++){if(c[i].nodeType===1){d.push(c[i])}}c=d}return c}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){p.attrHandle.href=function(a){return a.getAttribute("href",2)}}})();if(document.querySelectorAll)(function(){var f=o,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return}o=function(a,b,c,d){b=b||document;if(!d&&b.nodeType===9&&!w(b)){try{return t(b.querySelectorAll(a),c)}catch(e){}}return f(a,b,c,d)};o.find=f.find;o.filter=f.filter;o.selectors=f.selectors;o.matches=f.matches})();if(document.getElementsByClassName&&document.documentElement.getElementsByClassName)(function(){var d=document.createElement("div");d.innerHTML="<div class='test e'></div><div class='test'></div>";if(d.getElementsByClassName("e").length===0)return;d.lastChild.className="e";if(d.getElementsByClassName("e").length===1)return;p.order.splice(1,0,"CLASS");p.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c){return b.getElementsByClassName(a[1])}}})();function dirNodeCheck(a,b,c,d,e,f){var g=a=="previousSibling"&&!f;for(var i=0,l=d.length;i<l;i++){var h=d[i];if(h){if(g&&h.nodeType===1){h.sizcache=c;h.sizset=i}h=h[a];var j=false;while(h){if(h.sizcache===c){j=d[h.sizset];break}if(h.nodeType===1&&!f){h.sizcache=c;h.sizset=i}if(h.nodeName===b){j=h;break}h=h[a]}d[i]=j}}}function dirCheck(a,b,c,d,e,f){var g=a=="previousSibling"&&!f;for(var i=0,l=d.length;i<l;i++){var h=d[i];if(h){if(g&&h.nodeType===1){h.sizcache=c;h.sizset=i}h=h[a];var j=false;while(h){if(h.sizcache===c){j=d[h.sizset];break}if(h.nodeType===1){if(!f){h.sizcache=c;h.sizset=i}if(typeof b!=="string"){if(h===b){j=true;break}}else if(o.filter(b,[h]).length>0){j=h;break}}h=h[a]}d[i]=j}}}var v=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)};var w=function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&w(a.ownerDocument)};var x=function(a,b){var c=[],later="",match,root=b.nodeType?[b]:b;while((match=p.match.PSEUDO.exec(a))){later+=match[0];a=a.replace(p.match.PSEUDO,"")}a=p.relative[a]?a+"*":a;for(var i=0,l=root.length;i<l;i++){o(a,root[i],c)}return o.filter(later,c)};jQuery.find=o;jQuery.filter=o.filter;jQuery.expr=o.selectors;jQuery.expr[":"]=jQuery.expr.filters;o.selectors.filters.hidden=function(a){return a.offsetWidth===0||a.offsetHeight===0};o.selectors.filters.visible=function(a){return a.offsetWidth>0||a.offsetHeight>0};o.selectors.filters.animated=function(b){return jQuery.grep(jQuery.timers,function(a){return b===a.elem}).length};jQuery.multiFilter=function(a,b,c){if(c){a=":not("+a+")"}return o.matches(a,b)};jQuery.dir=function(a,b){var c=[],cur=a[b];while(cur&&cur!=document){if(cur.nodeType==1)c.push(cur);cur=cur[b]}return c};jQuery.nth=function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType==1&&++e==b)break;return a};jQuery.sibling=function(n,a){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=a)r.push(n)}return r};return;y.Sizzle=o})();jQuery.event={add:function(e,f,g,h){if(e.nodeType==3||e.nodeType==8)return;if(e.setInterval&&e!=y)e=y;if(!g.guid)g.guid=this.guid++;if(h!==undefined){var i=g;g=this.proxy(i);g.data=h}var j=jQuery.data(e,"events")||jQuery.data(e,"events",{}),handle=jQuery.data(e,"handle")||jQuery.data(e,"handle",function(){return typeof jQuery!=="undefined"&&!jQuery.event.triggered?jQuery.event.handle.apply(arguments.callee.elem,arguments):undefined});handle.elem=e;jQuery.each(f.split(/\s+/),function(a,b){var c=b.split(".");b=c.shift();g.type=c.slice().sort().join(".");var d=j[b];if(jQuery.event.specialAll[b])jQuery.event.specialAll[b].setup.call(e,h,c);if(!d){d=j[b]={};if(!jQuery.event.special[b]||jQuery.event.special[b].setup.call(e,h,c)===false){if(e.addEventListener)e.addEventListener(b,handle,false);else if(e.attachEvent)e.attachEvent("on"+b,handle)}}d[g.guid]=g;jQuery.event.global[b]=true});e=null},guid:1,global:{},remove:function(f,g,h){if(f.nodeType==3||f.nodeType==8)return;var i=jQuery.data(f,"events"),ret,index;if(i){if(g===undefined||(typeof g==="string"&&g.charAt(0)=="."))for(var j in i)this.remove(f,j+(g||""));else{if(g.type){h=g.handler;g=g.type}jQuery.each(g.split(/\s+/),function(a,b){var c=b.split(".");b=c.shift();var d=RegExp("(^|\\.)"+c.slice().sort().join(".*\\.")+"(\\.|$)");if(i[b]){if(h)delete i[b][h.guid];else for(var e in i[b])if(d.test(i[b][e].type))delete i[b][e];if(jQuery.event.specialAll[b])jQuery.event.specialAll[b].teardown.call(f,c);for(ret in i[b])break;if(!ret){if(!jQuery.event.special[b]||jQuery.event.special[b].teardown.call(f,c)===false){if(f.removeEventListener)f.removeEventListener(b,jQuery.data(f,"handle"),false);else if(f.detachEvent)f.detachEvent("on"+b,jQuery.data(f,"handle"))}ret=null;delete i[b]}}})}for(ret in i)break;if(!ret){var k=jQuery.data(f,"handle");if(k)k.elem=null;jQuery.removeData(f,"events");jQuery.removeData(f,"handle")}}},trigger:function(a,b,c,d){var f=a.type||a;if(!d){a=typeof a==="object"?a[B]?a:jQuery.extend(jQuery.Event(f),a):jQuery.Event(f);if(f.indexOf("!")>=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!c){a.stopPropagation();if(this.global[f])jQuery.each(jQuery.cache,function(){if(this.events&&this.events[f])jQuery.event.trigger(a,b,this.handle.elem)})}if(!c||c.nodeType==3||c.nodeType==8)return undefined;a.result=undefined;a.target=c;b=jQuery.makeArray(b);b.unshift(a)}a.currentTarget=c;var g=jQuery.data(c,"handle");if(g)g.apply(c,b);if((!c[f]||(jQuery.nodeName(c,'a')&&f=="click"))&&c["on"+f]&&c["on"+f].apply(c,b)===false)a.result=false;if(!d&&c[f]&&!a.isDefaultPrevented()&&!(jQuery.nodeName(c,'a')&&f=="click")){this.triggered=true;try{c[f]()}catch(e){}}this.triggered=false;if(!a.isPropagationStopped()){var h=c.parentNode||c.ownerDocument;if(h)jQuery.event.trigger(a,b,h,true)}},handle:function(a){var b,handlers;a=arguments[0]=jQuery.event.fix(a||y.event);a.currentTarget=this;var c=a.type.split(".");a.type=c.shift();b=!c.length&&!a.exclusive;var d=RegExp("(^|\\.)"+c.slice().sort().join(".*\\.")+"(\\.|$)");handlers=(jQuery.data(this,"events")||{})[a.type];for(var j in handlers){var e=handlers[j];if(b||d.test(e.type)){a.handler=e;a.data=e.data;var f=e.apply(this,arguments);if(f!==undefined){a.result=f;if(f===false){a.preventDefault();a.stopPropagation()}}if(a.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(a){if(a[B])return a;var b=a;a=jQuery.Event(b);for(var i=this.props.length,prop;i;){prop=this.props[--i];a[prop]=b[prop]}if(!a.target)a.target=a.srcElement||document;if(a.target.nodeType==3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement==a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){var c=document.documentElement,body=document.body;a.pageX=a.clientX+(c&&c.scrollLeft||body&&body.scrollLeft||0)-(c.clientLeft||0);a.pageY=a.clientY+(c&&c.scrollTop||body&&body.scrollTop||0)-(c.clientTop||0)}if(!a.which&&((a.charCode||a.charCode===0)?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button)a.which=(a.button&1?1:(a.button&2?3:(a.button&4?2:0)));return a},proxy:function(a,b){b=b||function(){return a.apply(this,arguments)};b.guid=a.guid=a.guid||b.guid||this.guid++;return b},special:{ready:{setup:bindReady,teardown:function(){}}},specialAll:{live:{setup:function(a,b){jQuery.event.add(this,b[0],liveHandler)},teardown:function(a){if(a.length){var b=0,name=RegExp("(^|\\.)"+a[0]+"(\\.|$)");jQuery.each((jQuery.data(this,"events").live||{}),function(){if(name.test(this.type))b++});if(b<1)jQuery.event.remove(this,a[0],liveHandler)}}}}};jQuery.Event=function(a){if(!this.preventDefault)return new jQuery.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=now();this[B]=true};function returnFalse(){return false}function returnTrue(){return true}jQuery.Event.prototype={preventDefault:function(){this.isDefaultPrevented=returnTrue;var e=this.originalEvent;if(!e)return;if(e.preventDefault)e.preventDefault();e.returnValue=false},stopPropagation:function(){this.isPropagationStopped=returnTrue;var e=this.originalEvent;if(!e)return;if(e.stopPropagation)e.stopPropagation();e.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=returnTrue;this.stopPropagation()},isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse};var C=function(a){var b=a.relatedTarget;while(b&&b!=this)try{b=b.parentNode}catch(e){b=this}if(b!=this){a.type=a.data;jQuery.event.handle.apply(this,arguments)}};jQuery.each({mouseover:'mouseenter',mouseout:'mouseleave'},function(a,b){jQuery.event.special[b]={setup:function(){jQuery.event.add(this,a,C,b)},teardown:function(){jQuery.event.remove(this,a,C)}}});jQuery.fn.extend({bind:function(a,b,c){return a=="unload"?this.one(a,b,c):this.each(function(){jQuery.event.add(this,a,c||b,c&&b)})},one:function(b,c,d){var e=jQuery.event.proxy(d||c,function(a){jQuery(this).unbind(a,e);return(d||c).apply(this,arguments)});return this.each(function(){jQuery.event.add(this,b,e,d&&c)})},unbind:function(a,b){return this.each(function(){jQuery.event.remove(this,a,b)})},trigger:function(a,b){return this.each(function(){jQuery.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var c=jQuery.Event(a);c.preventDefault();c.stopPropagation();jQuery.event.trigger(c,b,this[0]);return c.result}},toggle:function(b){var c=arguments,i=1;while(i<c.length)jQuery.event.proxy(b,c[i++]);return this.click(jQuery.event.proxy(b,function(a){this.lastToggle=(this.lastToggle||0)%i;a.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b)},ready:function(a){bindReady();if(jQuery.isReady)a.call(document,jQuery);else jQuery.readyList.push(a);return this},live:function(a,b){var c=jQuery.event.proxy(b);c.guid+=this.selector+a;jQuery(document).bind(liveConvert(a,this.selector),this.selector,c);return this},die:function(a,b){jQuery(document).unbind(liveConvert(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this}});function liveHandler(c){var d=RegExp("(^|\\.)"+c.type+"(\\.|$)"),stop=true,elems=[];jQuery.each(jQuery.data(this,"events").live||[],function(i,a){if(d.test(a.type)){var b=jQuery(c.target).closest(a.data)[0];if(b)elems.push({elem:b,fn:a})}});elems.sort(function(a,b){return jQuery.data(a.elem,"closest")-jQuery.data(b.elem,"closest")});jQuery.each(elems,function(){if(this.fn.call(this.elem,c,this.fn.data)===false)return(stop=false)});return stop}function liveConvert(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")}jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document,jQuery)});jQuery.readyList=null}jQuery(document).triggerHandler("ready")}}});var D=false;function bindReady(){if(D)return;D=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);jQuery.ready()},false)}else if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);jQuery.ready()}});if(document.documentElement.doScroll&&y==y.top)(function(){if(jQuery.isReady)return;try{document.documentElement.doScroll("left")}catch(error){setTimeout(arguments.callee,0);return}jQuery.ready()})()}jQuery.event.add(y,"load",jQuery.ready)}jQuery.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(i,b){jQuery.fn[b]=function(a){return a?this.bind(b,a):this.trigger(b)}});jQuery(y).bind('unload',function(){for(var a in jQuery.cache)if(a!=1&&jQuery.cache[a].handle)jQuery.event.remove(jQuery.cache[a].handle.elem)});(function(){jQuery.support={};var b=document.documentElement,script=document.createElement("script"),div=document.createElement("div"),id="script"+(new Date).getTime();div.style.display="none";div.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 c=div.getElementsByTagName("*"),a=div.getElementsByTagName("a")[0];if(!c||!c.length||!a){return}jQuery.support={leadingWhitespace:div.firstChild.nodeType==3,tbody:!div.getElementsByTagName("tbody").length,objectAll:!!div.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!div.getElementsByTagName("link").length,style:/red/.test(a.getAttribute("style")),hrefNormalized:a.getAttribute("href")==="/a",opacity:a.style.opacity==="0.5",cssFloat:!!a.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};script.type="text/javascript";try{script.appendChild(document.createTextNode("window."+id+"=1;"))}catch(e){}b.insertBefore(script,b.firstChild);if(y[id]){jQuery.support.scriptEval=true;delete y[id]}b.removeChild(script);if(div.attachEvent&&div.fireEvent){div.attachEvent("onclick",function(){jQuery.support.noCloneEvent=false;div.detachEvent("onclick",arguments.callee)});div.cloneNode(true).fireEvent("onclick")}jQuery(function(){var a=document.createElement("div");a.style.width=a.style.paddingLeft="1px";document.body.appendChild(a);jQuery.boxModel=jQuery.support.boxModel=a.offsetWidth===2;document.body.removeChild(a).style.display='none'})})();var E=jQuery.support.cssFloat?"cssFloat":"styleFloat";jQuery.props={"for":"htmlFor","class":"className","float":E,cssFloat:E,styleFloat:E,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};jQuery.fn.extend({_load:jQuery.fn.load,load:function(c,d,e){if(typeof c!=="string")return this._load(c);var f=c.indexOf(" ");if(f>=0){var g=c.slice(f,c.length);c=c.slice(0,f)}var h="GET";if(d)if(jQuery.isFunction(d)){e=d;d=null}else if(typeof d==="object"){d=jQuery.param(d);h="POST"}var i=this;jQuery.ajax({url:c,type:h,dataType:"html",data:d,complete:function(a,b){if(b=="success"||b=="notmodified")i.html(g?jQuery("<div/>").append(a.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(g):a.responseText);if(e)i.each(e,[a.responseText,b,a])}});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?jQuery.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(i,b){var c=jQuery(this).val();return c==null?null:jQuery.isArray(c)?jQuery.map(c,function(a,i){return{name:b.name,value:a}}):{name:b.name,value:c}}).get()}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});var F=now();jQuery.extend({get:function(a,b,c,d){if(jQuery.isFunction(b)){c=b;b=null}return jQuery.ajax({type:"GET",url:a,data:b,success:c,dataType:d})},getScript:function(a,b){return jQuery.get(a,null,b,"script")},getJSON:function(a,b,c){return jQuery.get(a,b,c,"json")},post:function(a,b,c,d){if(jQuery.isFunction(b)){c=b;b={}}return jQuery.ajax({type:"POST",url:a,data:b,success:c,dataType:d})},ajaxSetup:function(a){jQuery.extend(jQuery.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return y.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(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var c,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!=="string")s.data=jQuery.param(s.data);if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre))s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?"}else if(!s.data||!s.data.match(jsre))s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";s.dataType="json"}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){c="jsonp"+F++;if(s.data)s.data=(s.data+"").replace(jsre,"="+c+"$1");s.url=s.url.replace(jsre,"="+c+"$1");s.dataType="script";y[c]=function(a){data=a;success();complete();y[c]=undefined;try{delete y[c]}catch(e){}if(h)h.removeChild(i)}}if(s.dataType=="script"&&s.cache==null)s.cache=false;if(s.cache===false&&type=="GET"){var d=now();var f=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+d+"$2");s.url=f+((f==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+d:"")}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null}if(s.global&&!jQuery.active++)jQuery.event.trigger("ajaxStart");var g=/^(\w+:)?\/\/([^\/?#]+)/.exec(s.url);if(s.dataType=="script"&&type=="GET"&&g&&(g[1]&&g[1]!=location.protocol||g[2]!=location.host)){var h=document.getElementsByTagName("head")[0];var i=document.createElement("script");i.src=s.url;if(s.scriptCharset)i.charset=s.scriptCharset;if(!c){var j=false;i.onload=i.onreadystatechange=function(){if(!j&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){j=true;success();complete();i.onload=i.onreadystatechange=null;h.removeChild(i)}}}h.appendChild(i);return undefined}var k=false;var l=s.xhr();if(s.username)l.open(type,s.url,s.async,s.username,s.password);else l.open(type,s.url,s.async);try{if(s.data)l.setRequestHeader("Content-Type",s.contentType);if(s.ifModified)l.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");l.setRequestHeader("X-Requested-With","XMLHttpRequest");l.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default)}catch(e){}if(s.beforeSend&&s.beforeSend(l,s)===false){if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop");l.abort();return false}if(s.global)jQuery.event.trigger("ajaxSend",[l,s]);var m=function(a){if(l.readyState==0){if(n){clearInterval(n);n=null;if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop")}}else if(!k&&l&&(l.readyState==4||a=="timeout")){k=true;if(n){clearInterval(n);n=null}status=a=="timeout"?"timeout":!jQuery.httpSuccess(l)?"error":s.ifModified&&jQuery.httpNotModified(l,s.url)?"notmodified":"success";if(status=="success"){try{data=jQuery.httpData(l,s.dataType,s)}catch(e){status="parsererror"}}if(status=="success"){var b;try{b=l.getResponseHeader("Last-Modified")}catch(e){}if(s.ifModified&&b)jQuery.lastModified[s.url]=b;if(!c)success()}else jQuery.handleError(s,l,status);complete();if(a)l.abort();if(s.async)l=null}};if(s.async){var n=setInterval(m,13);if(s.timeout>0)setTimeout(function(){if(l&&!k)m("timeout")},s.timeout)}try{l.send(s.data)}catch(e){jQuery.handleError(s,l,null,e)}if(!s.async)m();function success(){if(s.success)s.success(data,status);if(s.global)jQuery.event.trigger("ajaxSuccess",[l,s])}function complete(){if(s.complete)s.complete(l,status);if(s.global)jQuery.event.trigger("ajaxComplete",[l,s]);if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop")}return l},handleError:function(s,a,b,e){if(s.error)s.error(a,b,e);if(s.global)jQuery.event.trigger("ajaxError",[a,s,e])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol=="file:"||(a.status>=200&&a.status<300)||a.status==304||a.status==1223}catch(e){}return false},httpNotModified:function(a,b){try{var c=a.getResponseHeader("Last-Modified");return a.status==304||c==jQuery.lastModified[b]}catch(e){}return false},httpData:function(a,b,s){var c=a.getResponseHeader("content-type"),xml=b=="xml"||!b&&c&&c.indexOf("xml")>=0,data=xml?a.responseXML:a.responseText;if(xml&&data.documentElement.tagName=="parsererror")throw"parsererror";if(s&&s.dataFilter)data=s.dataFilter(data,b);if(typeof data==="string"){if(b=="script")jQuery.globalEval(data);if(b=="json")data=y["eval"]("("+data+")")}return data},param:function(a){var s=[];function add(a,b){s[s.length]=encodeURIComponent(a)+'='+encodeURIComponent(b)};if(jQuery.isArray(a)||a.jquery)jQuery.each(a,function(){add(this.name,this.value)});else for(var j in a)if(jQuery.isArray(a[j]))jQuery.each(a[j],function(){add(j,this)});else add(j,jQuery.isFunction(a[j])?a[j]():a[j]);return s.join("&").replace(/%20/g,"+")}});var G={},timerId,fxAttrs=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function genFx(a,b){var c={};jQuery.each(fxAttrs.concat.apply([],fxAttrs.slice(0,b)),function(){c[this]=a});return c}jQuery.fn.extend({show:function(a,b){if(a){return this.animate(genFx("show",3),a,b)}else{for(var i=0,l=this.length;i<l;i++){var c=jQuery.data(this[i],"olddisplay");this[i].style.display=c||"";if(jQuery.css(this[i],"display")==="none"){var d=this[i].tagName,display;if(G[d]){display=G[d]}else{var e=jQuery("<"+d+" />").appendTo("body");display=e.css("display");if(display==="none")display="block";e.remove();G[d]=display}jQuery.data(this[i],"olddisplay",display)}}for(var i=0,l=this.length;i<l;i++){this[i].style.display=jQuery.data(this[i],"olddisplay")||""}return this}},hide:function(a,b){if(a){return this.animate(genFx("hide",3),a,b)}else{for(var i=0,l=this.length;i<l;i++){var c=jQuery.data(this[i],"olddisplay");if(!c&&c!=="none")jQuery.data(this[i],"olddisplay",jQuery.css(this[i],"display"))}for(var i=0,l=this.length;i<l;i++){this[i].style.display="none"}return this}},_toggle:jQuery.fn.toggle,toggle:function(b,c){var d=typeof b==="boolean";return jQuery.isFunction(b)&&jQuery.isFunction(c)?this._toggle.apply(this,arguments):b==null||d?this.each(function(){var a=d?b:jQuery(this).is(":hidden");jQuery(this)[a?"show":"hide"]()}):this.animate(genFx("toggle",3),b,c)},fadeTo:function(a,b,c){return this.animate({opacity:b},a,c)},animate:function(g,h,i,j){var k=jQuery.speed(h,i,j);return this[k.queue===false?"each":"queue"](function(){var f=jQuery.extend({},k),p,hidden=this.nodeType==1&&jQuery(this).is(":hidden"),self=this;for(p in g){if(g[p]=="hide"&&hidden||g[p]=="show"&&!hidden)return f.complete.call(this);if((p=="height"||p=="width")&&this.style){f.display=jQuery.css(this,"display");f.overflow=this.style.overflow}}if(f.overflow!=null)this.style.overflow="hidden";f.curAnim=jQuery.extend({},g);jQuery.each(g,function(a,b){var e=new jQuery.fx(self,f,a);if(/toggle|show|hide/.test(b))e[b=="toggle"?hidden?"show":"hide":b](g);else{var c=b.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(c){var d=parseFloat(c[2]),unit=c[3]||"px";if(unit!="px"){self.style[a]=(d||1)+unit;start=((d||1)/e.cur(true))*start;self.style[a]=start+unit}if(c[1])d=((c[1]=="-="?-1:1)*d)+start;e.custom(start,d,unit)}else e.custom(start,b,"")}});return true})},stop:function(a,b){var c=jQuery.timers;if(a)this.queue([]);this.each(function(){for(var i=c.length-1;i>=0;i--)if(c[i].elem==this){if(b)c[i](true);c.splice(i,1)}});if(!b)this.dequeue();return this}});jQuery.each({slideDown:genFx("show",1),slideUp:genFx("hide",1),slideToggle:genFx("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(c,d){jQuery.fn[c]=function(a,b){return this.animate(d,a,b)}});jQuery.extend({speed:function(a,b,c){var d=typeof a==="object"?a:{complete:c||!c&&b||jQuery.isFunction(a)&&a,duration:a,easing:c&&b||b&&!jQuery.isFunction(b)&&b};d.duration=jQuery.fx.off?0:typeof d.duration==="number"?d.duration:jQuery.fx.speeds[d.duration]||jQuery.fx.speeds._default;d.old=d.complete;d.complete=function(){if(d.queue!==false)jQuery(this).dequeue();if(jQuery.isFunction(d.old))d.old.call(this)};return d},easing:{linear:function(p,n,a,b){return a+b*p},swing:function(p,n,a,b){return((-Math.cos(p*Math.PI)/2)+0.5)*b+a}},timers:[],fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;if(!b.orig)b.orig={}}});jQuery.fx.prototype={update:function(){if(this.options.step)this.options.step.call(this.elem,this.now,this);(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var r=parseFloat(jQuery.css(this.elem,this.prop,a));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0},custom:function(b,c,d){this.startTime=now();this.start=b;this.end=c;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;function t(a){return e.step(a)}t.elem=this.elem;if(t()&&jQuery.timers.push(t)&&!timerId){timerId=setInterval(function(){var a=jQuery.timers;for(var i=0;i<a.length;i++)if(!a[i]())a.splice(i--,1);if(!a.length){clearInterval(timerId);timerId=undefined}},13)}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var t=now();if(a||t>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var b=true;for(var i in this.options.curAnim)if(this.options.curAnim[i]!==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(jQuery.css(this.elem,"display")=="none")this.elem.style.display="block"}if(this.options.hide)jQuery(this.elem).hide();if(this.options.hide||this.options.show)for(var p in this.options.curAnim)jQuery.attr(this.elem.style,p,this.options.orig[p]);this.options.complete.call(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){jQuery.attr(a.elem.style,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=a.now+a.unit;else a.elem[a.prop]=a.now}}});if(document.documentElement["getBoundingClientRect"])jQuery.fn.offset=function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return jQuery.offset.bodyOffset(this[0]);var a=this[0].getBoundingClientRect(),doc=this[0].ownerDocument,body=doc.body,docElem=doc.documentElement,clientTop=docElem.clientTop||body.clientTop||0,clientLeft=docElem.clientLeft||body.clientLeft||0,top=a.top+(self.pageYOffset||jQuery.boxModel&&docElem.scrollTop||body.scrollTop)-clientTop,left=a.left+(self.pageXOffset||jQuery.boxModel&&docElem.scrollLeft||body.scrollLeft)-clientLeft;return{top:top,left:left}};else jQuery.fn.offset=function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return jQuery.offset.bodyOffset(this[0]);jQuery.offset.initialized||jQuery.offset.initialize();var a=this[0],offsetParent=a.offsetParent,prevOffsetParent=a,doc=a.ownerDocument,computedStyle,docElem=doc.documentElement,body=doc.body,defaultView=doc.defaultView,prevComputedStyle=defaultView.getComputedStyle(a,null),top=a.offsetTop,left=a.offsetLeft;while((a=a.parentNode)&&a!==body&&a!==docElem){computedStyle=defaultView.getComputedStyle(a,null);top-=a.scrollTop,left-=a.scrollLeft;if(a===offsetParent){top+=a.offsetTop,left+=a.offsetLeft;if(jQuery.offset.doesNotAddBorder&&!(jQuery.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(a.tagName)))top+=parseInt(computedStyle.borderTopWidth,10)||0,left+=parseInt(computedStyle.borderLeftWidth,10)||0;prevOffsetParent=offsetParent,offsetParent=a.offsetParent}if(jQuery.offset.subtractsBorderForOverflowNotVisible&&computedStyle.overflow!=="visible")top+=parseInt(computedStyle.borderTopWidth,10)||0,left+=parseInt(computedStyle.borderLeftWidth,10)||0;prevComputedStyle=computedStyle}if(prevComputedStyle.position==="relative"||prevComputedStyle.position==="static")top+=body.offsetTop,left+=body.offsetLeft;if(prevComputedStyle.position==="fixed")top+=Math.max(docElem.scrollTop,body.scrollTop),left+=Math.max(docElem.scrollLeft,body.scrollLeft);return{top:top,left:left}};jQuery.offset={initialize:function(){if(this.initialized)return;var a=document.body,container=document.createElement('div'),innerDiv,checkDiv,table,td,rules,prop,bodyMarginTop=a.style.marginTop,html='<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>';rules={position:'absolute',top:0,left:0,margin:0,border:0,width:'1px',height:'1px',visibility:'hidden'};for(prop in rules)container.style[prop]=rules[prop];container.innerHTML=html;a.insertBefore(container,a.firstChild);innerDiv=container.firstChild,checkDiv=innerDiv.firstChild,td=innerDiv.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(checkDiv.offsetTop!==5);this.doesAddBorderForTableAndCells=(td.offsetTop===5);innerDiv.style.overflow='hidden',innerDiv.style.position='relative';this.subtractsBorderForOverflowNotVisible=(checkDiv.offsetTop===-5);a.style.marginTop='1px';this.doesNotIncludeMarginInBodyOffset=(a.offsetTop===0);a.style.marginTop=bodyMarginTop;a.removeChild(container);this.initialized=true},bodyOffset:function(a){jQuery.offset.initialized||jQuery.offset.initialize();var b=a.offsetTop,left=a.offsetLeft;if(jQuery.offset.doesNotIncludeMarginInBodyOffset)b+=parseInt(jQuery.curCSS(a,'marginTop',true),10)||0,left+=parseInt(jQuery.curCSS(a,'marginLeft',true),10)||0;return{top:b,left:left}}};jQuery.fn.extend({position:function(){var a=0,top=0,results;if(this[0]){var b=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(b[0].tagName)?{top:0,left:0}:b.offset();offset.top-=num(this,'marginTop');offset.left-=num(this,'marginLeft');parentOffset.top+=num(b,'borderTopWidth');parentOffset.left+=num(b,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}}return results},offsetParent:function(){var a=this[0].offsetParent||document.body;while(a&&(!/^body|html$/i.test(a.tagName)&&jQuery.css(a,'position')=='static'))a=a.offsetParent;return jQuery(a)}});jQuery.each(['Left','Top'],function(i,b){var c='scroll'+b;jQuery.fn[c]=function(a){if(!this[0])return null;return a!==undefined?this.each(function(){this==y||this==document?y.scrollTo(!i?a:jQuery(y).scrollLeft(),i?a:jQuery(y).scrollTop()):this[c]=a}):this[0]==y||this[0]==document?self[i?'pageYOffset':'pageXOffset']||jQuery.boxModel&&document.documentElement[c]||document.body[c]:this[0][c]}});jQuery.each(["Height","Width"],function(i,b){var c=i?"Left":"Top",br=i?"Right":"Bottom",lower=b.toLowerCase();jQuery.fn["inner"+b]=function(){return this[0]?jQuery.css(this[0],lower,false,"padding"):null};jQuery.fn["outer"+b]=function(a){return this[0]?jQuery.css(this[0],lower,false,a?"margin":"border"):null};var d=b.toLowerCase();jQuery.fn[d]=function(a){return this[0]==y?document.compatMode=="CSS1Compat"&&document.documentElement["client"+b]||document.body["client"+b]:this[0]==document?Math.max(document.documentElement["client"+b],document.body["scroll"+b],document.documentElement["scroll"+b],document.body["offset"+b],document.documentElement["offset"+b]):a===undefined?(this.length?jQuery.css(this[0],d):null):this.css(d,typeof a==="string"?a:a+"px")}})})();
//ui-core-mini
;;jQuery.ui||(function($){var j=$.fn.remove;$.ui={version:"1.7.2",contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};function getter(c,d,e,f){function getMethods(a){var b=$[c][d][a]||[];return(typeof b=='string'?b.split(/,?\s+/):b)}var g=getMethods('getter');if(f.length==1&&typeof f[0]=='string'){g=g.concat(getMethods('getterSetter'))}return($.inArray(e,g)!=-1)}$.widget=function(g,h){var i=g.split(".")[0];g=g.split(".")[1];$.fn[g]=function(b){var c=(typeof b=='string'),args=Array.prototype.slice.call(arguments,1);if(c&&b.substring(0,1)=='_'){return this}if(c&&getter(i,g,b,args)){var d=$.data(this[0],g);return(d?d[b].apply(d,args):undefined)}return this.each(function(){var a=$.data(this,g);(!a&&!c&&$.data(this,g,new $[i][g](this,b))._init());(a&&c&&$.isFunction(a[b])&&a[b].apply(a,args))})};$[i]=$[i]||{};$[i][g]=function(d,e){var f=this;this.namespace=i;this.widgetName=g;this.widgetEventPrefix=$[i][g].eventPrefix||g;this.widgetBaseClass=i+'-'+g;this.options=$.extend(true,{},$.widget.defaults,$[i][g].defaults,$.metadata&&$.metadata.get(d)[g],e);this.element=$(d).bind('setData.'+g,function(a,b,c){if(a.target==d){return f._setData(b,c)}}).bind('getData.'+g,function(a,b){if(a.target==d){return f._getData(b)}}).bind('remove',function(){return f.destroy()})};$[i][g].prototype=$.extend({},$.widget.prototype,h);$[i][g].getterSetter='option'};$.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+'-disabled'+' '+this.namespace+'-state-disabled').removeAttr('aria-disabled')},option:function(c,d){var e=c,self=this;if(typeof c=="string"){if(d===undefined){return this._getData(c)}e={};e[c]=d}$.each(e,function(a,b){self._setData(a,b)})},_getData:function(a){return this.options[a]},_setData:function(a,b){this.options[a]=b;if(a=='disabled'){this.element[b?'addClass':'removeClass'](this.widgetBaseClass+'-disabled'+' '+this.namespace+'-state-disabled').attr("aria-disabled",b)}},enable:function(){this._setData('disabled',false)},disable:function(){this._setData('disabled',true)},_trigger:function(a,b,c){var d=this.options[a],eventName=(a==this.widgetEventPrefix?a:this.widgetEventPrefix+a);b=$.Event(b);b.type=eventName;if(b.originalEvent){for(var i=$.event.props.length,prop;i;){prop=$.event.props[--i];b[prop]=b.originalEvent[prop]}}this.element.trigger(b,c);return!($.isFunction(d)&&d.call(this.element[0],b,c)===false||b.isDefaultPrevented())}};$.widget.defaults={disabled:false}})(jQuery);
//posAround
;(function($){var h={left:0,top:0,center:1,middle:1,right:2,bottom:2,sameleft:3,sametop:3,sameright:4,samebottom:4};function getPosition(a,b,c,d,e,f){var g=(d=='horizontal')?['Left','outerWidth','width']:['Top','outerHeight','height'],ret,viewPort={};e=isFinite(e)?e:h[e];switch(e){case 0:ret=c[g[0].toLowerCase()]-b[g[1]]();break;case 1:ret=c[g[0].toLowerCase()]+(a[g[1]]()/2)-(b[g[1]]()/2);break;case 2:ret=c[g[0].toLowerCase()]+a[g[1]]();break;case 3:ret=c[g[0].toLowerCase()];break;case 4:ret=c[g[0].toLowerCase()]+a[g[1]]()-b[g[1]]();break}if(f){viewPort.start=$(window)['scroll'+g[0]]();viewPort.end=viewPort.start+$(window)[g[2]]();if(viewPort.start>ret&&e<2){e=2;ret=getPosition(a,b,c,d,e)[0]}else if(viewPort.end<ret+b[g[1]]()&&e>0){e=0;ret=getPosition(a,b,c,d,e)[0]}}return[ret,e]}$.posAround=function(a,b,o){o=$.extend({},$.posAround.defaults,o);a=$(a);var c,css={};if(isFinite(b.pageX)&&isFinite(b.pageY)){c={top:b.pageY,left:b.pageX};b.outerWidth=function(){return o.mouseWidth};b.outerHeight=function(){return o.mouseHeight}}else{b=$(b);c=b.offset()}css.left=getPosition(b,a,c,'horizontal',o.horizontal,o.fitToView);css.top=getPosition(b,a,c,'vertical',o.vertical,o.fitToView);$.posAround.setPosClass(a,css);return css};$.posAround.setPosClass=function(a,b){$.posAround.cleanUpPosClass(a);a.addClass('positionaround-'+b.left[1]+'-'+b.top[1]);b.top=b.top[0];b.left=b.left[0]};$.posAround.cleanUpPosClass=function(b){var c=$.grep(b.attr('class').split(' '),function(a){return(a.indexOf('positionaround-')==-1)})};$.posAround.defaults={horizontal:'right',vertical:'bottom',fitToView:true,mouseWidth:15,mouseHeight:20}})(jQuery);
//classparser
;(function($){$.fn.getClassData=function(){var c={};if(this[0]){var d=this[0].className.split(' ');$.each(d,function(i,a){var b,value;if(a.indexOf('data-')===0){a=a.replace('data-','').split('-');b=a.shift();value=a.join('-');if(b&&value){if(value==='true'){c[b]=true}else if(value==='false'){c[b]=false}else if(value==(value*1)){c[b]=parseFloat(value,10)}else{c[b]=value}}}})}return c}})(jQuery);
//jquery-social-b
;(function($){$.socialbookmark={findRelElm:function(a){var b=$(a),ref=b.attr('href'),find=ref.indexOf('#');ref=ref.substr(find);return ref},handler:function(){if($.socialbookmark.actElm&&!$($.socialbookmark.actElm).is(':hidden')){$.socialbookmark.hide()}else{$.socialbookmark.show.call(this)}return false},hideNotinActElm:function(e){var a=$(e.target);if(a.is($.socialbookmark.actElm)||a.parents($.socialbookmark.actElm).size()){return}$.socialbookmark.hide()},show:function(){var a=$.socialbookmark.findRelElm(this);$(a).animate({height:'show',opacity:'show'},{duration:400});$.socialbookmark.actElm=a;$(document).bind('click',$.socialbookmark.hideNotinActElm);return false},actElm:null,hide:function(){$($.socialbookmark.actElm).animate({height:"hide",opacity:"hide"});$('body').unbind('click',$.socialbookmark.hideNotinActElm)},init:function(a){var b=$(a);if(b.size()){var c=$.socialbookmark.findRelElm(b[0]);$(c).css({display:'none'});b.click($.socialbookmark.handler)}}}})(jQuery);
//ui-scroller
;(function($){$.widget('ui.scroller',{_init:function(){var b=this.element[0],o=this.options,that=this,fn=o.animateOptions.complete;o.animateOptions.complete=function(){if(fn&&$.isFunction(fn)){fn.call(this,that)}that.propagate('end')};o.direction=(o.direction=='vertical')?{scroll:'scrollTop',outerD:'outerHeight',dim:'height',dir:'Top'}:{scroll:'scrollLeft',outerD:'outerWidth',dim:'width',dir:'Left'};this.moveElem=$(o.moveWrapper,b);this.atomElem=$(o.atoms,b);this.hidingWrapper=$(o.hidingWrapper,b);this.nextLink=$(o.nextLink,b);this.prevLink=$(o.prevLink,b);this.position=0;this.atomPos=0;this.percentage=0;this.oldPosition=0;this.oldAtomPos=0;if(o.hidingHeight||o.hidingWidth){var c=(o.hidingHeight)?{height:o.hidingHeight}:{};if((o.hidingWidth)){c=$.extend(c,{width:o.hidingWidth})}this.hidingWrapper.css(c)}this.selectedFocus=false;if($.fn.setFocus&&$.fn.closest){var f={};if((o.direction.dir==='Top')){f[$.ui.keyCode.UP]='prev';f[$.ui.keyCode.DOWN]='next'}else{f[$.ui.keyCode.LEFT]='prev';f[$.ui.keyCode.RIGHT]='next'}this.moveElem.bind('keyfocus',function(e){var a=$(e.target).closest(o.atoms);if(a[0]){that.scrollIntoView(a)}}).bind('focusin',function(e){var a=$(e.target).closest(o.atoms);that.selectedFocus=(a[0])?a:false}).bind('focusout',function(e){that.selectedFocus=false}).bind('keydown',function(e){if(that.selectedFocus===false||!f[e.keyCode]){return}var a=that.selectedFocus[f[e.keyCode]](o.atoms);if(a&&a[0]){e.preventDefault();a.setFocus(0,true);that.scrollIntoView(a)}else if(that.isSliding){e.preventDefault()}})}this.dims=[0];this.hidingWrapper[0][o.direction.scroll]=0;this.minPos=0;this.update();if(o.recalcStageOnresize){$(window).bind('resize',function(){setTimeout(function(){that.stageWidthUpdate.call(that)},0)})}if(o.diashow){this.startDiashow();this.element.bind('mouseenter focusin',function(){clearInterval(that.diaTimer);setTimeout(function(){clearInterval(that.diaTimer)},99)});if(o.restartDiaShow){this.element.bind('mouseleave focusout',function(){that.startDiashow.call(that)})}}if(o.enableMwheel&&$.fn.mmwheel){this.hidingWrapper.mmwheel(function(e,d){that.stopDiashow.call(that);d=(d<0)?'-':'+';if((that.position>=that.maxPos&&d==='-')||(d==='+'&&that.position<=that.minPos)){return!that.isSliding}var a=(o.moveStep)?o.moveStep:'atom';that.moveTo(d+'atom1');return false})}var g=function(){var a=($.inArray(this,that.prevLink)!==-1)?'+':'-';that.stopDiashow.call(that);that.moveTo(a+o.moveStep);return false};this.nextLink.bind('click.uiscroller',g);this.prevLink.bind('click.uiscroller',g);if($.browser.msie&&parseInt($.browser.version,10)<7){var h=function(){$(this).addClass('over')},out=function(){$(this).removeClass('over')};this.nextLink.hover(h,out);this.prevLink.hover(h,out)}if(o.defaultSelected){this.moveTo('goTo'+o.defaultSelected,false)}this.propagate('init')},stageWidthUpdate:function(){this.dims[1]=this.hidingWrapper[this.options.direction.dim]();this.maxPos=(this.dims[0]-this.dims[1]);this.updatePosition_Controls()},createPagination:function(a){var b='<ul>',that=this,tmpContent,o=this.options;this.pagination=$(o.pagination,this.element[0]);this.atomElem.each(function(i){tmpContent=o.paginationAtoms.replace(/\$number/g,i+1);b+=(o.paginationTitleFrom)?tmpContent.replace(/\$title/g,$(o.paginationTitleFrom,this).text()):tmpContent});this.pagination.html(b+'</ul>').find('a').each(function(i){$(this).click(function(){that.stopDiashow.call(that);that.moveTo.call(that,'goTo'+i);return false})})},getIndexNearPos:function(a){var b=this.dims.length;while(b--){if(a>=this.dims[b]){return b}}return false},inView:function(a){var b=this.options.direction,stageDim=this.dims[1],atomDim=a[b.outerD](),curPos=this.hidingWrapper['scroll'+b.dir](),atomPos=a[0]['offset'+b.dir];if(curPos>atomPos||stageDim<atomDim+atomPos-curPos){return atomPos}return false},scrollIntoView:function(a){var b=this.inView(a);if(b!==false){this.moveTo(b)}},_setData:function(k,v){var o=this.options;switch(k){case'enableMwheel':if(!v&&o.enableMwheel){this.hidingWrapper.unmmwheel()}break;case'addSubPixel':if(o.addSubPixel!==v){this.dims[0]-=o.addSubPixel;o.addSubPixel=v;this.dims[0]+=o.addSubPixel;this.update()}break}$.widget.prototype._setData.apply(this,arguments)},startDiashow:function(){var a=this;this.diaTimer=null;clearInterval(this.diaTimer);this.diaTimer=setInterval(function(){((a.position===a.maxPos&&a.options.type!=='carousel')?a.moveTo(0,false):a.moveTo('-'+a.options.moveStep))},this.options.diashow)},stopDiashow:function(){this.element.unbind('.diashow');clearInterval(this.diaTimer)},update:function(a){var b=this,jElm,o=this.options;if(a){this.dims=[0]}this.dims[1]=this.hidingWrapper.css({overflow:'hidden',position:'relative'})[o.direction.dim]();var c=this.dims.length-2;for(var i=c,len=this.atomElem.length;i<len;i++){jElm=$(this.atomElem[i]);b.dims.push(b.dims[0]);b.dims[0]+=jElm[o.direction.outerD]({margin:true})}this.dims[0]+=o.addSubPixel;this.maxPos=(this.dims[0]-this.dims[1]);var d={};d[o.direction.dim]=this.dims[0]+'px';this.moveElem.css(d);if(o.pagination){this.createPagination(a)}this.updatePosition_Controls()},updatePosition_Controls:function(d){var o=this.options;d=(isNaN(d))?parseInt(this.hidingWrapper[0][o.direction.scroll],10):d;function changeState(a,b){var c=(b)?{style:'addClass'}:{style:'removeClass'};return a[c.style](o.activeLinkClass)}if(d!==this.position){this.percentage=d/(this.maxPos/100);this.oldPosition=this.position;this.oldAtomPos=this.atomPos;this.position=d;var e=this.getIndexNearPos(this.position);e=(e)?e-2:0;this.atomPos=e}this.percentage=d/(this.maxPos/100);if(d<=this.minPos&&this.prevLink.is('.'+o.activeLinkClass)){o.linkFn.call(this.prevLink,'hide',this.ui());changeState(this.prevLink)}else if(d>this.minPos&&!this.prevLink.is('.'+o.activeLinkClass)){o.linkFn.call(this.prevLink,'show',this.ui());changeState(this.prevLink,true)}if(d>=this.maxPos&&this.nextLink.is('.'+o.activeLinkClass)){o.linkFn.call(this.nextLink,'hide',this.ui());changeState(this.nextLink)}else if(d<this.maxPos&&!this.nextLink.is('.'+o.activeLinkClass)){o.linkFn.call(this.nextLink,'show',this.ui());changeState(this.nextLink,true)}if(this.pagination){var f=this.pagination.find('li').filter('.'+o.activePaginationClass).removeClass(o.activePaginationClass),newActive=f.end().eq(this.atomPos).addClass(o.activePaginationClass);if($.isFunction(o.paginationFn)){o.paginationFn.call(f,'inactive');o.paginationFn.call(newActive,'active')}}},getNummericPosition:function(a){var b=false,num,lastDim=this.dims[this.dims.length-1];if(a.indexOf('goTo')===0){num=parseInt(/(\d+)$/.exec(a)[0],10)+2;a=this.dims[num]}else if(a.indexOf('centerTo')===0){num=parseInt(/(\d+)$/.exec(a)[0],10)+2;a=this.dims[num]-(this.dims[1]/2)+(this.atomElem.filter(":eq("+num+")")[this.options.direction.outerD]()/2)}else if(a=='-atom'||a=='-atom1'){num=this.atomPos+3;a=(this.dims[num]||this.dims[num]===0)?this.dims[num]:lastDim}else if(a=='+atom'||a=='+atom1'){a=(this.atomPos)?this.dims[this.atomPos+1]:0}else if(a.indexOf('atom')==1){num=parseInt(/(\d+)$/.exec(a)[0],10);if(a.indexOf('-')===0){num+=2;if(this.dims[this.atomPos+num]){a=this.dims[this.atomPos+num]}else{a=lastDim}}else{num-=2;var c=this.atomPos-num;if(c>1&&this.dims[this.atomPos-num]){a=this.dims[this.atomPos-num]}else{a=0}}}else if(a.indexOf('+')===0||a.indexOf('-')===0){b=a.slice(0,1);a=parseInt(a.slice(1),10);a=(b=='-')?this.position+a:this.position-a}else{var d=/(\d+)%$/.exec(a);if(d&&d[1]){a=this.maxPos/100*parseFloat(a)}}if(this.options.stickyFirstLast){if((a-this.maxPos)*-1<this.atomElem.filter(':last')[this.options.direction.outerD]()){a=this.maxPos}else if(a<this.atomElem[this.options.direction.outerD]()){a=0}}return a},moveTo:function(a,b,c){a=(typeof a==='string'||isNaN(a))?this.getNummericPosition(a):a;a=(a<=0)?0:(a>=this.maxPos)?this.maxPos:a;if(a===this.position){return false}var o=this.options,scroll=o.direction.scroll;this.updatePosition_Controls(a);this.propagate('start',this.oldPosition);b=(typeof b=='undefined')?o.animate:b;if(b){c=c||{};c=$.extend({},o.animateOptions,{slide:this},c);var d=(scroll=='scrollTop')?{scrollTop:a,uiscrollerComplete:a}:{scrollLeft:a,uiscrollerComplete:a};this.hidingWrapper.stop().animate(d,c)}else{this.hidingWrapper.stop()[0][scroll]=a;this.propagate('end')}},ui:function(){return{instance:this,options:this.options,pos:this.position,percentPos:this.percentage,oldIndex:this.oldAtomPos,newIndex:this.atomPos,size:this.dims.length-2}},propagate:function(n,a){var b=(a||a===0)?$.extend({},this.ui(),{'pos':a,percentPos:a/(this.maxPos/100)}):this.ui();if(n==='start'){this.isSliding=true}else if(n==='end'){this.isSliding=false}this.element.triggerHandler("uiscroller"+n,[b]);if(this.options[n]){this.options[n].call(this.element[0],{type:'uiscroller'+n},b)}}},true);$.ui.scroller.defaults={hidingWrapper:'div.rack',moveWrapper:'div.rack-design',atoms:'div.teaser',nextLink:'a.next',prevLink:'a.prev',activeLinkClass:'show',stickyFirstLast:true,linkFn:function(){},moveStep:'atom',direction:'horizontal',hidingWidth:false,hidingHeight:false,animate:true,animateOptions:{duration:600,complete:function(){}},enableMwheel:true,diashow:false,restartDiaShow:true,addSubPixel:0,recalcStageOnresize:true,bindStyle:'bind',pagination:false,paginationAtoms:'<li class="pa-$number"><a href="#">$number</a></li>',paginationTitleFrom:false,activePaginationClass:'on',paginationFn:false};$.extend($.fx.step,{uiscrollerComplete:function(a){if(a.now||a.now===0){var b=a.options.slide;if(b){b.propagate('slide',b.hidingWrapper[0][b.options.direction.scroll])}}}});$.ui.scroller.prototype.init=$.ui.scroller.prototype._init})(jQuery);
//flowplayer
;(function(){function log(a){console.log("$f.fireEvent",[].slice.call(a))}function clone(a){if(!a||typeof a!='object'){return a}var b=new a.constructor();for(var c in a){if(a.hasOwnProperty(c)){b[c]=clone(a[c])}}return b}function each(a,b){if(!a){return}var c,i=0,length=a.length;if(length===undefined){for(c in a){if(b.call(a[c],c,a[c])===false){break}}}else{for(var d=a[0];i<length&&b.call(d,i,d)!==false;d=a[++i]){}}return a}function el(a){return document.getElementById(a)}function extend(c,d,e){if(c&&d){each(d,function(a,b){if(!e||typeof b!='function'){c[a]=b}})}}function select(a){var b=a.indexOf(".");if(b!=-1){var c=a.substring(0,b)||"*";var d=a.substring(b+1,a.length);var e=[];each(document.getElementsByTagName(c),function(){if(this.className&&this.className.indexOf(d)!=-1){e.push(this)}});return e}}function stopEvent(e){e=e||window.event;if(e.preventDefault){e.stopPropagation();e.preventDefault()}else{e.returnValue=false;e.cancelBubble=true}return false}function bind(a,b,c){a[b]=a[b]||[];a[b].push(c)}function makeId(){return"_"+(""+Math.random()).substring(2,10)}var q=function(i,j,k){var l=this;var m={};var n={};l.index=j;if(typeof i=='string'){i={url:i}}extend(this,i,true);each(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var b="on"+this;if(b.indexOf("*")!=-1){b=b.substring(0,b.length-1);var c="onBefore"+b.substring(2);l[c]=function(a){bind(n,c,a);return l}}l[b]=function(a){bind(n,b,a);return l};if(j==-1){if(l[c]){k[c]=l[c]}if(l[b]){k[b]=l[b]}}});extend(this,{onCuepoint:function(a,b){if(arguments.length==1){m.embedded=[null,a];return l}if(typeof a=='number'){a=[a]}var c=makeId();m[c]=[a,b];if(k.isLoaded()){k._api().fp_addCuepoints(a,j,c)}return l},update:function(a){extend(l,a);if(k.isLoaded()){k._api().fp_updateClip(a,j)}var b=k.getConfig();var c=(j==-1)?b.clip:b.playlist[j];extend(c,a,true)},_fireEvent:function(c,d,e,f){if(c=='onLoad'){each(m,function(a,b){if(b[0]){k._api().fp_addCuepoints(b[0],j,a)}});return false}if(j!=-1){f=l}if(c=='onCuepoint'){var g=m[d];if(g){return g[1].call(k,f,e)}}if(c=='onStart'||c=='onUpdate'){extend(f,d);if(!f.duration){f.duration=d.metaData.duration}else{f.fullDuration=d.metaData.duration}}var h=true;each(n[c],function(){h=this.call(k,f,d,e)});return h}});if(i.onCuepoint){var o=i.onCuepoint;l.onCuepoint.apply(l,typeof o=='function'?[o]:o);delete i.onCuepoint}each(i,function(a,b){if(typeof b=='function'){bind(n,a,b);delete i[a]}});if(j==-1){k.onCuepoint=this.onCuepoint}};var r=function(h,i,j,k){var l={};var m=this;var n=false;if(k){extend(l,k)}each(i,function(a,b){if(typeof b=='function'){l[a]=b;delete i[a]}});extend(this,{animate:function(a,b,c){if(!a){return m}if(typeof b=='function'){c=b;b=500}if(typeof a=='string'){var d=a;a={};a[d]=b;b=500}if(c){var e=makeId();l[e]=c}if(b===undefined){b=500}i=j._api().fp_animate(h,a,b,e);return m},css:function(a,b){if(b!==undefined){var c={};c[a]=b;a=c}i=j._api().fp_css(h,a);extend(m,i);return m},show:function(){this.display='block';j._api().fp_showPlugin(h);return m},hide:function(){this.display='none';j._api().fp_hidePlugin(h);return m},toggle:function(){this.display=j._api().fp_togglePlugin(h);return m},fadeTo:function(o,a,b){if(typeof a=='function'){b=a;a=500}if(b){var c=makeId();l[c]=b}this.display=j._api().fp_fadeTo(h,o,a,c);this.opacity=o;return m},fadeIn:function(a,b){return m.fadeTo(1,a,b)},fadeOut:function(a,b){return m.fadeTo(0,a,b)},getName:function(){return h},_fireEvent:function(d,e){if(d=='onUpdate'){var f=j._api().fp_getPlugin(h);if(!f){return}extend(m,f);delete m.methods;if(!n){each(f.methods,function(){var c=""+this;m[c]=function(){var a=[].slice.call(arguments);var b=j._api().fp_invoke(h,c,a);return b=='undefined'?m:b}});n=true}}var g=l[d];if(g){g.call(m,e);if(d.substring(0,1)=="_"){delete l[d]}}}})};function Player(l,m,n){var o=this,api=null,html,commonClip,playlist=[],plugins={},listeners={},playerId,apiId,playerIndex,activeIndex,swfHeight,wrapperHeight;extend(o,{id:function(){return playerId},isLoaded:function(){return(api!==null)},getParent:function(){return l},hide:function(a){if(a){l.style.height="0px"}if(api){api.style.height="0px"}return o},show:function(){l.style.height=wrapperHeight+"px";if(api){api.style.height=swfHeight+"px"}return o},isHidden:function(){return api&&parseInt(api.style.height,10)===0},load:function(a){if(!api&&o._fireEvent("onBeforeLoad")!==false){each(s,function(){this.unload()});html=l.innerHTML;flashembed(l,m,{config:n});if(a){a.cached=true;bind(listeners,"onLoad",a)}}return o},unload:function(){try{if(api&&api.fp_isFullscreen()){}}catch(error){return}if(api&&html.replace(/\s/g,'')!==''&&!api.fp_isFullscreen()&&o._fireEvent("onBeforeUnload")!==false){api.fp_close();l.innerHTML=html;o._fireEvent("onUnload");api=null}return o},getClip:function(a){if(a===undefined){a=activeIndex}return playlist[a]},getCommonClip:function(){return commonClip},getPlaylist:function(){return playlist},getPlugin:function(a){var b=plugins[a];if(!b&&o.isLoaded()){var c=o._api().fp_getPlugin(a);if(c){b=new r(a,c,o);plugins[a]=b}}return b},getScreen:function(){return o.getPlugin("screen")},getControls:function(){return o.getPlugin("controls")},getConfig:function(a){return a?clone(n):n},getFlashParams:function(){return m},loadPlugin:function(a,b,c,d){if(typeof c=='function'){d=c;c={}}var e=d?makeId():"_";o._api().fp_loadPlugin(a,b,c,e);var f={};f[e]=d;var p=new r(a,null,o,f);plugins[a]=p;return p},getState:function(){return api?api.fp_getState():-1},play:function(a){function play(){if(a!==undefined){o._api().fp_play(a)}else{o._api().fp_play()}}if(api){play()}else{o.load(function(){play()})}return o},getVersion:function(){var a="flowplayer.js 3.0.3";if(api){var b=api.fp_getVersion();b.push(a);return b}return a},_api:function(){if(!api){throw"Flowplayer "+o.id()+" not loaded. Try moving your call to player's onLoad event";}return api},_dump:function(){console.log(listeners)},setClip:function(a){o.setPlaylist([a])},getIndex:function(){return playerIndex}});each(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,Fullscreen*,FullscreenExit,Error").split(","),function(){var b="on"+this;if(b.indexOf("*")!=-1){b=b.substring(0,b.length-1);var c="onBefore"+b.substring(2);o[c]=function(a){bind(listeners,c,a);return o}}o[b]=function(a){bind(listeners,b,a);return o}});each(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,reset,close,setPlaylist").split(","),function(){var c=this;o[c]=function(a){if(!api){return o}var b=(a===undefined)?api["fp_"+c]():api["fp_"+c](a);return b=='undefined'?o:b}});o._fireEvent=function(c,d,e,f){if(n.debug){log(arguments)}if(!api&&c=='onLoad'&&d=='player'){api=api||el(apiId);swfHeight=api.clientHeight;each(playlist,function(){this._fireEvent("onLoad")});each(plugins,function(a,p){p._fireEvent("onUpdate")});commonClip._fireEvent("onLoad")}if(c=='onLoad'&&d!='player'){return}if(c=='onError'){if(typeof d=='string'||(typeof d=='number'&&typeof e=='number')){d=e;e=f}}if(c=='onContextMenu'){each(n.contextMenu[d],function(a,b){b.call(o)});return}if(c=='onPluginEvent'){var g=d.name||d;var p=plugins[g];if(p){p._fireEvent("onUpdate",d);p._fireEvent(e)}return}if(c=='onPlaylistReplace'){playlist=[];var h=0;each(d,function(){playlist.push(new q(this,h++,o))})}var j=true;if(d===0||(d&&d>=0&&d<playlist.length)){activeIndex=d;var k=playlist[d];if(k){j=k._fireEvent(c,e,f)}if(!k||j!==false){j=commonClip._fireEvent(c,e,f,k)}}var i=0;each(listeners[c],function(){j=this.call(o,d,e);if(this.cached){listeners[c].splice(i,1)}if(j===false){return false}i++});return j};function init(){if($f(l)){$f(l).getParent().innerHTML="";playerIndex=$f(l).getIndex();s[playerIndex]=o}else{s.push(o);playerIndex=s.length-1}wrapperHeight=parseInt(l.style.height,10)||l.clientHeight;if(typeof m=='string'){m={src:m}}playerId=l.id||"fp"+makeId();apiId=m.id||playerId+"_api";m.id=apiId;n.playerId=playerId;if(typeof n=='string'){n={clip:{url:n}}}n.clip=n.clip||{};if(l.getAttribute("href",2)&&!n.clip.url){n.clip.url=l.getAttribute("href",2)}commonClip=new q(n.clip,-1,o);n.playlist=n.playlist||[n.clip];var d=0;each(n.playlist,function(){var c=this;if(typeof c=='object'&&c.length){c=""+c}if(!c.url&&typeof c=='string'){c={url:c}}each(n.clip,function(a,b){if(c[a]===undefined&&typeof b!='function'){c[a]=b}});n.playlist[d]=c;c=new q(c,d,o);playlist.push(c);d++});each(n,function(a,b){if(typeof b=='function'){bind(listeners,a,b);delete n[a]}});each(n.plugins,function(a,b){if(b){plugins[a]=new r(a,b,o)}});if(!n.plugins||n.plugins.controls===undefined){plugins.controls=new r("controls",null,o)}m.bgcolor=m.bgcolor||"#000000";m.version=m.version||[9,0];m.expressInstall='http://www.flowplayer.org/swf/expressinstall.swf';function doClick(e){if(!o.isLoaded()&&o._fireEvent("onBeforeClick")!==false){o.load()}return stopEvent(e)}html=l.innerHTML;if(html.replace(/\s/g,'')!==''){if(l.addEventListener){l.addEventListener("click",doClick,false)}else if(l.attachEvent){l.attachEvent("onclick",doClick)}}else{if(l.addEventListener){l.addEventListener("click",stopEvent,false)}o.load()}}if(typeof l=='string'){flashembed.domReady(function(){var a=el(l);if(!a){throw"Flowplayer cannot access element: "+l;}else{l=a;init()}})}else{init()}}var s=[];function Iterator(b){this.length=b.length;this.each=function(a){each(b,a)};this.size=function(){return b.length}}window.flowplayer=window.$f=function(){var a=null;var b=arguments[0];if(!arguments.length){each(s,function(){if(this.isLoaded()){a=this;return false}});return a||s[0]}if(arguments.length==1){if(typeof b=='number'){return s[b]}else{if(b=='*'){return new Iterator(s)}each(s,function(){if(this.id()==b.id||this.id()==b||this.getParent()==b){a=this;return false}});return a}}if(arguments.length>1){var c=arguments[1];var d=(arguments.length==3)?arguments[2]:{};if(typeof b=='string'){if(b.indexOf(".")!=-1){var e=[];each(select(b),function(){e.push(new Player(this,clone(c),clone(d)))});return new Iterator(e)}else{var f=el(b);return new Player(f!==null?f:b,c,d)}}else if(b){return new Player(b,c,d)}}return null};extend(window.$f,{fireEvent:function(a,b,c,d,e){var p=$f(a);return p?p._fireEvent(b,c,d,e):null},addPlugin:function(a,b){Player.prototype[a]=b;return $f},each:each,extend:extend});if(document.all){window.onbeforeunload=function(){$f("*").each(function(){if(this.isLoaded()){this.close()}})}}if(typeof jQuery=='function'){jQuery.prototype.flowplayer=function(a,b){if(!arguments.length||typeof arguments[0]=='number'){var c=[];this.each(function(){var p=$f(this);if(p){c.push(p)}});return arguments.length?c[arguments[0]]:new Iterator(c)}return this.each(function(){$f(this,clone(a),b?clone(b):{})})}}})();(function(){var l=typeof jQuery=='function';function isDomReady(){if(m.done){return false}var d=document;if(d&&d.getElementsByTagName&&d.getElementById&&d.body){clearInterval(m.timer);m.timer=null;for(var i=0;i<m.ready.length;i++){m.ready[i].call()}m.ready=null;m.done=true}}var m=l?jQuery:function(f){if(m.done){return f()}if(m.timer){m.ready.push(f)}else{m.ready=[f];m.timer=setInterval(isDomReady,13)}};function extend(a,b){if(b){for(key in b){if(b.hasOwnProperty(key)){a[key]=b[key]}}}return a}function concatVars(a){var b="";for(var c in a){if(a[c]){b+=[c]+'='+asString(a[c])+'&'}}return b.substring(0,b.length-1)}function asString(b){switch(typeOf(b)){case'string':b=b.replace(new RegExp('(["\\\\])','g'),'\\$1');b=b.replace(/^\s?(\d+)%/,"$1pct");return'"'+b+'"';case'array':return'['+map(b,function(a){return asString(a)}).join(',')+']';case'function':return'"function()"';case'object':var c=[];for(var d in b){if(b.hasOwnProperty(d)){c.push('"'+d+'":'+asString(b[d]))}}return'{'+c.join(',')+'}'}return String(b).replace(/\s/g," ").replace(/\'/g,"\"")}function typeOf(a){if(a===null||a===undefined){return false}var b=typeof a;return(b=='object'&&a.push)?'array':b}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function map(a,b){var c=[];for(var i in a){if(a.hasOwnProperty(i)){c[i]=b(a[i])}}return c}function getEmbedCode(p,c){var a='<embed type="application/x-shockwave-flash" ';if(p.id){extend(p,{name:p.id})}for(var b in p){if(p[b]!==null){a+=b+'="'+p[b]+'"\n\t'}}if(c){a+='flashvars=\''+concatVars(c)+'\''}a+='/>';return a}function getObjectCode(p,c,a){var b='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';b+='width="'+p.width+'" height="'+p.height+'"';if(!p.id&&document.all){p.id="_"+(""+Math.random()).substring(5)}if(p.id){b+=' id="'+p.id+'"'}b+='>';if(document.all){p.src+=((p.src.indexOf("?")!=-1?"&":"?")+Math.random())}b+='\n\t<param name="movie" value="'+p.src+'" />';var e=extend({},p);e.id=e.width=e.height=e.src=null;for(var k in e){if(e[k]!==null){b+='\n\t<param name="'+k+'" value="'+e[k]+'" />'}}if(c){b+='\n\t<param name="flashvars" value=\''+concatVars(c)+'\' />'}if(a){b+=getEmbedCode(p,c)}b+="</object>";return b}function getFullHTML(p,c){return getObjectCode(p,c,true)}function getHTML(p,c){var a=navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length;return(a)?getEmbedCode(p,c):getObjectCode(p,c)}window.flashembed=function(a,b,c){var d={src:'#',width:'100%',height:'100%',version:null,onFail:null,expressInstall:null,debug:false,allowfullscreen:true,allowscriptaccess:'always',quality:'high',type:'application/x-shockwave-flash',pluginspage:'http://www.adobe.com/go/getflashplayer'};if(typeof b=='string'){b={src:b}}extend(d,b);var e=flashembed.getVersion();var f=d.version;var g=d.expressInstall;var h=d.debug;if(typeof a=='string'){var i=document.getElementById(a);if(i){a=i}else{m(function(){flashembed(a,b,c)});return}}if(!a){return}if(!f||flashembed.isSupported(f)){d.onFail=d.version=d.expressInstall=d.debug=null;a.innerHTML=getHTML(d,c);return a.firstChild}else if(d.onFail){var j=d.onFail.call(d,flashembed.getVersion(),c);if(j===true){a.innerHTML=j}}else if(f&&g&&flashembed.isSupported([6,65])){extend(d,{src:g});c={MMredirectURL:location.href,MMplayerType:'PlugIn',MMdoctitle:document.title};a.innerHTML=getHTML(d,c)}else{if(a.innerHTML.replace(/\s/g,'')!==''){}else{a.innerHTML="<h2>Flash version "+f+" or greater is required</h2>"+"<h3>"+(e[0]>0?"Your version is "+e:"You have no flash plugin installed")+"</h3>"+"<p>Download latest version from <a href='"+d.pluginspage+"'>here</a></p>"}}return a};extend(window.flashembed,{getVersion:function(){var a=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var b=navigator.plugins["Shockwave Flash"].description;if(typeof b!="undefined"){b=b.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var c=parseInt(b.replace(/^(.*)\..*$/,"$1"),10);var d=/r/.test(b)?parseInt(b.replace(/^.*r(.*)$/,"$1"),10):0;a=[c,d]}}else if(window.ActiveXObject){try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a=[6,0];f.AllowScriptAccess="always"}catch(ee){if(a[0]==6){return}}try{f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(eee){}}if(typeof f=="object"){b=f.GetVariable("$version");if(typeof b!="undefined"){b=b.replace(/^\S+\s+(.*)$/,"$1").split(",");a=[parseInt(b[0],10),parseInt(b[2],10)]}}}return a},isSupported:function(a){var b=flashembed.getVersion();var c=(b[0]>a[0])||(b[0]==a[0]&&b[1]>=a[1]);return c},domReady:m,asString:asString,getHTML:getHTML,getFullHTML:getFullHTML});if(l){jQuery.prototype.flashembed=function(a,b){return this.each(function(){flashembed(this,a,b)})}}})();
//jquery-mousewheel
;(function($){var c=['DOMMouseScroll','mousewheel'];$.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var i=c.length;i;)this.addEventListener(c[--i],handler,false);else this.onmousewheel=handler},teardown:function(){if(this.removeEventListener)for(var i=c.length;i;)this.removeEventListener(c[--i],handler,false);else this.onmousewheel=null}};$.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}});function handler(a){var b=[].slice.call(arguments,1),delta=0,returnValue=true;a=$.event.fix(a||window.event);a.type="mousewheel";if(a.wheelDelta)delta=a.wheelDelta/120;if(a.detail)delta=-a.detail/3;b.unshift(a,delta);return $.event.handle.apply(this,b)}var f={pageX:0,pageY:0},collectMwheel=true;function stopCollectWheel(){collectMwheel=false}function startCollectWheel(){collectMwheel=true}$(function(){$(document).bind('mousewheel',function(e){if(!collectMwheel){return}f.pageX=e.pageX;f.pageY=e.pageY})});$.event.special.mmwheel={setup:function(){$(this).bind('mousewheel',$.event.special.mmwheel.handler).bind('mouseenter',stopCollectWheel).bind('mouseleave',startCollectWheel);return true},teardown:function(){$(this).unbind('mousewheel',$.event.special.mmwheel.handler).unbind('mouseenter',stopCollectWheel).unbind('mouseleave',startCollectWheel);return true},handler:function(e,d){if((e.pageX!==f.pageX&&e.pageY!==f.pageY)){e=$.extend({},e,{type:'mmwheel'});return $.event.handle.call(this,e,d)}}};$.fn.extend({mmwheel:function(a){return a?this.bind("mmwheel",a):this.trigger("mmwheel")},unmmwheel:function(a){return this.unbind("mmwheel",a)}})})(jQuery);
//jquery-swfobject
;(function($){var e=new Date().getTime();$.fn.embedSWF=function(o){var d=[],reservedParams=['width','height','expressInstall','version'];o=$.extend(true,{},$.fn.embedSWF.defaults,o);function getId(a){var b=a.attr('id');if(!b){b='id-'+String(e++);a.attr({id:b})}return b}function strToObj(b){var c={};if(b){b=b.replace(/^\?/,'').replace(/&amp;/g,'&').split(/&/);$.each(b,function(i,a){queryPair=a.split(/\=/);c[decodeURIComponent(queryPair[0])]=(queryPair[1])?decodeURIComponent(queryPair[1]):''})}return c}this.each(function(){var b=$(this),classes=this.className,linkSrc=$('a',this).filter('[href*=.swf], [href*=.flv]'),id=getId(b),src=linkSrc.attr('href').split('?'),params=strToObj(src[1]),width=params.width||b.width(),height=params.height||b.height(),version=params.version||o.version,expressInstall,flash;if(params.expressInstall=='false'){expressInstall=false}else if(!params.expressInstall){expressInstall=o.expressInstall}else{expressInstall=params.expressInstall}$.each(reservedParams,function(i,a){delete params[a]});$.extend({},o.parameters,params);swfobject.embedSWF(src[0],id,width,height,version,expressInstall,false,params);flash=document.getElementById(id);flash.className=classes;d.push(flash)});return this.pushStack(d)};$.fn.embedSWF.defaults={expressInstall:false,version:"9.0.124",parameters:{}}})(jQuery);
//swfobject
;var swfobject=function(){var w="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",ON_READY_STATE_CHANGE="onreadystatechange",win=window,doc=document,nav=navigator,plugin=false,domLoadFnArr=[main],regObjArr=[],objIdArr=[],listenersArr=[],storedAltContent,storedAltContentId,storedCallbackFn,storedCallbackObj,isDomLoaded=false,isExpressInstallActive=false,dynamicStylesheet,dynamicStylesheetMedia,autoHideShow=true,ua=function(){var b=typeof doc.getElementById!=w&&typeof doc.getElementsByTagName!=w&&typeof doc.createElement!=w,u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=!+"\v1",playerVersion=[0,0,0],d=null;if(typeof nav.plugins!=w&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;if(d&&!(typeof nav.mimeTypes!=w&&nav.mimeTypes[FLASH_MIME_TYPE]&&!nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)){plugin=true;ie=false;d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/[a-zA-Z]/.test(d)?parseInt(d.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else if(typeof win.ActiveXObject!=w){try{var a=new ActiveXObject(SHOCKWAVE_FLASH_AX);if(a){d=a.GetVariable("$version");if(d){ie=true;d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}}}catch(e){}}return{w3:b,pv:playerVersion,wk:webkit,ie:ie,win:windows,mac:mac}}(),onDomLoad=function(){if(!ua.w3){return}if((typeof doc.readyState!=w&&doc.readyState=="complete")||(typeof doc.readyState==w&&(doc.getElementsByTagName("body")[0]||doc.body))){callDomLoadFunctions()}if(!isDomLoaded){if(typeof doc.addEventListener!=w){doc.addEventListener("DOMContentLoaded",callDomLoadFunctions,false)}if(ua.ie&&ua.win){doc.attachEvent(ON_READY_STATE_CHANGE,function(){if(doc.readyState=="complete"){doc.detachEvent(ON_READY_STATE_CHANGE,arguments.callee);callDomLoadFunctions()}});if(win==top){(function(){if(isDomLoaded){return}try{doc.documentElement.doScroll("left")}catch(e){setTimeout(arguments.callee,0);return}callDomLoadFunctions()})()}}if(ua.wk){(function(){if(isDomLoaded){return}if(!/loaded|complete/.test(doc.readyState)){setTimeout(arguments.callee,0);return}callDomLoadFunctions()})()}addLoadEvent(callDomLoadFunctions)}}();function callDomLoadFunctions(){if(isDomLoaded){return}try{var t=doc.getElementsByTagName("body")[0].appendChild(createElement("span"));t.parentNode.removeChild(t)}catch(e){return}isDomLoaded=true;var a=domLoadFnArr.length;for(var i=0;i<a;i++){domLoadFnArr[i]()}}function addDomLoadEvent(a){if(isDomLoaded){a()}else{domLoadFnArr[domLoadFnArr.length]=a}}function addLoadEvent(a){if(typeof win.addEventListener!=w){win.addEventListener("load",a,false)}else if(typeof doc.addEventListener!=w){doc.addEventListener("load",a,false)}else if(typeof win.attachEvent!=w){addListener(win,"onload",a)}else if(typeof win.onload=="function"){var b=win.onload;win.onload=function(){b();a()}}else{win.onload=a}}function main(){if(plugin){testPlayerVersion()}else{matchVersions()}}function testPlayerVersion(){var b=doc.getElementsByTagName("body")[0];var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);var t=b.appendChild(o);if(t){var a=0;(function(){if(typeof t.GetVariable!=w){var d=t.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");ua.pv=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}}else if(a<10){a++;setTimeout(arguments.callee,10);return}b.removeChild(o);t=null;matchVersions()})()}else{matchVersions()}}function matchVersions(){var a=regObjArr.length;if(a>0){for(var i=0;i<a;i++){var b=regObjArr[i].id;var c=regObjArr[i].callbackFn;var d={success:false,id:b};if(ua.pv[0]>0){var e=getElementById(b);if(e){if(hasPlayerVersion(regObjArr[i].swfVersion)&&!(ua.wk&&ua.wk<312)){setVisibility(b,true);if(c){d.success=true;d.ref=getObjectById(b);c(d)}}else if(regObjArr[i].expressInstall&&canExpressInstall()){var f={};f.data=regObjArr[i].expressInstall;f.width=e.getAttribute("width")||"0";f.height=e.getAttribute("height")||"0";if(e.getAttribute("class")){f.styleclass=e.getAttribute("class")}if(e.getAttribute("align")){f.align=e.getAttribute("align")}var g={};var p=e.getElementsByTagName("param");var h=p.length;for(var j=0;j<h;j++){if(p[j].getAttribute("name").toLowerCase()!="movie"){g[p[j].getAttribute("name")]=p[j].getAttribute("value")}}showExpressInstall(f,g,b,c)}else{displayAltContent(e);if(c){c(d)}}}}else{setVisibility(b,true);if(c){var o=getObjectById(b);if(o&&typeof o.SetVariable!=w){d.success=true;d.ref=o}c(d)}}}}}function getObjectById(a){var r=null;var o=getElementById(a);if(o&&o.nodeName=="OBJECT"){if(typeof o.SetVariable!=w){r=o}else{var n=o.getElementsByTagName(OBJECT)[0];if(n){r=n}}}return r}function canExpressInstall(){return!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)&&!(ua.wk&&ua.wk<312)}function showExpressInstall(a,b,c,d){isExpressInstallActive=true;storedCallbackFn=d||null;storedCallbackObj={success:false,id:c};var e=getElementById(c);if(e){if(e.nodeName=="OBJECT"){storedAltContent=abstractAltContent(e);storedAltContentId=null}else{storedAltContent=e;storedAltContentId=c}a.id=EXPRESS_INSTALL_ID;if(typeof a.width==w||(!/%$/.test(a.width)&&parseInt(a.width,10)<310)){a.width="310"}if(typeof a.height==w||(!/%$/.test(a.height)&&parseInt(a.height,10)<137)){a.height="137"}doc.title=doc.title.slice(0,47)+" - Flash Player Installation";var f=ua.ie&&ua.win?"ActiveX":"PlugIn",fv="MMredirectURL="+win.location.toString().replace(/&/g,"%26")+"&MMplayerType="+f+"&MMdoctitle="+doc.title;if(typeof b.flashvars!=w){b.flashvars+="&"+fv}else{b.flashvars=fv}if(ua.ie&&ua.win&&e.readyState!=4){var g=createElement("div");c+="SWFObjectNew";g.setAttribute("id",c);e.parentNode.insertBefore(g,e);e.style.display="none";(function(){if(e.readyState==4){e.parentNode.removeChild(e)}else{setTimeout(arguments.callee,10)}})()}createSWF(a,b,c)}}function displayAltContent(a){if(ua.ie&&ua.win&&a.readyState!=4){var b=createElement("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(abstractAltContent(a),b);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.replaceChild(abstractAltContent(a),a)}}function abstractAltContent(a){var b=createElement("div");if(ua.win&&ua.ie){b.innerHTML=a.innerHTML}else{var d=a.getElementsByTagName(OBJECT)[0];if(d){var c=d.childNodes;if(c){var e=c.length;for(var i=0;i<e;i++){if(!(c[i].nodeType==1&&c[i].nodeName=="PARAM")&&!(c[i].nodeType==8)){b.appendChild(c[i].cloneNode(true))}}}}}return b}function createSWF(a,b,c){var r,el=getElementById(c);if(ua.wk&&ua.wk<312){return r}if(el){if(typeof a.id==w){a.id=c}if(ua.ie&&ua.win){var d="";for(var i in a){if(a[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){b.movie=a[i]}else if(i.toLowerCase()=="styleclass"){d+=' class="'+a[i]+'"'}else if(i.toLowerCase()!="classid"){d+=' '+i+'="'+a[i]+'"'}}}var e="";for(var j in b){if(b[j]!=Object.prototype[j]){e+='<param name="'+j+'" value="'+b[j]+'" />'}}el.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+d+'>'+e+'</object>';objIdArr[objIdArr.length]=a.id;r=getElementById(a.id)}else{var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);for(var m in a){if(a[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){o.setAttribute("class",a[m])}else if(m.toLowerCase()!="classid"){o.setAttribute(m,a[m])}}}for(var n in b){if(b[n]!=Object.prototype[n]&&n.toLowerCase()!="movie"){createObjParam(o,n,b[n])}}el.parentNode.replaceChild(o,el);r=o}}return r}function createObjParam(a,b,c){var p=createElement("param");p.setAttribute("name",b);p.setAttribute("value",c);a.appendChild(p)}function removeSWF(a){var b=getElementById(a);if(b&&b.nodeName=="OBJECT"){if(ua.ie&&ua.win){b.style.display="none";(function(){if(b.readyState==4){removeObjectInIE(a)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.removeChild(b)}}}function removeObjectInIE(a){var b=getElementById(a);if(b){for(var i in b){if(typeof b[i]=="function"){b[i]=null}}b.parentNode.removeChild(b)}}function getElementById(a){var b=null;try{b=doc.getElementById(a)}catch(e){}return b}function createElement(a){return doc.createElement(a)}function addListener(a,b,c){a.attachEvent(b,c);listenersArr[listenersArr.length]=[a,b,c]}function hasPlayerVersion(a){var b=ua.pv,v=a.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10)||0;v[2]=parseInt(v[2],10)||0;return(b[0]>v[0]||(b[0]==v[0]&&b[1]>v[1])||(b[0]==v[0]&&b[1]==v[1]&&b[2]>=v[2]))?true:false}function createCSS(a,b,c,d){if(ua.ie&&ua.mac){return}var h=doc.getElementsByTagName("head")[0];if(!h){return}var m=(c&&typeof c=="string")?c:"screen";if(d){dynamicStylesheet=null;dynamicStylesheetMedia=null}if(!dynamicStylesheet||dynamicStylesheetMedia!=m){var s=createElement("style");s.setAttribute("type","text/css");s.setAttribute("media",m);dynamicStylesheet=h.appendChild(s);if(ua.ie&&ua.win&&typeof doc.styleSheets!=w&&doc.styleSheets.length>0){dynamicStylesheet=doc.styleSheets[doc.styleSheets.length-1]}dynamicStylesheetMedia=m}if(ua.ie&&ua.win){if(dynamicStylesheet&&typeof dynamicStylesheet.addRule==OBJECT){dynamicStylesheet.addRule(a,b)}}else{if(dynamicStylesheet&&typeof doc.createTextNode!=w){dynamicStylesheet.appendChild(doc.createTextNode(a+" {"+b+"}"))}}}function setVisibility(a,b){if(!autoHideShow){return}var v=b?"visible":"hidden";if(isDomLoaded&&getElementById(a)){getElementById(a).style.visibility=v}else{createCSS("#"+a,"visibility:"+v)}}function urlEncodeIfNecessary(s){var a=/[\\\"<>\.;]/;var b=a.exec(s)!=null;return b&&typeof encodeURIComponent!=w?encodeURIComponent(s):s}var x=function(){if(ua.ie&&ua.win){window.attachEvent("onunload",function(){var a=listenersArr.length;for(var i=0;i<a;i++){listenersArr[i][0].detachEvent(listenersArr[i][1],listenersArr[i][2])}var b=objIdArr.length;for(var j=0;j<b;j++){removeSWF(objIdArr[j])}for(var k in ua){ua[k]=null}ua=null;for(var l in swfobject){swfobject[l]=null}swfobject=null})}}();return{registerObject:function(a,b,c,d){if(ua.w3&&a&&b){var e={};e.id=a;e.swfVersion=b;e.expressInstall=c;e.callbackFn=d;regObjArr[regObjArr.length]=e;setVisibility(a,false)}else if(d){d({success:false,id:a})}},getObjectById:function(a){if(ua.w3){return getObjectById(a)}},embedSWF:function(d,e,f,g,h,l,m,n,o,p){var q={success:false,id:e};if(ua.w3&&!(ua.wk&&ua.wk<312)&&d&&e&&f&&g&&h){setVisibility(e,false);addDomLoadEvent(function(){f+="";g+="";var a={};if(o&&typeof o===OBJECT){for(var i in o){a[i]=o[i]}}a.data=d;a.width=f;a.height=g;var b={};if(n&&typeof n===OBJECT){for(var j in n){b[j]=n[j]}}if(m&&typeof m===OBJECT){for(var k in m){if(typeof b.flashvars!=w){b.flashvars+="&"+k+"="+m[k]}else{b.flashvars=k+"="+m[k]}}}if(hasPlayerVersion(h)){var c=createSWF(a,b,e);if(a.id==e){setVisibility(e,true)}q.success=true;q.ref=c}else if(l&&canExpressInstall()){a.data=l;showExpressInstall(a,b,e,p);return}else{setVisibility(e,true)}if(p){p(q)}})}else if(p){p(q)}},switchOffAutoHideShow:function(){autoHideShow=false},ua:ua,getFlashPlayerVersion:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]}},hasFlashPlayerVersion:hasPlayerVersion,createSWF:function(a,b,c){if(ua.w3){return createSWF(a,b,c)}else{return undefined}},showExpressInstall:function(a,b,c,d){if(ua.w3&&canExpressInstall()){showExpressInstall(a,b,c,d)}},removeSWF:function(a){if(ua.w3){removeSWF(a)}},createCSS:function(a,b,c,d){if(ua.w3){createCSS(a,b,c,d)}},addDomLoadEvent:addDomLoadEvent,addLoadEvent:addLoadEvent,getQueryParamValue:function(a){var q=doc.location.search||doc.location.hash;if(q){if(/\?/.test(q)){q=q.split("?")[1]}if(a==null){return urlEncodeIfNecessary(q)}var b=q.split("&");for(var i=0;i<b.length;i++){if(b[i].substring(0,b[i].indexOf("="))==a){return urlEncodeIfNecessary(b[i].substring((b[i].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(isExpressInstallActive){var a=getElementById(EXPRESS_INSTALL_ID);if(a&&storedAltContent){a.parentNode.replaceChild(storedAltContent,a);if(storedAltContentId){setVisibility(storedAltContentId,true);if(ua.ie&&ua.win){storedAltContent.style.display="block"}}if(storedCallbackFn){storedCallbackFn(storedCallbackObj)}}isExpressInstallActive=false}}}}();
//ui-a11y-ext
;(function($){if(!window.console){window.console={}}if(!console.log){console.log=function(){}}var c=/h\d/,form=/input|select|button|textarea/,exp=$.expr.filters;exp.srfocusable=function(a){var b=a.nodeName.toLowerCase();return((c.test(b))||(b==='area')||(b==='a'&&a.href)||(form.test(b)&&!a.disabled&&a.type!=='hidden'))};var d=['p','li','dt','dd','blockquote','address','th','td','dfn'];exp.semanticAtom=function(a){var b=a.nodeName.toLowerCase();return(exp.srfocusable(a)||$.inArray(b,d)!==-1)};$.fn.firstExpOf=function(a){var b=$('*',this),len=b.length,ret;for(var i=0;i<len;i++){if(exp[a](b[i],i)){ret=[b[i]];break}}return this.pushStack(ret)};$.fn.lastExpOf=function(a){var b=$('*',this),len=b.length,ret;while(len--){if(exp[a](b[i],i)){ret=[b[len]];break}}return this.pushStack(ret)}})(jQuery);(function($){var b=true;function stopFocus(){b=false;setTimeout(function(){b=true},1)}function testDomTarget(e){var a=e.originalEvent;if(e.target===document||e.target===window||$.nodeName(e.target,'body')||$.nodeName(e.target,'html')){stopFocus();return false}if(a){if(b&&e.target&&e.target.nodeType===1&&(a.explicitOriginalTarget&&a.explicitOriginalTarget&&a.explicitOriginalTarget!==window&&a.explicitOriginalTarget!==document&&!$(a.explicitOriginalTarget).is('html, body')||a.toElement||a.fromElement)){return true}else{return false}}return true}$.each(['focusin','focusout'],function(i,a){$.event.special['dom'+a]={setup:function(){$(this).bind(a,$.event.special['dom'+a].handler);return true},teardown:function(){$(this).unbind(a,$.event.special['dom'+a].handler);return true},handler:function(e){if(testDomTarget(e)){e=$.extend({},e,{type:'dom'+a});return $.event.handle.call(this,e)}}}})})(jQuery);(function($){var h='position: absolute; width: 1px; height: 1px; overflow: hidden;margin: 0; padding: 0;top: 0;',offsetDir=($('html').attr('dir')==='rtl')?'right: -9999em;':'left: -99999em;',offsetCSS=h+offsetDir,version=parseInt($.browser.version,10);$.support.waiAria=(!$.browser.msie||version>7);$.notIE6=(!$.browser.msie||version>6);$.browser.lteIE6=($.browser.msie&&version<7);$.browser.lteIE7=($.browser.msie&&version<8);$.browser.lteIE8=($.browser.msie&&version<9);$(function(){var c=document.createElement('style'),styleS;c.setAttribute('type','text/css');c=$(c).prependTo('head');styleS=document.styleSheets[0];function add(a,b){if(styleS.cssRules||styleS.rules){if(styleS.insertRule){styleS.insertRule(a+' {'+b+';}',styleS.cssRules.length)}else if(styleS.addRule){styleS.addRule(a,b)}}}add('.a11y-js-overflow','overflow:visible !important');add('.a11y-hidden','position:absolute');add('.a11y-hidden',offsetDir.replace(';',''));$.cssRule={add:add}});$.each({focus:'focusin',blur:'focusout'},function(a,b){$.event.special[b]={setup:function(){if($.browser.msie)return false;this.addEventListener(a,$.event.special[b].handler,true)},teardown:function(){if($.browser.msie)return false;this.removeEventListener(a,$.event.special[b].handler,true)},handler:function(e){arguments[0]=$.event.fix(e);arguments[0].type=b;return $.event.handle.apply(this,arguments)}}});$.ui=$.ui||{};$.ui.userMode=(function(){var b,timer,testDiv;function testBg(){testDiv=testDiv||$('<div style="'+offsetCSS+'"></div>').appendTo('body');var a=$.curCSS(testDiv.css({backgroundColor:'#000000'})[0],'backgroundColor',true),white=$.curCSS(testDiv.css({backgroundColor:'#ffffff'})[0],'backgroundColor',true),newBgStatus=(a===white||white==='transparent');if(newBgStatus!=b){b=newBgStatus;$.event.trigger({type:'usermode',disabled:!b,enabled:b})}return b}function init(){testBg();clearInterval(timer);timer=setInterval(testBg,3000)}$.event.special.usermode={add:function(a){testBg();setTimeout(function(){jElem.triggerHandler({type:'usermode',disabled:!b,enabled:b})},0);return a},setup:function(){},teardown:function(){},handler:function(){}};return{get:testBg,init:init}})();$.fn.userMode=function(a){return this[(a)?'bind':'trigger']('usermode',a)};$(function(){$('html').userMode(function(e){$('html')[e.enabled?'addClass':'removeClass']('hcm')});$.ui.userMode.init()});(function($){var a=false;function handleAriaClick(e){if(!a&&(!e.keyCode||e.keyCode===$.ui.keyCode.ENTER)){a=true;setTimeout(function(){a=false},1);return $.event.special.ariaclick.handler.apply(this,arguments)}else if(a&&e.type=='click'){e.preventDefault();return false}}$.event.special.ariaclick={setup:function(){$(this).bind('click keydown',handleAriaClick);return true},teardown:function(){$(this).unbind('click keydown',handleAriaClick);return true},handler:function(e){e.type='ariaclick';return $.event.handle.apply(this,arguments)}}})(jQuery);$.bodyDefaultFontsize=10;$.testEm=(function(){var b=$('<div style="width: 1em; position: absolute; padding: 0; border: none; margin: 0; top: 0; visibility: hidden;'+offsetDir+'" />'),timer,emPx=0,oldVal=0,html=$(document.documentElement);function test(){var a=b.width(),e;if(emPx!==a){emPx=a;e={type:'emchange',emPx:emPx,oldEmPx:oldVal};$.event.trigger(e)}oldVal=a;emPx=a;return e}function addEmClass(e){var a=e.emPx-$.bodyDefaultFontsize,prefix=(a>0)?'em-increased-':'em-decreased-',newCl=[];a=Math.abs(a)+1;while(a-->1){newCl.push(prefix+a)}html[0].className=$.grep(html[0].className.split(' '),function(n){return(n.indexOf('em-increased-')!==0&&n.indexOf('em-decreased-')!==0)}).concat(newCl).join(' ')}$(function(){setTimeout(function(){b.appendTo('body');addEmClass(test());html.bind('emchange',addEmClass);timer=setInterval(test,999)},0)});return test})();(function($){var f=true,focusTime=0,currentFocus=document,focusTimer;function stopKeyFocus(e){f=false;setTimeout(function(){f=true},1)}function addFocus(e){var a=$(e.target).addClass('a11y-focus');currentFocus=e.target;focusTime=new Date().getTime();if(f){a.addClass('a11y-focus-key').trigger('keyfocus')}}$(document).bind('mousedown click',stopKeyFocus).bind('domfocusin',addFocus).bind('focusout',function(e){$(e.target).removeClass('a11y-focus-key a11y-focus-widget a11y-focus')});function addTabindex(a){if(!a.is('a[href], area, input, button, select, textarea')){a.css({outline:'none'}).attr({tabindex:'-1'})}return a}$.fn.setFocus=function(b,c){if(!this[0]){return this}var d=this[0],jElm=$(d),opts={},extraDelay=1,focusFn=function(){var a=currentFocus;setTimeout(function(){stopKeyFocus();try{d.focus();jElm.addClass('a11y-focus-widget');opts.complete.apply(d,arguments)}catch(e){}},extraDelay);try{if(extraDelay>9&&a.blur&&a.focus){a.blur();stopKeyFocus();if(focusBefore&&document.focus){document.focus()}a.focus()}}catch(e){}},queueFn=function(){opts.parent.queue(function(){focusFn();opts.parent.dequeue()})},focusBefore;if(isFinite(b)){opts.time=b;if(c!==undefined){opts.addTabindex=c}}else{opts=b}opts=$.extend({},$.fn.setFocus.defaults,opts);focusBefore=(opts.compMode&&$.unique(jElm.add(currentFocus))[0]===currentFocus);if(opts.addTabindex){addTabindex(jElm)}if(opts.compMode&&(focusBefore||new Date().getTime()-focusTime>180)){extraDelay=120;opts.time=Math.max(opts.time-extraDelay,120)}$.ui.SR.update();clearTimeout(focusTimer);focusTimer=setTimeout(opts.parent?queueFn:focusFn,opts.time);return this};$.fn.setFocus.defaults={time:200,addTabindex:false,parent:false,compMode:true,complete:function(){}}})(jQuery);$.fn.ariaHide=function(){$.fn.hide.apply(this,arguments);return this.attr({'aria-hidden':'true'})};$.fn.ariaShow=function(){$.fn.show.apply(this,arguments);return this.attr({'aria-hidden':'false'})};$.ui.SR=(function(){var b,val=0,alertBox,boxTimer,statusBox,statusTimer;function init(){alertBox=$('<div class="a11y-hidden" role="alert" style="'+offsetCSS+'" />').ariaHide().appendTo('body');statusBox=$('<div class="a11y-hidden" style="'+offsetCSS+'"><div aria-live="polite" relevant="additions text" /> </div>').appendTo('body').find('div');b=$('<form role="presentation" action="#" class="aural" style="'+offsetCSS+'"><input name="sr-update" id="sr-update" type="hidden" value="'+val+'" /></form>').appendTo('body').find('input').ajaxComplete(update)}function update(){var a,wrapperHeight;if(b){b[0].setAttribute('value',''+(++val));setTimeout(function(){b[0].setAttribute('value',''+(++val))},1)}}function alert(a){clearTimeout(boxTimer);alertBox.ariaHide().html(a).find('*').attr({role:'presentation'}).end().ariaShow();boxTimer=setTimeout(function(){alertBox.ariaHide().empty()},999)}function giveStatus(a){a=$('<div>'+a+'</div>').find('*').attr({role:'presentation'}).end();statusBox.html(a);clearTimeout(statusTimer);statusTimer=setTimeout(function(){statusBox.empty()},999)}return{update:update,alert:alert,giveStatus:giveStatus,init:init}})();$($.ui.SR.init);if(!$.fn.getID){var i=new Date().getTime();$.fn.getID=function(b){function setID(){var a=this.getAttribute('id');if(!a){a='ID-'+(i++);this.setAttribute('id',a)}return a}if(this[0]){if(b){this.each(setID)}return setID.call(this[0])}return}}$.each({labelWith:'aria-labelledby',describeWith:'aria-describedby',ownsThis:'aria-owns',controlsThis:'aria-controls',activateThis:'aria-activedescendant'},function(b,c){$.fn[b]=function(a){return this.attr(c,$(a).getID())}});$.fn.inOut=function(c,d,f){f=$.extend({},$.fn.inOut.defaults,f);var g='mouseenter mouseleave focusin focusout',selector=this.selector,context=this.context;if(f.useEventTypes==='mouse'){g='mouseenter mouseleave'}else if(f.useEventTypes==='focus'){g='focusin focusout'}function handler(e){var a,params,elem=this,evt;if(/focusin|mouseenter/.test(e.type)){a=c;params=[1,'in',true]}else{a=d;params=[-1,'out',false]}var b=$.data(this,'inOutData');clearTimeout(b.inOutTimer);b.inEvents=Math.max(b.inEvents+params[0],0);b.inOutTimer=setTimeout(function(){if(params[2]!=b.inOutState&&(params[2]||!f.bothOut||!b.inEvents)){b.inOutState=params[2];evt=$.Event(params[1]);evt.originalEvent=e;a.call(elem,evt)}},/focus/.test(e.type)?f.keyDelay:f.mouseDelay)}this.each(function(){$(this).data('inOutData',{inEvents:0})})[f.bindStyle](g,handler);return this};$.fn.inOut.defaults={mouseDelay:0,bindStyle:'bind',keyDelay:1,bothOut:false,useEventTypes:'both'};$.fn.slideParentDown=function(b){b=$.extend({},$.fn.slideParentDown.defaults,b);var c=b.complete;return this.each(function(){var a=$(this).css({display:'block'}),parent=a.parent().css({height:''}),outerHeight=parent.height();parent.css({overflow:'hidden',height:'0px'});parent.animate({height:outerHeight},$.extend({},b,{complete:function(){parent.css({height:'',overflow:''});c.apply(this,arguments)}}))})};$.fn.slideParentDown.defaults={duration:400,complete:function(){}};$.fn.slideParentUp=function(b){b=$.extend({},$.fn.slideParentUp.defaults,b);var c=b.complete;return this.each(function(){var a=$(this),parent=a.parent().css({overflow:'hidden'}),cssProp={height:'0px'};if($.browser.mozilla&&b.flickrFix){cssProp.flickrFix=Math.random()*2}parent.animate(cssProp,$.extend({},b,{complete:function(){a.css({display:'none'});parent.css({height:'',overflow:'',display:''});c.apply(this,arguments)}}))})};$.fn.slideParentUp.defaults={duration:400,complete:function(){},flickrFix:false}})(jQuery);
//jquery-objscale
;(function($){$.objScale=(function(){function getDim(a){var b,width,ret=(a.jquery)?{height:a.height(),width:a.width()}:(isFinite(a.width)&&isFinite(a.height))?{width:a.width,height:a.height}:getDim($(a));return ret}function scaleTo(a,b,c){var d=getDim(a),percentage,reverseSide=(c=='height')?'width':'height';percentage=d[c]/b;return d[reverseSide]/percentage}function scaleHeightTo(a,b){return scaleTo(a,b,'height')}function scaleWidthTo(a,b){return scaleTo(a,b,'width')}function constrainObjTo(a,b,c){c=$.extend({margin:[0,0],padding:[0,0],cleanCSS:true},c);var d=getDim(a),con=getDim(b),maxWidth=con.width-c.padding[1],maxHeight=con.height-c.padding[0],estimatetPer=con.height/con.width,curPer=d.height/d.width,ret=$.extend({},d);if(c.margin[1]){maxWidth-=c.margin[1]*2}if(c.margin[0]){maxHeight-=c.margin[0]*2}if(estimatetPer<curPer&&maxHeight<d.height){ret.width=scaleTo(a,maxHeight,'height');ret.height=maxHeight}else if(maxWidth<d.width){ret.width=maxWidth;ret.height=scaleTo(a,maxWidth,'width')}if(!c.cleanCSS){ret.widthSubtraction=ret.width-d.width;ret.heightSubtraction=ret.height-d.height}$.extend(ret,centerObjTo(ret,con,c));return ret}function centerObjTo(a,b,c){c=$.extend({margin:[0,0],vertical:true,horizontal:true},c);var d=getDim(a),con=getDim(b),ret={};if(c.vertical){ret.top=(con.height-d.height)/2;if(isFinite(c.margin[0])){ret.top=Math.max(ret.top,c.margin[0])}}if(c.horizontal){ret.left=(con.width-d.width)/2;if(isFinite(c.margin[1])){ret.left=Math.max(ret.left,c.margin[1])}}return ret}function scaleObjTo(a,b,c){c=$.extend({margin:[false,false],padding:[0,0],scaleToFit:false},c);var d=getDim(a),con=getDim(b),curPer=d.height/d.width,ret={};con.maxHeight=con.height-c.padding[0];con.maxWidth=con.width-c.padding[1];if(c.margin[0]){con.maxHeight-=c.margin[0]}if(c.margin[1]){con.maxWidth-=c.margin[1]}var e=con.maxHeight/con.maxWidth;if(c.scaleToFit!==e>curPer){ret.width=con.maxWidth;ret.height=scaleTo(a,con.maxWidth,'width')}else{ret.width=scaleTo(a,con.maxHeight,'height');ret.height=con.maxHeight}$.extend(ret,centerObjTo(ret,con,c));return ret}return{scaleWidthTo:scaleWidthTo,scaleHeightTo:scaleHeightTo,scaleSidesIn:scaleObjTo,scaleObjTo:scaleObjTo,constrainObjTo:constrainObjTo,getDim:getDim,centerObjTo:centerObjTo}})()})(jQuery);
//ui-cOverlay
;(function($){$.fn.fadeInTo=function(){var b=arguments;return this.each(function(){var a=$(this);if(a.css('display')==='none'){a.css({opacity:'0',display:'block'})}$.fn.fadeTo.apply(a,b)})};var g=new Date().getTime();$.overlayProto={hideElementsOnShow:function(){var o=this.options,that=this;this.hiddenElements=$([]);if(o.hideWindowedFlash){this.hiddenElements=$('object, embed').filter(function(){return!(((this.getAttribute('classid')||'').toLowerCase()==='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'||this.getAttribute('type')==='application/x-shockwave-flash')&&(this.getAttribute('transparent')!=='transparent'&&(/<param\s+(?:[^>]*(?:name=["'?]\bwmode["'?][\s\/>]|\bvalue=["'?](?:opaque|transparent)["'?][\s\/>])[^>]*){2}/i.test(this.innerHTML))))})}if(o.hideWhileShown){this.hiddenElements=this.hiddenElements.add(o.hideWhileShown)}this.hiddenElements=this.hiddenElements.filter(function(){return($.curCSS(this,'visibility')!=='hidden'&&!$.ui.contains(this,that.element[0]))}).filter(o.hideFilter).css({visibility:'hidden'})}};$.widget('ui.mask',$.extend({_init:function(){var o=this.options,that=this,css;g++;this.id=g;this.maskedElement=this.element.parent();if(this.maskedElement.is('body')){this.dimensionElement=$(document);this.calcMethod={height:'height',width:'width'}}else{this.dimensionElement=this.maskedElement.css({position:'relative'});this.calcMethod={height:'innerHeight',width:'innerWidth'}}if(this.maskedElement.is('body')||(parseInt($.browser.version,10)<7&&$.browser.msie)){css={display:'none',position:'absolute',top:'0',left:'0'};this.calcSize=true}else{css={display:'none',position:'absolute',top:0,left:0,right:0,bottom:0};this.calcSize=false}this.element.css(css);o.cssWidth=($.curCSS(this.element[0],'width')==='100%');this.isVisible=false;if(o.closeOnClick){this.element.click(function(e){that.hide.call(that,e,this)})}if(o.extraClass){this.element.addClass(o.extraClass)}},ui:function(){return{instance:this}},hide:function(e,a){if(!this.isVisible){return}var b=this._trigger('close',e,this.ui()),o=this.options,that=this;if(b===false){return}this.isVisible=false;if(o.handleDisplay){if(o.fadeOutTime){this.element.fadeOut(o.fadeOutTime,function(){that.unexpose.call(that)})}else{this.element.hide();this.unexpose()}}this.element.queue(function(){if(that.hiddenElements&&that.hiddenElements.css){that.hiddenElements.css({visibility:'visible'})}that.maskedElement.removeClass('mask-visible');that.element.dequeue()});$(document).unbind('.mask'+this.id);$(window).unbind('.mask'+this.id)},resize:function(a){var b={'height':this.dimensionElement[this.calcMethod.height]()};if(!this.options.cssWidth){b.width=this.dimensionElement[this.calcMethod.width]()}if(a){this.element.css(b)}return b},show:function(e,o){if(this.isVisible){return}o=(o)?$.extend(true,{},this.options,o):this.options;var a=this,resize=function(e){a.resize.call(a,true)};if(o.expose){this.expose(o.expose)}this._trigger('show',e,$.extend(true,{},this.ui(),o));this.isVisible=true;this.maskedElement.addClass('mask-visible');this.hideElementsOnShow();if(o.handleDisplay){if(this.calcSize){this.resize(true)}if(o.fadeInTime){this.element.fadeInTo(o.fadeInTime,o.opacity)}else{this.element.css({opacity:o.opacity,display:'block'})}}if(o.closeOnEsc){$(document).bind('keydown.mask'+this.id,function(e){if(e.keyCode===$.ui.keyCode.ESCAPE){a.hide.call(a,e,this)}})}if(a.calcSize){$(document).bind('resize.mask'+this.id+' emchange.mask'+this.id,resize);$(window).bind('resize.mask'+this.id,resize)}},unexpose:function(a){if(!a&&!this.exposed){return}var b=a||this.exposed;b.each(function(){$(this).css({position:'',zIndex:''})});if(!a){this.exposed=false}},expose:function(b){var c=parseInt(this.maskedElement.css('z-index'),10)||9;b=this.maskedElement.find(b);b.each(function(){var a=$(this);if(a.css('position')==='static'){a.css({position:'relative'})}c++;a.css({zIndex:c})});this.exposed=b}},$.overlayProto));$.ui.mask.defaults={extraClass:false,closeOnClick:true,closeOnEsc:true,handleDisplay:true,fadeInTime:0,fadeOutTime:0,opacity:0.8,bgIframe:false,cssWidth:true};var h,id=new Date().getTime();var j=function(a){setTimeout(function(){if(/file:|127\.0\.0\.1|localhost/.test(location.href)){if(window.console&&console.log){console.log(a);}else{throw(a);}}},0)};$(document).bind('focusin',function(e){if(e.target.nodeType==1){h=e.target}});if(!$.fn.mask){$.fn.mask=function(){return this}}$.widget('ui.cOverlay',$.extend({_init:function(){var o=this.options,that=this,close=function(e){var a=this;clearInterval(that.openTimer);clearInterval(that.closeTimer);that.closeTimer=setTimeout(function(){that.hide(e,{closer:a})},1);return false},show=function(e){var a=this;if(!that.currentOpener||that.currentOpener[0]===a||a===that.element[0]){clearInterval(that.closeTimer)}clearInterval(that.openTimer);that.openTimer=setTimeout(function(){that.show(e,{opener:a})},o.openDelay);return false},isDialog,isSpecial;this.mask=$([]);if(o.mask&&o.hideWindowedFlash=='auto'){o.maskOpts=true}if(o.mask){this.mask=$('<div class="mask" />').insertBefore(this.element).mask($.extend(o.maskOpts,{close:function(e,a){clearInterval(that.openTimer);return that.hide(e,a)}}))}this.element.css({visibility:'hidden'}).addClass('a11y-js-overflow').attr(o.attrs).attr({'aria-hidden':'true'});if(o.createA11yWrapper===true||(o.createA11yWrapper&&this.element.parent().is('body'))){this.element.wrap('<div class="a11y-wrapper" />')}if(o.modal==='auto'){o.modal=!!(o.focusOnShow)}if(o.restoreFocus==='auto'){o.restoreFocus=!!(o.focusOnShow)}if(o.setInitialContent){this.fillContent(this.element,o.setInitialContent)}this.clonedOverlay=this.element.clone().attr({role:'presentation'}).addClass('cloned-overlay');if(o.bgIframe&&$.fn.bgIframe&&parseInt($.browser.version,10)<7){this.element.bgIframe()}id++;this.id='overlay-'+id;this.isVisible=false;this.hiddenElements=$([]);this.openers=$([]);this.closeBtn=$(o.closeBtnSel,this.element).bind('ariaclick',function(e){clearInterval(that.openTimer);that.hide(e,{closer:this});return false});if(o.openerSel){this.openers=$(o.openerSel,o.openercontext);if(o.openEvent){this.openers[o.bindStyle](o.openEvent,show)}if(o.closeEvent){this.openers[o.bindStyle](o.closeEvent,close)}}if($.support.waiAria){if(this.closeBtn[0]&&$.nodeName(this.closeBtn[0],'a')){this.closeBtn.removeAttr('href').attr({tabindex:'0',role:'button'})}if(o.labelledbySel){this.element.labelWith($(o.labelledbySel,this.element))}if(o.describedbySel){this.element.describeWith($(o.describedbySel,this.element))}if(o.addRole){this.element.attr('role',o.addRole)}}this._trigger('init',{type:'init'},this.ui())},fillContent:function(c,d,e){var o=this.options;c=c||this.element;d=d||this.content||{};$.each(d,function(a,b){if($.isFunction(b)){b(a,c,d,e)}else{$('.'+a,c).html(b)}});if(o.addRole==='tooltip'||o.addRole==='alert'){$('*',this.element).attr({role:'presentation'})}},ui:function(){var a={instance:this,isVisible:this.isVisible,openers:this.openers,id:this.id,element:this.element},arg=arguments;for(var i=0,len=arg.length;i<len;i++){if(arg[i]){$.extend(a,arg[i])}}return a},show:function(e,a){clearTimeout(this.closeTimer);this.currentOpener=(a&&a.opener)?$(a.opener):(e&&e.currentTarget)?$(e.currentTarget):$(h);a=a||{};a.opener=this.currentOpener;if(this.isVisible||this._trigger('beforeShow',e,this.ui({extras:a}))===false||this.stopShow){return}this.isVisible=true;var o=this.options,that=this,focusElement=(o.focusOnShow===true)?this.element.firstExpOf('srfocusable'):(o.focusOnShow)?$(o.focusOnShow,this.element):$([]),posCSS,ui;this.hideElementsOnShow();if(o.addRole==='tooltip'&&this.currentOpener){this.currentOpener.attr({'aria-describedby':this.element.getID()})}posCSS=this.setPosition(e,a);ui=this.ui({extras:a,posCSS:posCSS});this.mask.mask('show');o.animShow(this.element.stop(true,true),ui);this.element.attr({'aria-hidden':'false'});$.ui.SR.update();this.restoreFocus=h;focusElement.setFocus({addTabindex:true,parent:this.element,compMode:true});$('body').addClass(o.bodyShowClass);if(o.closeOnEsc){$(document).bind('keydown.'+this.id,function(e){if(e.keyCode===$.ui.keyCode.ESCAPE){that.hide.call(that,e,{closer:this})}})}if(o.modal===true){var b;$(document).bind('keydown.'+this.id,function(e){if($.ui.keyCode.SHIFT===e.keyCode){b=true}}).bind('keyup.'+this.id,function(e){if($.ui.keyCode.SHIFT===e.keyCode){b=false}}).bind('focusin.'+this.id,function(e){if(e.target===document||e.target===window||$.nodeName(e.target,'html')||(e.target!==focusElement[0]&&e.target!==that.element[0]&&!$.ui.contains(that.element[0],e.target))){$('a, input, button, select, textarea, area',that.element).filter(':not(:hidden, .ui-disabled)').filter((b)?':last':':first').setFocus()}})}this.mask.mask('resize',true);$.ui.SR.update();this._trigger('show',e,ui)},hide:function(e,a){if(!this.isVisible){return}var o=this.options,ui=this.ui({extras:a});if(this._trigger('beforeHide',e,ui)===false){return false}this.isVisible=false;if(o.addRole==='tooltip'&&this.currentOpener){this.currentOpener.removeAttr('aria-describedby')}this.mask.mask('hide');$(document).unbind('.'+this.id);$(window).unbind('.'+this.id);if(o.restoreFocus&&this.restoreFocus){$(this.restoreFocus).setFocus()}o.animHide(this.element,ui);this.element.attr({'aria-hidden':'true'});this.hiddenElements.css({visibility:'visible'});this._trigger('hide',e,ui);$('body').removeClass(o.bodyShowClass);this.restoreFocus=false},setPosition:function(e,a,b){b=b||this.element;var o=this.options,pos={};e=(e&&e.type)?e:{type:'unknown'};a=a||{};if(!a.opener){a.opener=this.currentOpener}if(typeof o.positionType==='string'&&$.ui.cOverlay.posMethods[o.positionType]){pos=$.ui.cOverlay.posMethods[o.positionType](b,e,a,this)}else if($.isFunction(o.positionType)){pos=o.positionType(b,e,a,this)}return pos}},$.overlayProto));$.ui.cOverlay.posMethods={};$.ui.cOverlay.posMethods.around=function(c,e,d,f){var o=f.options,pos;if(!$.posAround){setTimeout(function(){throw('please install the posAround plugin');},0);return{}}if(o.followMouse&&e.type.indexOf('mouse')!=-1){pos=$.posAround(c,e,o.positionOpts);$(document).bind('mousemove.'+f.id,function(a){var b={top:e.pageY-a.pageY,left:e.pageX-a.pageX},posDelta={top:pos.top-b.top,left:pos.left-b.left};c.css({top:pos.top-b.top,left:pos.left-b.left})})}else if(d.opener){pos=$.posAround(c,d.opener,o.positionOpts)}return pos};$.ui.cOverlay.posMethods.centerInsideView=function(a,e,b,c){var o=c.options,doc=$(document),pos;if(!$.objScale){setTimeout(function(){throw('please install the objScale plugin');},0);return{}}pos=$.objScale.centerObjTo(a,$(window),o.positionOpts);pos.top+=doc.scrollTop();pos.left+=doc.scrollLeft();return pos};$.ui.cOverlay.defaults={mask:false,maskOpts:{},bgIframe:false,hideWindowedFlash:'auto',hideWhileShown:false,hideFilter:function(){return true},extraClass:false,attrs:{},bodyShowClass:'overlay-visible',positionType:'',positionOpts:{},followMouse:false,restoreFocus:'auto',focusOnShow:false,closeOnEsc:true,closeBtnSel:'a.close-button',animShow:function(a,b){a.css(b.posCSS).css({visibility:'visible'})},animHide:function(a,b){a.css({visibility:'hidden'})},addRole:false,createA11yWrapper:'auto',labelledbySel:false,describedbySel:false,openerSel:false,openerContext:document,bindStyle:'bind',openEvent:'ariaclick',closeEvent:false,openDelay:0,setInitialContent:false,modal:'auto'}})(jQuery);
//jquery.imgpreload
;(function($){$.imgPreLoad=(function(){var f=[],ready=false,started=false,loaded=false,errorDelay=5000,errorTimer;function createImg(){return(window.Image)?new Image():document.createElement('img')}function loadImg(b,c){var d=createImg(),fn=function(e){var a=this,args=arguments;clearTimeout(errorTimer);$(this).unbind('load error');b[1].apply(a,args);c.apply(a,args)};d.src=b[0];if(!d.complete){clearTimeout(errorTimer);errorTimer=setTimeout(function(){fn.call(d,{type:'timeouterror'})},errorDelay);$(d).bind('load error',fn)}else{fn.call(d,{type:'cacheLoad'})}}function loadNextImg(){if(f.length&&ready){started=true;var a=f.shift();loadImg(a,loadNextImg)}else{started=false}}function pause(){started=false;ready=false}function restart(){if(loaded){ready=true;loadNextImg()}}function loadNow(a,b){pause();b=b||function(){};loadImg([a,b],restart)}return{add:function(a,b,c){b=b||function(){};a=[a,b];if(c){f.unshift(a)}else{f.push(a)}if(ready&&!started){loadNextImg()}},loadNow:loadNow,ready:function(){loaded=true;ready=true;loadNextImg()}}})();if($.windowLoaded){$.imgPreLoad.ready()}else{$(window).bind('load',$.imgPreLoad.ready)}})(jQuery);
//showbox
;(function($){var h={};$.each({disable:['-1','true','addClass'],enable:['0','false','removeClass']},function(b,c){h[b]=function(){var a=$(this);if(!a.is('span, div')){a.attr({tabindex:c[0],'aria-disabled':c[1]})}a[c[2]]('ui-disabled')}});$.createUrlIndex=function(d,f){var o=f.options;f.uniqueUrls=[];f.uniqueOpeners=[];d.each(function(){var a=$(this).attr('href');if($.inArray(a,f.uniqueUrls)===-1){f.uniqueUrls.push(a);f.uniqueOpeners.push(this)}});f.nextBtn=$('.next',f.element);f.prevBtn=$('.prev',f.element);f.playPauseBtn=$('.play-pause',f.element);if($.support.waiAria){f.nextBtn.add(f.prevBtn).add(f.playPauseBtn).each(function(){if($.nodeName(this,'a')){$(this).removeAttr('href').attr({tabindex:'0'})}})}f.currentIndexDisplay=$('.current-index',f.element).html('1');f.lengthDisplay=$('.item-length',f.element).html(f.uniqueUrls.length);f.play=function(a,b){if(f.isPlaying){return}f.isPlaying=true;f.playPauseBtn.addClass('ui-isplaying').html(o.pauseText);if(o.pauseTitle){f.playPauseBtn.attr({title:o.pauseTitle})}slideShowLoad((a)?o.slideshowDelay:0,(b!==undefined)?b:true)};f.pause=function(){if(!f.isPlaying){return}f.isPlaying=false;f.playPauseBtn.addClass('ui-isplaying').html(o.playText);if(o.playTitle){f.playPauseBtn.attr({title:o.playTitle})}clearTimeout(f.slideshowTimer)};f.playPauseToggle=function(a,b){f[(f.isPlaying)?'pause':'play'](a,b);return false};f.isPlaying=false;if(f.uniqueUrls.length>1){f.nextBtn.bind('ariaclick',function(e){f.loadNext(e);return false});f.prevBtn.bind('ariaclick',function(e){f.loadPrev(e);return false});f.playPauseBtn.bind('ariaclick',function(){f.playPauseToggle(undefined,true);return false});if(o.addKeyNav){f.element.bind('keydown',function(e){var a;switch(e.keyCode){case $.ui.keyCode.LEFT:a=f.loadPrev(e);break;case $.ui.keyCode.RIGHT:a=f.loadNext(e);break;case $.ui.keyCode.SPACE:f.playPauseToggle();break}return a})}}else{if(o.controlsWrapper){$(o.controlsWrapper,f.element).hide()}f.prevBtn.hide();f.nextBtn.hide();f.playPauseBtn.hide()}function slideShowLoad(a,b){clearTimeout(f.slideshowTimer);f.slideshowTimer=setTimeout(function(){if(!f.loadNext({type:'slideshow'})){if(o.carousel||b){f.loadIndex(0,{type:'slideshow'})}else{f.pause()}}},a||0)}f.uniqueOpeners=$(f.uniqueOpeners);f.updateIndex=function(a){var b={disable:$([]),enabled:$([])};f.currentUrl=a;f.currentIndex=$.inArray(a,f.uniqueUrls);f.currentAnchor=f.uniqueOpeners.filter(':eq('+f.currentIndex+')');f.currentIndexDisplay.html(String(f.currentIndex+1));if(f.currentIndex===0){if(!o.carousel){b.disable=f.prevBtn.each(h.disable)}f._trigger('indexStartEndReachedChange',{type:'indexStartReached'},f.ui(b))}else if(f.prevBtn.is('.ui-disabled')){b.enable=f.prevBtn.each(h.enable);f._trigger('indexStartEndReachedChange',{type:'indexStartReachedChanged'},f.ui(b))}if(f.uniqueUrls.length<=f.currentIndex+1){if(!o.carousel){f.pause();b.disable=f.nextBtn.each(h.disable)}f._trigger('indexStartEndReachedChange',{type:'indexEndReached'},f.ui(b))}else if(f.nextBtn.is('.ui-disabled')){b.enable=f.nextBtn.each(h.enable);f._trigger('indexStartEndReachedChange',{type:'indexEndReachedChanged'},f.ui(b))}};f.loadIndex=function(b,e){if(b===f.currentIndex||b===-1){return false}var c=f.uniqueOpeners.filter(':eq('+b+')'),oldAnchor=f.currentAnchor,url;if(c[0]){url=c.attr('href');e=e||{type:'loadIndex'};f.updateIndex(url);f.element.addClass('loading');f.mask.addClass('loading-mask');o.hideContentAnim(f,e,{oldAnchor:oldAnchor,index:b,opener:c,content:f.content});$.imgPreLoad.loadNow(url,function(){$('div.content-box',f.element).attr({'aria-busy':'true','aria-live':'polite'});var a={oldAnchor:oldAnchor,index:b,opener:c};f.content={'multimedia-box':$(this)};a.content=f.content;f.options.getTextContent(c,f.content,f);o.showContentAnim(f,f.content['multimedia-box'],e,a);f._trigger('imageChange',e,a);f.element.queue(function(){f.element.removeClass('loading');f.mask.removeClass('loading-mask');f.element.dequeue()});if(f.isPlaying){slideShowLoad(o.slideshowDelay)}$('div.content-box',f.element).attr({'aria-busy':'false'});$.ui.SR.update()});return true}return false};f.loadNext=function(e){var a=f.loadIndex(f.currentIndex+1,e);if(a===false&&o.carousel){a=f.loadIndex(0,e)}return a};f.loadPrev=function(e){var a=f.loadIndex(f.currentIndex-1,e);if(a===false&&o.carousel){a=f.loadIndex(f.uniqueOpeners.length-1,e)}return a}};$.addOuterDimensions=function(b,c,d){var e=(d==='height')?['Top','Bottom']:['Left','Right'];$.each(['padding','border','margin'],function(i,a){if(a!=='border'){c+=parseInt(b.css(a+e[0]),10)||0;c+=parseInt(b.css(a+e[1]),10)||0}else{c+=parseInt(b.css(a+e[0]+'Width'),10)||0;c+=parseInt(b.css(a+e[1]+'Width'),10)||0}});return c};$.ui.cOverlay.posMethods.centerHorizontalView=function(a,e,b,c){var o=c.options,doc=$(document),pos,timer;if(!$.objScale){setTimeout(function(){throw('please install the objScale plugin');},0);return{}}pos=$.objScale.centerObjTo(a,$(window),o.positionOpts);pos.top=doc.scrollTop();if(isFinite(o.marginTop)){pos.top+=o.marginTop}pos.left+=doc.scrollLeft();if(o.followScroll){$(window).bind('scroll.'+this.id+' resize.'+this.id,function(e){if($(window).height()>a.height()){clearTimeout(timer);timer=setTimeout(function(){a.animate({top:doc.scrollTop()})},400)}})}return pos};$.ui.cOverlay.posMethods.constrainInsideView=function(a,e,b,c){var o=c.options,doc=$(document),imgDim={},dim={},pos;if(!$.objScale){setTimeout(function(){throw('please install the objScale plugin');},0);return{}}pos=$.objScale.constrainObjTo(a,$(window),o.positionOpts);$.swap(a[0],{position:"absolute",visibility:"hidden",display:"block"},function(){imgDim=$.objScale.getDim(b.img)});pos.top+=doc.scrollTop();pos.left+=doc.scrollLeft();dim.width=imgDim.width+pos.widthSubtraction;dim.height=imgDim.height+pos.heightSubtraction;b.img.css(dim).attr(dim);delete pos.widthSubtraction;delete pos.heightSubtraction;return pos};$.ui.cOverlay.posMethods.constrainHorizontalView=function(a,e,b,c){var o=c.options,pos=$.ui.cOverlay.posMethods.constrainInsideView(a,e,b,c);delete pos.top;return pos};$.fn.showbox=function(g){g=$.extend({},$.fn.showbox.defaults,g);g.openerSel=this;$(g.structure).appendTo('body').bind('cOverlayinit',function(e,d){var f=d.instance,o=f.options;$.createUrlIndex(f.openers,f);f.widthElement=(f.element.is(o.widthElementSel))?f.element:$(f.options.widthElementSel,f.element);f.calcWidth=function(a,b){var c=b||a[0].width,elem=a;while(!elem.is(o.widthElementSel)&&elem[0]){c=$.addOuterDimensions(elem,c,'width');elem=elem.parent()}return c}}).bind('cOverlaybeforeShow',function(e,b){if(!b.extras.img){var c=b.instance,url=b.extras.opener.attr('href');c.mask.addClass('loading-mask').mask('show');$.imgPreLoad.loadNow(url,function(e){var a=this.width;b.extras.img=$(this);c.stopShow=false;c.content={'multimedia-box':b.extras.img};g.getTextContent(c.currentOpener,c.content,c);c.fillContent();c.widthElement.css({width:c.calcWidth(b.extras.img,a)});c.updateIndex(url);c.show(e,b.extras);c._trigger('imageChange',e,{oldAnchor:null,index:c.currentIndex,opener:c.currentOpener,content:c.content});c.mask.removeClass('loading-mask')});c.stopShow=true}}).bind('cOverlayshow',function(e,a){var b=a.instance;if(b.options.slideShowAutostart){b.play(true)}}).bind('cOverlayhide',function(e,a){a.instance.pause();$('div.content-box',a.element).removeAttr('aria-live').removeAttr('aria-busy')}).cOverlay(g);return this};$.fn.showbox.defaults={mask:true,maskOpts:{fadeInTime:600},focusOnShow:'h1.showbox-title',addRole:'dialog',positionType:'centerHorizontalView',followScroll:true,widthElementSel:'.content-box',structure:'<div class="showbox">'+'<div class="showbox-box">'+'<div class="showbox-head">'+'<h1 class="showbox-title"></h1>'+'<span class="showbox-toolbar">'+'<a role="button" class="prev" href="#" /> <a role="button" class="next" href="#" />'+' <a class="play-pause" role="button" href="#" />'+' <span class="index-pagination"><span class="current-index" /> / <span class="item-length" /></span>'+'</span>'+'</div>'+'<div class="content-box"><div class="multimedia-box"></div><div class="text-content"></div></div>'+' <a role="button" class="close-button" href="#"></a>'+'</div>'+'</div>',getTextContent:function(a,b,c){b['text-content']=a.attr('title')},addKeyNav:true,showContentAnim:function(a,b,e,c){var d=$('div.content-box',a.element);d.queue(function(){a.fillContent();a.widthElement.css({width:a.calcWidth(b)});d.fadeTo(300,1);d.dequeue()})},hideContentAnim:function(a){var b=$('div.content-box',a.element);b.fadeTo(300,0)},controlsWrapper:'.showbox-toolbar',slideShowAutostart:false,slideshowDelay:4000,playTitle:'',playText:'play',pauseText:'pause',pauseTitle:''}})(jQuery);
//init-behaviour
;jQuery.noConflict();(function($){function callOnDomReady(){$('html').addClass('js-on');$('a').each(function(){var b=$(this),href=b.attr('href'),hrefExtract;if(href.indexOf('_popup_')){hrefExtract=href.match(/_popup_(\d+)_(\d+)/);if(hrefExtract&&hrefExtract[1]&&hrefExtract[2]){b.click(function(){var a=window.open(this.href,'window_'+(new Date().getTime()),'status=no,resizable=no,scrollbars=no,width='+hrefExtract[1]+',height='+hrefExtract[2]+'menubar=no');a.focus();return false})}}});$('div.teaser-wrapper:not(.tw-paging,.tw-slider)').scroller();generateLightbox();addPrintLink();$.socialbookmark.init('li.social-b a');$("#list-locations").hide();$(".toggle p").toggle(function(){$(this).addClass("active")},function(){$(this).removeClass("active")}).click(function(){$(this).next("#list-locations").slideToggle("slow");return false});swfobject.addDomLoadEvent(function(){$('div.flash').embedSWF()});generateBrandsTooltips();generateSimpleOverlay();createmapTooltip()}function generateSimpleOverlay(){var c={mask:true,openerSel:'#sortiment div.teaser:not(.mod-2) a',focusOnShow:'h3',beforeShow:function(e,a){var b=a.instance.currentOpener.closest('.teaser').find('.offer').clone().removeAttr('id'),imgSrc=a.instance.currentOpener.attr('href');$('div.content-box',a.instance.element).html(b);if(imgSrc){$('div.content-box',a.instance.element).prepend('<img src="'+imgSrc+'" alt="" />')}},hide:function(e,a){$('div.content-box',a.instance.element).empty()},positionType:function(){var a=$.ui.cOverlay.posMethods.centerInsideView.apply(this,arguments);a.top=$(document).scrollTop();return a}};$('<div class="dialog"><h3>Unser Angebot3</h3><div class="content-box"/><a class="close-button" href="#">Schlie&szlig;en</a></div>').appendTo('body').cOverlay(c);$('<div class="dialog"><h3>Unser Online-Prospekt</h3><div class="content-box"></div><a class="close-button" href="#">Schlie&szlig;en</a></div>').appendTo('body').cOverlay($.extend({},c,{openerSel:'.view-flash > a',beforeShow:function(e,a){a.instance.swfOpts=$.extend({width:880,height:660},a.instance.currentOpener.getClassData());a.instance.element.css({width:a.instance.swfOpts.width});$('div.content-box',a.instance.element).html('<div id="flashbox" style="width: '+a.instance.swfOpts.width+'px; height: '+a.instance.swfOpts.height+'px;" />')},show:function(e,a){swfobject.embedSWF(a.instance.currentOpener.attr('href'),'flashbox',a.instance.swfOpts.width,a.instance.swfOpts.height,'9.0.0')},hide:function(e,a){swfobject.removeSWF('flashbox')}}));$('<div class="dialog"><h3>Unser Online-Prospekt</h3><div class="content-box"></div><a class="close-button" href="#">Schlie&szlig;en</a></div>').appendTo('body').cOverlay($.extend({},c,{openerSel:'.view-iframe > a',beforeShow:function(e,a){a.instance.frameOpts=$.extend({width:880,height:660},a.instance.currentOpener.getClassData());a.instance.element.css({width:a.instance.frameOpts.width});$('div.content-box',a.instance.element).html('<iframe src="'+a.instance.currentOpener.context.href+'" style="width: '+a.instance.frameOpts.width+'px; height: '+a.instance.frameOpts.height+'px; border: none;" frameborder="no" /></iframe>')}}))}function createmapTooltip(){if(!document.getElementById('map')){return}if($.browser.msie){$('#map').attr('alt','')}$('area').each(function(){var a=$(this);a.attr('data-title',a.attr('title')).removeAttr('title','');if($.browser.msie){a.removeAttr('alt')}});$('<div id="tooltip"></div>').appendTo('body').cOverlay({addRole:'tooltip',mask:false,openerSel:'area',openEvent:'mouseover focus',closeEvent:'mouseout blur',openDelay:401,positionType:'around',positionOpts:{horizontal:'right',vertical:'bottom'},followMouse:true,beforeShow:function(e,a){var b=a.instance.currentOpener.attr('data-title');if(!b){return}b=b.split(' | ');a.instance.element.html('<h4>'+b[0]+'</h4><p><span>'+b[1]+'</span><span>'+b[2]+'</span></p>')},animShow:function(a,b){a.css(b.posCSS).stop(true,true).css({opacity:0,visibility:'visible'}).fadeTo(400,1)},animHide:function(a,b){a.stop().fadeTo(300,0,function(){a.css({visibility:'hidden'}).empty()})}})}function generateBrandsTooltips(){var c=$('<div class="dialog tooltip"><div class="content-box"/></div>').appendTo('body').cOverlay({mask:false,focusOnShow:false,addRole:'tooltip',animShow:function(a,b){delete b.posCSS.height;a.css(b.posCSS).stop(true,true).css({opacity:0,visibility:'visible'}).fadeTo(400,1)},animHide:function(a,b){a.css({visibility:'hidden'})},positionType:'around',beforeShow:function(e,a){$('div.content-box',a.instance.element).html(a.instance.currentOpener.closest('.teaser').find('.offer').clone().removeAttr('id'))},positionOpts:{horizontal:'center',vertical:'bottom'},hide:function(e,a){currentOpener=false},show:function(e,a){currentOpener=a.extras.opener[0]}}),opener=$('#brands div.teaser > a'),overlayData=c.data('cOverlay'),currentOpener,closeTimer;function openTooltip(e){if(this===currentOpener){return}if(overlayData.isVisible){c.cOverlay('hide',e,{closer:this})}c.cOverlay('show',e,{opener:this})}function startClose(e){stopClose();closeTimer=setTimeout(function(){c.cOverlay('hide',e)},9)}function stopClose(e){clearTimeout(closeTimer);if(e&&e.stopPropagation){e.stopPropagation()}}opener.bind('mouseenter',openTooltip);opener.bind('focus',openTooltip);c.bind('focusout',startClose);opener.bind('focusout',startClose);c.bind('focusin',stopClose);opener.bind('focusin',stopClose);c.bind('click',stopClose);opener.bind('click',stopClose);$(document).bind('click',startClose)}function generateLightbox(){var f={widthElementSel:'.showbox',positionType:'constrainInsideView',positionOpts:{cleanCSS:false,margin:[30,20]},animShow:function(a,b){a.css(b.posCSS).css({opacity:0}).fadeTo(400,1).css({visibility:'visible'})},animHide:function(a,b){a.fadeTo(400,0,function(){a.css({visibility:'hidden'})})},showContentAnim:function(a,b,e,c){var d=$('div.content-box',a.element),width=b[0].width,duration=300,pos;a.fillContent(a.clonedOverlay.insertAfter(a.element));a.clonedOverlay.css({width:a.calcWidth(b,width)});pos=$.ui.cOverlay.posMethods.constrainInsideView(a.clonedOverlay,e,{img:b},a);a.clonedOverlay.remove();d.queue(function(){a.element.animate($.extend({},pos),{duration:duration,complete:function(){a.fillContent();d.fadeTo(300,1);a.element.css({height:''})}});d.dequeue()})}};$('a[rel=showbox]').showbox($.extend({},f,{setInitialContent:{'showbox-title':'Titel der Gallerie','close-button':'schließen'},getTextContent:function(b,c,d){var e=b.closest('dl'),dds=$('dd',e),img=$('img',e),extraContent='';c['multimedia-box'].attr('alt',img.attr('alt'));c['text-content']='';dds.each(function(){var a=$(this),html=a.html();if(a.is('.caption')){c['text-content']+='<h2 class="caption">'+html+'</h2>';c['showbox-title']=html}else if(a.is('.longdesc')){c['text-content']+='<p class="longdesc">'+html+'</p>'}else if(!a.is('.zoom')){extraContent+='<li class="'+this.className+'">'+html+'</li>'}});if(extraContent){c['text-content']+='<ul class="sb-extra">'+extraContent+'</ul>'}},structure:'<div class="showbox">'+'<div class="showbox-box">'+'<div class="showbox-head">'+'<h1 class="showbox-title"></h1>'+'</div>'+'<div class="content-box"><div class="multimedia-box"></div><div class="text-content"></div></div>'+' <a class="close-button" href="#"></a>'+'</div>'+'</div>'}))}function addPrintLink(){function print(){window.print();return false}$('<li class="print"><a href="#">Drucken</a></li>').prependTo('ul#text-features').find('a').click(print)}$.extend($.ui.scroller.defaults,{atoms:'div.rack-teaser',prevLink:'div.prev a',nextLink:'div.next a'});$(callOnDomReady)})(jQuery);
}// END !jspackager.devmode