﻿/*
 * jQuery 1.2.6 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 8.04.09 10:34 $
 * $Rev: 5685 $
 */
(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);};});})();

var $jq=jQuery.noConflict();function incText(){wrapper=document.body;wrapper.style.fontSize="1em"}var currentSize="A";function setActiveStyleSheet(e){var d,c,b;for(d=0;(c=document.getElementsByTagName("link")[d]);d++){if(c.getAttribute("rel").indexOf("style")!=-1&&c.getAttribute("title")){c.disabled=true;if(c.getAttribute("title")==e){c.disabled=false}if(currentSize!=e){currentSize=e;jQuery.post("/Framework/Components/SetFontSize.aspx?_="+(new Date()).getTime(),{size:e})}}}}function getActiveStyleSheet(){var c,b;for(c=0;(b=document.getElementsByTagName("link")[c]);c++){if(b.getAttribute("rel").indexOf("style")!=-1&&b.getAttribute("title")&&!b.disabled){return b.getAttribute("title")}}return null}function getPreferredStyleSheet(){var c,b;for(c=0;(b=document.getElementsByTagName("link")[c]);c++){if(b.getAttribute("rel").indexOf("style")!=-1&&b.getAttribute("rel").indexOf("alt")==-1&&b.getAttribute("title")){return b.getAttribute("title")}}return null}function customSelectIE6Fix(){var IE6=false
/*@cc_on || @_jscript_version < 5.7 @*/
;$jq("#test-Text").hover(function(){if(IE6){$jq("#test-Text").css({"background-position":"0px -21px"})}},function(){if(IE6){$jq("#test-Text").css({"background-position":"0px 0px"})}});$jq("#test2-Text").hover(function(){if(IE6){$jq("#test2-Text").css({"background-position":"0px -21px"})}},function(){if(IE6){$jq("#test2-Text").css({"background-position":"0px 0px"})}})}function ie8NaviColor(){$jq("#tabsF span").hover(function(){$jq(this).css({color:"#d81e05"})},function(){$jq(this).css({color:"#464f54"})});$jq("#tabsF span.on").hover(function(){$jq("#tabsF span.on").css({color:"#d81e05"})},function(){$jq("#tabsF span.on").css({color:"#d81e05"})})}$jq(document).ready(function(){customSelectIE6Fix();ie8NaviColor()});function printPopup(){window.open("Standard_Image_Text_Print.html","print","width=626, menubar=0, height=610, scrollbars=1, resizable=0")}function closeVorschlaege(){if(document.getElementById("vorschlaege_1")){document.getElementById("vorschlaege_1").style.display="none"}}function showVorschlaege(){if(document.getElementById("vorschlaege_1")){document.getElementById("vorschlaege_1").style.display="block"}}function closeVorschlaege2(){if(document.getElementById("vorschlaege_2")){document.getElementById("vorschlaege_2").style.display="none"}}function showVorschlaege2(){if(document.getElementById("vorschlaege_2")){document.getElementById("vorschlaege_2").style.display="block"}}jQuery(document).ready(function(){if(jQuery(".start .intro-box .stageholder").length>0){jQuery(".start .intro-box .stageholder").css("cursor","pointer").click(function(){document.location.href=jQuery(".stageholder").next().find("a:visible").attr("href")}).find("div").css("cursor","pointer")}});jQuery.fn.browserHeight=function(){var b,a;if($jq.browser.msie&&$jq.browser.version<7){b=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);a=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(b<a){return $jq(window).height()+"px"}else{return b+"px"}}else{return $jq(document).height()+"px"}};jQuery.fn.browserWidth=function(){var a,b;if($jq.browser.msie&&$jq.browser.version<7){a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);b=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(a<b){return $jq(window).width()+"px"}else{return a+"px"}}else{return $jq(document).width()+"px"}};(function(a){var b="";a.fn.dd=function(p){$this=this;p=a.extend({height:120,visibleRows:7,rowHeight:23,showIcon:true,zIndex:9999,style:""},p);var o="";var n={};n.insideWindow=true;n.keyboardAction=false;n.currentKey=null;var m=false;config={postElementHolder:"_msddHolder",postID:"_msdd",postTitleID:"_title",postTitleTextID:"_titletext",postChildID:"_child",postAID:"_msa",postOPTAID:"_msopta",postInputID:"_msinput",postArrowID:"_arrow",postInputhidden:"_inp"};styles={dd:"dd",ddTitle:"ddTitle",arrow:"arrow",ddChild:"ddChild",disbaled:0.3};attributes={actions:"onfocus,onblur,onchange,onclick,ondblclick,onmousedown,onmouseup,onmouseover,onmousemove,onmouseout,onkeypress,onkeydown,onkeyup",prop:"size,multiple,disabled,tabindex"};var l=a(this).attr("id");var E=a(this).attr("style");p.style+=(E==undefined)?"":E;var D=a(this).children();m=(a(this).attr("size")>0||a(this).attr("multiple")==true)?true:false;if(m){p.visibleRows=a(this).attr("size")}var t={};e();function N(v){return l+config[v]}function I(w){var v=w;var x=a(v).attr("style");return x}function h(w){var v=a("#"+l+" option:selected");if(v.length>1){for(var x=0;x<v.length;x++){if(w==v[x].index){return true}}}else{if(v.length==1){if(v[0].index==w){return true}}}return false}function c(){var y=D;var x="";var w=N("postAID");var v=N("postOPTAID");y.each(function(T){var S=y[T];if(S.nodeName=="OPTGROUP"){x+="<div class='opta'>";x+="<span style='font-weight:bold;font-style:italic; clear:both;'>"+a(S).attr("label")+"</span>";var R=a(S).children();R.each(function(W){var V=R[W];var ac=v+"_"+(T)+"_"+(W);var ab=a(V).attr("title");ab=(ab.length==0)?"":'<img src="'+ab+'" align="left" /> ';var aa=a(V).text();var Z=a(V).val();var Y=(a(V).attr("disabled")==true)?"disabled":"enabled";t[ac]={html:ab+aa,value:Z,text:aa,index:V.index,id:ac};var X=I(V);if(h(V.index)==true){x+='<a href="javascript:void(0);" class="selected '+Y+'"'}else{x+='<a  href="javascript:void(0);" class="'+Y+'"'}if(X!=false){x+=' style="'+X+'"'}x+=' id="'+ac+'">';x+=ab+aa+"</a>"});x+="</div>"}else{var Q=w+"_"+(T);var P="";var C=a(S).text();var B=a(S).val();var A=(a(S).attr("disabled")==true)?"disabled":"enabled";var U=a(S).attr("class");if(U){A+=" "+U;a(S).attr("rel",U)}t[Q]={html:P+C,value:B,text:C,index:S.index,id:Q};var z=I(S);if(h(S.index)==true){x+='<a href="javascript:void(0);" class="selected '+A+'"'}else{x+='<a  href="javascript:void(0);" class="'+A+'"'}if(z!=false){x+=' style="'+z+'"'}x+=' id="'+Q+'">';x+=P+C+"</a>"}});return x}function d(){var w=N("postID");var v=N("postChildID");var x=p.style;sDiv="";sDiv+='<div id="'+v+'" class="'+styles.ddChild+'"';if(!m){sDiv+=(x!="")?' style="'+x+'"':""}else{sDiv+=(x!="")?' style="border-top:1px solid #c3c3c3;display:block;position:relative;'+x+'"':""}sDiv+=">";return sDiv}function q(){var w=N("postTitleID");var v=N("postArrowID");var C=N("postTitleTextID");var B=N("postInputhidden");var z=a("#"+l+" option:selected").text();var y=a("#"+l+" option:selected").attr("title");var A=a("#"+l+" option:selected").attr("class");y="";var x='<div id="'+w+'" class="'+styles.ddTitle+'"';x+=">";x+='<span id="'+v+'" class="'+styles.arrow+'"></span><span class="textTitle '+A+'" id="'+C+'">'+y+z+"</span></div>";return x}function e(){var S=false;var R=N("postID");var Q=N("postTitleID");var P=N("postTitleTextID");var C=N("postChildID");var B=N("postArrowID");var A=a("#"+l).width();var z=p.style;if(a("#"+R).length>0){a("#"+R).remove();S=true}var y='<div id="'+R+'" class="'+styles.dd+'"';y+=(z!="")?' style="'+z+'"':"";y+=">";if(!m){y+=q()}y+=d();y+=c();y+="</div>";y+="</div>";if(S==true){var x=N("postElementHolder");a("#"+x).after(y)}else{a("#"+l).after(y)}a("#"+R).css("width",A+"px");a("#"+C).css("width",(A-2)+"px");if(D.length>p.visibleRows){var w=parseInt(a("#"+C+" a:first").css("padding-bottom"))+parseInt(a("#"+C+" a:first").css("padding-top"));var v=((p.rowHeight)*p.visibleRows)-w;a("#"+C).css("height",v+"px")}if(S==false){L();j(l)}if(a("#"+l).attr("disabled")==true){a("#"+R).css("opacity",styles.disbaled)}else{u();if(!m){a("#"+Q).bind("mouseover",function(T){G(1)});a("#"+Q).bind("mouseout",function(T){G(0)})}a("#"+C+" a.enabled").bind("click",function(U){U.preventDefault();r(this);if(!m){a("#"+C).unbind("mouseover");f(false);var T=(p.showIcon==false)?a(this).text():a(this).html();K(T);O()}g()});a("#"+C+" a.disabled").css("opacity",styles.disbaled);if(m){a("#"+C).bind("mouseover",function(T){if(!n.keyboardAction){n.keyboardAction=true;a(document).bind("keydown",function(V){var U=V.keyCode;n.currentKey=U;if(U==39||U==40){V.preventDefault();V.stopPropagation();F();g()}if(U==37||U==38){V.preventDefault();V.stopPropagation();i();g()}})}})}a("#"+C).bind("mouseout",function(T){f(false);a(document).unbind("keydown");n.keyboardAction=false;n.currentKey=null});if(!m){a("#"+Q).bind("click",function(T){f(false);if(a("#"+C+":visible").length==1){a("#"+C).unbind("mouseover")}else{a("#"+C).bind("mouseover",function(U){f(true)});H()}})}a("#"+Q).bind("mouseout",function(T){f(false)})}}function M(v){for(var w in t){if(t[w].index==v){return t[w]}}}function r(w){var v=N("postChildID");if(!m){a("#"+v+" a.selected").removeClass("selected")}var C=a("#"+v+" a.selected").attr("id");if(C!=undefined){var B=(n.oldIndex==undefined||n.oldIndex==null)?t[C].index:n.oldIndex}if(w&&!m){a(w).addClass("selected")}if(m){var A=n.currentKey;if(a("#"+l).attr("multiple")==true){if(A==17){n.oldIndex=t[a(w).attr("id")].index;a(w).toggleClass("selected")}else{if(A==16){a("#"+v+" a.selected").removeClass("selected");a(w).addClass("selected");var z=a(w).attr("id");var y=t[z].index;for(var x=Math.min(B,y);x<=Math.max(B,y);x++){a("#"+M(x).id).addClass("selected")}}else{a("#"+v+" a.selected").removeClass("selected");a(w).addClass("selected");n.oldIndex=t[a(w).attr("id")].index}}}else{a("#"+v+" a.selected").removeClass("selected");a(w).addClass("selected");n.oldIndex=t[a(w).attr("id")].index}}}function j(v){document.getElementById(v).refresh=function(w){a("#"+this.id).dd(p)}}function f(v){n.insideWindow=v}function k(){return n.insideWindow}function u(){var v=N("postID");var z=attributes.actions.split(",");for(var y=0;y<z.length;y++){var x=z[y];var w=a("#"+l).attr(x);if(w!=undefined){switch(x){case"onfocus":a("#"+v).bind("mouseenter",function(A){document.getElementById(l).focus()});break;case"onclick":a("#"+v).bind("click",function(A){document.getElementById(l).onclick()});break;case"ondblclick":a("#"+v).bind("dblclick",function(A){document.getElementById(l).ondblclick()});break;case"onmousedown":a("#"+v).bind("mousedown",function(A){document.getElementById(l).onmousedown()});break;case"onmouseup":a("#"+v).bind("mouseup",function(A){document.getElementById(l).onmouseup()});break;case"onmouseover":a("#"+v).bind("mouseover",function(A){document.getElementById(l).onmouseover()});break;case"onmousemove":a("#"+v).bind("mousemove",function(A){document.getElementById(l).onmousemove()});break;case"onmouseout":a("#"+v).bind("mouseout",function(A){document.getElementById(l).onmouseout()});break}}}}function L(){var v=N("postElementHolder");a("#"+l).after("<div style='height:0px;overflow:hidden;position:absolute;' id='"+v+"'></div>");a("#"+l).appendTo(a("#"+v))}function K(w){var v=N("postTitleTextID");a("#"+v).html(w)}function F(){var w=N("postTitleTextID");var v=N("postChildID");var C=a("#"+v+" a.enabled");for(var B=0;B<C.length;B++){var A=C[B];var z=a(A).attr("id");if(a(A).hasClass("selected")&&B<C.length-1){a("#"+v+" a.selected").removeClass("selected");a(C[B+1]).addClass("selected");var y=a("#"+v+" a.selected").attr("id");if(!m){var x=(p.showIcon==false)?t[y].text:t[y].html;K(x)}if(parseInt((a("#"+y).position().top+a("#"+y).height()))>=parseInt(a("#"+v).height())){a("#"+v).scrollTop((a("#"+v).scrollTop())+a("#"+y).height()+a("#"+y).height())}break}}}function i(){var w=N("postTitleTextID");var v=N("postChildID");var C=a("#"+v+" a.enabled");for(var B=0;B<C.length;B++){var A=C[B];var z=a(A).attr("id");if(a(A).hasClass("selected")&&B!=0){a("#"+v+" a.selected").removeClass("selected");a(C[B-1]).addClass("selected");var y=a("#"+v+" a.selected").attr("id");if(!m){var x=(p.showIcon==false)?t[y].text:t[y].html;K(x)}if(parseInt((a("#"+y).position().top+a("#"+y).height()))<=0){a("#"+v).scrollTop((a("#"+v).scrollTop()-a("#"+v).height())-a("#"+y).height())}break}}}function g(){var w=N("postChildID");var v=a("#"+w+" a.selected");if(v.length==1){var C=a("#"+w+" a.selected").text();var B=a("#"+w+" a.selected").attr("id");if(B!=undefined){var A=t[B].value;document.getElementById(l).selectedIndex=t[B].index}}else{if(v.length>1){var z=a("#"+l+" > option:selected").removeAttr("selected");for(var x=0;x<v.length;x++){var B=a(v[x]).attr("id");var y=t[B].index;document.getElementById(l).options[y].selected="selected"}}}}function H(){var v=N("postChildID");if(b!=""&&v!=b){a("#"+b).slideUp("fast");a("#"+b).css({zIndex:"0"})}if(a("#"+v).css("display")=="none"){o=t[a("#"+v+" a.selected").attr("id")].text;a(document).bind("keydown",function(x){var w=x.keyCode;if(w==39||w==40){x.preventDefault();x.stopPropagation();F()}if(w==37||w==38){x.preventDefault();x.stopPropagation();i()}if(w==27||w==13){O();g()}if(a("#"+l).attr("onkeydown")!=undefined){document.getElementById(l).onkeydown()}});a(document).bind("keyup",function(w){if(a("#"+l).attr("onkeyup")!=undefined){document.getElementById(l).onkeyup()}});a(document).bind("mouseup",function(w){if(k()==false){O()}});a("#"+v).css({zIndex:p.zIndex});a("#"+v).slideDown("fast");if(v!=b){b=v}}}function O(){var v=N("postChildID");a(document).unbind("keydown");a(document).unbind("keyup");a(document).unbind("mouseup");a("#"+v).slideUp("fast",function(w){J();a("#"+v).css({zIndex:"0"})})}function J(){var v=N("postChildID");if(a("#"+l).attr("onchange")!=undefined){var w=t[a("#"+v+" a.selected").attr("id")].text;if(o!=w){document.getElementById(l).onchange()}}if(a("#"+l).attr("onmouseup")!=undefined){document.getElementById(l).onmouseup()}if(a("#"+l).attr("onblur")!=undefined){a(document).bind("mouseup",function(x){a("#"+l).focus();a("#"+l)[0].blur();g();a(document).unbind("mouseup")})}}function G(w){var v=N("postArrowID");if(w==1){a("#"+v).css({backgroundPosition:"0 100%"})}else{a("#"+v).css({backgroundPosition:"0 0"})}}};a.fn.msDropDown=function(f){var e=a(this);for(var h=0;h<e.length;h++){var g=a(e[h]).attr("id");if(f==undefined){a("#"+g).dd()}else{a("#"+g).dd(f)}}}})(jQuery);var animatedcollapse={divholders:{},divgroups:{},lastactiveingroup:{},show:function(b){if(typeof b=="object"){for(var a=0;a<b.length;a++){this.showhide(b[a],"show")}}else{this.showhide(b,"show")}},hide:function(b){if(typeof b=="object"){for(var a=0;a<b.length;a++){this.showhide(b[a],"hide")}}else{this.showhide(b,"hide")}},toggle:function(a){this.showhide(a,"toggle")},addDiv:function(b,a){this.divholders[b]=({id:b,$divref:null,attrs:a});this.divholders[b].getAttr=function(d){var c=new RegExp(d+"=([^,]+)","i");return(c.test(this.attrs)&&parseInt(RegExp.$1)!=0)?RegExp.$1:null}},showhide:function(f,c){try{var a=this.divholders[f].$divref;if(this.divholders[f]&&a.length==1){var b=this.divgroups[a.attr("groupname")];if(a.attr("groupname")&&b.count>1&&(c=="show"||c=="toggle"&&a.css("display")=="none")){if(b.lastactivedivid&&b.lastactivedivid!=f){this.slideengine(b.lastactivedivid,"hide")}this.slideengine(f,"show");b.lastactivedivid=f}else{this.slideengine(f,c)}}}catch(d){}},slideengine:function(d,c){var a=this.divholders[d].$divref;if(this.divholders[d]&&a.length==1){var b={height:c};if(a.attr("fade")){b.opacity=c}a.animate(b,a.attr("speed")?parseInt(a.attr("speed")):500);return false}},generatemap:function(){var b={};for(var a=0;a<arguments.length;a++){if(arguments[a][1]!=null){b[arguments[a][0]]=arguments[a][1]}}return b},init:function(){var a=this;jQuery(document).ready(function(e){var b=a.getCookie("acopendivids");var d=a.getCookie("acgroupswithpersist");if(b!=null){b=(b=="nada")?[]:b.split(",")}d=(d==null||d=="nada")?[]:d.split(",");jQuery.each(a.divholders,function(){this.$divref=e("#"+this.id);if((this.getAttr("persist")||jQuery.inArray(this.getAttr("group"),d)!=-1)&&b!=null){var h=(this.getAttr("persist")||jQuery.inArray(this.id,b)!=-1)?"block":"none"}else{var h=this.getAttr("hide")?"none":null}this.$divref.css(a.generatemap(["height",this.getAttr("height")],["display",h]));this.$divref.attr(a.generatemap(["groupname",this.getAttr("group")],["fade",this.getAttr("fade")],["speed",this.getAttr("speed")]));if(this.getAttr("group")){var g=a.divgroups[this.getAttr("group")]||(a.divgroups[this.getAttr("group")]={});g.count=(g.count||0)+1;if(!g.lastactivedivid&&this.$divref.css("display")!="none"||h=="block"){g.lastactivedivid=this.id}this.$divref.css({display:"none"})}});jQuery.each(a.divgroups,function(){if(this.lastactivedivid){a.divholders[this.lastactivedivid].$divref.show()}});var c=e("*[rel]").filter('[@rel^="collapse-"], [@rel^="expand-"], [@rel^="toggle-"]');var f=/(collapse-)|(expand-)|(toggle-)/;c.each(function(){e(this).click(function(){var g=this.getAttribute("rel");var i=g.replace(f,"");var h=(g.indexOf("collapse-")!=-1)?"hide":(g.indexOf("expand-")!=-1)?"show":"toggle";return a.showhide(i,h)})});e(window).bind("unload",function(){a.uninit()})})},uninit:function(){var b="",a="";jQuery.each(this.divholders,function(){if(this.$divref.css("display")!="none"){b+=this.id+","}if(this.getAttr("group")&&this.getAttr("persist")){a+=this.getAttr("group")+","}});b=(b=="")?"nada":b.replace(/,$/,"");a=(a=="")?"nada":a.replace(/,$/,"");this.setCookie("acopendivids",b);this.setCookie("acgroupswithpersist",a)},getCookie:function(a){var b=new RegExp(a+"=[^;]*","i");if(document.cookie.match(b)){return document.cookie.match(b)[0].split("=")[1]}return null},setCookie:function(b,c,d){if(typeof d!="undefined"){var a=new Date();a.setDate(a.getDate()+d);document.cookie=b+"="+c+"; path=/; expires="+a.toGMTString()}else{document.cookie=b+"="+c+"; path=/"}}};Date.setLanuage=function(a){a=a.toUpperCase();if(Date.i18n[a]){Date.dayNames=Date.i18n[a].dayNames;Date.abbrDayNames=Date.i18n[a].abbrDayNames;Date.monthNames=Date.i18n[a].monthNames;Date.abbrMonthNames=Date.i18n[a].abbrMonthNames}};Date.monthsBetween=function(a,b){if(a>b){return monthsBetween(b,a)}var c=0;if(b.getFullYear()>a.getFullYear()){c=c+(b.getFullYear()-a.getFullYear()-1)*12}else{return b.getMonth()-a.getMonth()}if(b.getMonth()>a.getMonth()){c=c+12+b.getMonth()-a.getMonth()}else{c=c+(12-a.getMonth())+b.getMonth()}return c};Date.dayNames=Date.i18n.dayNames;Date.abbrDayNames=Date.i18n.abbrDayNames;Date.monthNames=Date.i18n.monthNames;Date.abbrMonthNames=Date.i18n.abbrMonthNames;Date.firstDayOfWeek=1;Date.format="dd/mm/yyyy";Date.fullYearStart="20";(function(){function b(c,d){if(!Date.prototype[c]){Date.prototype[c]=d}}b("isLeapYear",function(){var c=this.getFullYear();return(c%4==0&&c%100!=0)||c%400==0});b("isWeekend",function(){return this.getDay()==0||this.getDay()==6});b("isWeekDay",function(){return !this.isWeekend()});b("getDaysInMonth",function(){return[31,(this.isLeapYear()?29:28),31,30,31,30,31,31,30,31,30,31][this.getMonth()]});b("getDayName",function(c){return c?Date.abbrDayNames[this.getDay()]:Date.dayNames[this.getDay()]});b("getMonthName",function(c){return c?Date.abbrMonthNames[this.getMonth()]:Date.monthNames[this.getMonth()]});b("getDayOfYear",function(){var c=new Date("1/1/"+this.getFullYear());return Math.floor((this.getTime()-c.getTime())/86400000)});b("getWeekOfYear",function(){return Math.ceil(this.getDayOfYear()/7)});b("setDayOfYear",function(c){this.setMonth(0);this.setDate(c);return this});b("addYears",function(c){this.setFullYear(this.getFullYear()+c);return this});b("addMonths",function(d){var c=this.getDate();this.setMonth(this.getMonth()+d);if(c>this.getDate()){this.addDays(-this.getDate())}return this});b("addDays",function(c){this.setDate(this.getDate()+c);return this});b("addHours",function(c){this.setHours(this.getHours()+c);return this});b("addMinutes",function(c){this.setMinutes(this.getMinutes()+c);return this});b("addSeconds",function(c){this.setSeconds(this.getSeconds()+c);return this});b("zeroTime",function(){this.setMilliseconds(0);this.setSeconds(0);this.setMinutes(0);this.setHours(0);return this});b("asString",function(){var c=Date.format;return c.split("yyyy").join(this.getFullYear()).split("yy").join((this.getFullYear()+"").substring(2)).split("mmm").join(this.getMonthName(true)).split("mm").join(a(this.getMonth()+1)).split("dd").join(a(this.getDate()))});Date.fromString=function(g){var h=Date.format;var k=new Date("01/01/1977");var l=h.indexOf("yyyy");if(l>-1){k.setFullYear(Number(g.substr(l,4)))}else{k.setFullYear(Number(Date.fullYearStart+g.substr(h.indexOf("yy"),2)))}var c=h.indexOf("mmm");if(c>-1){var j=g.substr(c,3);for(var e=0;e<Date.abbrMonthNames.length;e++){if(Date.abbrMonthNames[e]==j){break}}k.setMonth(e)}else{k.setMonth(Number(g.substr(h.indexOf("mm"),2))-1)}k.setDate(Number(g.substr(h.indexOf("dd"),2)));if(isNaN(k.getTime())){return false}return k};var a=function(c){var d="0"+c;return d.substring(d.length-2)}})();(function(d){d.fn.extend({renderCalendar:function(q){var C=function(i){return document.createElement(i)};q=d.extend({month:null,year:null,renderCallback:null,showHeader:d.dpConst.SHOW_HEADER_SHORT,dpController:null,hoverClass:"dp-hover"},q);if(q.showHeader!=d.dpConst.SHOW_HEADER_NONE){var n=d(C("tr"));for(var x=Date.firstDayOfWeek;x<Date.firstDayOfWeek+7;x++){var h=x%7;var v=Date.dayNames[h];var u=Date.abbrDayNames[h];n.append(jQuery(C("th")).attr({scope:"col",abbr:v,title:v,"class":(h==0||h==6?"weekend":"weekday")}).html(q.showHeader==d.dpConst.SHOW_HEADER_SHORT?u.substr(0,2):u))}}var e=d(C("table")).attr({cellspacing:1,className:"jCalendar"}).append((q.showHeader!=d.dpConst.SHOW_HEADER_NONE?d(C("thead")).append(n):C("thead")));var f=d(C("tbody"));var z=(new Date()).zeroTime();var B=q.month==undefined?z.getMonth():q.month;var o=q.year||z.getFullYear();var l=new Date(o,B,1);var k=Date.firstDayOfWeek-l.getDay()+1;if(k>1){k-=7}var p=Math.ceil(((-1*k+1)+l.getDaysInMonth())/7);l.addDays(k-1);var A=function(){if(q.hoverClass){d(this).addClass(q.hoverClass)}};var g=function(){if(q.hoverClass){d(this).removeClass(q.hoverClass)}};var m=0;while(m++<p){var t=jQuery(C("tr"));for(var x=0;x<7;x++){var j=l.getMonth()==B;var y=d(C("td")).text(l.getDate()+"").attr("className",(j?"current-month ":"other-month ")+(l.isWeekend()?"weekend ":"weekday ")+(j&&l.getTime()==z.getTime()?"today ":"")).hover(A,g);if(q.renderCallback){q.renderCallback(y,l,B,o)}t.append(y);l.addDays(1)}f.append(t)}e.append(f);return this.each(function(){d(this).empty().append(e)})},datePicker:function(e){if(!d.event._dpCache){d.event._dpCache=[]}e=d.extend({month:undefined,year:undefined,startDate:undefined,endDate:undefined,inline:false,renderCallback:[],createButton:true,showYearNavigation:true,closeOnSelect:true,displayClose:true,selectMultiple:false,clickInput:false,verticalPosition:d.dpConst.POS_TOP,horizontalPosition:d.dpConst.POS_LEFT,verticalOffset:0,horizontalOffset:0,hoverClass:"dp-hover"},e);return this.each(function(){var g=d(this);var i=true;if(!this._dpId){this._dpId=d.event.guid++;d.event._dpCache[this._dpId]=new a(this);i=false}if(e.inline){e.createButton=false;e.displayClose=false;e.closeOnSelect=false;g.empty()}var f=d.event._dpCache[this._dpId];f.init(e);if(!i&&e.createButton){f.button=d('<a href="#" class="dp-choose-date" title="'+d.dpText.TEXT_CHOOSE_DATE+'">'+d.dpText.TEXT_CHOOSE_DATE+"</a>").bind("click",function(){g.dpDisplay(this);this.blur();return false});g.after(f.button)}if(!i&&g.is(":text")){g.bind("dateSelected",function(k,j,l){this.value=j.asString()}).bind("change",function(){var j=Date.fromString(this.value);if(j){f.setSelected(j,true,true)}});if(e.clickInput){g.bind("click",function(){g.dpDisplay()})}var h=Date.fromString(this.value);if(this.value!=""&&h){f.setSelected(h,true,true)}}g.addClass("dp-applied")})},dpSetDisabled:function(e){return b.call(this,"setDisabled",e)},dpSetStartDate:function(e){return b.call(this,"setStartDate",e)},dpSetEndDate:function(e){return b.call(this,"setEndDate",e)},dpGetSelected:function(){var e=c(this[0]);if(e){return e.getSelected()}return null},dpSetSelected:function(g,f,e){if(f==undefined){f=true}if(e==undefined){e=true}return b.call(this,"setSelected",Date.fromString(g),f,e)},dpSetDisplayedMonth:function(e,f){return b.call(this,"setDisplayedMonth",Number(e),Number(f))},dpDisplay:function(f){return b.call(this,"display",f)},dpSetRenderCallback:function(e){return b.call(this,"setRenderCallback",e)},dpSetPosition:function(e,f){return b.call(this,"setPosition",e,f)},dpSetOffset:function(e,f){return b.call(this,"setOffset",e,f)},dpClose:function(){return b.call(this,"_closeCalendar",false,this[0])},_dpDestroy:function(){}});var b=function(h,g,e,i){return this.each(function(){var f=c(this);if(f){f[h](g,e,i)}})};function a(e){this.ele=e;this.displayedMonth=null;this.displayedYear=null;this.startDate=null;this.endDate=null;this.showYearNavigation=null;this.closeOnSelect=null;this.displayClose=null;this.selectMultiple=null;this.verticalPosition=null;this.horizontalPosition=null;this.verticalOffset=null;this.horizontalOffset=null;this.button=null;this.renderCallback=[];this.selectedDates={};this.inline=null;this.context="#dp-popup"}d.extend(a.prototype,{init:function(e){this.setStartDate(e.startDate);this.setEndDate(e.endDate);this.setDisplayedMonth(Number(e.month),Number(e.year));this.setRenderCallback(e.renderCallback);this.showYearNavigation=e.showYearNavigation;this.closeOnSelect=e.closeOnSelect;this.displayClose=e.displayClose;this.selectMultiple=e.selectMultiple;this.verticalPosition=e.verticalPosition;this.horizontalPosition=e.horizontalPosition;this.hoverClass=e.hoverClass;this.setOffset(e.verticalOffset,e.horizontalOffset);this.inline=e.inline;if(this.inline){this.context=this.ele;this.display()}},setStartDate:function(e){if(e){this.startDate=Date.fromString(e)}if(!this.startDate){this.startDate=(new Date()).zeroTime()}this.setDisplayedMonth(this.displayedMonth,this.displayedYear)},setEndDate:function(e){if(e){this.endDate=Date.fromString(e)}if(!this.endDate){this.endDate=(new Date("12/31/2999"))}if(this.endDate.getTime()<this.startDate.getTime()){this.endDate=this.startDate}this.setDisplayedMonth(this.displayedMonth,this.displayedYear)},setPosition:function(e,f){this.verticalPosition=e;this.horizontalPosition=f},setOffset:function(e,f){this.verticalOffset=parseInt(e)||0;this.horizontalOffset=parseInt(f)||0},setDisabled:function(e){$e=d(this.ele);$e[e?"addClass":"removeClass"]("dp-disabled");if(this.button){$but=d(this.button);$but[e?"addClass":"removeClass"]("dp-disabled");$but.attr("title",e?"":d.dpText.TEXT_CHOOSE_DATE)}if($e.is(":text")){$e.attr("disabled",e?"disabled":"")}},setDisplayedMonth:function(f,j){if(this.startDate==undefined||this.endDate==undefined){return}var h=new Date(this.startDate.getTime());h.setDate(1);var i=new Date(this.endDate.getTime());i.setDate(1);var g;if((!f&&!j)||(isNaN(f)&&isNaN(j))){g=new Date().zeroTime();g.setDate(1)}else{if(isNaN(f)){g=new Date(j,this.displayedMonth,1)}else{if(isNaN(j)){g=new Date(this.displayedYear,f,1)}else{g=new Date(j,f,1)}}}if(g.getTime()<h.getTime()){g=h}else{if(g.getTime()>i.getTime()){g=i}}this.displayedMonth=g.getMonth();this.displayedYear=g.getFullYear()},setSelected:function(g,e,f){if(this.selectMultiple==false){this.selectedDates={};d("td.selected",this.context).removeClass("selected")}if(f){this.setDisplayedMonth(g.getMonth(),g.getFullYear())}this.selectedDates[g.toString()]=e},isSelected:function(e){return this.selectedDates[e.toString()]},getSelected:function(){var e=[];for(s in this.selectedDates){if(this.selectedDates[s]==true){e.push(Date.parse(s))}}return e},display:function(e){if(d(this.ele).is(".dp-disabled")){return}e=e||this.ele;var l=this;var h=d(e);var k=h.offset();var m;var n;var g;var i;if(l.inline){m=d(this.ele);n={id:"calendar-"+this.ele._dpId,className:"dp-popup dp-popup-inline"};i={}}else{m=d("body");n={id:"dp-popup",className:"dp-popup"};i={top:k.top+l.verticalOffset,left:k.left+l.horizontalOffset};var j=function(q){var o=q.target;var p=d("#dp-popup")[0];while(true){if(o==p){return true}else{if(o==document){l._closeCalendar();return false}else{o=d(o).parent()[0]}}}};this._checkMouse=j;this._closeCalendar(true)}m.append(d('<div style=" width: 162px; overflow: hidden; border: 1px solid #848A8D; background-color: #CEECFD;"></div>').attr(n).css(i).append(d("<h2></h2>"),d('<div class="dp-nav-prev"></div>').append(d('<a class="dp-nav-prev-year" href="#" title="'+d.dpText.TEXT_PREV_YEAR+'">&lt;&lt;</a>').bind("click",function(){return l._displayNewMonth.call(l,this,0,-1)}),d('<a class="dp-nav-prev-month" href="#" title="'+d.dpText.TEXT_PREV_MONTH+'">&lt;</a>').bind("click",function(){return l._displayNewMonth.call(l,this,-1,0)})),d('<div class="dp-nav-next"></div>').append(d('<a class="dp-nav-next-year" href="#" title="'+d.dpText.TEXT_NEXT_YEAR+'">&gt;&gt;</a>').bind("click",function(){return l._displayNewMonth.call(l,this,0,1)}),d('<a class="dp-nav-next-month" href="#" title="'+d.dpText.TEXT_NEXT_MONTH+'">&gt;</a>').bind("click",function(){return l._displayNewMonth.call(l,this,1,0)})),d("<div></div>").attr("className","dp-calendar")).bgIframe());var f=this.inline?d(".dp-popup",this.context):d("#dp-popup");if(this.showYearNavigation==false){d(".dp-nav-prev-year, .dp-nav-next-year",l.context).css("display","none")}if(this.displayClose){f.append(d('<a href="#" id="dp-close">'+d.dpText.TEXT_CLOSE+"</a>").bind("click",function(){l._closeCalendar();return false}))}l._renderCalendar();d(this.ele).trigger("dpDisplayed",f);if(!l.inline){if(this.verticalPosition==d.dpConst.POS_BOTTOM){f.css("top",k.top+h.height()-f.height()+l.verticalOffset)}if(this.horizontalPosition==d.dpConst.POS_RIGHT){f.css("left",k.left+h.width()-f.width()+l.horizontalOffset)}d(document).bind("mousedown",this._checkMouse)}},setRenderCallback:function(e){if(e&&typeof(e)=="function"){e=[e]}this.renderCallback=this.renderCallback.concat(e)},cellRender:function(k,e,h,g){var l=this.dpController;var j=new Date(e.getTime());k.bind("click",function(){var m=d(this);if(!m.is(".disabled")){l.setSelected(j,!m.is(".selected")||!l.selectMultiple);var i=l.isSelected(j);d(l.ele).trigger("dateSelected",[j,k,i]);d(l.ele).trigger("change");if(l.closeOnSelect){l._closeCalendar()}else{m[i?"addClass":"removeClass"]("selected")}}});if(l.isSelected(j)){k.addClass("selected")}for(var f=0;f<l.renderCallback.length;f++){l.renderCallback[f].apply(this,arguments)}},_displayNewMonth:function(f,e,g){if(!d(f).is(".disabled")){this.setDisplayedMonth(this.displayedMonth+e,this.displayedYear+g);this._clearCalendar();this._renderCalendar();d(this.ele).trigger("dpMonthChanged",[this.displayedMonth,this.displayedYear])}f.blur();return false},_renderCalendar:function(){d("h2",this.context).html(Date.monthNames[this.displayedMonth]+" "+this.displayedYear);d(".dp-calendar",this.context).renderCalendar({month:this.displayedMonth,year:this.displayedYear,renderCallback:this.cellRender,dpController:this,hoverClass:this.hoverClass});if(this.displayedYear==this.startDate.getFullYear()&&this.displayedMonth==this.startDate.getMonth()){d(".dp-nav-prev-year",this.context).addClass("disabled");d(".dp-nav-prev-month",this.context).addClass("disabled");d(".dp-calendar td.other-month",this.context).each(function(){var h=d(this);if(Number(h.text())>20){h.addClass("disabled")}});var g=this.startDate.getDate();d(".dp-calendar td.current-month",this.context).each(function(){var h=d(this);if(Number(h.text())<g){h.addClass("disabled")}})}else{d(".dp-nav-prev-year",this.context).removeClass("disabled");d(".dp-nav-prev-month",this.context).removeClass("disabled");var g=this.startDate.getDate();if(g>20){var f=new Date(this.startDate.getTime());f.addMonths(1);if(this.displayedYear==f.getFullYear()&&this.displayedMonth==f.getMonth()){d("dp-calendar td.other-month",this.context).each(function(){var h=d(this);if(Number(h.text())<g){h.addClass("disabled")}})}}}if(this.displayedYear==this.endDate.getFullYear()&&this.displayedMonth==this.endDate.getMonth()){d(".dp-nav-next-year",this.context).addClass("disabled");d(".dp-nav-next-month",this.context).addClass("disabled");d(".dp-calendar td.other-month",this.context).each(function(){var h=d(this);if(Number(h.text())<14){h.addClass("disabled")}});var g=this.endDate.getDate();d(".dp-calendar td.current-month",this.context).each(function(){var h=d(this);if(Number(h.text())>g){h.addClass("disabled")}})}else{d(".dp-nav-next-year",this.context).removeClass("disabled");d(".dp-nav-next-month",this.context).removeClass("disabled");var g=this.endDate.getDate();if(g<13){var e=new Date(this.endDate.getTime());e.addMonths(-1);if(this.displayedYear==e.getFullYear()&&this.displayedMonth==e.getMonth()){d(".dp-calendar td.other-month",this.context).each(function(){var h=d(this);if(Number(h.text())>g){h.addClass("disabled")}})}}}},_closeCalendar:function(e,f){if(!f||f==this.ele){d(document).unbind("mousedown",this._checkMouse);this._clearCalendar();d("#dp-popup a").unbind();d("#dp-popup").empty().remove();if(!e){d(this.ele).trigger("dpClosed",[this.getSelected()])}}},_clearCalendar:function(){d(".dp-calendar td",this.context).unbind();d(".dp-calendar",this.context).empty()}});d.dpConst={SHOW_HEADER_NONE:0,SHOW_HEADER_SHORT:1,SHOW_HEADER_LONG:2,POS_TOP:0,POS_BOTTOM:1,POS_LEFT:0,POS_RIGHT:1};d.dpText={TEXT_PREV_YEAR:"Previous year",TEXT_PREV_MONTH:"Previous month",TEXT_NEXT_YEAR:"Next year",TEXT_NEXT_MONTH:"Next month",TEXT_CLOSE:"&nbsp;",TEXT_CHOOSE_DATE:"Choose date"};d.dpVersion="$Id: jquery.datePicker.js 3739 2007-10-25 13:55:30Z kelvin.luck $";function c(e){if(e._dpId){return d.event._dpCache[e._dpId]}return false}if(d.fn.bgIframe==undefined){d.fn.bgIframe=function(){return this}}d(window).bind("unload",function(){var f=d.event._dpCache||[];for(var e in f){d(f[e].ele)._dpDestroy()}})})(jQuery);(function(a){a.fn.bgIframe=a.fn.bgiframe=function(c){if(a.browser.msie&&/6.0/.test(navigator.userAgent)){c=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},c||{});var d=function(e){return e&&e.constructor==Number?e+"px":e},b='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+c.src+'"style="display:block;position:absolute;z-index:-1;'+(c.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(c.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":d(c.top))+";left:"+(c.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":d(c.left))+";width:"+(c.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":d(c.width))+";height:"+(c.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":d(c.height))+';"/>';return this.each(function(){if(a("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(b),this.firstChild)}})}return this}})(jQuery);(function(g){var a="2.28";var b=g.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);function d(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments,""))}}g.fn.cycle=function(i){var j=arguments[1];return this.each(function(){if(i===undefined||i===null){i={}}if(i.constructor==String){switch(i){case"stop":if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;g(this).data("cycle.opts","");return;case"pause":this.cyclePause=1;return;case"resume":this.cyclePause=0;if(j===true){i=g(this).data("cycle.opts");if(!i){d("options not found, can not resume");return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout);this.cycleTimeout=0}e(i.elements,i,1,1)}return;default:i={fx:i}}}else{if(i.constructor==Number){var o=i;i=g(this).data("cycle.opts");if(!i){d("options not found, can not advance slide");return}if(o<0||o>=i.elements.length){d("invalid slide index: "+o);return}i.nextSlide=o;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);this.cycleTimeout=0}e(i.elements,i,1,o>=i.currSlide);return}}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;this.cyclePause=0;var r=g(this);var p=i.slideExpr?g(i.slideExpr,this):r.children();var l=p.get();if(l.length<2){d("terminating; too few slides: "+l.length);return}var k=g.extend({},g.fn.cycle.defaults,i||{},g.metadata?r.metadata():g.meta?r.data():{});if(k.autostop){k.countdown=k.autostopCount||l.length}r.data("cycle.opts",k);k.container=this;k.elements=l;k.before=k.before?[k.before]:[];k.after=k.after?[k.after]:[];k.after.unshift(function(){k.busy=0});if(k.continuous){k.after.push(function(){e(l,k,0,!k.rev)})}if(b&&k.cleartype&&!k.cleartypeNoBg){c(p)}var u=this.className;k.width=parseInt((u.match(/w:(\d+)/)||[])[1])||k.width;k.height=parseInt((u.match(/h:(\d+)/)||[])[1])||k.height;k.timeout=parseInt((u.match(/t:(\d+)/)||[])[1])||k.timeout;if(r.css("position")=="static"){r.css("position","relative")}if(k.width){r.width(k.width)}if(k.height&&k.height!="auto"){r.height(k.height)}if(k.startingSlide){k.startingSlide=parseInt(k.startingSlide)}if(k.random){k.randomMap=[];for(var m=0;m<l.length;m++){k.randomMap.push(m)}k.randomMap.sort(function(w,v){return Math.random()-0.5});k.randomIndex=0;k.startingSlide=k.randomMap[0]}else{if(k.startingSlide>=l.length){k.startingSlide=0}}var n=k.startingSlide||0;p.css({position:"absolute",top:0,left:0}).hide().each(function(v){var w=n?v>=n?l.length-(v-n):n-v:l.length-v});g(l[n]).css("opacity",1).show();if(g.browser.msie){l[n].style.removeAttribute("filter")}if(k.fit&&k.width){p.width(k.width)}if(k.fit&&k.height&&k.height!="auto"){p.height(k.height)}if(k.pause){r.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}var t=g.fn.cycle.transitions[k.fx];if(g.isFunction(t)){t(r,p,k)}else{if(k.fx!="custom"){d("unknown transition: "+k.fx)}}p.each(function(){var v=g(this);this.cycleH=(k.fit&&k.height)?k.height:v.height();this.cycleW=(k.fit&&k.width)?k.width:v.width()});k.cssBefore=k.cssBefore||{};k.animIn=k.animIn||{};k.animOut=k.animOut||{};p.not(":eq("+n+")").css(k.cssBefore);if(k.cssFirst){g(p[n]).css(k.cssFirst)}if(k.timeout){k.timeout=parseInt(k.timeout);if(k.speed.constructor==String){k.speed=g.fx.speeds[k.speed]||parseInt(k.speed)}if(!k.sync){k.speed=k.speed/2}while((k.timeout-k.speed)<250){k.timeout+=k.speed}}if(k.easing){k.easeIn=k.easeOut=k.easing}if(!k.speedIn){k.speedIn=k.speed}if(!k.speedOut){k.speedOut=k.speed}k.slideCount=l.length;k.currSlide=n;if(k.random){k.nextSlide=k.currSlide;if(++k.randomIndex==l.length){k.randomIndex=0}k.nextSlide=k.randomMap[k.randomIndex]}else{k.nextSlide=k.startingSlide>=(l.length-1)?0:k.startingSlide+1}var q=p[n];if(k.before.length){k.before[0].apply(q,[q,q,k,true])}if(k.after.length>1){k.after[1].apply(q,[q,q,k,true])}if(k.click&&!k.next){k.next=k.click}if(k.next){g(k.next).bind("click",function(){return f(l,k,k.rev?-1:1)})}if(k.prev){g(k.prev).bind("click",function(){return f(l,k,k.rev?1:-1)})}if(k.pager){h(l,k)}k.addSlide=function(w){var v=g(w),x=v[0];if(!k.autostopCount){k.countdown++}l.push(x);if(k.els){k.els.push(x)}k.slideCount=l.length;v.css("position","absolute").appendTo(r);if(b&&k.cleartype&&!k.cleartypeNoBg){c(v)}if(k.fit&&k.width){v.width(k.width)}if(k.fit&&k.height&&k.height!="auto"){p.height(k.height)}x.cycleH=(k.fit&&k.height)?k.height:v.height();x.cycleW=(k.fit&&k.width)?k.width:v.width();v.css(k.cssBefore);if(k.pager){g.fn.cycle.createPagerAnchor(l.length-1,x,g(k.pager),l,k)}if(typeof k.onAddSlide=="function"){k.onAddSlide(v)}};if(k.timeout||k.continuous){this.cycleTimeout=setTimeout(function(){e(l,k,0,!k.rev)},k.continuous?10:k.timeout+(k.delay||0))}})};function e(n,i,m,o){if(i.busy){return}var l=i.container,r=n[i.currSlide],q=n[i.nextSlide];if(l.cycleTimeout===0&&!m){return}if(!m&&!l.cyclePause&&((i.autostop&&(--i.countdown<=0))||(i.nowrap&&!i.random&&i.nextSlide<i.currSlide))){if(i.end){i.end(i)}return}if(m||!l.cyclePause){if(i.before.length){g.each(i.before,function(p,t){t.apply(q,[r,q,i,o])})}var j=function(){if(g.browser.msie&&i.cleartype){this.style.removeAttribute("filter")}g.each(i.after,function(p,t){t.apply(q,[r,q,i,o])})};if(i.nextSlide!=i.currSlide){i.busy=1;if(i.fxFn){i.fxFn(r,q,i,j,o)}else{if(g.isFunction(g.fn.cycle[i.fx])){g.fn.cycle[i.fx](r,q,i,j)}else{g.fn.cycle.custom(r,q,i,j,m&&i.fastOnEvent)}}}if(i.random){i.currSlide=i.nextSlide;if(++i.randomIndex==n.length){i.randomIndex=0}i.nextSlide=i.randomMap[i.randomIndex]}else{var k=(i.nextSlide+1)==n.length;i.nextSlide=k?0:i.nextSlide+1;i.currSlide=k?n.length-1:i.nextSlide-1}if(i.pager){g.fn.cycle.updateActivePagerLink(i.pager,i.currSlide)}}if(i.timeout&&!i.continuous){l.cycleTimeout=setTimeout(function(){e(n,i,0,!i.rev)},i.timeout)}else{if(i.continuous&&l.cyclePause){l.cycleTimeout=setTimeout(function(){e(n,i,0,!i.rev)},10)}}}g.fn.cycle.updateActivePagerLink=function(i,j){g(i).find("a").removeClass("activeSlide").filter("a:eq("+j+")").addClass("activeSlide");g("#pstage0").hide();g("#pstage1").hide();g("#pstage2").hide();g("#pstage3").hide();g("#pstage"+j).show()};function f(i,j,m){var l=j.container,k=l.cycleTimeout;if(k){clearTimeout(k);l.cycleTimeout=0}if(j.random&&m<0){j.randomIndex--;if(--j.randomIndex==-2){j.randomIndex=i.length-2}else{if(j.randomIndex==-1){j.randomIndex=i.length-1}}j.nextSlide=j.randomMap[j.randomIndex]}else{if(j.random){if(++j.randomIndex==i.length){j.randomIndex=0}j.nextSlide=j.randomMap[j.randomIndex]}else{j.nextSlide=j.currSlide+m;if(j.nextSlide<0){if(j.nowrap){return false}j.nextSlide=i.length-1}else{if(j.nextSlide>=i.length){if(j.nowrap){return false}j.nextSlide=0}}}}if(j.prevNextClick&&typeof j.prevNextClick=="function"){j.prevNextClick(m>0,j.nextSlide,i[j.nextSlide])}e(i,j,1,m>=0);return false}function h(j,k){var i=g(k.pager);g.each(j,function(l,m){g.fn.cycle.createPagerAnchor(l,m,i,j,k)});g.fn.cycle.updateActivePagerLink(k.pager,k.startingSlide)}g.fn.cycle.createPagerAnchor=function(l,m,j,k,n){var o=(typeof n.pagerAnchorBuilder=="function")?g(n.pagerAnchorBuilder(l,m)):g('<a class="tab" href="'+naviURLs[l]+'"><span class="tab">'+naviTexts[l]+"</span></a>");if(o.parents("body").length==0){o.appendTo(j)}o.bind(n.pagerEvent,function(){n.nextSlide=l;var q=n.container,i=q.cycleTimeout;if(i){clearTimeout(i);q.cycleTimeout=0}if(typeof n.pagerClick=="function"){n.pagerClick(n.nextSlide,k[n.nextSlide])}e(k,n,1,n.currSlide<l);return false});if(n.pauseOnPagerHover){o.hover(function(){n.container.cyclePause=1},function(){n.container.cyclePause=0})}};function c(k){function j(l){var l=parseInt(l).toString(16);return l.length<2?"0"+l:l}function i(n){for(;n&&n.nodeName.toLowerCase()!="html";n=n.parentNode){var l=g.css(n,"background-color");if(l.indexOf("rgb")>=0){var m=l.match(/\d+/g);return"#"+j(m[0])+j(m[1])+j(m[2])}if(l&&l!="transparent"){return l}}return"#ffffff"}k.each(function(){g(this).css("background-color",i(this))})}g.fn.cycle.custom=function(u,n,i,k,j){var t=g(u),o=g(n);o.css(i.cssBefore);var l=j?1:i.speedIn;var r=j?1:i.speedOut;var m=j?null:i.easeIn;var q=j?null:i.easeOut;var p=function(){o.animate(i.animIn,l,m,k)};t.animate(i.animOut,r,q,function(){if(i.cssAfter){t.css(i.cssAfter)}if(!i.sync){p()}});if(i.sync){p()}};g.fn.cycle.transitions={fade:function(j,k,i){k.not(":eq("+i.startingSlide+")").css("opacity",0);i.before.push(function(){g(this).show()});i.animIn={opacity:1};i.animOut={opacity:0};i.cssBefore={opacity:0};i.cssAfter={display:"none"}}};g.fn.cycle.ver=function(){return a};g.fn.cycle.defaults={fx:"fade",timeout:4000,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:0,nowrap:0,fastOnEvent:0}})(jQuery);(function(a){a.fn.cycle.transitions.scrollUp=function(c,d,b){c.css("overflow","hidden");b.before.push(function(g,e,f){a(this).show();f.cssBefore.top=e.offsetHeight;f.animOut.top=0-g.offsetHeight});b.cssFirst={top:0};b.animIn={top:0};b.cssAfter={display:"none"}};a.fn.cycle.transitions.scrollDown=function(c,d,b){c.css("overflow","hidden");b.before.push(function(g,e,f){a(this).show();f.cssBefore.top=0-e.offsetHeight;f.animOut.top=g.offsetHeight});b.cssFirst={top:0};b.animIn={top:0};b.cssAfter={display:"none"}};a.fn.cycle.transitions.scrollLeft=function(c,d,b){c.css("overflow","hidden");b.before.push(function(g,e,f){a(this).show();f.cssBefore.left=e.offsetWidth;f.animOut.left=0-g.offsetWidth});b.cssFirst={left:0};b.animIn={left:0}};a.fn.cycle.transitions.scrollRight=function(c,d,b){c.css("overflow","hidden");b.before.push(function(g,e,f){a(this).show();f.cssBefore.left=0-e.offsetWidth;f.animOut.left=g.offsetWidth});b.cssFirst={left:0};b.animIn={left:0}};a.fn.cycle.transitions.scrollHorz=function(c,d,b){c.css("overflow","hidden").width();b.before.push(function(i,g,h,f){a(this).show();var e=i.offsetWidth,j=g.offsetWidth;h.cssBefore=f?{left:j}:{left:-j};h.animIn.left=0;h.animOut.left=f?-e:e;d.not(i).css(h.cssBefore)});b.cssFirst={left:0};b.cssAfter={display:"none"}};a.fn.cycle.transitions.scrollVert=function(c,d,b){c.css("overflow","hidden");b.before.push(function(j,g,h,f){a(this).show();var i=j.offsetHeight,e=g.offsetHeight;h.cssBefore=f?{top:-e}:{top:e};h.animIn.top=0;h.animOut.top=f?i:-i;d.not(j).css(h.cssBefore)});b.cssFirst={top:0};b.cssAfter={display:"none"}};a.fn.cycle.transitions.slideX=function(c,d,b){b.before.push(function(g,e,f){a(g).css("zIndex",1)});b.onAddSlide=function(e){e.hide()};b.cssBefore={zIndex:2};b.animIn={width:"show"};b.animOut={width:"hide"}};a.fn.cycle.transitions.slideY=function(c,d,b){b.before.push(function(g,e,f){a(g).css("zIndex",1)});b.onAddSlide=function(e){e.hide()};b.cssBefore={zIndex:2};b.animIn={height:"show"};b.animOut={height:"hide"}};a.fn.cycle.transitions.shuffle=function(e,f,d){var b=e.css("overflow","visible").width();f.css({left:0,top:0});d.before.push(function(){a(this).show()});d.speed=d.speed/2;d.random=0;d.shuffle=d.shuffle||{left:-b,top:15};d.els=[];for(var c=0;c<f.length;c++){d.els.push(f[c])}for(var c=0;c<d.startingSlide;c++){d.els.push(d.els.shift())}d.fxFn=function(l,j,k,g,i){var h=i?a(l):a(j);h.animate(k.shuffle,k.speedIn,k.easeIn,function(){i?k.els.push(k.els.shift()):k.els.unshift(k.els.pop());if(i){for(var n=0,m=k.els.length;n<m;n++){a(k.els[n]).css("z-index",m-n)}}else{var o=a(l).css("z-index");h.css("z-index",parseInt(o)+1)}h.animate({left:0,top:0},k.speedOut,k.easeOut,function(){a(i?this:l).hide();if(g){g()}})})};d.onAddSlide=function(g){g.hide()}};a.fn.cycle.transitions.turnUp=function(c,d,b){b.before.push(function(g,e,f){a(this).show();f.cssBefore.top=e.cycleH;f.animIn.height=e.cycleH});b.onAddSlide=function(e){e.hide()};b.cssFirst={top:0};b.cssBefore={height:0};b.animIn={top:0};b.animOut={height:0};b.cssAfter={display:"none"}};a.fn.cycle.transitions.turnDown=function(c,d,b){b.before.push(function(g,e,f){a(this).show();f.animIn.height=e.cycleH;f.animOut.top=g.cycleH});b.onAddSlide=function(e){e.hide()};b.cssFirst={top:0};b.cssBefore={top:0,height:0};b.animOut={height:0};b.cssAfter={display:"none"}};a.fn.cycle.transitions.turnLeft=function(c,d,b){b.before.push(function(g,e,f){a(this).show();f.cssBefore.left=e.cycleW;f.animIn.width=e.cycleW});b.onAddSlide=function(e){e.hide()};b.cssBefore={width:0};b.animIn={left:0};b.animOut={width:0};b.cssAfter={display:"none"}};a.fn.cycle.transitions.turnRight=function(c,d,b){b.before.push(function(g,e,f){a(this).show();f.animIn.width=e.cycleW;f.animOut.left=g.cycleW});b.onAddSlide=function(e){e.hide()};b.cssBefore={left:0,width:0};b.animIn={left:0};b.animOut={width:0};b.cssAfter={display:"none"}};a.fn.cycle.transitions.zoom=function(c,d,b){b.cssFirst={top:0,left:0};b.cssAfter={display:"none"};b.before.push(function(g,e,f){a(this).show();f.cssBefore={width:0,height:0,top:e.cycleH/2,left:e.cycleW/2};f.cssAfter={display:"none"};f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH};f.animOut={width:0,height:0,top:g.cycleH/2,left:g.cycleW/2};a(g).css("zIndex",2);a(e).css("zIndex",1)});b.onAddSlide=function(e){e.hide()}};a.fn.cycle.transitions.fadeZoom=function(c,d,b){b.before.push(function(g,e,f){f.cssBefore={width:0,height:0,opacity:1,left:e.cycleW/2,top:e.cycleH/2,zIndex:1};f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH}});b.animOut={opacity:0};b.cssAfter={zIndex:0}};a.fn.cycle.transitions.blindX=function(d,e,c){var b=d.css("overflow","hidden").width();e.show();c.before.push(function(h,f,g){a(h).css("zIndex",1)});c.cssBefore={left:b,zIndex:2};c.cssAfter={zIndex:1};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.blindY=function(d,e,c){var b=d.css("overflow","hidden").height();e.show();c.before.push(function(h,f,g){a(h).css("zIndex",1)});c.cssBefore={top:b,zIndex:2};c.cssAfter={zIndex:1};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.blindZ=function(e,f,d){var c=e.css("overflow","hidden").height();var b=e.width();f.show();d.before.push(function(i,g,h){a(i).css("zIndex",1)});d.cssBefore={top:c,left:b,zIndex:2};d.cssAfter={zIndex:1};d.animIn={top:0,left:0};d.animOut={top:c,left:b}};a.fn.cycle.transitions.growX=function(c,d,b){b.before.push(function(g,e,f){f.cssBefore={left:this.cycleW/2,width:0,zIndex:2};f.animIn={left:0,width:this.cycleW};f.animOut={left:0};a(g).css("zIndex",1)});b.onAddSlide=function(e){e.hide().css("zIndex",1)}};a.fn.cycle.transitions.growY=function(c,d,b){b.before.push(function(g,e,f){f.cssBefore={top:this.cycleH/2,height:0,zIndex:2};f.animIn={top:0,height:this.cycleH};f.animOut={top:0};a(g).css("zIndex",1)});b.onAddSlide=function(e){e.hide().css("zIndex",1)}};a.fn.cycle.transitions.curtainX=function(c,d,b){b.before.push(function(g,e,f){f.cssBefore={left:e.cycleW/2,width:0,zIndex:1,display:"block"};f.animIn={left:0,width:this.cycleW};f.animOut={left:g.cycleW/2,width:0};a(g).css("zIndex",2)});b.onAddSlide=function(e){e.hide()};b.cssAfter={zIndex:1,display:"none"}};a.fn.cycle.transitions.curtainY=function(c,d,b){b.before.push(function(g,e,f){f.cssBefore={top:e.cycleH/2,height:0,zIndex:1,display:"block"};f.animIn={top:0,height:this.cycleH};f.animOut={top:g.cycleH/2,height:0};a(g).css("zIndex",2)});b.onAddSlide=function(e){e.hide()};b.cssAfter={zIndex:1,display:"none"}};a.fn.cycle.transitions.cover=function(f,g,e){var i=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(j,d,h){h.cssBefore=h.cssBefore||{};h.cssBefore.zIndex=2;h.cssBefore.display="block";if(i=="right"){h.cssBefore.left=-b}else{if(i=="up"){h.cssBefore.top=c}else{if(i=="down"){h.cssBefore.top=-c}else{h.cssBefore.left=b}}}a(j).css("zIndex",1)});if(!e.animIn){e.animIn={left:0,top:0}}if(!e.animOut){e.animOut={left:0,top:0}}e.cssAfter=e.cssAfter||{};e.cssAfter.zIndex=2;e.cssAfter.display="none"};a.fn.cycle.transitions.uncover=function(f,g,e){var i=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(j,d,h){h.cssBefore.display="block";if(i=="right"){h.animOut.left=b}else{if(i=="up"){h.animOut.top=-c}else{if(i=="down"){h.animOut.top=c}else{h.animOut.left=-b}}}a(j).css("zIndex",2);a(d).css("zIndex",1)});e.onAddSlide=function(d){d.hide()};if(!e.animIn){e.animIn={left:0,top:0}}e.cssBefore=e.cssBefore||{};e.cssBefore.top=0;e.cssBefore.left=0;e.cssAfter=e.cssAfter||{};e.cssAfter.zIndex=1;e.cssAfter.display="none"};a.fn.cycle.transitions.toss=function(e,f,d){var b=e.css("overflow","visible").width();var c=e.height();d.before.push(function(i,g,h){a(i).css("zIndex",2);h.cssBefore.display="block";if(!h.animOut.left&&!h.animOut.top){h.animOut={left:b*2,top:-c/2,opacity:0}}else{h.animOut.opacity=0}});d.onAddSlide=function(g){g.hide()};d.cssBefore={left:0,top:0,zIndex:1,opacity:1};d.animIn={left:0};d.cssAfter={zIndex:2,display:"none"}};a.fn.cycle.transitions.wipe=function(o,k,e){var n=o.css("overflow","hidden").width();var i=o.height();e.cssBefore=e.cssBefore||{};var f;if(e.clip){if(/l2r/.test(e.clip)){f="rect(0px 0px "+i+"px 0px)"}else{if(/r2l/.test(e.clip)){f="rect(0px "+n+"px "+i+"px "+n+"px)"}else{if(/t2b/.test(e.clip)){f="rect(0px "+n+"px 0px 0px)"}else{if(/b2t/.test(e.clip)){f="rect("+i+"px "+n+"px "+i+"px 0px)"}else{if(/zoom/.test(e.clip)){var p=parseInt(i/2);var g=parseInt(n/2);f="rect("+p+"px "+g+"px "+p+"px "+g+"px)"}}}}}}e.cssBefore.clip=e.cssBefore.clip||f||"rect(0px 0px 0px 0px)";var j=e.cssBefore.clip.match(/(\d+)/g);var p=parseInt(j[0]),c=parseInt(j[1]),m=parseInt(j[2]),g=parseInt(j[3]);e.before.push(function(u,h,r){if(u==h){return}var d=a(u).css("zIndex",2);var b=a(h).css({zIndex:3,display:"block"});var q=1,l=parseInt((r.speedIn/13))-1;function t(){var w=p?p-parseInt(q*(p/l)):0;var x=g?g-parseInt(q*(g/l)):0;var y=m<i?m+parseInt(q*((i-m)/l||1)):i;var v=c<n?c+parseInt(q*((n-c)/l||1)):n;b.css({clip:"rect("+w+"px "+v+"px "+y+"px "+x+"px)"});(q++<=l)?setTimeout(t,13):d.css("display","none")}t()});e.cssAfter={};e.animIn={left:0};e.animOut={left:0}}})(jQuery);jQuery.extend({easing:{easein:function(e,f,a,h,g){return h*(f/=g)*f+a},easeinout:function(e,f,a,i,h){if(f<h/2){return 2*i*f*f/(h*h)+a}var g=f-h/2;return -2*i*g*g/(h*h)+2*i*g/h+i/2+a},easeout:function(e,f,a,h,g){return -h*f*f/(g*g)+2*h*f/g+a},expoin:function(e,f,a,i,h){var g=1;if(i<0){g*=-1;i*=-1}return g*(Math.exp(Math.log(i)/h*f))+a},expoout:function(e,f,a,i,h){var g=1;if(i<0){g*=-1;i*=-1}return g*(-Math.exp(-Math.log(i)/h*(f-h))+i+1)+a},expoinout:function(e,f,a,i,h){var g=1;if(i<0){g*=-1;i*=-1}if(f<h/2){return g*(Math.exp(Math.log(i/2)/(h/2)*f))+a}return g*(-Math.exp(-2*Math.log(i/2)/h*(f-h))+i+1)+a},bouncein:function(e,f,a,h,g){return h-jQuery.easing.bounceout(e,g-f,0,h,g)+a},bounceout:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},bounceinout:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.bouncein(e,f*2,0,h,g)*0.5+a}return jQuery.easing.bounceout(e,f*2-g,0,h,g)*0.5+h*0.5+a},elasin:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},elasout:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},elasinout:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},backin:function(e,f,a,i,h){var g=1.70158;return i*(f/=h)*f*((g+1)*f-g)+a},backout:function(e,f,a,i,h){var g=1.70158;return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},backinout:function(e,f,a,i,h){var g=1.70158;if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},linear:function(e,f,a,h,g){return h*f/g+a}}});(function(a){a.fn.addOption=function(){var e=function(k,n,q,m){var p=document.createElement("option");p.value=n,p.text=q;var j=k.options;var o=j.length;if(!k.cache){k.cache={};for(var l=0;l<o;l++){k.cache[j[l].value]=l}}if(typeof k.cache[n]=="undefined"){k.cache[n]=o}k.options[k.cache[n]]=p;if(m){p.selected=true}};var d=arguments;if(d.length==0){return this}var c=true;var b=false;var h,g,f;if(typeof(d[0])=="object"){b=true;h=d[0]}if(d.length>=2){if(typeof(d[1])=="boolean"){c=d[1]}else{if(typeof(d[2])=="boolean"){c=d[2]}}if(!b){g=d[0];f=d[1]}}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return}if(b){for(var i in h){e(this,i,h[i],c)}}else{e(this,g,f,c)}});return this};a.fn.ajaxAddOption=function(k,h,j,f,i){if(typeof(k)!="string"){return this}if(typeof(h)!="object"){h={}}if(typeof(j)!="boolean"){j=true}this.each(function(){var b=this;a.getJSON(k,h,function(c){a(b).addOption(c,j);if(typeof f=="function"){if(typeof i=="object"){f.apply(b,i)}else{f.call(b)}}})});return this};a.fn.removeOption=function(){var m=arguments;if(m.length==0){return this}var c=typeof(m[0]);var l,h;if(c=="string"||c=="object"||c=="function"){l=m[0];if(l.constructor==Array){var g=l.length;for(var f=0;f<g;f++){this.removeOption(l[f],m[1])}return this}}else{if(c=="number"){h=m[0]}else{return this}}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return}if(this.cache){this.cache=null}var b=false;var e=this.options;if(!!l){var i=e.length;for(var d=i-1;d>=0;d--){if(l.constructor==RegExp){if(e[d].value.match(l)){b=true}}else{if(e[d].value==l){b=true}}if(b&&m[1]===true){b=e[d].selected}if(b){e[d]=null}b=false}}else{if(m[1]===true){b=e[h].selected}else{b=true}if(b){this.remove(h)}}});return this};a.fn.sortOptions=function(d){var c=a(this).selectedValues();var b=typeof(d)=="undefined"?true:!!d;this.each(function(){if(this.nodeName.toLowerCase()!="select"){return}var i=this.options;var f=i.length;var h=[];for(var e=0;e<f;e++){h[e]={v:i[e].value,t:i[e].text}}h.sort(function(g,j){o1t=g.t.toLowerCase(),o2t=j.t.toLowerCase();if(o1t==o2t){return 0}if(b){return o1t<o2t?-1:1}else{return o1t>o2t?-1:1}});for(var e=0;e<f;e++){i[e].text=h[e].t;i[e].value=h[e].v}}).selectOptions(c,true);return this};a.fn.selectOptions=function(k,m){var c=k;var l=typeof(k);if(l=="object"&&c.constructor==Array){var h=this;a.each(c,function(){h.selectOptions(this,m)})}var f=m||false;if(l!="string"&&l!="function"&&l!="object"){return this}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return this}var b=this.options;var d=b.length;for(var e=0;e<d;e++){if(c.constructor==RegExp){if(b[e].value.match(c)){b[e].selected=true}else{if(f){b[e].selected=false}}}else{if(b[e].value==c){b[e].selected=true}else{if(f){b[e].selected=false}}}}});return this};a.fn.copyOptions=function(e,f){var c=f||"selected";if(a(e).size()==0){return this}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return this}var b=this.options;var d=b.length;for(var g=0;g<d;g++){if(c=="all"||(c=="selected"&&b[g].selected)){a(e).addOption(b[g].value,b[g].text)}}});return this};a.fn.containsOption=function(k,m){var c=false;var l=k;var h=typeof(l);var f=typeof(m);if(h!="string"&&h!="function"&&h!="object"){return f=="function"?this:c}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return this}if(c&&f!="function"){return false}var b=this.options;var d=b.length;for(var e=0;e<d;e++){if(l.constructor==RegExp){if(b[e].value.match(l)){c=true;if(f=="function"){m.call(b[e],e)}}}else{if(b[e].value==l){c=true;if(f=="function"){m.call(b[e],e)}}}}});return f=="function"?this:c};a.fn.selectedValues=function(){var b=[];this.selectedOptions().each(function(){b[b.length]=this.value});return b};a.fn.selectedTexts=function(){var b=[];this.selectedOptions().each(function(){b[b.length]=this.text});return b};a.fn.selectedOptions=function(){return this.find("option:selected")}})(jQuery);(function(a){a.fn.hoverAccordion=function(b){b=jQuery.extend({speed:"slow",activateitem:"true",active:"active",header:"header",hover:"hover",opened:"opened",closed:"closed",keepheight:"true"},b);var g=this;var f=window.location.href;var c=0;function e(k){if(a(k).html()==undefined){k=this}if(!g.is(":animated")){var j=a(k).parent().children("ul");var i=a(k).parent().parent().children("li").children("ul:visible");if(b.keepheight=="true"){thisheight=h}else{thisheight=j.height()}if(!j.is(":visible")){j.children().hide();j.animate({height:thisheight},{step:function(m,l){j.height(thisheight-m)},duration:b.speed}).children().show();i.animate({height:"hide"},{step:function(m,l){j.height(thisheight-m)},duration:b.speed}).children().hide();i.parent().children("a").addClass(b.closed).removeClass(b.opened);j.parent().children("a").addClass(b.opened).removeClass(b.closed)}}}var d=0;var h=0;a(this).children("li").each(function(){var k=a(this);d++;var j=k.children("a");if(j.length>0){j.hover(function(){a(this).addClass(b.hover)},function(){a(this).removeClass(b.hover)});var i=j.attr("href");if(i=="#"){j.click(function(){e(this);this.blur();return false})}else{if(b.activateitem=="true"&&f.indexOf(i)>0&&f.length-f.lastIndexOf(i)==i.length){j.parent().addClass(b.active)}}}var l=k.children("ul");if(l.length>0){if(h<l.height()){h=l.height()}l.children("li."+b.active).parent().parent().children("a").addClass(b.header);j.hover(function(){var m=this;c=setInterval(function(){e(m);clearInterval(c)},400)},function(){clearInterval(c)});if(b.activateitem=="true"){l.children("li").each(function(){var n=a(this).children("a").attr("href");if(n){if(f.indexOf(n)>0&&f.length-f.lastIndexOf(n)==n.length){a(this).addClass(b.active).parent().parent().children("a").addClass(b.opened)}}})}else{if(parseInt(b.activateitem)==d){k.addClass(b.active).children("a").addClass(b.opened)}}}l.not(a(this).parent().children("li."+b.active).children("ul")).not(l.children("li."+b.active).parent()).hide().parent().children("a").addClass(b.closed)});return this}})(jQuery);(function(a){a.fn.extend({getByteLength:function(d){var c,b=0;for(c=0;c<d.length;c++){if(escape(d.charAt(c)).length>=4){b+=2}else{b++}}return b}});a.fn.extend({getIndexByByte:function(e,b){var d,c=0;if(e!=null){for(d=0;d<e.length;d++){if(escape(e.charAt(d)).length>=4){c+=2}else{c++}if(c>b){return[true,d]}}}return false}});a.fn.extend({finalselect:function(f){var h={id:null,animalSpeed:100,selectWidth:"100px",selectImage:"images/button_land.gif",selectText:"Austria",zIndex:0,viewHeight:"355px",viewWidth:"150px",viewMouseoverColor:"#DDF2FE",viewTop:"20px",viewLeft:" -25px"};if(typeof(f)!="undefined"){jQuery.extend(h,f)}var g='<div id="'+h.id+'-select" style="cursor:hand;font-size:1.1em; font-weight: bold; z-index:'+h.zIndex+';border: solid 0px #BEC1C2; width: 100px; position: relative;">';g+='<div id="'+h.id+'-Text" style="background: url('+h.selectImage+") no-repeat 0 0; width: "+h.selectWidth+'; height: 21px; color: #464F54; padding: 0  0 0 23px;">';g+='<div class="textshow" style="padding: 3px 0 0 0;"><a href="#" class="customHovers">'+h.selectText+'</a></div><div class="valueshow" style="display:none;"></div></div><div id="'+h.id+'-selectshow" style="overflow-y:auto; overflow-x:hidden; height:'+h.viewHeight+";width:"+h.viewWidth+"; display:none; position: absolute; left:"+h.viewLeft+"; top:"+h.viewTop+'; z-index: 99999; border: solid 1px #BEC1C2; font-size: 1.1em; background: white;"></div></div>';var c=function(){a(this).html(g);e();d();i()};var e=function(){var j=a("#"+h.id+"-Text");a("#"+h.id+"-Text").bind("click",function(l){var k=a("#"+h.id+"-selectshow");if(k.css("display")=="none"){k.slideDown(h.animalSpeed,function(){k.show();k.css("overflow","auto");k.css("overflow-x","hidden")})}else{k.slideUp(h.animalSpeed,function(){k.hide()})}})};var b=function(){var k=0;while(a(".selectitem",a("#"+h.id+"-selectshow")).get(k)!=null){var j=a(".selectitem",a("#"+h.id+"-selectshow")).get(k);a(j).bind("mouseover",function(l){a(this).css("background-color",h.viewMouseoverColor)});a(j).bind("mouseout",function(l){a(this).css("background-color","#fff")});a(j).bind("click",function(n){var m=a(".thistext",a(this)).html();var l=a().getIndexByByte(m,16);if(l[0]==true){m=m.substring(0,l[1])+"..."}a(".textshow",a("#"+h.id+"-Text")).html(m);document.getElementById(h.id+"-selectshow").style.display="none";a(".valueshow",a("#"+h.id+"-Text")).html(a(".selectvalue",a(this)).html())});k++}};var d=function(){a("#"+h.id+"-Text").bind("mouseover",function(){if(a.browser.msie==false){a("#"+h.id+"-Text").css("background-position","0 -21px")}})};var i=function(){a("#"+h.id+"-Text").bind("mouseout",function(){if(a.browser.msie==false){a("#"+h.id+"-Text").css("background-position","0 0px")}})};this.setViewTop=function(j){a("#"+h.id+"-selectshow").css("top",j+"px")};this.setViewLeft=function(j){a("#"+h.id+"-selectshow").css("left",j+"px")};this.getLength=function(){return a(".selectitem",a("#"+h.id+"-selectshow")).length};this.addItem=function(l,k){var j='<div class="selectitem"><div class="selecttext">'+l+'</div><div class="selectvalue" style=" display:none;">'+k+'</div></div><div class="selectborder"><div>';a("#"+h.id+"-selectshow").html(a("#"+h.id+"-selectshow").html()+j);b()};this.removeItem=function(j){if(a(".selectitem",a("#"+h.id+"-selectshow")).length>j){a(a(".selectitem",a("#"+h.id+"-selectshow")).get(j)).remove()}if(a(".selectborder",a("#"+h.id+"-selectshow")).length>j){a(a(".selectborder",a("#"+h.id+"-selectshow")).get(j)).remove()}};this.getValue=function(){return a(".valueshow",a("#"+h.id+"-Text")).html()};this.getText=function(){return a(".textshow",a("#"+h.id+"-Text")).html()};return this.each(c)}})})(jQuery);function agentLogin(){var a=document.agent_frm;if(a.login.value==""){document.getElementById("login").className="txt-login txt-login-error";document.getElementById("logerror").style.display="block"}else{document.getElementById("login").className="txt-login";document.getElementById("logerror").style.display="none"}}function openFaq(){window.open("FAQ_Overview.html","faq","width=626, height=610, scrollbars=1, resizable=0")}function myClick(myBtn){if($jq(myBtn).attr("href")!=null&&$jq(myBtn).attr("href").indexOf("__doPostBack")>-1&&$jq(myBtn).attr("href").indexOf("btnSearch")==-1){__doPostBack($jq(myBtn).attr("id").replace("_","$"),"")}else{if($jq(myBtn).attr("href")!=null&&$jq(myBtn).attr("href").indexOf("__doPostBack")>-1&&$jq(myBtn).attr("href").indexOf("btnSearch")!=-1){__doPostBack($jq(myBtn).attr("id").replace("0_","0$"),"")}else{if($jq(myBtn).attr("href")!=null&&$jq(myBtn).attr("href").indexOf("_DoPostBackWithOptions")>-1){eval($jq(myBtn).attr("href"))}else{$jq(myBtn).click()}}}}function fnTrapKD1(a,b){a=(a)?a:event;var c=a.keyCode;if(c==13){a.returnValue=false;a.cancel=true;myClick(b)}}var austrian={};(function(b){var a=function(d,h,i,g){i=(!i)?h:i;g=(!g)?false:g;if(b.browser.msie){var j=d.options.length;var f=new Option(i,h);d.options[j]=f;if(g){d.selectedIndex=j}}else{var e=document.createElement("option");e.value=h;e.text=i;e.selected=g;d.appendChild(e)}};var c=function(f,u){try{var m=f.obj;var h=f.val;var d=f.cal;var k=null;if(typeof(u)=="number"){k=new Date(u);k.setHours(0);k.setMinutes(0);k.setSeconds(0);k.setMilliseconds(0)}else{if(typeof(u)=="string"){u=new Date(u);k=new Date(u.getFullYear(),u.getMonth(),u.getDate(),0,0,0);k.setMilliseconds(0)}else{k=new Date(u.getFullYear(),u.getMonth(),u.getDate(),0,0,0);k.setMilliseconds(0)}}m.day.children("option").remove();var g=new Date(k.getFullYear(),k.getMonth(),1,0,0,0);g.setMilliseconds(0);var t=g.getMonth();var p=new Date(austrian.today);p.setHours(0);p.setMinutes(0);p.setSeconds(0);p.setMilliseconds(0);var q=new Date(austrian.end);q.setHours(0);q.setMinutes(0);q.setSeconds(0);q.setMilliseconds(0);if(austrian.isBookingLogic){g.setDate(1);for(var l=0;l<31;l++){a(m.day.get(0),g.getTime(),(""+g.getDate()+" "+g.getDayName(true)+""));g=g.addDays(1)}}else{while(g.getMonth()==t){if((p>q&&g<=p&&g>=q)||(p<q&&g>=p&&g<=q)){a(m.day.get(0),g.getTime(),(""+g.getDate()+" "+g.getDayName(true)+""))}g=g.addDays(1)}}m.day.children("option[value='']").remove();m.day.val(k.getTime());m.month.children("option").remove();p.setDate(1);q.setDate(1);var j=(p<q)?p:q;var n=(p<q)?q:p;g=new Date(j);g.setHours(0);g.setMinutes(0);g.setSeconds(0);while(g<=n){if((new Date(k.getFullYear(),k.getMonth(),1,0,0,0)).getTime()==g.getTime()){a(m.month.get(0),g.getTime(),(""+g.getMonthName(true)+" "+g.getFullYear()+""),true)}else{a(m.month.get(0),g.getTime(),(""+g.getMonthName(true)+" "+g.getFullYear()+""),false)}g.addMonths(1)}m.month.children("option[value='']").remove();try{d.dpSetSelected(k.addDays(0).asString())}catch(r){}try{h.day.val(k.getDate());h.month.val(k.getMonth()+1);h.year.val(k.getFullYear())}catch(r){}}catch(r){}};austrian.lastValidDate={};austrian.lastValidDate.from=null;austrian.lastValidDate.to=null;austrian.lastValidDate.bounds={};austrian.lastValidDate.bounds.from=null;austrian.lastValidDate.bounds.to=null;austrian.dateRange={};austrian.dateRange.from=null;austrian.dateRange.to=null;austrian.dateRange.selectedDate=null;austrian.isBookingLogic=false;austrian.data={};austrian.datePicker=function(h){austrian.isBookingLogic=(jQuery(".start .intro-box,.main-bg .middle-column .seo-booking").length==1);austrian.data=h;austrian.today=new Date();austrian.end=new Date();austrian.end.addDays(360);austrian.selectedDate=austrian.today;if(h.format){Date.format=h.format}var e=null;if(h.from){e=h.from.offset||[25,-140]}else{e=[25,-140]}var d=null;if(h.to){d=h.to.offset||[25,-140]}else{d=[25,-140]}if(austrian.data.dateRange){if(austrian.data.dateRange.from){austrian.today=austrian.data.dateRange.from}if(austrian.data.dateRange.to){austrian.end=austrian.data.dateRange.to}if(austrian.data.dateRange.selectedDate){austrian.selectedDate=austrian.data.dateRange.selectedDate}}if(h.from&&h.from.cal){var g=h.from.cal.datePicker({createButton:false,selectMultiple:false,startDate:austrian.today.asString(),endDate:austrian.end.asString(),renderCallback:function(k,i,l,j){if(i.isWeekend()){k.addClass("weekend")}}});h.from.dpt=g;if(h.from.obj&&h.from.obj.day&&h.from.obj.month&&h.from.obj.year){g.bind("click",function(){b(this).dpDisplay();return false}).bind("dateSelected",function(k,i,l,j){h.from.obj.day.change();austrian.setFromDate(i)}).bind("dpClosed",function(j,i){h.from.obj.day.change();austrian.setFromDate(i[0])}).dpSetOffset(e[0],e[1]);h.from.obj.day.change(function(){var i=new Date(h.from.obj.day.val()*1);var k=new Date(i.getFullYear(),i.getMonth(),i.getDate(),0,0,0);austrian.setFromDate(k);if(austrian.isBookingLogic){fromDate=new Date(h.from.obj.day.val()*1);var j=new Date();if(fromDate.getTime()<j.getTime()){k=k.addMonths(1);austrian.setFromDate(k)}toDate=new Date(h.to.obj.day.val()*1);if(k.getTime()>toDate.getTime()){austrian.setToDate(k)}}else{if(h.to){toDate=new Date(h.to.obj.day.val()*1);if(k.getTime()>toDate.getTime()){austrian.setToDate(k)}}}});h.from.obj.month.change(function(){var l=new Date(h.from.obj.month.val()*1);var i=new Date(h.from.obj.day.val()*1);var k=new Date(l.getFullYear(),l.getMonth(),i.getDate(),0,0,0);austrian.setFromDate(k);if(austrian.isBookingLogic){fromDate=new Date(h.from.obj.day.val()*1);var j=new Date();j.setHours(0);j.setMinutes(0);j.setSeconds(0);j.setMilliseconds(0);if(fromDate.getTime()<j.getTime()){austrian.setFromDate(j)}toDate=new Date(h.to.obj.day.val()*1);if(k.getTime()>toDate.getTime()){austrian.setToDate(k)}}else{if(h.to){toDate=new Date(h.to.obj.day.val()*1);if(k.getTime()>toDate.getTime()){austrian.setToDate(k)}}}});c(h.from,austrian.today)}else{g.bind("click",function(){b(this).dpDisplay();return false}).bind("dateSelected",function(k,i,l,j){h.from.cal.change()}).bind("dpClosed",function(j,i){h.from.cal.change()}).dpSetOffset(e[0],e[1]);h.from.cal.val(austrian.today.asString())}austrian.setFromDate(austrian.selectedDate)}if(h.to&&h.to.cal){var f=h.to.cal.datePicker({createButton:false,selectMultiple:false,startDate:austrian.today.asString(),endDate:austrian.end.asString(),renderCallback:function(k,i,l,j){if(i.isWeekend()){k.addClass("weekend")}}});h.to.dpt=f;if(h.to.obj&&h.to.obj.day&&h.to.obj.month&&h.to.obj.year){f.bind("click",function(){b(this).dpDisplay();return false}).bind("dateSelected",function(k,i,l,j){h.to.obj.day.change();austrian.setToDate(i)}).bind("dpClosed",function(j,i){h.to.obj.day.change();austrian.setToDate(i[0])}).dpSetOffset(d[0],d[1]);h.to.obj.day.change(function(){var i=new Date(h.to.obj.day.val()*1);var j=new Date(i.getFullYear(),i.getMonth(),i.getDate(),0,0,0);austrian.setToDate(j);if(austrian.isBookingLogic){toDate=new Date(h.to.obj.day.val()*1);if(toDate.getTime()<j.getTime()){j.addMonths(1);austrian.setToDate(j)}fromDate=new Date(h.from.obj.day.val()*1);if(j.getTime()<fromDate.getTime()){j.addMonths(1);austrian.setToDate(j)}}else{if(h.from){fromDate=new Date(h.from.obj.day.val()*1);if(j.getTime()<fromDate.getTime()){austrian.setFromDate(j)}}}});h.to.obj.month.change(function(){var k=new Date(h.to.obj.month.val()*1);var i=new Date(h.to.obj.day.val()*1);var j=new Date(k.getFullYear(),k.getMonth(),i.getDate(),0,0,0);austrian.setToDate(j);if(austrian.isBookingLogic){fromDate=new Date(h.from.obj.day.val()*1);if(j.getTime()<fromDate.getTime()){austrian.setToDate(fromDate)}toDate=new Date(h.to.obj.day.val()*1);if(j.getTime()>toDate.getTime()){austrian.setToDate(j)}}else{if(h.from){fromDate=new Date(h.from.obj.day.val()*1);if(j.getTime()<fromDate.getTime()){austrian.setFromDate(j)}}}});c(h.to,austrian.today)}else{f.bind("click",function(){b(this).dpDisplay();return false}).bind("dateSelected",function(k,i,l,j){h.from.cal.change()}).bind("dpClosed",function(j,i){h.from.cal.change()}).dpSetOffset(d[0],d[1]);h.to.cal.val(austrian.today.asString())}austrian.setToDate(austrian.selectedDate)}};austrian.setFromDate=function(d,f){if(!f){f=austrian.data}if(f.from.cal.val()!=(new Date(d)).asString()){f.from.cal.val(new Date(d).asString());austrian.lastValidDate.from=f.from.cal.val();try{c(f.from,d)}catch(g){}if(austrian.isBookingLogic){f.to.cal.dpSetStartDate(d.asString())}}};austrian.setToDate=function(d,f){if(!f){f=austrian.data}if(f.to.cal.val()!=(new Date(d)).asString()){f.to.cal.val(new Date(d).asString());austrian.lastValidDate.to=f.to.cal.val();try{c(f.to,d)}catch(g){}}};austrian.setFromStartDate=function(d,e){if(!e){e=austrian.data}e.from.cal.dpSetStartDate(new Date(d).asString())};austrian.setToStartDate=function(d,e){if(!e){e=austrian.data}e.to.cal.dpSetStartDate(new Date(d).asString())};austrian.setFromEndDate=function(d,e){if(!e){e=austrian.data}e.from.cal.dpSetEndDate(new Date(d).asString())};austrian.setToEndDate=function(d,e){if(!e){e=austrian.data}e.to.cal.dpSetEndDate(new Date(d).asString())}})(jQuery);if(jQuery){(function(m){try{m.os={};m.os.windows=(navigator.platform.indexOf("Win")!=-1);m.os.mac=(navigator.platform.indexOf("Mac")!=-1);m.os.iphone=(navigator.userAgent.indexOf("iPhone")!=-1);m.os.linux=(navigator.platform.indexOf("Linux")!=-1);m.browser.chrome=/chrome/.test(navigator.userAgent.toLowerCase());m.browser.firefox=(m.browser.mozilla&&navigator.userAgent.match(/Firefox\/([0-9|\.]+)/).length>0)}catch(g){}var f="";var b="";var h=0;var k=0;for(var d in m.browser){if(m.browser[d]&&d!="version"){f=d}}for(var c in m.os){if(m.os[c]){b=c}}try{h=parseFloat(navigator.userAgent.match(/Firefox\/([0-9|\.]+)/)[1])}catch(g){try{if(m.browser.safari){if(navigator.userAgent.indexOf("Version")>-1){h=parseFloat(navigator.userAgent.match(/Version\/([0-9|\.]+)/)[1])}else{h=parseFloat(navigator.userAgent.match(/AppleWebKit\/([0-9|\.]+)/)[1]);if(h<400){h=2}else{if(h<500){h=3}else{if(h<600){h=4}}}}}else{h=parseFloat(m.browser.version)}}catch(g){}}k=parseInt(h,10);var l=k.toString().replace(/\./,"_");var a=h.toString().replace(/\./,"_");m("html").addClass([f,b,[b,f].join("_"),[f,l].join("_"),[f,a].join("_"),[b,f,l].join("_"),[b,f,a].join("_")].join(" "))})(jQuery)}jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};jQuery.fn.browserHeight=function(){var b,a;if($jq.browser.msie&&$jq.browser.version<7){b=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);a=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(b<a){return $jq(window).height()+"px"}else{return b+"px"}}else{return $jq(document).height()+"px"}};jQuery.fn.browserWidth=function(){var a,b;if($jq.browser.msie&&$jq.browser.version<7){a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);b=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(a<b){return $jq(window).width()+"px"}else{return a+"px"}}else{return $jq(document).width()+"px"}};if(jQuery.os.windows&&jQuery.browser.safari){jQuery(document).ready(function(){var a=1;$jq("#countries_msdd").mousedown(function(){if($jq(this).find("#countries_child").is(":visible")){$jq(".stageholder").css({"z-index":a})}else{a=$jq(".intro-box .stageholder").css("z-index");$jq(".stageholder").css({"z-index":-1})}})})};
/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
var swfobject = function() { var D = "undefined", r = "object", S = "Shockwave Flash", W = "ShockwaveFlash.ShockwaveFlash", q = "application/x-shockwave-flash", R = "SWFObjectExprInst", x = "onreadystatechange", O = window, j = document, t = navigator, T = false, U = [h], o = [], N = [], I = [], l, Q, E, B, J = false, a = false, n, G, m = true, M = function() { var aa = typeof j.getElementById != D && typeof j.getElementsByTagName != D && typeof j.createElement != D, ah = t.userAgent.toLowerCase(), Y = t.platform.toLowerCase(), ae = Y ? /win/.test(Y) : /win/.test(ah), ac = Y ? /mac/.test(Y) : /mac/.test(ah), af = /webkit/.test(ah) ? parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, X = ! +"\v1", ag = [0, 0, 0], ab = null; if (typeof t.plugins != D && typeof t.plugins[S] == r) { ab = t.plugins[S].description; if (ab && !(typeof t.mimeTypes != D && t.mimeTypes[q] && !t.mimeTypes[q].enabledPlugin)) { T = true; X = false; ab = ab.replace(/^.*\s+(\S+\s+\S+$)/, "$1"); ag[0] = parseInt(ab.replace(/^(.*)\..*$/, "$1"), 10); ag[1] = parseInt(ab.replace(/^.*\.(.*)\s.*$/, "$1"), 10); ag[2] = /[a-zA-Z]/.test(ab) ? parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0 } } else { if (typeof O.ActiveXObject != D) { try { var ad = new ActiveXObject(W); if (ad) { ab = ad.GetVariable("$version"); if (ab) { X = true; ab = ab.split(" ")[1].split(","); ag = [parseInt(ab[0], 10), parseInt(ab[1], 10), parseInt(ab[2], 10)] } } } catch (Z) { } } } return { w3: aa, pv: ag, wk: af, ie: X, win: ae, mac: ac} } (), k = function() { if (!M.w3) { return } if ((typeof j.readyState != D && j.readyState == "complete") || (typeof j.readyState == D && (j.getElementsByTagName("body")[0] || j.body))) { f() } if (!J) { if (typeof j.addEventListener != D) { j.addEventListener("DOMContentLoaded", f, false) } if (M.ie && M.win) { j.attachEvent(x, function() { if (j.readyState == "complete") { j.detachEvent(x, arguments.callee); f() } }); if (O == top) { (function() { if (J) { return } try { j.documentElement.doScroll("left") } catch (X) { setTimeout(arguments.callee, 0); return } f() })() } } if (M.wk) { (function() { if (J) { return } if (!/loaded|complete/.test(j.readyState)) { setTimeout(arguments.callee, 0); return } f() })() } s(f) } } (); function f() { if (J) { return } try { var Z = j.getElementsByTagName("body")[0].appendChild(C("span")); Z.parentNode.removeChild(Z) } catch (aa) { return } J = true; var X = U.length; for (var Y = 0; Y < X; Y++) { U[Y]() } } function K(X) { if (J) { X() } else { U[U.length] = X } } function s(Y) { if (typeof O.addEventListener != D) { O.addEventListener("load", Y, false) } else { if (typeof j.addEventListener != D) { j.addEventListener("load", Y, false) } else { if (typeof O.attachEvent != D) { i(O, "onload", Y) } else { if (typeof O.onload == "function") { var X = O.onload; O.onload = function() { X(); Y() } } else { O.onload = Y } } } } } function h() { if (T) { V() } else { H() } } function V() { var X = j.getElementsByTagName("body")[0]; var aa = C(r); aa.setAttribute("type", q); var Z = X.appendChild(aa); if (Z) { var Y = 0; (function() { if (typeof Z.GetVariable != D) { var ab = Z.GetVariable("$version"); if (ab) { ab = ab.split(" ")[1].split(","); M.pv = [parseInt(ab[0], 10), parseInt(ab[1], 10), parseInt(ab[2], 10)] } } else { if (Y < 10) { Y++; setTimeout(arguments.callee, 10); return } } X.removeChild(aa); Z = null; H() })() } else { H() } } function H() { var ag = o.length; if (ag > 0) { for (var af = 0; af < ag; af++) { var Y = o[af].id; var ab = o[af].callbackFn; var aa = { success: false, id: Y }; if (M.pv[0] > 0) { var ae = c(Y); if (ae) { if (F(o[af].swfVersion) && !(M.wk && M.wk < 312)) { w(Y, true); if (ab) { aa.success = true; aa.ref = z(Y); ab(aa) } } else { if (o[af].expressInstall && A()) { var ai = {}; ai.data = o[af].expressInstall; ai.width = ae.getAttribute("width") || "0"; ai.height = ae.getAttribute("height") || "0"; if (ae.getAttribute("class")) { ai.styleclass = ae.getAttribute("class") } if (ae.getAttribute("align")) { ai.align = ae.getAttribute("align") } var ah = {}; var X = ae.getElementsByTagName("param"); var ac = X.length; for (var ad = 0; ad < ac; ad++) { if (X[ad].getAttribute("name").toLowerCase() != "movie") { ah[X[ad].getAttribute("name")] = X[ad].getAttribute("value") } } P(ai, ah, Y, ab) } else { p(ae); if (ab) { ab(aa) } } } } } else { w(Y, true); if (ab) { var Z = z(Y); if (Z && typeof Z.SetVariable != D) { aa.success = true; aa.ref = Z } ab(aa) } } } } } function z(aa) { var X = null; var Y = c(aa); if (Y && Y.nodeName == "OBJECT") { if (typeof Y.SetVariable != D) { X = Y } else { var Z = Y.getElementsByTagName(r)[0]; if (Z) { X = Z } } } return X } function A() { return !a && F("6.0.65") && (M.win || M.mac) && !(M.wk && M.wk < 312) } function P(aa, ab, X, Z) { a = true; E = Z || null; B = { success: false, id: X }; var ae = c(X); if (ae) { if (ae.nodeName == "OBJECT") { l = g(ae); Q = null } else { l = ae; Q = X } aa.id = R; if (typeof aa.width == D || (!/%$/.test(aa.width) && parseInt(aa.width, 10) < 310)) { aa.width = "310" } if (typeof aa.height == D || (!/%$/.test(aa.height) && parseInt(aa.height, 10) < 137)) { aa.height = "137" } j.title = j.title.slice(0, 47) + " - Flash Player Installation"; var ad = M.ie && M.win ? "ActiveX" : "PlugIn", ac = "MMredirectURL=" + O.location.toString().replace(/&/g, "%26") + "&MMplayerType=" + ad + "&MMdoctitle=" + j.title; if (typeof ab.flashvars != D) { ab.flashvars += "&" + ac } else { ab.flashvars = ac } if (M.ie && M.win && ae.readyState != 4) { var Y = C("div"); X += "SWFObjectNew"; Y.setAttribute("id", X); ae.parentNode.insertBefore(Y, ae); ae.style.display = "none"; (function() { if (ae.readyState == 4) { ae.parentNode.removeChild(ae) } else { setTimeout(arguments.callee, 10) } })() } u(aa, ab, X) } } function p(Y) { if (M.ie && M.win && Y.readyState != 4) { var X = C("div"); Y.parentNode.insertBefore(X, Y); X.parentNode.replaceChild(g(Y), X); Y.style.display = "none"; (function() { if (Y.readyState == 4) { Y.parentNode.removeChild(Y) } else { setTimeout(arguments.callee, 10) } })() } else { Y.parentNode.replaceChild(g(Y), Y) } } function g(ab) { var aa = C("div"); if (M.win && M.ie) { aa.innerHTML = ab.innerHTML } else { var Y = ab.getElementsByTagName(r)[0]; if (Y) { var ad = Y.childNodes; if (ad) { var X = ad.length; for (var Z = 0; Z < X; Z++) { if (!(ad[Z].nodeType == 1 && ad[Z].nodeName == "PARAM") && !(ad[Z].nodeType == 8)) { aa.appendChild(ad[Z].cloneNode(true)) } } } } } return aa } function u(ai, ag, Y) { var X, aa = c(Y); if (M.wk && M.wk < 312) { return X } if (aa) { if (typeof ai.id == D) { ai.id = Y } if (M.ie && M.win) { var ah = ""; for (var ae in ai) { if (ai[ae] != Object.prototype[ae]) { if (ae.toLowerCase() == "data") { ag.movie = ai[ae] } else { if (ae.toLowerCase() == "styleclass") { ah += ' class="' + ai[ae] + '"' } else { if (ae.toLowerCase() != "classid") { ah += " " + ae + '="' + ai[ae] + '"' } } } } } var af = ""; for (var ad in ag) { if (ag[ad] != Object.prototype[ad]) { af += '<param name="' + ad + '" value="' + ag[ad] + '" />' } } aa.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + ah + ">" + af + "</object>"; N[N.length] = ai.id; X = c(ai.id) } else { var Z = C(r); Z.setAttribute("type", q); for (var ac in ai) { if (ai[ac] != Object.prototype[ac]) { if (ac.toLowerCase() == "styleclass") { Z.setAttribute("class", ai[ac]) } else { if (ac.toLowerCase() != "classid") { Z.setAttribute(ac, ai[ac]) } } } } for (var ab in ag) { if (ag[ab] != Object.prototype[ab] && ab.toLowerCase() != "movie") { e(Z, ab, ag[ab]) } } aa.parentNode.replaceChild(Z, aa); X = Z } } return X } function e(Z, X, Y) { var aa = C("param"); aa.setAttribute("name", X); aa.setAttribute("value", Y); Z.appendChild(aa) } function y(Y) { var X = c(Y); if (X && X.nodeName == "OBJECT") { if (M.ie && M.win) { X.style.display = "none"; (function() { if (X.readyState == 4) { b(Y) } else { setTimeout(arguments.callee, 10) } })() } else { X.parentNode.removeChild(X) } } } function b(Z) { var Y = c(Z); if (Y) { for (var X in Y) { if (typeof Y[X] == "function") { Y[X] = null } } Y.parentNode.removeChild(Y) } } function c(Z) { var X = null; try { X = j.getElementById(Z) } catch (Y) { } return X } function C(X) { return j.createElement(X) } function i(Z, X, Y) { Z.attachEvent(X, Y); I[I.length] = [Z, X, Y] } function F(Z) { var Y = M.pv, X = Z.split("."); X[0] = parseInt(X[0], 10); X[1] = parseInt(X[1], 10) || 0; X[2] = parseInt(X[2], 10) || 0; return (Y[0] > X[0] || (Y[0] == X[0] && Y[1] > X[1]) || (Y[0] == X[0] && Y[1] == X[1] && Y[2] >= X[2])) ? true : false } function v(ac, Y, ad, ab) { if (M.ie && M.mac) { return } var aa = j.getElementsByTagName("head")[0]; if (!aa) { return } var X = (ad && typeof ad == "string") ? ad : "screen"; if (ab) { n = null; G = null } if (!n || G != X) { var Z = C("style"); Z.setAttribute("type", "text/css"); Z.setAttribute("media", X); n = aa.appendChild(Z); if (M.ie && M.win && typeof j.styleSheets != D && j.styleSheets.length > 0) { n = j.styleSheets[j.styleSheets.length - 1] } G = X } if (M.ie && M.win) { if (n && typeof n.addRule == r) { n.addRule(ac, Y) } } else { if (n && typeof j.createTextNode != D) { n.appendChild(j.createTextNode(ac + " {" + Y + "}")) } } } function w(Z, X) { if (!m) { return } var Y = X ? "visible" : "hidden"; if (J && c(Z)) { c(Z).style.visibility = Y } else { v("#" + Z, "visibility:" + Y) } } function L(Y) { var Z = /[\\\"<>\.;]/; var X = Z.exec(Y) != null; return X && typeof encodeURIComponent != D ? encodeURIComponent(Y) : Y } var d = function() { if (M.ie && M.win) { window.attachEvent("onunload", function() { var ac = I.length; for (var ab = 0; ab < ac; ab++) { I[ab][0].detachEvent(I[ab][1], I[ab][2]) } var Z = N.length; for (var aa = 0; aa < Z; aa++) { y(N[aa]) } for (var Y in M) { M[Y] = null } M = null; for (var X in swfobject) { swfobject[X] = null } swfobject = null }) } } (); return { registerObject: function(ab, X, aa, Z) { if (M.w3 && ab && X) { var Y = {}; Y.id = ab; Y.swfVersion = X; Y.expressInstall = aa; Y.callbackFn = Z; o[o.length] = Y; w(ab, false) } else { if (Z) { Z({ success: false, id: ab }) } } }, getObjectById: function(X) { if (M.w3) { return z(X) } }, embedSWF: function(ab, ah, ae, ag, Y, aa, Z, ad, af, ac) { var X = { success: false, id: ah }; if (M.w3 && !(M.wk && M.wk < 312) && ab && ah && ae && ag && Y) { w(ah, false); K(function() { ae += ""; ag += ""; var aj = {}; if (af && typeof af === r) { for (var al in af) { aj[al] = af[al] } } aj.data = ab; aj.width = ae; aj.height = ag; var am = {}; if (ad && typeof ad === r) { for (var ak in ad) { am[ak] = ad[ak] } } if (Z && typeof Z === r) { for (var ai in Z) { if (typeof am.flashvars != D) { am.flashvars += "&" + ai + "=" + Z[ai] } else { am.flashvars = ai + "=" + Z[ai] } } } if (F(Y)) { var an = u(aj, am, ah); if (aj.id == ah) { w(ah, true) } X.success = true; X.ref = an } else { if (aa && A()) { aj.data = aa; P(aj, am, ah, ac); return } else { w(ah, true) } } if (ac) { ac(X) } }) } else { if (ac) { ac(X) } } }, switchOffAutoHideShow: function() { m = false }, ua: M, getFlashPlayerVersion: function() { return { major: M.pv[0], minor: M.pv[1], release: M.pv[2]} }, hasFlashPlayerVersion: F, createSWF: function(Z, Y, X) { if (M.w3) { return u(Z, Y, X) } else { return undefined } }, showExpressInstall: function(Z, aa, X, Y) { if (M.w3 && A()) { P(Z, aa, X, Y) } }, removeSWF: function(X) { if (M.w3) { y(X) } }, createCSS: function(aa, Z, Y, X) { if (M.w3) { v(aa, Z, Y, X) } }, addDomLoadEvent: K, addLoadEvent: s, getQueryParamValue: function(aa) { var Z = j.location.search || j.location.hash; if (Z) { if (/\?/.test(Z)) { Z = Z.split("?")[1] } if (aa == null) { return L(Z) } var Y = Z.split("&"); for (var X = 0; X < Y.length; X++) { if (Y[X].substring(0, Y[X].indexOf("=")) == aa) { return L(Y[X].substring((Y[X].indexOf("=") + 1))) } } } return "" }, expressInstallCallback: function() { if (a) { var X = c(R); if (X && l) { X.parentNode.replaceChild(l, X); if (Q) { w(Q, true); if (M.ie && M.win) { l.style.display = "block" } } if (E) { E(B) } } a = false } } } } ();
