(function(){
window.jspackager = {};
jspackager.devmode = false;
jspackager.jsList = {"__basic-behaviour":["jquery","ui-core","focusinout","ui-scroller","jquery-swfobject","jquery-social-b","jquery-mousewheel","tools-n-showbox","swfobject","flowplayer","jquery-mediaqueries","jquery-tabs","jquery-bind","ui-checkbox","behaviour"]};
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]){
loadModul(path[1]);
}
}
}
}
})();
if(!window.jspackager || !jspackager.devmode){
//jquery
;(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context)};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3])return jQuery().find(selector);return jQuery(elem)}selector=[]}}else return jQuery(context).find(selector)}else if(jQuery.isFunction(selector))return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector);return this.setArray(jQuery.makeArray(selector))},jquery:"1.2.6",size:function(){return this.length},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num]},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this},each:function(callback,args){return jQuery.each(this,callback,args)},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this)},attr:function(name,value,type){var options=name;if(name.constructor==String)if(value===undefined)return this[0]&&jQuery[type||"attr"](this[0],name);else{options={};options[name]=value}return this.each(function(i){for(name in options)jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name))})},css:function(key,value){if((key=='width'||key=='height')&&parseFloat(value)<0)value=undefined;return this.attr(key,value,"curCSS")},text:function(text){if(typeof text!="object"&&text!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])})});return ret},wrapAll:function(html){if(this[0])jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild)elem=elem.firstChild;return elem}).append(this);return this},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html)})},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html)})},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1)this.appendChild(elem)})},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1)this.insertBefore(elem,this.firstChild)})},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this)})},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem)});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems)},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0]}else return this.cloneNode(true)});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined)this[expando]=null});if(events===true)this.find("*").andSelf().each(function(i){if(this.nodeType==3)return;var events=jQuery.data(this,"events");for(var type in events)for(var handler in events[type])jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data)});return ret},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i)})||jQuery.multiFilter(selector,this))},not:function(selector){if(selector.constructor==String)if(isSimple.test(selector))return this.pushStack(jQuery.multiFilter(selector,this,true));else selector=jQuery.multiFilter(selector,this);var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector})},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=='string'?jQuery(selector):jQuery.makeArray(selector))))},is:function(selector){return!!selector&&jQuery.multiFilter(selector,this).length>0},hasClass:function(selector){return this.is("."+selector)},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0)return null;for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one)return value;values.push(value)}}return values}else return(this[0].value||"").replace(/\r/g,"")}return undefined}if(value.constructor==Number)value+='';return this.each(function(){if(this.nodeType!=1)return;if(value.constructor==Array&&/radio|checkbox/.test(this.type))this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0);else if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0)});if(!values.length)this.selectedIndex=-1}else this.value=value})},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value)},replaceWith:function(value){return this.after(value).remove()},eq:function(i){return this.slice(i,i+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},andSelf:function(){return this.add(this.prevObject)},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length)data=jQuery.data(this[0],key);return data===undefined&&parts[1]?this.data(parts[0]):data}else return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value)})},removeData:function(key){return this.each(function(){jQuery.removeData(this,key)})},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse)elems.reverse()}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr"))obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script"))scripts=scripts.add(elem);else{if(elem.nodeType==1)scripts=scripts.add(jQuery("script",elem).remove());callback.call(obj,elem)}});scripts.each(evalScript)})}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src)jQuery.ajax({url:elem.src,async:false,dataType:"script"});else jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");if(elem.parentNode)elem.parentNode.removeChild(elem)}function now(){return+new Date}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2}if(typeof target!="object"&&typeof target!="function")target={};if(length==i){target=this;--i}for(;i<length;i++)if((options=arguments[i])!=null)for(var name in options){var src=target[name],copy=options[name];if(target===copy)continue;if(deep&&copy&&typeof copy=="object"&&!copy.nodeType)target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy);else if(copy!==undefined)target[name]=copy}return target};var expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep)window.jQuery=_jQuery;return jQuery},isFunction:function(fn){return!!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?function/.test(fn+"")},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie)script.text=data;else script.appendChild(document.createTextNode(data));head.insertBefore(script,head.firstChild);head.removeChild(script)}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase()},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id)id=elem[expando]=++uuid;if(name&&!jQuery.cache[id])jQuery.cache[id]={};if(data!==undefined)jQuery.cache[id][name]=data;return name?jQuery.cache[id][name]:id},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id])break;if(!name)jQuery.removeData(elem)}}else{try{delete elem[expando]}catch(e){if(elem.removeAttribute)elem.removeAttribute(expando)}delete jQuery.cache[id]}},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length==undefined){for(name in object)if(callback.apply(object[name],args)===false)break}else for(;i<length;)if(callback.apply(object[i++],args)===false)break}else{if(length==undefined){for(name in object)if(callback.call(object[name],name,object[name])===false)break}else for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}return object},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value))value=value.call(elem,i);return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className))elem.className+=(elem.className?" ":"")+className})},remove:function(elem,classNames){if(elem.nodeType==1)elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return!jQuery.className.has(classNames,className)}).join(" "):""},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name]}callback.call(elem);for(var name in options)elem.style[name]=old[name]},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0});val-=Math.round(padding+border)}if(jQuery(elem).is(":visible"))getWH();else jQuery.swap(elem,props,getWH);return Math.max(0,val)}return jQuery.curCSS(elem,name,force)},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari)return false;var ret=defaultView.getComputedStyle(elem,null);return!ret||ret.getPropertyValue("color")==""}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save}if(name.match(/float/i))name=styleFloat;if(!force&&style&&style[name])ret=style[name];else if(defaultView.getComputedStyle){if(name.match(/float/i))name="float";name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem))ret=computedStyle.getPropertyValue(name);else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode)stack.unshift(a);for(;i<stack.length;i++)if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block"}ret=name=="display"&&swap[stack.length-1]!=null?"none":(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i++)if(swap[i]!=null)stack[i].style.display=swap[i]}if(name=="opacity"&&ret=="")ret="1"}else if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase()});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft}}return ret},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=='undefined')context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;jQuery.each(elems,function(i,elem){if(!elem)return;if(elem.constructor==Number)elem+='';if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">"});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--)div=div.lastChild;if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?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(/^\s/.test(elem))div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild)}elem=jQuery.makeArray(div.childNodes)}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select")))return;if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options)ret.push(elem);else ret=jQuery.merge(ret,elem)});return ret},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8)return undefined;var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari)elem.parentNode.selectedIndex;if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode)throw"type property can't be changed";elem[name]=value}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name))return elem.getAttributeNode(name).nodeValue;return elem[name]}if(msie&&notxml&&name=="style")return jQuery.attr(elem.style,"cssText",value);if(set)elem.setAttribute(name,""+value);var attr=msie&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr}if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+''=="NaN"?"":"alpha(opacity="+value*100+")")}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+'':""}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase()});if(set)elem[name]=value;return elem[name]},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"")},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call)ret[0]=array;else while(i)ret[--i]=array[i]}return ret},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++)if(array[i]===elem)return i;return-1},merge:function(first,second){var i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++])if(elem.nodeType!=8)first[pos++]=elem}else while(elem=second[i++])first[pos++]=elem;return first},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i])}}}catch(e){ret=array}return ret},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++)if(!inv!=!callback(elems[i],i))ret.push(elems[i]);return ret},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null)ret[ret.length]=value}return ret.concat.apply([],ret)}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});jQuery.each({parent:function(elem){return elem.parentNode},parents:function(elem){return jQuery.dir(elem,"parentNode")},next:function(elem){return jQuery.nth(elem,2,"nextSibling")},prev:function(elem){return jQuery.nth(elem,2,"previousSibling")},nextAll:function(elem){return jQuery.dir(elem,"nextSibling")},prevAll:function(elem){return jQuery.dir(elem,"previousSibling")},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem)},children:function(elem){return jQuery.sibling(elem.firstChild)},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes)}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string")ret=jQuery.multiFilter(selector,ret);return this.pushStack(jQuery.unique(ret))}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++)jQuery(args[i])[original](this)})}});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1)this.removeAttribute(name)},addClass:function(classNames){jQuery.className.add(this,classNames)},removeClass:function(classNames){jQuery.className.remove(this,classNames)},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames)},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.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).remove();while(this.firstChild)this.removeChild(this.firstChild)}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments)}});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px")}});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2])},"#":function(a,i,m){return a.getAttribute("id")==m[2]},":":{lt:function(a,i,m){return i<m[3]-0},gt:function(a,i,m){return i>m[3]-0},nth:function(a,i,m){return m[3]-0==i},eq:function(a,i,m){return m[3]-0==i},first:function(a,i){return i==0},last:function(a,i,m,r){return i==r.length-1},even:function(a,i){return i%2==0},odd:function(a,i){return i%2},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a},"only-child":function(a){return!jQuery.nth(a.parentNode.lastChild,2,"previousSibling")},parent:function(a){return a.firstChild},empty:function(a){return!a.firstChild},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden"},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden"},enabled:function(a){return!a.disabled},disabled:function(a){return a.disabled},checked:function(a){return a.checked},selected:function(a){return a.selected||jQuery.attr(a,"selected")},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||jQuery.nodeName(a,"button")},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},has:function(a,i,m){return jQuery.find(m[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem}).length}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r)}return cur},find:function(t,context){if(typeof t!="string")return[t];if(context&&context.nodeType!=1&&context.nodeType!=9)return[];context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++)for(var c=ret[i].firstChild;c;c=c.nextSibling)if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName))r.push(c);ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0)continue;foundToken=true}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling)if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id])break;if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~")merge[id]=true;r.push(n)}if(m=="+")break}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0])ret.shift();done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length)}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]]}else{re2=quickClass;m=re2.exec(t)}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2])oid=jQuery('[@id="'+m[2]+'"]',elem)[0];ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[]}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object")tag="param";r=jQuery.merge(r,ret[i].getElementsByTagName(tag))}if(m[1]==".")r=jQuery.classFilter(r,m[2]);if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++)if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break}r=tmp}ret=r}t=t.replace(re2,"")}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t)}}if(t)ret=[];if(ret&&context==ret[0])ret.shift();done=jQuery.merge(done,ret);return done},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass)tmp.push(r[i])}return tmp},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break}}if(!m)break;if(m[1]==":"&&m[2]=="not")r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);else if(m[1]==".")r=jQuery.classFilter(r,m[2],not);else if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2]))z=jQuery.attr(a,m[2])||'';if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not)tmp.push(a)}r=tmp}else if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling)if(n.nodeType==1)n.nodeIndex=c++;merge[id]=true}var add=false;if(first==0){if(node.nodeIndex==last)add=true}else if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0)add=true;if(add^not)tmp.push(node)}r=tmp}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object")fn=fn[m[2]];if(typeof fn=="string")fn=eval("false||function(a,i){return "+fn+";}");r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r)},not)}}return{r:r,t:t}},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1)matched.push(cur);cur=cur[dir]}return matched},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir])if(cur.nodeType==1&&++num==result)break;return cur},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem)r.push(n)}return r}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8)return;if(jQuery.browser.msie&&elem.setInterval)elem=window;if(!handler.guid)handler.guid=this.guid++;if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments)});handler.data=data}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered)return jQuery.event.handle.apply(arguments.callee.elem,arguments)});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener)elem.addEventListener(type,handle,false);else if(elem.attachEvent)elem.attachEvent("on"+type,handle)}}handlers[handler.guid]=handler;jQuery.event.global[type]=true});elem=null},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8)return;var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)=="."))for(var type in events)this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler)delete events[type][handler.guid];else for(handler in events[type])if(!parts[1]||events[type][handler].type==parts[1])delete events[type][handler];for(ret in events[type])break;if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener)elem.removeEventListener(type,jQuery.data(elem,"handle"),false);else if(elem.detachEvent)elem.detachEvent("on"+type,jQuery.data(elem,"handle"))}ret=null;delete events[type]}}})}for(ret in events)break;if(!ret){var handle=jQuery.data(elem,"handle");if(handle)handle.elem=null;jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle")}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true}if(!elem){if(this.global[type])jQuery("*").add([window,document]).trigger(type,data)}else{if(elem.nodeType==3||elem.nodeType==8)return undefined;var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true}data[0].type=type;if(exclusive)data[0].exclusive=true;var handle=jQuery.data(elem,"handle");if(handle)val=handle.apply(elem,data);if((!fn||(jQuery.nodeName(elem,'a')&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)val=false;if(event)data.shift();if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined)val=ret}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,'a')&&type=="click")){this.triggered=true;try{elem[type]()}catch(e){}}this.triggered=false}return val},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false)val=ret;if(ret===false){event.preventDefault();event.stopPropagation()}}}return val},fix:function(event){if(event[expando]==true)return event;var originalEvent=event;event={originalEvent:originalEvent};var 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 timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--)event[props[i]]=originalEvent[props[i]];event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault)originalEvent.preventDefault();originalEvent.returnValue=false};event.stopPropagation=function(){if(originalEvent.stopPropagation)originalEvent.stopPropagation();originalEvent.cancelBubble=true};event.timeStamp=event.timeStamp||now();if(!event.target)event.target=event.srcElement||document;if(event.target.nodeType==3)event.target=event.target.parentNode;if(!event.relatedTarget&&event.fromElement)event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0)}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode))event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)event.metaKey=event.ctrlKey;if(!event.which&&event.button)event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy},special:{ready:{setup:function(){bindReady();return},teardown:function(){return}},mouseenter:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true},handler:function(event){if(withinElement(event,this))return true;event.type="mouseenter";return jQuery.event.handle.apply(this,arguments)}},mouseleave:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true},handler:function(event){if(withinElement(event,this))return true;event.type="mouseleave";return jQuery.event.handle.apply(this,arguments)}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data)})},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments)});return this.each(function(){jQuery.event.add(this,type,one,fn&&data)})},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn)})},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn)})},triggerHandler:function(type,data,fn){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn)},toggle:function(fn){var args=arguments,i=1;while(i<args.length)jQuery.event.proxy(fn,args[i++]);return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false}))},hover:function(fnOver,fnOut){return this.bind('mouseenter',fnOver).bind('mouseleave',fnOut)},ready:function(fn){bindReady();if(jQuery.isReady)fn.call(document,jQuery);else jQuery.readyList.push(function(){return fn.call(this,jQuery)});return this}});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.readyList=null}jQuery(document).triggerHandler("ready")}}});var readyBound=false;function bindReady(){if(readyBound)return;readyBound=true;if(document.addEventListener&&!jQuery.browser.opera)document.addEventListener("DOMContentLoaded",jQuery.ready,false);if(jQuery.browser.msie&&window==top)(function(){if(jQuery.isReady)return;try{document.documentElement.doScroll("left")}catch(error){setTimeout(arguments.callee,0);return}jQuery.ready()})();if(jQuery.browser.opera)document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady)return;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return}jQuery.ready()},false);if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady)return;if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return}if(numStyles===undefined)numStyles=jQuery("style, link[rel=stylesheet]").length;if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return}jQuery.ready()})()}jQuery.event.add(window,"load",jQuery.ready)}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name)}});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem)try{parent=parent.parentNode}catch(error){parent=elem}return parent==elem};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind()});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!='string')return this._load(url);var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off)}callback=callback||function(){};var type="GET";if(params)if(jQuery.isFunction(params)){callback=params;params=null}else{params=jQuery.param(params);type="POST"}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified")self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText);self.each(callback,[res.responseText,status,res])}});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val}}):{name:elem.name,value:val}}).get()}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type})},getScript:function(url,callback){return jQuery.get(url,null,callback,"script")},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={}}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type})},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings)},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,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 jsonp,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))){jsonp="jsonp"+jsc++;if(s.data)s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp]}catch(e){}if(head)head.removeChild(script)}}if(s.dataType=="script"&&s.cache==null)s.cache=false;if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"")}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 remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType=="script"&&type=="GET"&&remote.test(s.url)&&remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset)script.charset=s.scriptCharset;if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script)}}}head.appendChild(script);return undefined}var requestDone=false;var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(s.username)xhr.open(type,s.url,s.async,s.username,s.password);else xhr.open(type,s.url,s.async);try{if(s.data)xhr.setRequestHeader("Content-Type",s.contentType);if(s.ifModified)xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default)}catch(e){}if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return false}if(s.global)jQuery.event.trigger("ajaxSend",[xhr,s]);var onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xhr)&&"error"||s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter)}catch(e){status="parsererror"}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified")}catch(e){}if(s.ifModified&&modRes)jQuery.lastModified[s.url]=modRes;if(!jsonp)success()}else jQuery.handleError(s,xhr,status);complete();if(s.async)xhr=null}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0)setTimeout(function(){if(xhr){xhr.abort();if(!requestDone)onreadystatechange("timeout")}},s.timeout)}try{xhr.send(s.data)}catch(e){jQuery.handleError(s,xhr,null,e)}if(!s.async)onreadystatechange();function success(){if(s.success)s.success(data,status);if(s.global)jQuery.event.trigger("ajaxSuccess",[xhr,s])}function complete(){if(s.complete)s.complete(xhr,status);if(s.global)jQuery.event.trigger("ajaxComplete",[xhr,s]);if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop")}return xhr},handleError:function(s,xhr,status,e){if(s.error)s.error(xhr,status,e);if(s.global)jQuery.event.trigger("ajaxError",[xhr,s,e])},active:0,httpSuccess:function(xhr){try{return!xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||jQuery.browser.safari&&xhr.status==undefined}catch(e){}return false},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&&xhr.status==undefined}catch(e){}return false},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror")throw"parsererror";if(filter)data=filter(data,type);if(type=="script")jQuery.globalEval(data);if(type=="json")data=eval("("+data+")");return data},param:function(a){var s=[];if(a.constructor==Array||a.jquery)jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value))});else for(var j in a)if(a[j]&&a[j].constructor==Array)jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this))});else s.push(encodeURIComponent(j)+"="+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():a[j]));return s.join("&").replace(/%20/g,"+")}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none")this.style.display="block";elem.remove()}}).end()},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none"}).end()},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]()})},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback)},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback)},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback)},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback)},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback)},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback)},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1)return false;var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden)return opt.complete.call(this);if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow}}if(opt.overflow!=null)this.style.overflow="hidden";opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val))e[val=="toggle"?hidden?"show":"hide":val](prop);else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit}if(parts[1])end=((parts[1]=="-="?-1:1)*end)+start;e.custom(start,end,unit)}else e.custom(start,val,"")}});return true})},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx"}if(!type||(typeof type=="string"&&!fn))return queue(this[0],type);return this.each(function(){if(fn.constructor==Array)queue(this,type,fn);else{queue(this,type).push(fn);if(queue(this,type).length==1)fn.call(this)}})},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue)this.queue([]);this.each(function(){for(var i=timers.length-1;i>=0;i--)if(timers[i].elem==this){if(gotoEnd)timers[i](true);timers.splice(i,1)}});if(!gotoEnd)this.dequeue();return this}});var queue=function(elem,type,array){if(elem){type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array)q=jQuery.data(elem,type+"queue",jQuery.makeArray(array))}return q};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length)q[0].call(this)})};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false)jQuery(this).dequeue();if(jQuery.isFunction(opt.old))opt.old.call(this)};return opt},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig)options.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.display="block"},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null)return this.elem[this.prop];var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd)}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++)if(!timers[i]())timers.splice(i--,1);if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null}},13)}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height")this.elem.style[this.prop]="1px";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(gotoEnd){var t=now();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim)if(this.options.curAnim[i]!==true)done=false;if(done){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)this.elem.style.display="none";if(this.options.hide||this.options.show)for(var p in this.options.curAnim)jQuery.attr(this.elem.style,p,this.options.orig[p])}if(done)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,def:400},step:{scrollLeft:function(fx){fx.elem.scrollLeft=fx.now},scrollTop:function(fx){fx.elem.scrollTop=fx.now},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now)},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem)with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop)}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2)border(offsetParent);if(!fixed&&css(offsetParent,"position")=="fixed")fixed=true;offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display")))add(-parent.scrollLeft,-parent.scrollTop);if(mozilla&&css(parent,"overflow")!="visible")border(parent);parent=parent.parentNode}if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute"))add(-doc.body.offsetLeft,-doc.body.offsetTop);if(fixed)add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop))}results={top:top,left:left}}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true))}function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0}return results};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,'marginTop');offset.left-=num(this,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}}return results},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,'position')=='static'))offsetParent=offsetParent.offsetParent;return jQuery(offsetParent)}});jQuery.each(['Left','Top'],function(i,name){var method='scroll'+name;jQuery.fn[method]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val}):this[0]==window||this[0]==document?self[i?'pageYOffset':'pageXOffset']||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method]}});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br)};jQuery.fn["outer"+name]=function(margin){return this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(margin?num(this,"margin"+tl)+num(this,"margin"+br):0)}})})();
//ui-core
;;(function($){$.ui={plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set){return}for(var i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args)}}}},cssCache:{},css:function(name){if($.ui.cssCache[name]){return $.ui.cssCache[name]}var tmp=$('<div class="ui-gen">').addClass(name).css({position:'absolute',top:'-5000px',left:'-5000px',display:'block'}).appendTo('body');$.ui.cssCache[name]=!!((!(/auto|default/).test(tmp.css('cursor'))||(/^[1-9]/).test(tmp.css('height'))||(/^[1-9]/).test(tmp.css('width'))||!(/none/).test(tmp.css('backgroundImage'))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor'))));try{$('body').get(0).removeChild(tmp.get(0))}catch(e){}return $.ui.cssCache[name]},disableSelection:function(el){$(el).attr('unselectable','on').css('MozUserSelect','none')},enableSelection:function(el){$(el).attr('unselectable','off').css('MozUserSelect','')},hasScroll:function(e,a){var scroll=/top/.test(a||"top")?'scrollTop':'scrollLeft',has=false;if(e[scroll]>0)return true;e[scroll]=1;has=e[scroll]>0?true:false;e[scroll]=0;return has}};var _remove=$.fn.remove;$.fn.remove=function(){$("*",this).add(this).triggerHandler("remove");return _remove.apply(this,arguments)};function getter(namespace,plugin,method){var methods=$[namespace][plugin].getter||[];methods=(typeof methods=="string"?methods.split(/,?\s+/):methods);return($.inArray(method,methods)!=-1)}$.widget=function(name,prototype){var namespace=name.split(".")[0];name=name.split(".")[1];$.fn[name]=function(options){var isMethodCall=(typeof options=='string'),args=Array.prototype.slice.call(arguments,1);if(isMethodCall&&getter(namespace,name,options)){var instance=$.data(this[0],name);return(instance?instance[options].apply(instance,args):undefined)}return this.each(function(){var instance=$.data(this,name);if(isMethodCall&&instance&&$.isFunction(instance[options])){instance[options].apply(instance,args)}else if(!isMethodCall){$.data(this,name,new $[namespace][name](this,options))}})};$[namespace][name]=function(element,options){var self=this;this.widgetName=name;this.widgetBaseClass=namespace+'-'+name;this.options=$.extend({},$.widget.defaults,$[namespace][name].defaults,options);this.element=$(element).bind('setData.'+name,function(e,key,value){return self.setData(key,value)}).bind('getData.'+name,function(e,key){return self.getData(key)}).bind('remove',function(){return self.destroy()});this.init()};$[namespace][name].prototype=$.extend({},$.widget.prototype,prototype)};$.widget.prototype={init:function(){},destroy:function(){this.element.removeData(this.widgetName)},getData:function(key){return this.options[key]},setData:function(key,value){this.options[key]=value;if(key=='disabled'){this.element[value?'addClass':'removeClass'](this.widgetBaseClass+'-disabled')}},enable:function(){this.setData('disabled',false)},disable:function(){this.setData('disabled',true)}};$.widget.defaults={disabled:false};$.ui.mouse={mouseInit:function(){var self=this;this.element.bind('mousedown.'+this.widgetName,function(e){return self.mouseDown(e)});if($.browser.msie){this._mouseUnselectable=this.element.attr('unselectable');this.element.attr('unselectable','on')}this.started=false},mouseDestroy:function(){this.element.unbind('.'+this.widgetName);($.browser.msie&&this.element.attr('unselectable',this._mouseUnselectable))},mouseDown:function(e){(this._mouseStarted&&this.mouseUp(e));this._mouseDownEvent=e;var self=this,btnIsLeft=(e.which==1),elIsCancel=(typeof this.options.cancel=="string"?$(e.target).parents().add(e.target).filter(this.options.cancel).length:false);if(!btnIsLeft||elIsCancel||!this.mouseCapture(e)){return true}this._mouseDelayMet=!this.options.delay;if(!this._mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){self._mouseDelayMet=true},this.options.delay)}if(this.mouseDistanceMet(e)&&this.mouseDelayMet(e)){this._mouseStarted=(this.mouseStart(e)!==false);if(!this._mouseStarted){e.preventDefault();return true}}this._mouseMoveDelegate=function(e){return self.mouseMove(e)};this._mouseUpDelegate=function(e){return self.mouseUp(e)};$(document).bind('mousemove.'+this.widgetName,this._mouseMoveDelegate).bind('mouseup.'+this.widgetName,this._mouseUpDelegate);return false},mouseMove:function(e){if($.browser.msie&&!e.button){return this.mouseUp(e)}if(this._mouseStarted){this.mouseDrag(e);return false}if(this.mouseDistanceMet(e)&&this.mouseDelayMet(e)){this._mouseStarted=(this.mouseStart(this._mouseDownEvent,e)!==false);(this._mouseStarted?this.mouseDrag(e):this.mouseUp(e))}return!this._mouseStarted},mouseUp:function(e){$(document).unbind('mousemove.'+this.widgetName,this._mouseMoveDelegate).unbind('mouseup.'+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this.mouseStop(e)}return false},mouseDistanceMet:function(e){return(Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance)},mouseDelayMet:function(e){return this._mouseDelayMet},mouseStart:function(e){},mouseDrag:function(e){},mouseStop:function(e){},mouseCapture:function(e){return true}};$.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);
//focusinout
;(function($){$.each({focus:'focusin',blur:'focusout'},function(original,fix){$.event.special[fix]={setup:function(){if($.browser.msie)return false;this.addEventListener(original,$.event.special[fix].handler,true)},teardown:function(){if($.browser.msie)return false;this.removeEventListener(original,$.event.special[fix].handler,true)},handler:function(e){arguments[0]=$.event.fix(e);arguments[0].type=fix;return $.event.handle.apply(this,arguments)}}})})(jQuery);
//ui-scroller
;(function($){$.widget('ui.scroller',{_init:function(){var elem=this.element[0],o=this.options,that=this;o.animateOptions.complete=function(){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.pictureUpdate=0;this.moveElem=$(o.moveWrapper,elem);this.atomElem=$(o.atoms,elem);this.hidingWrapper=$(o.hidingWrapper,elem);this.nextLink=$(o.nextLink,elem);this.prevLink=$(o.prevLink,elem);this.position=0;this.atomPos=0;this.percentage=0;this.oldPosition=0;this.oldAtomPos=0;if(o.hidingHeight||o.hidingWidth){var css=(o.hidingHeight)?{height:o.hidingHeight}:{};if((o.hidingWidth)){css=$.extend(css,{width:o.hidingWidth})}this.hidingWrapper.css(css)}this.selectedFocus=false;if($.fn.setFocus&&$.fn.closest){var traverse={};if((o.direction.dir==='Top')){traverse[$.ui.keyCode.UP]='prev';traverse[$.ui.keyCode.DOWN]='next'}else{traverse[$.ui.keyCode.LEFT]='prev';traverse[$.ui.keyCode.RIGHT]='next'}this.moveElem.bind('keyfocus',function(e){var atom=$(e.target).closest(o.atoms);if(atom[0]){that.scrollIntoView(atom)}}).bind('focusin',function(e){var atom=$(e.target).closest(o.atoms);that.selectedFocus=(atom[0])?atom:false}).bind('focusout',function(e){that.selectedFocus=false}).bind('keydown',function(e){if(that.selectedFocus===false||!traverse[e.keyCode]){return}var selectElement=that.selectedFocus[traverse[e.keyCode]](o.atoms);if(selectElement){e.preventDefault();selectElement.setFocus(0,true);that.scrollIntoView(selectElement)}})}this.dims=[0];this.hidingWrapper[0][o.direction.scroll]=0;this.update();if(o.recalcStageOnresize){$(window).resize(function(){that.dims[1]=that.hidingWrapper[o.direction.dim]()})}if(o.diashow){this.startDiashow();this.element.bind('mouseenter focusin',function(){clearInterval(that.diaTimer)});if(o.restartDiaShow){this.element.bind('mouseleave focusout',function(){that.startDiashow.call(that)})}}var a=this;if($.fn.mousewheel){this.moveElem.mousewheel(function(e,d){that.stopDiashow.call(that);d=(d<0)?'-':'+';var moveStep=(o.moveStep)?o.moveStep:'atom';that.moveTo(d+'atom1');return false})}var handlePrevNext=function(){var dir=that.prevLink[0]===this?'+':'-';that.stopDiashow.call(that);that.moveTo(dir+o.moveStep);return false};this.nextLink.bind('click.uiscroller',handlePrevNext);this.prevLink.bind('click.uiscroller',handlePrevNext);this.propagate('init')},getIndexNearPos:function(nPos){var len=this.dims.length;while(len--){if(nPos>=this.dims[len]){return len}}return false},inView:function(atom){var dir=this.options.direction,stageDim=this.dims[1],atomDim=atom[dir.outerD](),curPos=this.hidingWrapper['scroll'+dir.dir](),atomPos=atom[0]['offset'+dir.dir];if(curPos>atomPos||stageDim<atomDim+atomPos-curPos){return atomPos}return false},scrollIntoView:function(atom){var inView=this.inView(atom);if(inView!==false){this.moveTo(inView)}},startDiashow:function(){var that=this;this.diaTimer=null;clearInterval(this.diaTimer);this.diaTimer=setInterval(function(){((that.position===that.maxPos)?that.moveTo(0,false):that.moveTo('-'+that.options.moveStep))},this.options.diashow)},stopDiashow:function(){this.element.unbind('.diashow');clearInterval(this.diaTimer)},update:function(hard){var that=this,jElm,o=this.options;if(hard){this.dims=[0]}this.dims[1]=this.hidingWrapper.css({overflow:'hidden',position:'relative'})[o.direction.dim]();var from=this.dims.length-2;for(var i=from,len=this.atomElem.length;i<len;i++){jElm=$(this.atomElem[i]);that.dims.push(that.dims[0]);that.dims[0]+=jElm[o.direction.outerD]({margin:true})}this.dims[0]+=o.addSubPixel;this.maxPos=(this.dims[0]-this.dims[1]);var moveCss={};moveCss[o.direction.dim]=this.dims[0]+'px';this.moveElem.css(moveCss);if(o.pagination){this.createPagination(hard)}this.updatePosition_Controls()},createPagination:function(hard){var content='<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);content+=(o.paginationTitleFrom)?tmpContent.replace(/\$title/g,$(o.paginationTitleFrom,this).text()):tmpContent});$(content+'</ul>').prependTo(this.pagination).find('a').each(function(i){$(this).click(function(){that.stopDiashow.call(that);that.moveTo.call(that,'goTo'+i);return false})});this.pagination.prepend('<span>Seite:</span>')},updatePosition_Controls:function(pos){var o=this.options;pos=(isNaN(pos))?parseInt(this.hidingWrapper[0][o.direction.scroll],10):pos;function changeState(elem,active){var doo=(active)?{style:'addClass'}:{style:'removeClass'};return elem[doo.style](o.activeLinkClass)}if(pos!==this.position){this.percentage=pos/(this.maxPos/100);this.oldPosition=this.position;this.oldAtomPos=this.atomPos;this.position=pos;var num=this.getIndexNearPos(this.position);num=(num)?num-2:0;this.atomPos=num}this.percentage=pos/(this.maxPos/100);if(pos<=0&&this.prevLink.is('.'+o.activeLinkClass)){o.linkFn.call(this.prevLink,'hide');changeState(this.prevLink)}else if(pos>0&&!this.prevLink.is('.'+o.activeLinkClass)){o.linkFn.call(this.prevLink,'show');changeState(this.prevLink,true)}if(pos>=this.maxPos&&this.nextLink.is('.'+o.activeLinkClass)){o.linkFn.call(this.nextLink,'hide');changeState(this.nextLink)}else if(pos<this.maxPos&&!this.nextLink.is('.'+o.activeLinkClass)){o.linkFn.call(this.nextLink,'show');changeState(this.nextLink,true)}if(this.pagination){var oldActive=this.pagination.find('li:not(.pager-dots)').filter('.'+o.activePaginationClass).removeClass(o.activePaginationClass),newActive=oldActive.end().eq(this.atomPos).addClass(o.activePaginationClass);if($.isFunction(o.paginationFn)){o.paginationFn.call(oldActive,'inactive');o.paginationFn.call(newActive,'active')}}},getNummericPosition:function(ePos){var rel=false,num;if(ePos.indexOf('goTo')===0){num=parseInt(/(\d+)$/.exec(ePos)[0],10)+2;ePos=this.dims[num]}else if(ePos=='-atom'||ePos=='-atom1'){num=this.atomPos+3;ePos=(this.dims[num]||this.dims[num]===0)?this.dims[num]:this.dims[this.dims.length-1]}else if(ePos=='+atom'||ePos=='+atom1'){ePos=(this.atomPos)?this.dims[this.atomPos+1]:0}else if(ePos.indexOf('atom')==1){num=parseInt(/(\d+)$/.exec(ePos)[0],10);if(ePos.indexOf('-')===0){num+=2;if(this.dims[this.atomPos+num]){ePos=this.dims[this.atomPos+num]}else{ePos=this.dims[this.dims.length-1]}}else{num-=2;var aLen=this.atomPos-num;if(aLen>1&&this.dims[this.atomPos-num]){ePos=this.dims[this.atomPos-num]}else{ePos=0}}}else if(ePos.indexOf('+')===0||ePos.indexOf('-')===0){rel=ePos.slice(0,1);ePos=parseInt(ePos.slice(1),10);ePos=(rel=='-')?this.position+ePos:this.position-ePos}else{var per=/(\d+)%$/.exec(ePos);if(per&&per[1]){ePos=this.maxPos/100*parseFloat(ePos)}}return ePos},moveTo:function(pos,anim,animOp){pos=(isNaN(pos))?this.getNummericPosition(pos):pos;pos=(pos<=0)?0:(pos>=this.maxPos)?this.maxPos:pos;if(pos===this.position){return false}var o=this.options,scroll=o.direction.scroll;this.updatePosition_Controls(pos);this.propagate('start',this.oldPosition);anim=(typeof anim=='undefined')?o.animate:anim;if(anim){animOp=animOp||{};animOp=$.extend({},o.animateOptions,{slide:this},animOp);var animCss=(scroll=='scrollTop')?{scrollTop:pos,uiscrollerComplete:pos}:{scrollLeft:pos,uiscrollerComplete:pos};this.hidingWrapper.stop().animate(animCss,animOp)}else{this.hidingWrapper.stop()[0][scroll]=pos;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,pos){var args=(pos||pos===0)?$.extend({},this.ui(),{'pos':pos,percentPos:pos/(this.maxPos/100)}):this.ui();this.element.triggerHandler("uiscroller"+n,[args]);if(this.options[n]){this.options[n].call(this.element[0],{type:'uiscroller'+n},args)}}});$.ui.scroller.defaults={hidingWrapper:'div.rack',moveWrapper:'div.rack-design',atoms:'div.teaser',nextLink:'a.next',prevLink:'a.prev',activeLinkClass:'show',linkFn:function(){},moveStep:'atom',direction:'horizontal',hidingWidth:false,hidingHeight:false,animate:true,animateOptions:{duration:800},diashow:false,restartDiaShow:true,addSubPixel:0,recalcStageOnresize:false,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(fx){if(fx.now||fx.now===0){var scroller=fx.options.slide;if(scroller){scroller.propagate('slide',scroller.hidingWrapper[0][scroller.options.direction.scroll])}}}});$.ui.scroller.prototype.init=$.ui.scroller.prototype._init})(jQuery);
//jquery-swfobject
;(function($){var uID=new Date().getTime();$.fn.embedSWF=function(o){var ret=[],reservedParams=['width','height','expressInstall','version'];o=$.extend(true,{},$.fn.embedSWF.defaults,o);function getId(jElem){var id=jElem.attr('id');if(!id){id='id-'+String(uID++);jElem.attr({id:id})}return id}function strToObj(str){var obj={};str=str.replace(/^\?/,'').replace(/&amp;/g,'&').split(/&/);$.each(str,function(i,param){queryPair=param.split(/\=/);obj[decodeURIComponent(queryPair[0])]=(queryPair[1])?decodeURIComponent(queryPair[1]):''});return obj}this.each(function(){var jElem=$(this),classes=this.className,linkSrc=$('a',this).filter('[href*=.swf], [href*=.flv]'),id=getId(jElem),src=linkSrc.attr('href').split('?'),params=strToObj(src[1]),width=params.width||jElem.width(),height=params.height||jElem.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,reservedParam){delete params[reservedParam]});$.extend({},o.parameters,params);swfobject.embedSWF(src[0],id,width,height,version,expressInstall,false,params);flash=document.getElementById(id);flash.className=classes;ret.push(flash)});return this.pushStack(ret)};$.fn.embedSWF.defaults={expressInstall:false,version:"9.0.124",parameters:{}}})(jQuery);
//jquery-social-b
;(function($){$.socialbookmark={findRelElm:function(elm){var jelm=$(elm),ref=jelm.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 jElm=$(e.target);if(jElm.is($.socialbookmark.actElm)||jElm.parents($.socialbookmark.actElm).size()){return}$.socialbookmark.hide()},show:function(){var ref=$.socialbookmark.findRelElm(this);$(ref).animate({height:'show',opacity:'show'},{duration:400});$.socialbookmark.actElm=ref;$(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(sel){var jElm=$(sel);if(jElm.size()){var ref=$.socialbookmark.findRelElm(jElm[0]);$(ref).css({display:'none'});jElm.click($.socialbookmark.handler)}}}})(jQuery);
//jquery-mousewheel
;(function($){$.event.special.mousewheel={setup:function(){var handler=$.event.special.mousewheel.handler;if($.browser.mozilla)$(this).bind('mousemove.mousewheel',function(event){$.data(this,'mwcursorposdata',{pageX:event.pageX,pageY:event.pageY,clientX:event.clientX,clientY:event.clientY})});if(this.addEventListener)this.addEventListener(($.browser.mozilla?'DOMMouseScroll':'mousewheel'),handler,false);else this.onmousewheel=handler},teardown:function(){var handler=$.event.special.mousewheel.handler;$(this).unbind('mousemove.mousewheel');if(this.removeEventListener)this.removeEventListener(($.browser.mozilla?'DOMMouseScroll':'mousewheel'),handler,false);else this.onmousewheel=function(){};$.removeData(this,'mwcursorposdata')},handler:function(event){var args=Array.prototype.slice.call(arguments,1);event=$.event.fix(event||window.event);$.extend(event,$.data(this,'mwcursorposdata')||{});var delta=0,returnValue=true;if(event.wheelDelta)delta=event.wheelDelta/120;if(event.detail)delta=-event.detail/3;if($.browser.opera)delta=-event.wheelDelta;event.data=event.data||{};event.type="mousewheel";args.unshift(delta);args.unshift(event);return $.event.handle.apply(this,args)}};$.fn.extend({mousewheel:function(fn){return fn?this.bind("mousewheel",fn):this.trigger("mousewheel")},unmousewheel:function(fn){return this.unbind("mousewheel",fn)}})})(jQuery);
//tools-n-showbox
;;(function($){$.bind=function(object,method){var args=Array.prototype.slice.call(arguments,2);return function(){var args2=[this].concat(args,$.makeArray(arguments));return method.apply(object,args2)}}})(jQuery);(function($){$.imgPreLoad=(function(){var srcList=[],ready=false,started=false,loaded=false;function loadImg(src,callback){var img=new Image();img.src=src;if(!img.complete){$(img).bind('load error readystatechange',callback)}else{callback.call(img,{type:'cacheLoad'})}}function loadNextImg(){if(srcList.length&&ready){started=true;var src=srcList.shift();loadImg(src,loadNextImg)}else{started=false}}function pause(){started=false;ready=false}function restart(){if(loaded){ready=true;loadNextImg()}}function loadNow(src,callback){pause();var fn=function(e){(callback&&callback(this,e));restart()};loadImg(src,fn)}return{add:function(src,priority){if(priority){srcList.unshift(src)}else{srcList.push(src)}if(ready&&!started){loadNextImg()}},loadNow:loadNow,ready:function(){loaded=true;ready=true;loadNextImg()}}})();$(window).bind('load',$.imgPreLoad.ready)})(jQuery);(function($){$.objScale=(function(){function getDim(obj){var height,width,ret=(obj.jquery)?{height:obj.height(),width:obj.width()}:(isFinite(obj.width)&&isFinite(obj.height))?{width:obj.width,height:obj.height}:getDim($(obj));return ret}function scaleTo(obj,num,side){var cur=getDim(obj),percentage,reverseSide=(side=='height')?'width':'height';percentage=cur[side]/num;return cur[reverseSide]/percentage}function scaleHeightTo(obj,height){return scaleTo(obj,height,'height')}function scaleWidthTo(obj,width){return scaleTo(obj,width,'width')}function constrainObjTo(obj,container,opts){opts=$.extend({margin:[0,0],padding:[0,0]},opts);var cur=getDim(obj),con=getDim(container),maxWidth=con.width-opts.padding[1],maxHeight=con.height-opts.padding[0],estimatetPer=con.height/con.width,curPer=cur.height/cur.width,ret=$.extend({},cur);if(opts.margin[1]){maxWidth-=opts.margin[1]}if(opts.margin[0]){maxHeight-=opts.margin[0]}if(estimatetPer<curPer&&maxHeight<cur.height){ret.width=scaleTo(obj,maxHeight,'height');ret.height=maxHeight}else if(maxWidth<cur.width){ret.width=maxWidth;ret.height=scaleTo(obj,maxWidth,'width')}ret.widthSubtraction=ret.width-cur.width;ret.heightSubtraction=ret.height-cur.height;$.extend(ret,centerObjTo(ret,con,opts));return ret}function centerObjTo(obj,container,opts){opts=$.extend({margin:[0,0],vertical:true,horizontal:true},opts);var cur=getDim(obj),con=getDim(container),ret={};if(opts.vertical){ret.top=(con.height-cur.height)/2;if(isFinite(opts.margin[0])){ret.top=Math.max(ret.top,opts.margin[0])}}if(opts.horizontal){ret.left=(con.width-cur.width)/2;if(isFinite(opts.margin[1])){ret.left=Math.max(ret.left,opts.margin[1])}}return ret}function scaleObjTo(obj,container,opts){opts=$.extend({margin:[false,false],padding:[0,0],scaleToFit:false},opts);var cur=getDim(obj),con=getDim(container),curPer=cur.height/cur.width,ret={};con.maxHeight=con.height-opts.padding[0];con.maxWidth=con.width-opts.padding[1];if(opts.margin[0]){con.maxHeight-=opts.margin[0]}if(opts.margin[1]){con.maxWidth-=opts.margin[1]}var estimatetPer=con.maxHeight/con.maxWidth;if(opts.scaleToFit!==estimatetPer>curPer){ret.width=con.maxWidth;ret.height=scaleTo(obj,con.maxWidth,'width')}else{ret.width=scaleTo(obj,con.maxHeight,'height');ret.height=con.maxHeight}$.extend(ret,centerObjTo(ret,con,opts));return ret}return{scaleWidthTo:scaleWidthTo,scaleHeightTo:scaleHeightTo,scaleSidesIn:scaleObjTo,scaleObjTo:scaleObjTo,constrainObjTo:constrainObjTo,getDim:getDim,centerObjTo:centerObjTo}})()})(jQuery);var aperto=aperto||{};aperto.posFixedFix=(function(){var doc=document.documentElement||document.body;function left(css){return doc.scrollLeft+css+'px'}function top(css){return doc.scrollTop+css+'px'}function bottom(css){return doc.scrollTop+doc.clientHeight-css+'px'}function right(css){return doc.scrollLeft+doc.clientWidth-css+'px'}return{left:left,top:top,bottom:bottom,right:right}})();(function($){var fixedElems=0,bodyBgAttach;$.fn.removePosFixedFix=function(){if($.browser.msie&&$.browser.version<7&&this[0]&&this[0].style&&this[0].removeExpression){return this.each(function(){var jElm=$(this),origPos=$.data(jElm[0],'origFixedPos',origPos);if(origPos){jElm.css(origPos);this.style.removeExpression('top');this.style.removeExpression('left');$.data(jElm[0],'origFixedPos',null);fixedElems--}if(!fixedElems){$('body').css('backgroundAttachment',bodyBgAttach)}})}else{return this}};$.fn.posFixedFix=function(opts){if($.browser.msie&&$.browser.version<7&&this[0]&&this[0].style&&this[0].setExpression){var defaults={top:false,bottom:false,left:false,right:false,flicker:false};if(!opts||typeof opts=="boolean"){opts={flicker:opts}}opts=$.extend(defaults,opts);if(!opts.flicker){var body=$('body');bodyBgAttach=bodyBgAttach||body.css('backgroundAttachment');body.css('backgroundAttachment','fixed')}return this.each(function(){var jElm=$(this),css,type,doneSomething=false,origPos=$.data(jElm[0],'origFixedPos')||{};this.style.position='absolute';$.each(['top','left','bottom','right'],function(i,item){css=opts[item]||jElm.css(item);type=item;if(!origPos[type]){origPos[type]=css}css=parseFloat(css);if(isFinite(css)){$.data(jElm[0],'origFixedPos',origPos);if(item=='bottom'){css+=jElm.outerHeight();jElm[0].style.bottom='auto';type='top'}else if(item=='right'){css+=jElm.outerWidth();jElm[0].style.right='auto';type='left'}jElm[0].style.setExpression(type,"aperto.posFixedFix."+item+"("+css+")");doneSomething=true}});if(doneSomething){fixedElems++}})}else{return this}}})(jQuery);(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&parseInt($.browser.version)<7){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length===0){this.insertBefore(document.createElement(html),this.firstChild)}})}return this}})(jQuery);(function($){$.aperto=$.aperto||{};$.widget('aperto.overlay',{init:function(){var o=this.options;if(o.bgiframe&&$.fn.bgIframe){this.element.bgIframe(o.bgiframe)}if(o.initHide){this.element.hide()}this.reFocusElm=null;this.element.attr({'aria-hidden':(this.element.is(':visible'))?'false':'true'})},overrideAnim:function(anim,animOpts,defaultOpts,fn){var self=this,oldComplete;animOpts=animOpts||defaultOpts;oldComplete=animOpts.complete||function(){};animOpts.complete=function(){oldComplete.call(self.element[0]);fn.call(self)};this.element[anim](animOpts)},show:function(anim,animOpts,elm,e){var o=this.options;anim=anim||o.showAnim;if(this.element.is(':visible')){return true}if(o.posStyle=='fixed'&&$.browser.msie){this.element.posFixedFix()}function show(){this.element.css({'display':'block'}).attr({'aria-hidden':'false'});this.propagate('show',e,elm)}this.propagate('beforeshow',e,elm);if(anim){this.overrideAnim(anim,animOpts,o.showOptions,show)}else{show.call(this)}},hide:function(anim,animOpts,elm,e){var o=this.options;function hide(){this.element.css({'display':'none'}).attr({'aria-hidden':'true'});if(this.options.posStyle=='fixed'){this.element.removePosFixedFix()}this.propagate('hide',e)}if(!this.element.is(':visible')){return true}anim=anim||o.hideAnim;this.propagate('beforehide');if(anim){this.overrideAnim(anim,animOpts,o.hideOptions,hide)}else{hide.call(this)}},ui:function(){return{instance:this,options:this.options}},propagate:function(n,e,elm){var args=[e,$.extend(this.ui(),{openedBy:elm})];this.element.triggerHandler(this.widgetName+n,args)},calcDim:{view:function(dim){return $(window)[dim]()},doc:function(){return $(document)[dim]()}},createDimension:function(dim){var o=this.options,self=this,normal=false,oName=dim.toLowerCase(),tmp={},ret,calcVal;$.each(['normal','max','min'],function(i,item){calcVal=o[oName][item];if(calcVal){if(isFinite(calcVal)){tmp[item]=calcVal}else if(self.calcDim[calcVal]){tmp[item]=self.calcDim[calcVal](oName)}}else if(item=='normal'){tmp.normal=self.element['inner'+dim]();normal=tmp.normal}});ret=tmp.normal;if(tmp.max){ret=Math.min(ret,tmp.max)}if(tmp.min){ret=Math.max(ret,tmp.min)}ret=(normal!==ret)?ret:false;return ret},createPosition:function(){var self=this,o=this.options,placePos=o.placePos,dimNames=['Width','Height'],pos=['Left','Top'],ret={},dim,view;$.each(['horizontal','vertical'],function(i,item){if(placePos[item]){dim=self.element['outer'+dimNames[i]]();view=$(window)[dimNames[i].toLowerCase()]();ret[pos[i].toLowerCase()]=(view/2)-(dim/2);if(o.posStyle=='absolute'){ret[pos[i].toLowerCase()]+=$(document)['scroll'+pos[i]]()}}});this.element.css(ret);return ret}});$.aperto.overlay.defaults={bgiframe:{},showAnim:false,showOptions:{},hideAnim:false,hideOptions:{},initHide:true,posStyle:'absolute'}})(jQuery);(function($){$.fn.overlayAnim=function(){return this.each(function(){var jElm=$(this);if(jElm.is(':hidden')){jElm.animate({opacity:0.8}).css({display:'block'})}else{jElm.animate({opacity:0,complete:function(){jElm.css({display:'none'})}})}})}})(jQuery);(function($){$.aperto=$.aperto||{};var tabI=($.browser.msie)?'tabIndex':'tabindex';$.widget('aperto.apertoDialog',$.extend({},$.aperto.overlay.prototype,{init:function(){this.element.attr({role:'dialog',tabindex:tabI});if(!this.element.attr('id')){this.element.attr('id','dialog-id-'+new Date().getTime())}$.aperto.overlay.prototype.init.call(this)},open:function(anim,animOpts,elm,e){var o=this.options,self=this;this.reFocusElm=elm;this.show(anim,animOpts,elm,e);if(o.focusOnOpen&&self.element[0].focus){setTimeout(function(){self.element[0].focus()},180)}},close:function(anim,animOpts,elm,e){var o=this.options,self=this;if(o.resetFocusOnClose&&this.reFocusElm){setTimeout(function(){self.reFocusElm.focus();self.reFocusElm=null},180)}this.hide(anim,animOpts,elm,e)}}));$.aperto.apertoDialog.defaults=$.extend({},$.aperto.overlay.defaults,{focusOnOpen:true,resetFocusOnClose:!$.browser.msie},true);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:'easeOutQuad',easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b}});$.widget('aperto.showbox',{init:function(){var o=this.options,self=this,uniqueUrls=[],lastUrlIndex;this.controls=$(o.controls,this.element[0]).bind('click',$.bind(this,this.controlClick));this.overlay=$('<div id="showbox-overlay"></div>').css({display:'none'}).appendTo('body').overlay({'showAnim':'overlayAnim',posStyle:'fixed'});o.showboxStructure=o.showboxStructure.replace('{prev}',o.prev).replace('{next}',o.next).replace('{close}',o.close);if($.browser.msie&&parseInt($.browser.version,10)<7){this.overlay.bind('resize',$.bind(this,this.overlayResize));this.overlayResize()}this.dialog=$(o.showboxStructure).css({display:'none'}).appendTo('body').apertoDialog({posStyle:o.dialogPosStyle});this.contentReady=false;this.contentHideReady=false;this.uniqueUrls=[];this.controls.each(function(i){var url=$(this).attr('href');if($.inArray(url,uniqueUrls)==-1){uniqueUrls.push(url);self.uniqueUrls.push({index:i,url:url});lastUrlIndex=i}});this.lastUrlIndex=lastUrlIndex;$('a.close',this.dialog[0]).bind('click',$.bind(this,this.close));$('a.next',this.dialog[0]).bind('click',$.bind(this,this.prevNext));$('a.prev',this.dialog[0]).bind('click',$.bind(this,this.prevNext));$(this.dialog[0]).bind('reachedEnd',$.bind(this,this.handleGalleryEnd))},handleGalleryEnd:function(elm,e,data){if(data===0){$('a.prev',this.dialog[0]).removeClass('visible');$('a.prev',this.dialog[0]).addClass('hidden')}else{$('a.prev',this.dialog[0]).removeClass('hidden');$('a.prev',this.dialog[0]).addClass('visible')}if(data===this.uniqueUrls.length-1){$('a.next',this.dialog[0]).removeClass('visible');$('a.next',this.dialog[0]).addClass('hidden')}else{$('a.next',this.dialog[0]).removeClass('hidden');$('a.next',this.dialog[0]).addClass('visible')}if(data!==0&&data!==this.uniqueUrls.length-1){$('a',this.dialog[0]).each(function(){if($(this).css('visibility')=='hidden'){$(this).removeClass('hidden');$(this).addClass('visible')}})}},overlayResize:function(){var css={height:$(window).height(),width:$(window).width()};this.overlay.css(css)},getIndexByUrl:function(url,dir){var found=false,self=this;$.each(this.uniqueUrls,function(i,item){if(item.url==url){if(self.uniqueUrls[i+dir]){found=self.uniqueUrls[i+dir].index}return false}});return found},prevNext:function(elm,e){var dir=($(elm).is('.next'))?1:-1,estimatetElement=this.getIndexByUrl(this.indexUrl,dir);if(estimatetElement||estimatetElement===0){estimatetElement=$(this.controls[estimatetElement]);this.getContents(estimatetElement,estimatetElement.attr('href'))}return false},contentFilter:{img:/\.jpg$|\.gif$|\.jpeg$|\.png$/},getMultiMediaContent:{img:function(src,elm){var self=this;function loaded(img){var dim=$.objScale.getDim(img);self.showOpen.call(self,dim,'<img src="'+src+'" alt="" />',self.text,elm)}$.imgPreLoad.loadNow(src,loaded)}},fillContent:function(showbox,mm_C,text_C,animate){var self=this;function fill(){var extra='';if(mm_C){mm_C=$(mm_C).stop(true,true).css({opacity:0})}$('.multimedia-box',showbox[0]).html(mm_C);if(mm_C){$(mm_C).stop(true,true).animate({opacity:1})}$('.caption',showbox[0]).html(text_C.caption);$('.longdesc',showbox[0]).html(text_C.longdesc);$.each(text_C.extra,function(prop,value){extra+='<li class="'+prop+'">'+value+'</li>'});$('ul.sb-extra',showbox[0]).remove();if(extra){$('.text-content',showbox[0]).append('<ul class="sb-extra">'+extra+'</ul>')}}fill()},deleteContent:function(){this.fillContent(this.dialog,'',{caption:'',longdesc:'',extra:''})},close:function(){this.dialog.apertoDialog('close');this.overlay.overlay('hide');this.deleteContent();return false},centerBox:function(elm){var o=this.options,dimension=$.objScale[(o.constrainToView)?'constrainObjTo':'centerObjTo'](elm,$(window),{margin:o.margin,padding:o.padding,vertical:(o.top=='middle'),horizontal:(o.left=='center')});if(isFinite(o.top)){dimension.top=o.top}if(isFinite(o.left)){dimension.top=o.left}if(o.dialogPosStyle=='absolute'){dimension.top+=$(document).scrollTop();dimension.left+=$(document).scrollLeft()}return dimension},showOpen:function(dim,mm_C,text_C,openElement){text_C=text_C||this.text;var o=this.options,self=this,center,holeDialog=this.dialog.find('*').andSelf(),centerBox=holeDialog.filter(o.posBox),widthBox=holeDialog.filter(o.widthBox),testDiv=$(o.showboxStructure).css({visibility:'hidden'}).appendTo('body'),holeTestDialog=testDiv.find('*').andSelf(),testCenterBox=holeTestDialog.filter(o.posBox),testWidthBox=holeTestDialog.filter(o.widthBox);function removeHeight(){centerBox.css('height','')}this.overlay.overlay('show');testWidthBox.css('width',dim.width);$('.multimedia-box',testDiv[0]).css('height',dim.height);this.fillContent(testDiv,'',text_C);center=this.centerBox(testCenterBox,false);testDiv.remove();if(isFinite(center.heightSubtraction)||isFinite(center.widthSubtraction)){dim.width+=center.widthSubtraction;dim.height+=center.heightSubtraction;delete center.heightSubtraction;delete center.widthSubtraction}if(!this.dialog.is(':hidden')){$('.multimedia-box',this.dialog[0]).animate(dim,{duration:200,easing:'easeOutQuad'});widthBox.animate({width:dim.width},{queue:false,duration:200,easing:'easeOutQuad'});delete center.width;centerBox.animate(center,{duration:200,complete:function(){self.fillContent.call(self,self.dialog,mm_C,text_C);removeHeight()},queue:false,easing:'easeOutQuad'});this.dialog.removeClass('loading')}else{delete center.height;widthBox.css({width:dim.width});delete center.width;centerBox.css(center);this.fillContent(this.dialog,mm_C,text_C);if(dim){$('.multimedia-box',this.dialog[0]).css(dim)}this.dialog.apertoDialog('open',o.openAnim,o.openAnimOpts,openElement)}},collectTextContent:function(control){var o=this.options,parent=control.parents(o.parentContainerSel),ret={extra:{}};$(o.extraContentSel,parent).each(function(){var jElm=$(this);if(jElm.is(o.captionSel)){ret.caption=jElm.html()}else if(jElm.is(o.longdescSel)){ret.longdesc=jElm.html()}else{ret.extra[this.className.split(' ').join('_')]=jElm.html()}});return ret},controlClick:function(elm,e){var self=this,control=$(elm);this.overlay.overlay('open');return this.getContents(control)},getContents:function(control){var o=this.options,self=this,passDefaultAction=true,testUrl;this.dialog.addClass('loading');if(!this.dialog.is(':hidden')){this.deleteContent('hide')}this.contentReady=false;this.indexUrl=control.attr('href');if(o.getUpDownforContent){this.text=this.collectTextContent(control)}testUrl=this.indexUrl.toLowerCase();$.each(this.contentFilter,function(prop,val){if(val.test(testUrl)){self.getMultiMediaContent[prop].call(self,self.indexUrl,control);passDefaultAction=false;return false}});for(var i=0,len=this.uniqueUrls.length;i<len;i++){if(this.indexUrl===this.uniqueUrls[i].url){$(self.dialog[0]).trigger('reachedEnd',i);break}}return passDefaultAction}});$.aperto.showbox.defaults={controls:'a[rel=showbox]',showboxStructure:'<div id="showbox"><div class="wrapper-close"><a href="#" class="close">{close}</a></div><div class="content-box"><div class="text-content"><h2 class="caption"></h2><div class="multimedia-box"></div><p class="longdesc"></p></div></div><div class="controls"><span class="prev-next"><a href="#" class="prev">{prev}</a> <a href="#" class="next">{next}</a></span></div></div>',getUpDownforContent:true,parentContainerSel:'dl',captionSel:'dd.caption',longdescSel:'dd.longdesc',extraContentSel:'dd:not(.zoom)',prev:'previous',next:'next',close:'close',dialogPosStyle:'fixed',top:'middle',left:'center',calcDimension:true,posBox:'.content-box',widthBox:'.content-box',constrainToView:true,margin:[30,30],padding:[30,30]}})(jQuery);
//swfobject
;var swfobject=function(){var UNDEF="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",win=window,doc=document,nav=navigator,domLoadFnArr=[],regObjArr=[],objIdArr=[],listenersArr=[],script,timer=null,storedAltContent=null,storedAltContentId=null,isDomLoaded=false,isExpressInstallActive=false;var ua=function(){var w3cdom=typeof doc.getElementById!=UNDEF&&typeof doc.getElementsByTagName!=UNDEF&&typeof doc.createElement!=UNDEF,playerVersion=[0,0,0],d=null;if(typeof nav.plugins!=UNDEF&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;if(d&&!(typeof nav.mimeTypes!=UNDEF&&nav.mimeTypes[FLASH_MIME_TYPE]&&!nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)){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]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0}}else if(typeof win.ActiveXObject!=UNDEF){var a=null,fp6Crash=false;try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".7")}catch(e){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".6");playerVersion=[6,0,21];a.AllowScriptAccess="always"}catch(e){if(playerVersion[0]==6){fp6Crash=true}}if(!fp6Crash){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX)}catch(e){}}}if(!fp6Crash&&a){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}}catch(e){}}}var u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=false,windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u);/*@cc_on ie=true;@if(@_win32)windows=true;@elif(@_mac)mac=true;@end@*/return{w3cdom:w3cdom,pv:playerVersion,webkit:webkit,ie:ie,win:windows,mac:mac}}();var onDomLoad=function(){if(!ua.w3cdom){return}addDomLoadEvent(main);if(ua.ie&&ua.win){try{doc.write("<scr"+"ipt id=__ie_ondomload defer=true src=//:></scr"+"ipt>");script=getElementById("__ie_ondomload");if(script){addListener(script,"onreadystatechange",checkReadyState)}}catch(e){}}if(ua.webkit&&typeof doc.readyState!=UNDEF){timer=setInterval(function(){if(/loaded|complete/.test(doc.readyState)){callDomLoadFunctions()}},10)}if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("DOMContentLoaded",callDomLoadFunctions,null)}addLoadEvent(callDomLoadFunctions)}();function checkReadyState(){if(script.readyState=="complete"){script.parentNode.removeChild(script);callDomLoadFunctions()}}function callDomLoadFunctions(){if(isDomLoaded){return}if(ua.ie&&ua.win){var s=createElement("span");try{var t=doc.getElementsByTagName("body")[0].appendChild(s);t.parentNode.removeChild(t)}catch(e){return}}isDomLoaded=true;if(timer){clearInterval(timer);timer=null}var dl=domLoadFnArr.length;for(var i=0;i<dl;i++){domLoadFnArr[i]()}}function addDomLoadEvent(fn){if(isDomLoaded){fn()}else{domLoadFnArr[domLoadFnArr.length]=fn}}function addLoadEvent(fn){if(typeof win.addEventListener!=UNDEF){win.addEventListener("load",fn,false)}else if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("load",fn,false)}else if(typeof win.attachEvent!=UNDEF){addListener(win,"onload",fn)}else if(typeof win.onload=="function"){var fnOld=win.onload;win.onload=function(){fnOld();fn()}}else{win.onload=fn}}function main(){var rl=regObjArr.length;for(var i=0;i<rl;i++){var id=regObjArr[i].id;if(ua.pv[0]>0){var obj=getElementById(id);if(obj){regObjArr[i].width=obj.getAttribute("width")?obj.getAttribute("width"):"0";regObjArr[i].height=obj.getAttribute("height")?obj.getAttribute("height"):"0";if(hasPlayerVersion(regObjArr[i].swfVersion)){if(ua.webkit&&ua.webkit<312){fixParams(obj)}setVisibility(id,true)}else if(regObjArr[i].expressInstall&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){showExpressInstall(regObjArr[i])}else{displayAltContent(obj)}}}else{setVisibility(id,true)}}}function fixParams(obj){var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var e=createElement("embed"),a=nestedObj.attributes;if(a){var al=a.length;for(var i=0;i<al;i++){if(a[i].nodeName=="DATA"){e.setAttribute("src",a[i].nodeValue)}else{e.setAttribute(a[i].nodeName,a[i].nodeValue)}}}var c=nestedObj.childNodes;if(c){var cl=c.length;for(var j=0;j<cl;j++){if(c[j].nodeType==1&&c[j].nodeName=="PARAM"){e.setAttribute(c[j].getAttribute("name"),c[j].getAttribute("value"))}}}obj.parentNode.replaceChild(e,obj)}}function showExpressInstall(regObj){isExpressInstallActive=true;var obj=getElementById(regObj.id);if(obj){if(regObj.altContentId){var ac=getElementById(regObj.altContentId);if(ac){storedAltContent=ac;storedAltContentId=regObj.altContentId}}else{storedAltContent=abstractAltContent(obj)}if(!(/%$/.test(regObj.width))&&parseInt(regObj.width,10)<310){regObj.width="310"}if(!(/%$/.test(regObj.height))&&parseInt(regObj.height,10)<137){regObj.height="137"}doc.title=doc.title.slice(0,47)+" - Flash Player Installation";var pt=ua.ie&&ua.win?"ActiveX":"PlugIn",dt=doc.title,fv="MMredirectURL="+win.location+"&MMplayerType="+pt+"&MMdoctitle="+dt,replaceId=regObj.id;if(ua.ie&&ua.win&&obj.readyState!=4){var newObj=createElement("div");replaceId+="SWFObjectNew";newObj.setAttribute("id",replaceId);obj.parentNode.insertBefore(newObj,obj);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)}createSWF({data:regObj.expressInstall,id:EXPRESS_INSTALL_ID,width:regObj.width,height:regObj.height},{flashvars:fv},replaceId)}}function displayAltContent(obj){if(ua.ie&&ua.win&&obj.readyState!=4){var el=createElement("div");obj.parentNode.insertBefore(el,obj);el.parentNode.replaceChild(abstractAltContent(obj),el);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)}else{obj.parentNode.replaceChild(abstractAltContent(obj),obj)}}function abstractAltContent(obj){var ac=createElement("div");if(ua.win&&ua.ie){ac.innerHTML=obj.innerHTML}else{var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var c=nestedObj.childNodes;if(c){var cl=c.length;for(var i=0;i<cl;i++){if(!(c[i].nodeType==1&&c[i].nodeName=="PARAM")&&!(c[i].nodeType==8)){ac.appendChild(c[i].cloneNode(true))}}}}}return ac}function createSWF(attObj,parObj,id){var r,el=getElementById(id);if(el){if(typeof attObj.id==UNDEF){attObj.id=id}if(ua.ie&&ua.win){var att="";for(var i in attObj){if(attObj[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){parObj.movie=attObj[i]}else if(i.toLowerCase()=="styleclass"){att+=' class="'+attObj[i]+'"'}else if(i.toLowerCase()!="classid"){att+=' '+i+'="'+attObj[i]+'"'}}}var par="";for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par+='<param name="'+j+'" value="'+parObj[j]+'" />'}}el.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+att+'>'+par+'</object>';objIdArr[objIdArr.length]=attObj.id;r=getElementById(attObj.id)}else if(ua.webkit&&ua.webkit<312){var e=createElement("embed");e.setAttribute("type",FLASH_MIME_TYPE);for(var k in attObj){if(attObj[k]!=Object.prototype[k]){if(k.toLowerCase()=="data"){e.setAttribute("src",attObj[k])}else if(k.toLowerCase()=="styleclass"){e.setAttribute("class",attObj[k])}else if(k.toLowerCase()!="classid"){e.setAttribute(k,attObj[k])}}}for(var l in parObj){if(parObj[l]!=Object.prototype[l]){if(l.toLowerCase()!="movie"){e.setAttribute(l,parObj[l])}}}el.parentNode.replaceChild(e,el);r=e}else{var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);for(var m in attObj){if(attObj[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){o.setAttribute("class",attObj[m])}else if(m.toLowerCase()!="classid"){o.setAttribute(m,attObj[m])}}}for(var n in parObj){if(parObj[n]!=Object.prototype[n]&&n.toLowerCase()!="movie"){createObjParam(o,n,parObj[n])}}el.parentNode.replaceChild(o,el);r=o}}return r}function createObjParam(el,pName,pValue){var p=createElement("param");p.setAttribute("name",pName);p.setAttribute("value",pValue);el.appendChild(p)}function removeSWF(id){var obj=getElementById(id);if(obj&&(obj.nodeName=="OBJECT"||obj.nodeName=="EMBED")){if(ua.ie&&ua.win){if(obj.readyState==4){removeObjectInIE(id)}else{win.attachEvent("onload",function(){removeObjectInIE(id)})}}else{obj.parentNode.removeChild(obj)}}}function removeObjectInIE(id){var obj=getElementById(id);if(obj){for(var i in obj){if(typeof obj[i]=="function"){obj[i]=null}}obj.parentNode.removeChild(obj)}}function getElementById(id){var el=null;try{el=doc.getElementById(id)}catch(e){}return el}function createElement(el){return doc.createElement(el)}function addListener(target,eventType,fn){target.attachEvent(eventType,fn);listenersArr[listenersArr.length]=[target,eventType,fn]}function hasPlayerVersion(rv){var pv=ua.pv,v=rv.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10)||0;v[2]=parseInt(v[2],10)||0;return(pv[0]>v[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?true:false}function createCSS(sel,decl){if(ua.ie&&ua.mac){return}var h=doc.getElementsByTagName("head")[0],s=createElement("style");s.setAttribute("type","text/css");s.setAttribute("media","screen");if(!(ua.ie&&ua.win)&&typeof doc.createTextNode!=UNDEF){s.appendChild(doc.createTextNode(sel+" {"+decl+"}"))}h.appendChild(s);if(ua.ie&&ua.win&&typeof doc.styleSheets!=UNDEF&&doc.styleSheets.length>0){var ls=doc.styleSheets[doc.styleSheets.length-1];if(typeof ls.addRule==OBJECT){ls.addRule(sel,decl)}}}function setVisibility(id,isVisible){var v=isVisible?"visible":"hidden";if(isDomLoaded&&getElementById(id)){getElementById(id).style.visibility=v}else{createCSS("#"+id,"visibility:"+v)}}function urlEncodeIfNecessary(s){var regex=/[\\\"<>\.;]/;var hasBadChars=regex.exec(s)!=null;return hasBadChars?encodeURIComponent(s):s}var cleanup=function(){if(ua.ie&&ua.win){window.attachEvent("onunload",function(){var ll=listenersArr.length;for(var i=0;i<ll;i++){listenersArr[i][0].detachEvent(listenersArr[i][1],listenersArr[i][2])}var il=objIdArr.length;for(var j=0;j<il;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(objectIdStr,swfVersionStr,xiSwfUrlStr){if(!ua.w3cdom||!objectIdStr||!swfVersionStr){return}var regObj={};regObj.id=objectIdStr;regObj.swfVersion=swfVersionStr;regObj.expressInstall=xiSwfUrlStr?xiSwfUrlStr:false;regObjArr[regObjArr.length]=regObj;setVisibility(objectIdStr,false)},getObjectById:function(objectIdStr){var r=null;if(ua.w3cdom){var o=getElementById(objectIdStr);if(o){var n=o.getElementsByTagName(OBJECT)[0];if(!n||(n&&typeof o.SetVariable!=UNDEF)){r=o}else if(typeof n.SetVariable!=UNDEF){r=n}}}return r},embedSWF:function(swfUrlStr,replaceElemIdStr,widthStr,heightStr,swfVersionStr,xiSwfUrlStr,flashvarsObj,parObj,attObj){if(!ua.w3cdom||!swfUrlStr||!replaceElemIdStr||!widthStr||!heightStr||!swfVersionStr){return}widthStr+="";heightStr+="";if(hasPlayerVersion(swfVersionStr)){setVisibility(replaceElemIdStr,false);var att={};if(attObj&&typeof attObj===OBJECT){for(var i in attObj){if(attObj[i]!=Object.prototype[i]){att[i]=attObj[i]}}}att.data=swfUrlStr;att.width=widthStr;att.height=heightStr;var par={};if(parObj&&typeof parObj===OBJECT){for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par[j]=parObj[j]}}}if(flashvarsObj&&typeof flashvarsObj===OBJECT){for(var k in flashvarsObj){if(flashvarsObj[k]!=Object.prototype[k]){if(typeof par.flashvars!=UNDEF){par.flashvars+="&"+k+"="+flashvarsObj[k]}else{par.flashvars=k+"="+flashvarsObj[k]}}}}addDomLoadEvent(function(){createSWF(att,par,replaceElemIdStr);if(att.id==replaceElemIdStr){setVisibility(replaceElemIdStr,true)}})}else if(xiSwfUrlStr&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){isExpressInstallActive=true;setVisibility(replaceElemIdStr,false);addDomLoadEvent(function(){var regObj={};regObj.id=regObj.altContentId=replaceElemIdStr;regObj.width=widthStr;regObj.height=heightStr;regObj.expressInstall=xiSwfUrlStr;showExpressInstall(regObj)})}},getFlashPlayerVersion:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]}},hasFlashPlayerVersion:hasPlayerVersion,createSWF:function(attObj,parObj,replaceElemIdStr){if(ua.w3cdom){return createSWF(attObj,parObj,replaceElemIdStr)}else{return undefined}},removeSWF:function(objElemIdStr){if(ua.w3cdom){removeSWF(objElemIdStr)}},createCSS:function(sel,decl){if(ua.w3cdom){createCSS(sel,decl)}},addDomLoadEvent:addDomLoadEvent,addLoadEvent:addLoadEvent,getQueryParamValue:function(param){var q=doc.location.search||doc.location.hash;if(param==null){return urlEncodeIfNecessary(q)}if(q){var pairs=q.substring(1).split("&");for(var i=0;i<pairs.length;i++){if(pairs[i].substring(0,pairs[i].indexOf("="))==param){return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(isExpressInstallActive&&storedAltContent){var obj=getElementById(EXPRESS_INSTALL_ID);if(obj){obj.parentNode.replaceChild(storedAltContent,obj);if(storedAltContentId){setVisibility(storedAltContentId,true);if(ua.ie&&ua.win){storedAltContent.style.display="block"}}storedAltContent=null;storedAltContentId=null;isExpressInstallActive=false}}}}}();
//flowplayer
;(function(){function log(args){console.log("$f.fireEvent",[].slice.call(args))}function clone(obj){if(!obj||typeof obj!='object'){return obj}var temp=new obj.constructor();for(var key in obj){if(obj.hasOwnProperty(key)){temp[key]=clone(obj[key])}}return temp}function each(obj,fn){if(!obj){return}var name,i=0,length=obj.length;if(length===undefined){for(name in obj){if(fn.call(obj[name],name,obj[name])===false){break}}}else{for(var value=obj[0];i<length&&fn.call(value,i,value)!==false;value=obj[++i]){}}return obj}function el(id){return document.getElementById(id)}function extend(to,from,skipFuncs){if(to&&from){each(from,function(name,value){if(!skipFuncs||typeof value!='function'){to[name]=value}})}}function select(query){var index=query.indexOf(".");if(index!=-1){var tag=query.substring(0,index)||"*";var klass=query.substring(index+1,query.length);var els=[];each(document.getElementsByTagName(tag),function(){if(this.className&&this.className.indexOf(klass)!=-1){els.push(this)}});return els}}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(to,evt,fn){to[evt]=to[evt]||[];to[evt].push(fn)}function makeId(){return"_"+(""+Math.random()).substring(2,10)}var Clip=function(json,index,player){var self=this;var cuepoints={};var listeners={};self.index=index;if(typeof json=='string'){json={url:json}}extend(this,json,true);each(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var evt="on"+this;if(evt.indexOf("*")!=-1){evt=evt.substring(0,evt.length-1);var before="onBefore"+evt.substring(2);self[before]=function(fn){bind(listeners,before,fn);return self}}self[evt]=function(fn){bind(listeners,evt,fn);return self};if(index==-1){if(self[before]){player[before]=self[before]}if(self[evt]){player[evt]=self[evt]}}});extend(this,{onCuepoint:function(points,fn){if(arguments.length==1){cuepoints.embedded=[null,points];return self}if(typeof points=='number'){points=[points]}var fnId=makeId();cuepoints[fnId]=[points,fn];if(player.isLoaded()){player._api().fp_addCuepoints(points,index,fnId)}return self},update:function(json){extend(self,json);if(player.isLoaded()){player._api().fp_updateClip(json,index)}var conf=player.getConfig();var clip=(index==-1)?conf.clip:conf.playlist[index];extend(clip,json,true)},_fireEvent:function(evt,arg1,arg2,target){if(evt=='onLoad'){each(cuepoints,function(key,val){if(val[0]){player._api().fp_addCuepoints(val[0],index,key)}});return false}target=target||self;if(evt=='onCuepoint'){var fn=cuepoints[arg1];if(fn){return fn[1].call(player,target,arg2)}}if(evt=='onStart'||evt=='onUpdate'){extend(target,arg1);if(!target.duration){target.duration=arg1.metaData.duration}else{target.fullDuration=arg1.metaData.duration}}var ret=true;each(listeners[evt],function(){ret=this.call(player,target,arg1,arg2)});return ret}});if(json.onCuepoint){var arg=json.onCuepoint;self.onCuepoint.apply(self,typeof arg=='function'?[arg]:arg);delete json.onCuepoint}each(json,function(key,val){if(typeof val=='function'){bind(listeners,key,val);delete json[key]}});if(index==-1){player.onCuepoint=this.onCuepoint}};var Plugin=function(name,json,player,fn){var listeners={};var self=this;var hasMethods=false;if(fn){extend(listeners,fn)}each(json,function(key,val){if(typeof val=='function'){listeners[key]=val;delete json[key]}});extend(this,{animate:function(props,speed,fn){if(!props){return self}if(typeof speed=='function'){fn=speed;speed=500}if(typeof props=='string'){var key=props;props={};props[key]=speed;speed=500}if(fn){var fnId=makeId();listeners[fnId]=fn}if(speed===undefined){speed=500}json=player._api().fp_animate(name,props,speed,fnId);return self},css:function(props,val){if(val!==undefined){var css={};css[props]=val;props=css}json=player._api().fp_css(name,props);extend(self,json);return self},show:function(){this.display='block';player._api().fp_showPlugin(name);return self},hide:function(){this.display='none';player._api().fp_hidePlugin(name);return self},toggle:function(){this.display=player._api().fp_togglePlugin(name);return self},fadeTo:function(o,speed,fn){if(typeof speed=='function'){fn=speed;speed=500}if(fn){var fnId=makeId();listeners[fnId]=fn}this.display=player._api().fp_fadeTo(name,o,speed,fnId);this.opacity=o;return self},fadeIn:function(speed,fn){return self.fadeTo(1,speed,fn)},fadeOut:function(speed,fn){return self.fadeTo(0,speed,fn)},getName:function(){return name},_fireEvent:function(evt,arg){if(evt=='onUpdate'){var json=player._api().fp_getPlugin(name);if(!json){return}extend(self,json);delete self.methods;if(!hasMethods){each(json.methods,function(){var method=""+this;self[method]=function(){var a=[].slice.call(arguments);var ret=player._api().fp_invoke(name,method,a);return ret=='undefined'?self:ret}});hasMethods=true}}var fn=listeners[evt];if(fn){fn.call(self,arg);if(evt.substring(0,1)=="_"){delete listeners[evt]}}}})};function Player(wrapper,params,conf){var self=this,api=null,html,commonClip,playlist=[],plugins={},listeners={},playerId,apiId,playerIndex,activeIndex,swfHeight,wrapperHeight;extend(self,{id:function(){return playerId},isLoaded:function(){return(api!==null)},getParent:function(){return wrapper},hide:function(all){if(all){wrapper.style.height="0px"}if(api){api.style.height="0px"}return self},show:function(){wrapper.style.height=wrapperHeight+"px";if(api){api.style.height=swfHeight+"px"}return self},isHidden:function(){return api&&parseInt(api.style.height,10)===0},load:function(fn){if(!api&&self._fireEvent("onBeforeLoad")!==false){each(players,function(){this.unload()});html=wrapper.innerHTML;flashembed(wrapper,params,{config:conf});if(fn){fn.cached=true;bind(listeners,"onLoad",fn)}}return self},unload:function(){try{if(api&&api.fp_isFullscreen()){}}catch(error){return}if(api&&html.replace(/\s/g,'')!==''&&!api.fp_isFullscreen()&&self._fireEvent("onBeforeUnload")!==false){api.fp_close();wrapper.innerHTML=html;self._fireEvent("onUnload");api=null}return self},getClip:function(index){if(index===undefined){index=activeIndex}return playlist[index]},getCommonClip:function(){return commonClip},getPlaylist:function(){return playlist},getPlugin:function(name){var plugin=plugins[name];if(!plugin&&self.isLoaded()){var json=self._api().fp_getPlugin(name);if(json){plugin=new Plugin(name,json,self);plugins[name]=plugin}}return plugin},getScreen:function(){return self.getPlugin("screen")},getControls:function(){return self.getPlugin("controls")},getConfig:function(copy){return copy?clone(conf):conf},getFlashParams:function(){return params},loadPlugin:function(name,url,props,fn){if(typeof props=='function'){fn=props;props={}}var fnId=fn?makeId():"_";self._api().fp_loadPlugin(name,url,props,fnId);var arg={};arg[fnId]=fn;var p=new Plugin(name,null,self,arg);plugins[name]=p;return p},getState:function(){return api?api.fp_getState():-1},play:function(clip){function play(){if(clip!==undefined){self._api().fp_play(clip)}else{self._api().fp_play()}}if(api){play()}else{self.load(function(){play()})}return self},getVersion:function(){var js="flowplayer.js 3.0.5";if(api){var ver=api.fp_getVersion();ver.push(js);return ver}return js},_api:function(){if(!api){throw"Flowplayer "+self.id()+" not loaded. Try moving your call to player's onLoad event";}return api},_dump:function(){console.log(listeners)},setClip:function(clip){self.setPlaylist([clip])},getIndex:function(){return playerIndex}});each(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,Fullscreen*,FullscreenExit,Error").split(","),function(){var name="on"+this;if(name.indexOf("*")!=-1){name=name.substring(0,name.length-1);var name2="onBefore"+name.substring(2);self[name2]=function(fn){bind(listeners,name2,fn);return self}}self[name]=function(fn){bind(listeners,name,fn);return self}});each(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,reset,close,setPlaylist").split(","),function(){var name=this;self[name]=function(arg){if(!api){return self}var ret=(arg===undefined)?api["fp_"+name]():api["fp_"+name](arg);return ret=='undefined'?self:ret}});self._fireEvent=function(evt,arg0,arg1,arg2){if(conf.debug){log(arguments)}if(!api&&evt=='onLoad'&&arg0=='player'){api=api||el(apiId);swfHeight=api.clientHeight;each(playlist,function(){this._fireEvent("onLoad")});each(plugins,function(name,p){p._fireEvent("onUpdate")});commonClip._fireEvent("onLoad")}if(evt=='onLoad'&&arg0!='player'){return}if(evt=='onError'){if(typeof arg0=='string'||(typeof arg0=='number'&&typeof arg1=='number')){arg0=arg1;arg1=arg2}}if(evt=='onContextMenu'){each(conf.contextMenu[arg0],function(key,fn){fn.call(self)});return}if(evt=='onPluginEvent'){var name=arg0.name||arg0;var p=plugins[name];if(p){p._fireEvent("onUpdate",arg0);p._fireEvent(arg1)}return}if(evt=='onPlaylistReplace'){playlist=[];var index=0;each(arg0,function(){playlist.push(new Clip(this,index++,self))})}var ret=true;if(typeof arg0=='number'&&arg0<playlist.length){activeIndex=arg0;var clip=playlist[arg0];if(clip){ret=clip._fireEvent(evt,arg1,arg2)}if(!clip||ret!==false){ret=commonClip._fireEvent(evt,arg1,arg2,clip)}}var i=0;each(listeners[evt],function(){ret=this.call(self,arg0,arg1);if(this.cached){listeners[evt].splice(i,1)}if(ret===false){return false}i++});return ret};function init(){if($f(wrapper)){$f(wrapper).getParent().innerHTML="";playerIndex=$f(wrapper).getIndex();players[playerIndex]=self}else{players.push(self);playerIndex=players.length-1}wrapperHeight=parseInt(wrapper.style.height,10)||wrapper.clientHeight;if(typeof params=='string'){params={src:params}}playerId=wrapper.id||"fp"+makeId();apiId=params.id||playerId+"_api";params.id=apiId;conf.playerId=playerId;if(typeof conf=='string'){conf={clip:{url:conf}}}if(typeof conf.clip=='string'){conf.clip={url:conf.clip}}conf.clip=conf.clip||{};if(wrapper.getAttribute("href",2)&&!conf.clip.url){conf.clip.url=wrapper.getAttribute("href",2)}commonClip=new Clip(conf.clip,-1,self);conf.playlist=conf.playlist||[conf.clip];var index=0;each(conf.playlist,function(){var clip=this;if(typeof clip=='object'&&clip.length){clip=""+clip}if(typeof clip=='string'){clip={url:clip}}each(conf.clip,function(key,val){if(conf.clip[key]!==undefined&&typeof val!='function'){clip[key]=val}});conf.playlist[index]=clip;clip=new Clip(clip,index,self);playlist.push(clip);index++});each(conf,function(key,val){if(typeof val=='function'){bind(listeners,key,val);delete conf[key]}});each(conf.plugins,function(name,val){if(val){plugins[name]=new Plugin(name,val,self)}});if(!conf.plugins||conf.plugins.controls===undefined){plugins.controls=new Plugin("controls",null,self)}params.bgcolor=params.bgcolor||"#000000";params.version=params.version||[9,0];params.expressInstall='http://www.flowplayer.org/swf/expressinstall.swf';function doClick(e){if(!self.isLoaded()&&self._fireEvent("onBeforeClick")!==false){self.load()}return stopEvent(e)}html=wrapper.innerHTML;if(html.replace(/\s/g,'')!==''){if(wrapper.addEventListener){wrapper.addEventListener("click",doClick,false)}else if(wrapper.attachEvent){wrapper.attachEvent("onclick",doClick)}}else{if(wrapper.addEventListener){wrapper.addEventListener("click",stopEvent,false)}self.load()}}if(typeof wrapper=='string'){flashembed.domReady(function(){var node=el(wrapper);if(!node){throw"Flowplayer cannot access element: "+wrapper;}else{wrapper=node;init()}})}else{init()}}var players=[];function Iterator(arr){this.length=arr.length;this.each=function(fn){each(arr,fn)};this.size=function(){return arr.length}}window.flowplayer=window.$f=function(){var instance=null;var arg=arguments[0];if(!arguments.length){each(players,function(){if(this.isLoaded()){instance=this;return false}});return instance||players[0]}if(arguments.length==1){if(typeof arg=='number'){return players[arg]}else{if(arg=='*'){return new Iterator(players)}each(players,function(){if(this.id()==arg.id||this.id()==arg||this.getParent()==arg){instance=this;return false}});return instance}}if(arguments.length>1){var swf=arguments[1];var conf=(arguments.length==3)?arguments[2]:{};if(typeof arg=='string'){if(arg.indexOf(".")!=-1){var instances=[];each(select(arg),function(){instances.push(new Player(this,clone(swf),clone(conf)))});return new Iterator(instances)}else{var node=el(arg);return new Player(node!==null?node:arg,swf,conf)}}else if(arg){return new Player(arg,swf,conf)}}return null};extend(window.$f,{fireEvent:function(id,evt,a0,a1,a2){var p=$f(id);return p?p._fireEvent(evt,a0,a1,a2):null},addPlugin:function(name,fn){Player.prototype[name]=fn;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(params,conf){if(!arguments.length||typeof arguments[0]=='number'){var arr=[];this.each(function(){var p=$f(this);if(p){arr.push(p)}});return arguments.length?arr[arguments[0]]:new Iterator(arr)}return this.each(function(){$f(this,clone(params),conf?clone(conf):{})})}}})();(function(){var jQ=typeof jQuery=='function';function isDomReady(){if(domReady.done){return false}var d=document;if(d&&d.getElementsByTagName&&d.getElementById&&d.body){clearInterval(domReady.timer);domReady.timer=null;for(var i=0;i<domReady.ready.length;i++){domReady.ready[i].call()}domReady.ready=null;domReady.done=true}}var domReady=jQ?jQuery:function(f){if(domReady.done){return f()}if(domReady.timer){domReady.ready.push(f)}else{domReady.ready=[f];domReady.timer=setInterval(isDomReady,13)}};function extend(to,from){if(from){for(key in from){if(from.hasOwnProperty(key)){to[key]=from[key]}}}return to}function asString(obj){switch(typeOf(obj)){case'string':obj=obj.replace(new RegExp('(["\\\\])','g'),'\\$1');obj=obj.replace(/^\s?(\d+)%/,"$1pct");return'"'+obj+'"';case'array':return'['+map(obj,function(el){return asString(el)}).join(',')+']';case'function':return'"function()"';case'object':var str=[];for(var prop in obj){if(obj.hasOwnProperty(prop)){str.push('"'+prop+'":'+asString(obj[prop]))}}return'{'+str.join(',')+'}'}return String(obj).replace(/\s/g," ").replace(/\'/g,"\"")}function typeOf(obj){if(obj===null||obj===undefined){return false}var type=typeof obj;return(type=='object'&&obj.push)?'array':type}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function map(arr,func){var newArr=[];for(var i in arr){if(arr.hasOwnProperty(i)){newArr[i]=func(arr[i])}}return newArr}function getHTML(p,c){var ie=document.all;var html='<object width="'+p.width+'" height="'+p.height+'"';if(ie&&!p.id){p.id="_"+(""+Math.random()).substring(9)}if(p.id){html+=' id="'+p.id+'"'}if(p.w3c||!ie){html+=' data="'+p.src+'" type="application/x-shockwave-flash"'}else{html+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}html+='>';if(p.w3c||ie){html+='<param name="movie" value="'+p.src+'" />'}var e=extend({},p);e.width=e.height=e.id=e.w3c=e.src=null;for(var k in e){if(e[k]!==null){html+='<param name="'+k+'" value="'+e[k]+'" />'}}var vars="";if(c){for(var key in c){if(c[key]!==null){vars+=key+'='+(typeof c[key]=='object'?asString(c[key]):c[key])+'&'}}vars=vars.substring(0,vars.length-1);html+='<param name="flashvars" value=\''+vars+'\' />'}html+="</object>";return html}function Flash(root,opts,flashvars){var version=flashembed.getVersion();extend(this,{getContainer:function(){return root},getConf:function(){return conf},getVersion:function(){return version},getFlashvars:function(){return flashvars},getApi:function(){return root.firstChild},getHTML:function(){return getHTML(opts,flashvars)}});var required=opts.version;var express=opts.expressInstall;var ok=!required||flashembed.isSupported(required);if(ok){opts.onFail=opts.version=opts.expressInstall=null;root.innerHTML=getHTML(opts,flashvars)}else if(required&&express&&flashembed.isSupported([6,65])){extend(opts,{src:express});flashvars={MMredirectURL:location.href,MMplayerType:'PlugIn',MMdoctitle:document.title};root.innerHTML=getHTML(opts,flashvars)}else{if(root.innerHTML.replace(/\s/g,'')!==''){}else{root.innerHTML="<h2>Flash version "+required+" or greater is required</h2>"+"<h3>"+(version[0]>0?"Your version is "+version:"You have no flash plugin installed")+"</h3>"+"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>"}}if(!ok&&opts.onFail){var ret=opts.onFail.call(this);if(typeof ret=='string'){root.innerHTML=ret}}}window.flashembed=function(root,conf,flashvars){if(typeof root=='string'){var el=document.getElementById(root);if(el){root=el}else{domReady(function(){flashembed(root,conf,flashvars)});return}}if(!root){return}var opts={width:'100%',height:'100%',allowfullscreen:true,allowscriptaccess:'always',quality:'high',version:null,onFail:null,expressInstall:null,w3c:false};if(typeof conf=='string'){conf={src:conf}}extend(opts,conf);return new Flash(root,opts,flashvars)};extend(window.flashembed,{getVersion:function(){var version=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var _d=navigator.plugins["Shockwave Flash"].description;if(typeof _d!="undefined"){_d=_d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var _m=parseInt(_d.replace(/^(.*)\..*$/,"$1"),10);var _r=/r/.test(_d)?parseInt(_d.replace(/^.*r(.*)$/,"$1"),10):0;version=[_m,_r]}}else if(window.ActiveXObject){try{var _a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{_a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version=[6,0];_a.AllowScriptAccess="always"}catch(ee){if(version[0]==6){return}}try{_a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(eee){}}if(typeof _a=="object"){_d=_a.GetVariable("$version");if(typeof _d!="undefined"){_d=_d.replace(/^\S+\s+(.*)$/,"$1").split(",");version=[parseInt(_d[0],10),parseInt(_d[2],10)]}}}return version},isSupported:function(version){var now=flashembed.getVersion();var ret=(now[0]>version[0])||(now[0]==version[0]&&now[1]>=version[1]);return ret},domReady:domReady,asString:asString,getHTML:getHTML});if(jQ){jQuery.prototype.flashembed=function(conf,flashvars){return this.each(function(){flashembed(this,conf,flashvars)})}}})();
//jquery-mediaqueries
;(function($){$.testMediaQuery=function(str){var date=new Date().getTime(),div=$('<div class="testMediaQuery'+date+'"></div>').css({visibility:'hidden',position:'absolute'}).appendTo('body'),style=document.createElement('style');style.setAttribute('type','text/css');style.setAttribute('media',str);style=$(style).prependTo('head');styleS=document.styleSheets[0];if((styleS.cssRules&&!styleS.cssRules.length)||(styleS.rules&&!styleS.rules.length)){if(styleS.insertRule){styleS.insertRule('.testMediaQuery'+date+' {display:none !important;}',styleS.cssRules.length)}else if(styleS.addRule){styleS.addRule('.testMediaQuery'+date,'display:none')}}var ret=div.css('display')==='none';div.remove();style.remove();return ret};$.arrayInString=function(str,arr){var ret=-1;$.each(arr,function(i,item){if(str.indexOf(item)!=-1){ret=i;return false}});return ret};$.enableMediaQuery=(function(){var styles=[],styleLinks,date=new Date().getTime();function parseMedia(link){var medias=link.getAttribute('media'),pMin=/\(\s*min-width\s*:\s*(\d+)px\s*\)/,pMax=/\(\s*max-width\s*:\s*(\d+)px\s*\)/,resMin,resMax,supportedMedia=['handheld','all','screen','projection','tty','tv','print'],curMedia,mediaString=[];medias=(!medias)?['all']:medias.split(',');for(var i=0,len=medias.length;i<len;i++){curMedia=$.arrayInString(medias[i],supportedMedia);if(curMedia!=-1){curMedia=supportedMedia[curMedia];if(!resMin){resMin=pMin.exec(medias[i]);if(resMin){resMin=parseInt(resMin[1],10)}}if(!resMax){resMax=pMax.exec(medias[i]);if(resMax){resMax=parseInt(resMax[1],10)}}mediaString.push(curMedia)}}styles.push({obj:link,min:resMin,max:resMax,medium:mediaString.join(',')})}return{init:function(){if(!styleLinks){styleLinks=$('link[rel*=style]').each(function(){parseMedia(this)});$.enableMediaQuery.adjust();$(window).bind('resize.mediaQueries',$.enableMediaQuery.adjust)}},adjust:function(){var width=$(window).width();$('link.insertStyleforMedia'+date).remove();for(var i=0,len=styles.length;i<len;i++){if(!styles[i].obj.disabled&&((!(styles[i].min&&styles[i].min>width)&&!(styles[i].max&&styles[i].max<width))||(!styles[i].max&&!styles[i].min))){var n=styles[i].obj.cloneNode(true);n.setAttribute('media',styles[i].medium);n.className='insertStyleforMedia'+date;document.getElementsByTagName("head")[0].appendChild(n)}}}}})();if(($.browser.msie&&parseFloat($.browser.version,10)<8)||($.browser.mozilla&&parseFloat($.browser.version,10)<1.91)){try{$.enableMediaQuery.init()}catch(e){}}$(function(){if($.testMediaQuery('all')&&!$.testMediaQuery('only all')){$.enableMediaQuery.init()}})})(jQuery);
//jquery-tabs
;(function($){$.fn.extend({tab:function(options){var args=Array.prototype.slice.call(arguments,1),tabO;if(this.length){if(typeof options=="string"){var tab=$.data(this[0],"accordion-tab");tab[options].apply(tab,args)}else if(!$.data(this,"accordion-tab")){tabO=new $.tab(this,options)}}return this.each(function(){if(!$.data(this,"accordion-tab")&&tabO){$.data(this,"accordion-tab",tabO)}})}});$.tab=function(elms,s){this.s=$.extend({activeClass:'on',selectedTab:0,animationToggle:false,complete:function(){},closeOnClick:false,closeOther:true,onEvent:'click',noAction:false,diaShow:false,tabListSel:false,clickUrlSel:false},s);var that=this,tabID='idref-'+new Date().getTime(),ariaRoles=['button','region'],ariaStates,isHardSelected;this.controls=elms;this.timerID=null;this.panels=[];if(this.s.diaShow){this.timerID=setInterval(function(){that.diaShow.call(that)},s.diaShow)}isHardSelected=this.controls.filter('.'+this.s.activeClass)[0];this.controls.each(function(i){var jElm=$(this),eId=jElm.attr('id');if(!eId){eId=tabID+i;jElm.attr({'id':eId})}that.panels.push($(that.getIDfromAnker(jElm)));that.panels[i].one('mouseenter.tabsAperto focus.tabsAperto',function(){clearInterval(that.timerID)}).attr({role:ariaRoles[1],'aria-labelledby':eId,tabIndex:'-1','aria-expanded':'false'}).css({outline:'none'});if(!isHardSelected&&that.s.selectedTab===i){jElm.addClass(that.s.activeClass);if(that.s.closeOnClick){jElm.attr({'aria-pressed':'true'})}}else if(!jElm.is('.'+that.s.activeClass)){that.panels[i].css({display:'none'}).attr({'aria-expanded':'true'});if(that.s.closeOnClick){jElm.attr({'aria-pressed':'false'})}}else if(that.s.closeOnClick){jElm.attr({'aria-pressed':'true'})}jElm.bind(that.s.onEvent,function(e){clearInterval(that.timerID);that.showHide.call(that,this,e);return false}).bind('click.tabsAperto',function(e){that.clickHandler.call(that,this,e);return false}).attr({role:ariaRoles[0]})})};$.extend($.tab.prototype,{getIDfromAnker:function(jElm){var id=jElm.attr('href'),fund=id.indexOf('#');id=(fund!=-1)?id.substr(fund):false;return id},diaShow:function(){var n,that=this;this.controls.each(function(i){if($(this).is('.'+that.s.activeClass)){n=i+1;return false}});var next=(this.controls[n])?this.controls[n]:this.controls[0];this.showHide(next)},showHide:function(elm,e){var jElm=$(elm);if(!this.s.closeOnClick&&jElm.is('.'+this.s.activeClass)){return false}var curActive=(this.s.closeOther)?this.controls.filter('.'+this.s.activeClass):$([]),curID=null,newID=this.getIDfromAnker(jElm);jElm.toggleClass(this.s.activeClass);if(!jElm.is('.'+this.s.activeClass)){curActive=jElm}else if(this.s.closeOnClick){jElm.attr({'aria-pressed':'true'})}if(curActive.length){curActive.removeClass(this.s.activeClass);if(this.s.closeOnClick){curActive.attr({'aria-pressed':'false'})}curID=this.getIDfromAnker(curActive)}if(curID===newID){newID=[];curActive=$([])}var curActiveBlock=$(curID);var toActivateBlock=$(newID);if(curActiveBlock[0]&&curActiveBlock[0]===document){curActiveBlock=$([])}if(toActivateBlock[0]&&toActivateBlock[0]===document){toActivateBlock=$([])}if(!this.s.noAction){if(!this.s.animationToggle){curActiveBlock.hide().attr({'aria-expanded':'true'});toActivateBlock.show().attr({'aria-expanded':'false'});if((!e||(e&&e.type=='click'))&&toActivateBlock[0]){setTimeout(function(){toActivateBlock[0].focus()},200)}}else{$.each(this.panels,function(){this.stop(true,true)});curActiveBlock[this.s.animationToggle]().attr({'aria-hidden':'true'});toActivateBlock[this.s.animationToggle](function(){if(e&&e.type=='click'){setTimeout(function(){toActivateBlock[0].focus()},200)}}).attr({'aria-hidden':'false'})}}this.s.complete(jElm,toActivateBlock,curActive,curActiveBlock);jElm.triggerHandler('tabschange',[{visiblePanel:toActivateBlock,hiddenPanel:curActiveBlock,oppositeControl:curActive,instance:this}])},clickHandler:function(elm,e){e.preventDefault();if(this.s.onEvent.indexOf('click')==-1){var jElm=$(elm),panel=$(this.getIDfromAnker(jElm)),clickUrl=(this.s.clickUrlSel)?$(this.s.clickUrlSel,panel[0]).attr('href'):false;if(clickUrl){window.location=clickUrl}else{setTimeout(function(){panel.focus()},9)}}return false}})})(jQuery);
//jquery-bind
;(function($){$.bind=function(object,method){var args=Array.prototype.slice.call(arguments,2);if(args.length){return function(){var args2=[this].concat(args,$.makeArray(arguments));return method.apply(object,args2)}}else{return function(){var args2=[this].concat($.makeArray(arguments));return method.apply(object,args2)}}}})(jQuery);
//ui-checkbox
;(function($){$.widget('ui.checkBox',{_init:function(){var that=this,opts=this.options,toggleHover=function(e){if(this.disabledStatus){return false}that.hover=(e.type=='focus'||e.type=='mouseenter');that._changeStateClassChain()};if(!this.element.is(':radio,:checkbox')){return false}this.labels=$([]);this.checkedStatus=false;this.disabledStatus=false;this.hoverStatus=false;this.radio=(this.element.is(':radio'));this.visualElement=$('<span />').addClass(this.radio?'ui-radio':'ui-checkbox').bind('mouseenter.checkBox mouseleave.checkBox',toggleHover).bind('click.checkBox',function(e){that.element[0].click();return false});if(opts.hideInput){this.element.addClass('ui-helper-hidden-accessible').bind('usermode',function(e){(e.enabled&&that.destroy.call(that,true))});if(opts.addVisualElement){this.element.after(this.visualElement[0])}}this.element.bind('click.checkBox',$.bind(this,this.reflectUI)).bind('focus.checkBox blur.checkBox',toggleHover);if(opts.addLabel){this.labels=$('label[for='+this.element.attr('id')+']').addClass(this.radio?'ui-radio':'ui-checkbox').bind('mouseenter.checkBox mouseleave.checkBox',toggleHover)}this.reflectUI({type:'initialReflect'})},_changeStateClassChain:function(){var allElements=this.labels.add(this.visualElement),stateClass='',baseClass='ui-'+((this.radio)?'radio':'checkbox');if(this.checkedStatus){stateClass+='-checked';allElements.addClass(baseClass+'-checked')}else{allElements.removeClass(baseClass+'-checked')}if(this.disabledStatus){stateClass+='-disabled';allElements.addClass(baseClass+'-disabled')}else{allElements.removeClass(baseClass+'-disabled')}if(this.hover){stateClass+='-hover';allElements.addClass(baseClass+'-hover')}else{allElements.removeClass(baseClass+'-hover')}baseClass+='-state';if(stateClass){stateClass=baseClass+stateClass}function switchStateClass(){var classes=this.className.split(' '),found=false;$.each(classes,function(i,classN){if(classN.indexOf(baseClass)===0){found=true;classes[i]=stateClass;return false}});if(!found){classes.push(stateClass)}this.className=classes.join(' ')}this.labels.each(switchStateClass);this.visualElement.each(switchStateClass)},destroy:function(onlyCss){this.element.removeClass('ui-helper-hidden-accessible');this.visualElement.addClass('ui-helper-hidden');if(!onlyCss){var o=this.options;this.element.unbind('.checkBox');this.visualElement.remove();this.labels.unbind('.checkBox').removeClass('ui-state-hover ui-state-checked ui-state-disabled')}},disable:function(){this.element[0].disabled=true;this.reflectUI({type:'manuallyDisabled'})},enable:function(){this.element[0].disabled=false;this.reflectUI({type:'manuallyenabled'})},toggle:function(e){this.changeCheckStatus((this.element.is(':checked'))?false:true,e)},changeCheckStatus:function(status,e){if(e&&e.type=='click'&&this.element[0].disabled){return false}this.element.attr({'checked':status});this.reflectUI(e||{type:'changeCheckStatus'})},_trigger:function(name,e,ui){e=e||{};e.type=name;this.element.trigger(name,e)},propagate:function(n,e,_noGroupReflect){if(!e||e.type!='initialReflect'){if(this.radio&&!_noGroupReflect){$(document.getElementsByName(this.element.attr('name'))).checkBox('reflectUI',e,true)}return this._trigger(n,e,{options:this.options,checked:this.checkedStatus,labels:this.labels,disabled:this.disabledStatus})}},reflectUI:function(elm,e){var oldChecked=this.checkedStatus,oldDisabledStatus=this.disabledStatus;e=e||elm;this.disabledStatus=this.element.is(':disabled');this.checkedStatus=this.element.is(':checked');if(this.disabledStatus!=oldDisabledStatus||this.checkedStatus!==oldChecked){this._changeStateClassChain();(this.disabledStatus!=oldDisabledStatus&&this.propagate('disabledChange',e));(this.checkedStatus!==oldChecked&&this.propagate('change',e))}}});$.ui.checkBox.defaults={hideInput:true,addVisualElement:true,addLabel:true};$.ui.checkBox.prototype.init=$.ui.checkBox.prototype._init})(jQuery);
//behaviour
;jQuery.noConflict();(function($){$('html').addClass('js-on');window.insmCFG={};function callOnDomReady(){$('html').addClass('js-on');$('a').each(function(){var jElm=$(this),href=jElm.attr('href'),hrefExtract;if(href.indexOf('_popup_')){hrefExtract=href.match(/_popup_(\d+)_(\d+)/);if(hrefExtract&&hrefExtract[1]&&hrefExtract[2]){jElm.click(function(){var popup=window.open(this.href,'window_'+(new Date().getTime()),'status=no,resizable=no,width='+hrefExtract[1]+',height='+hrefExtract[2]+'menubar=no');popup.focus();return false})}}});$('div.text tbody tr:nth-child(odd)').addClass('odd');addPrintLink();swfobject.addDomLoadEvent(function(){var s=$('div.flash').embedSWF()});$('div.ratingbox').each(function(){function changeDrag(){var jElm=$(this),index=Math.max(inputs.index(this),inputs.index(inputs.filter(':checked')[0]));visual.slice(index,inputs.length).removeClass('radio-drag');visual.slice(0,index).addClass('radio-drag')}function changeChecked(){var checked=inputs.filter(':checked')[0];if(checked){submitBtn.removeClass('inactive').attr('disabled',false);changeDrag.call(checked)}else{submitBtn.addClass('inactive').attr('disabled',true);visual.removeClass('radio-drag')}}function sendAjax(e){if(!inputs.filter(':checked').length){return false}ratingBox.slideUp();$.ajax({url:insmCFG.ratingAction||this.action,data:$(this).serialize(),success:function(data){ratingBox.queue(function(){var cartoonImage=$('div.cartoon-content h2');data=$(data);var top=data.filter('span[class*=rating-top-]');$('span[class*=rating-top-]',cartoonImage).remove();if(top[0]){cartoonImage.prepend(top.clone())}ratingBox.html(data);top.remove();ratingBox.slideDown().dequeue()})}});return false}var inputs=$('input[type=radio]',this).bind('change',changeDrag).bind('click',changeChecked).checkBox(),visual=$('span.ui-radio',this).bind('mouseenter',function(){changeDrag.call(inputs.eq(visual.index(this))[0])}),ratingBox=$('div.ratingbox-box',this),submitBtn=$('input[type=submit]',this);$('form',this).bind('submit',sendAjax);$('div.rating-group',this).bind('mouseleave',changeChecked);changeChecked()});window.contextPath=window.contextPath||'';$("div.video a").flowplayer(contextPath+"/.resources/templating-kit/swf/flowplayer.swf",{clip:{autoPlay:false,autoBuffering:true}});createTabs();faqToc();$('div.teaser-wrapper:not(.tw-paging,.tw-slider,.tw-random-slideshow)').scroller({prevLink:'div.prev a',nextLink:'div.next a'});createSlideshowScroller();pagingTeaserSwitcher();createShowBoxes();slidingTabs();$.socialbookmark.init('li.social-b a');colourizeKicker();addSpeakingNav();calculateOrderSum();createHomeScroller()}var commonTeaserSwitcher={linkFn:function(status){if(status=='show'){this.animate({opacity:1},{duration:500})}else{this.animate({opacity:0.3},{duration:500})}},updateIndex:function(e,ui){var indexDisplays=$('div.paging strong',ui.instance.element[0]);indexDisplays.text(String(ui.newIndex+1))},init:function(e,ui){commonTeaserSwitcher.updateIndex(e,ui);if(!ui.instance.nextLink.is('.show')){ui.instance.nextLink.css({opacity:0.3})}if(!ui.instance.prevLink.is('.show')){ui.instance.prevLink.css({opacity:0.3})}}};function createShowBoxes(){var pagingShoxControls=$('div.teaser-wrapper.tw-paging a[rel=showbox]'),pagArray=pagingShoxControls.get(),otherControls=$.grep($('a[rel=showbox]').get(),function(elem){return($.inArray(elem,pagArray)===-1)});if(otherControls[0]){$('body').showbox({close:'Schlie&szlig;en',prev:'Vorheriges Bild',next:'N&auml;chstes Bild',posBox:'#showbox',dialogPosStyle:'absolute',constrainToView:false,top:114,controls:otherControls})}if(pagingShoxControls[0]){$('#wrapper').showbox({close:'Schlie&szlig;en',prev:'Vorheriges Bild',next:'N&auml;chstes Bild',posBox:'#showbox',dialogPosStyle:'absolute',constrainToView:false,top:114,controls:pagingShoxControls})}}function slidingTabs(){$.fn.mySlide=function(fn){fn=fn||function(){};return this.animate({height:'toggle',opacity:'toggle'},{duration:500,complete:fn,deque:true})};$('.superpromos-toc a').tab({clickUrlSel:'a',firstActive:true,onEvent:'mouseenter focus',animationToggle:'mySlide'})}function pagingTeaserSwitcher(){function changePaginationView(e,ui){var inst=ui.instance,paginationAtoms=inst.paginationAtoms,currentIndex=ui.newIndex,slice={start:Math.max(currentIndex-2,0),end:Math.min(currentIndex+3,paginationAtoms.length)};if(ui.options.maxPaginationAtoms>=paginationAtoms.length){return}paginationAtoms.filter(':gt('+(currentIndex+2)+')').hide();paginationAtoms.filter(':lt('+(currentIndex-2)+')').hide();paginationAtoms.slice(slice.start,slice.end).show();paginationAtoms.filter(':first, :last').show();if(slice.start<=1){ui.instance.paginationFirstDot.hide()}else{ui.instance.paginationFirstDot.show()}if(slice.end>=paginationAtoms.length-1){ui.instance.paginationLastDot.hide()}else{ui.instance.paginationLastDot.show()}}$('div.teaser-wrapper.tw-paging').each(function(){var teasers=$('div.stage-teaser',this);if(teasers.length>1){$(this).find('div.pagination').append('<div class="tw-pager"><a href="#" class="prev">vorherige</a> <a href="#" class="next">n&auml;chste</a></div>').end().find('div.stage-teaser:last').addClass('st-last').end().bind('uiscrollerinit',function(e,ui){var maxPaginationAtoms=ui.options.maxPaginationAtoms;if(!maxPaginationAtoms){return}commonTeaserSwitcher.init(e,ui);ui.instance.paginationAtoms=$('li',ui.instance.pagination);ui.instance.paginationFirstDot=$('<li class="pager-dots"><span>...</span></li>').insertAfter(ui.instance.paginationAtoms.get(0)).hide();ui.instance.paginationLastDot=$('<li class="pager-dots"><span>...</span></li>').insertBefore(ui.instance.paginationAtoms.filter(':last')).hide();changePaginationView(e,ui)}).bind('uiscrollerstart',changePaginationView).scroller({maxPaginationAtoms:5,prevLink:'a.prev',nextLink:'a.next',atoms:teasers,pagination:'div.pagination',paginationTitleFrom:'h2',linkFn:commonTeaserSwitcher.linkFn,paginationAtoms:'<li class="pa-$number" title="$title"><a href="#">$number</a></li>'})}})}function addPrintLink(){function print(){window.print();return false}$('<li class="print"><a href="#">Drucken</a></li>').prependTo('ul#text-features').find('a').click(print)}function faqToc(){var hash=location.hash;tabs=$('#faq-wrapper li h3 a');if(hash){tabs.filter('[href='+hash+']').addClass('on')}tabs.tab({animationToggle:'slideToggle',closeOnClick:true,closeOther:false})}$.fn.tabChangeAddon=function(){this.bind('tabschange',function tabChange(e,tabinfo){$(this).parent().addClass('on');tabinfo.oppositeControl.parent().removeClass('on')}).filter('.on').parent().addClass('on');return this};function createTabs(){$('ol.text-box-toc, ol.toc-box-toc').each(function(){$('a',this).tab().tabChangeAddon()})}function colourizeKicker(){var classPrefix='type-';function addTypeClassForText(){var jElm=$(this),text=$.trim(jElm.text());var isSet=false;$.each(kickerNames,function(i,kickerArray){var index=$.inArray(text,kickerArray);if(index!=-1){isSet=true;jElm.addClass(classPrefix+(i+1)).wrap('<span />');return false}});if(!isSet){jElm.addClass(classPrefix+(1)).wrap('<span />')}}$('#home div.teaser h2 em, #section #main .highlight h2 em').each(addTypeClassForText)}$.convertPrice=function(p,opts){opts=$.extend({},$.convertPrice.defaults,opts);var ret;if(typeof p=="string"){ret=parseFloat($.trim(p.replace(/,/g,'.')),10);if(!isNaN(ret)){ret=Math.round(ret*100)/100}}else if(isFinite(p)){p=Math.round(p*100)/100;ret=String(p).replace(/,/g,'').replace(/\./g,',').split(',');if(ret.length>1){ret[1]=(ret[1].length>1)?ret[1]:ret[1]+'0'}else if(!opts.tryInteger){ret[1]='00'}ret=ret.join(',')}return ret};$.convertPrice.defaults={tryInteger:false};function calculateOrderSum(){function sumParts(){var amount=parseFloat($(this).val(),10),price=$.convertPrice($('#price').text());if(!isNaN(price)&&!isNaN(amount)){$('#sum').text($.convertPrice(price*amount))}}$('#amount').bind('keyup change',sumParts)}function addSpeakingNav(){var time=100,navItems=$('#nav-global > ul > li'),navCon=speakingNavigation;for(var id in navCon){var linkElem=navItems.filter('[id='+id+']').children('a, strong');if(linkElem&&linkElem[0]){$('<em>'+navCon[id]+'</em>').css({opacity:0}).appendTo(linkElem[0]).animate({opacity:1},{duration:200})}}}$.fn.randomizeElements=function(){if(this.length){var elements=this.get(),wrapper=$(elements[0]).parent();elements.sort(function(){return 0.5-Math.random()});elements=$(elements).each(function(){wrapper.append(this)})}return elements};function createSlideshowScroller(){var teaserWrapper=$('div.teaser-wrapper.random-slideshow');teaserWrapper.each(function(){$('div.stage-teaser',this).randomizeElements()});$('div.teaser-wrapper.random-slideshow').scroller({prevLink:'div.prev a',nextLink:'div.next a',diashow:4000})}function createHomeScroller(){var home=$('#home'),teaserGroups=$('div.teaser-group'),maxHeight=210;function getHighestGroup(stage){var maxHeight=0;$('div.teaser-atom-group',stage).each(function(){var height=$(this).outerHeight({margin:true});if(maxHeight<height){maxHeight=height}});return maxHeight}function splitTeaser(){var stage=$('<div class="stage"><div class="stage-design"></div></div>').appendTo(this),stageDesign=stage.find('div.stage-design'),teaserAtomGroup=$('<div class="teaser-atom-group" />').appendTo(stageDesign[0]),groups=0,groupHeight=0,teasers=$('> div.teaser',this),len=teasers.length-1;teasers.each(function(i){var jElm=$(this);groupHeight+=jElm.outerHeight();jElm.appendTo(teaserAtomGroup[0]);if(groupHeight>=maxHeight&&i<len){groupHeight=teaserAtomGroup.outerHeight({margin:true});teaserAtomGroup=$('<div class="teaser-atom-group" />').appendTo(stageDesign[0]);groupHeight=0;groups++}});if(groups){var pagination='<div class="paging"><ul><li class="prev"><a href="#" title="eine Seite zur&uuml;ck"><span>zur&uuml;ck</span></a></li><li><strong>1</strong></li><li class="next"><a title="eine Seite vor" href="#"><span>vor</span></a></li></ul></div>';$(pagination).appendTo(this);stage.height(getHighestGroup(stage));$(this).bind('uiscrollerinit',commonTeaserSwitcher.init).bind('uiscrollerstart',commonTeaserSwitcher.updateIndex).scroller({nextLink:'li.next a',prevLink:'li.prev a',atoms:'div.teaser-atom-group',animateOptions:{duration:300},linkFn:commonTeaserSwitcher.linkFn})}$('> p',this).appendTo(this)}function setTeaserHeight(){var maxHeight=($(".teaser-group .stage:first").css("height"));if(maxHeight<($(".teaser-group .stage:last").css("height"))){maxHeight=($(".teaser-group .stage:last").css("height"))}$(".teaser-group .stage:first").css("height",maxHeight);$(".teaser-group .stage:last").css("height",maxHeight)}if(home[0]&&teaserGroups){teaserGroups.each(splitTeaser)}}$.extend($.ui.scroller.defaults,{hidingWrapper:'div.stage',moveWrapper:'div.stage-design',atoms:'div.stage-teaser'});$(callOnDomReady)})(jQuery);
}// END !jspackager.devmode