
		var browserName = navigator.appName;
		var browserVer = parseInt(navigator.appVersion);
		var version = "";
		var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
		if ((browserName == "Netscape" && browserVer >= 3) || msie4 || browserName=="Konqueror" || browserName=="Opera") {version = "n3";} else {version = "n2";}
			// Blurring links:
		function blurLink(theObject)	{	//
			if (msie4)	{theObject.blur();}
		}
		
			// decrypt helper function
		function decryptCharcode(n,start,end,offset)	{
			n = n + offset;
			if (offset > 0 && n > end)	{
				n = start + (n - end - 1);
			} else if (offset < 0 && n < start)	{
				n = end - (start - n - 1);
			}
			return String.fromCharCode(n);
		}
			// decrypt string
		function decryptString(enc,offset)	{
			var dec = "";
			var len = enc.length;
			for(var i=0; i < len; i++)	{
				var n = enc.charCodeAt(i);
				if (n >= 0x2B && n <= 0x3A)	{
					dec += decryptCharcode(n,0x2B,0x3A,offset);	// 0-9 . , - + / :
				} else if (n >= 0x40 && n <= 0x5A)	{
					dec += decryptCharcode(n,0x40,0x5A,offset);	// A-Z @
				} else if (n >= 0x61 && n <= 0x7A)	{
					dec += decryptCharcode(n,0x61,0x7A,offset);	// a-z
				} else {
					dec += enc.charAt(i);
				}
			}
			return dec;
		}
			// decrypt spam-protected emails
		function linkTo_UnCryptMailto(s)	{
			location.href = decryptString(s,-1);
		}
		
// PLUGINS:

/**
 *	jQuery.starter
 *	Funktionen fuer das Starter Pack
 * 	Version 1.1
 */

(function($) {
	$.fn.extend({
		numExp: function(num){
			return parseInt(/\d+/.exec(num))
		},
		numDim: function(dim){
			if($.isArray(dim)){dim[0]=$().numExp(dim[0]);dim[1]=$().numExp(dim[1])}
			else{dim=$().numExp(dim)}
			return dim
		},
		sizeSB: function(source){
			var s=source.split('/').pop().split('.').shift().split('x'),h=s.pop(),w=s.pop();
			return $().numDim([w,h])
		},
		msgReplace: function(string,val){
			var type=typeof(val);
			if(type=='number'||type=='string'){return string.replace(/\{(\d+)\}/g,val)}
			else{return string.replace(/\{(\d+)\}/g,function(m,n){return val[n]})}
		},
		copyVal: function(target){
			return this.each(function(){
				$(this).keyup(function(){if($('#'+target+'.copy').length){$('#'+target).val($(this).val())}});
				$('#'+target).keyup(function(){$(this).removeClass('copy')})
			})
		},
		msie: function(){
			if($.browser.msie){
				var explorer=parseInt($.browser.version),html=$('html').get(0);
				if(explorer<7){explorer=6}
				html.addClass('ie'+explorer);
				$.data(html,'explorer',explorer)
			}
		},
		delayer: function(time,callback){
			return this.each(function(){
				$(this).animate({opacity:'+=0'},time,callback);
			})
		},
		navigation: function(options){
			var opt = $.extend({},$.fn.navigation.def,options);
			return this.each(function(){
				var o=$.metadata?$.extend({},opt,$(this).metadata()):opt,$$=$(this);
				$$.inOut(
					function(){$$.data('act',true)},function(){$$.data('act',false)}
				).find('li').inOut(
					function(){
						$(this).addClass(o.klasse).stop().data('out',false)
					},function(){
						$(this).data('out',true).delayer(1,function(){
							if($$.data('act')){
								$(this).removeClass(o.klasse)
							}else{
								$(this).delayer(o.delay,function(){
									if($(this).data('out')){$(this).removeClass(o.klasse)}
								})
							}
						})
					}
				)
			})
		},
		searchbox: function(options){
			var opt = $.extend({},$.fn.searchbox.def,options);
			return this.each(function(){
				var o=$.metadata?$.extend({},opt,$(this).metadata()):opt;
				$(this).removeClass(o.klasse).inOut(function(){if(this.value==o.word){$(this).val('')}$(this).addClass(o.klasse)},function(){if(this.value==''){$(this).val(o.word)}$(this).removeClass(o.klasse)},{useEventTypes:'focus'}).val(o.word)
			})
		},
		inOutClass: function(options){
			var opt = $.extend({},$.fn.inOutClass.def,options);
			return this.each(function(){
				var o=$.metadata?$.extend({},opt,$(this).metadata()):opt;
				$(this).removeClass(o.klasse).inOut(function(){$(this).addClass(o.klasse)},function(){$(this).removeClass(o.klasse)},{useEventTypes:o.eventType})
			})
		},
		fokus: function(options){
			var opt = $.extend({},$.fn.fokus.def,options);
			return this.each(function(){$(this).inOutClass(opt)})
		},
		over: function(options){
			var opt = $.extend({},$.fn.fokus.def,options);
			return this.each(function(){$(this).inOutClass(opt)})
		}
	});
	$.fn.navigation.def={klasse:'hover',delay:500}
	$.fn.searchbox.def={klasse:'focus',word:'suchen'}
	$.fn.inOutClass.def={klasse:'hover',eventType:'both'}
	$.fn.fokus.def={klasse:'focus',eventType:'focus'}
	$.fn.over.def={klasse:'hover',eventType:'mouse'}
})(jQuery);
/**
 * jQuery inOut
 */
(function($){$.each({focus:'focusin',blur:'focusout'},function(original,fix){$.event.special[fix]={setup:function(){if($.browser.msie)return false;this.addEventListener(original,$.event.special[fix].handler,true)},teardown:function(){if($.browser.msie)return false;this.removeEventListener(original,$.event.special[fix].handler,true)},handler:function(e){arguments[0]=$.event.fix(e);arguments[0].type=fix;return $.event.handle.apply(this,arguments)}}});var handler={};$.each({enter:[1,'in',true],out:[-1,'out',false]},function(handle,params){handler[handle]=function(e){var fn=e.data[0],o=e.data[1],inOutData=e.data[2],elem=this;clearTimeout(inOutData.inOutTimer);inOutData.inEvents=Math.max(inOutData.inEvents+params[0],0);inOutData.inOutTimer=setTimeout(function(){if(params[2]!=inOutData.inOutState&&(params[2]||!o.bothOut||!inOutData.inEvents)){inOutData.inOutState=params[2];e.type=params[1];fn.call(elem,e)}},/focus/.test(e.type)?o.keyDelay:o.mouseDelay)}});$.fn.inOut=function(enter,out,opts){opts=$.extend({},$.fn.inOut.defaults,opts);var inEvents='mouseenter focusin',outEvents='mouseleave focusout';if(opts.useEventTypes==='mouse'){inEvents='mouseenter';outEvents='mouseleave'}else if(opts.useEventTypes==='focus'){inEvents='focusin';outEvents='focusout'}return this.each(function(){var inOutData={inEvents:0};$(this).bind(inEvents,[enter,opts,inOutData],handler.enter).bind(outEvents,[out,opts,inOutData],handler.out)})};$.fn.inOut.defaults={mouseDelay:0,keyDelay:1,bothOut:false,useEventTypes:'both'}})(jQuery);


/**
 * --------------------------------------------------------------------
 * jQuery-Plugin "pngFix"
 * Version: 1.1, 11.09.2007
 * by Andreas Eberhard, andreas.eberhard@gmail.com
 *                      http://jquery.andreaseberhard.de/
 *
 * Copyright (c) 2007 Andreas Eberhard
 * Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php)
 */

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(j($){3.1e.1d=j(q){q=3.1f({Z:\'1g.1i\'},q);8 R=(d.N=="h M L"&&O(d.m)==4&&d.m.s("K 5.5")!=-1);8 Q=(d.N=="h M L"&&O(d.m)==4&&d.m.s("K 6.0")!=-1);c(3.1b.1h&&(R||Q)){3(2).E("1t[@b$=.F]").w(j(){3(2).7(\'g\',3(2).g());3(2).7(\'f\',3(2).f());8 e=\'\';8 a=\'\';8 I=(3(2).7(\'t\'))?\'t="\'+3(2).7(\'t\')+\'" \':\'\';8 J=(3(2).7(\'r\'))?\'r="\'+3(2).7(\'r\')+\'" \':\'\';8 H=(3(2).7(\'v\'))?\'v="\'+3(2).7(\'v\')+\'" \':\'\';8 P=(3(2).7(\'u\'))?\'u="\'+3(2).7(\'u\')+\'" \':\'\';8 15=(3(2).7(\'S\'))?\'1r:\'+3(2).7(\'S\')+\';\':\'\';8 G=(3(2).1l().7(\'1n\'))?\'1o:1q;\':\'\';c(2.9.n){e+=\'n:\'+2.9.n+\';\';2.9.n=\'\'}c(2.9.p){e+=\'p:\'+2.9.p+\';\';2.9.p=\'\'}c(2.9.l){e+=\'l:\'+2.9.l+\';\';2.9.l=\'\'}8 13=(2.9.1v);a+=\'<o \'+I+J+H+P;a+=\'9="14:T;19-18:1a-1j;16:11-W;C:1u;\'+15+G;a+=\'g:\'+3(2).g()+\'k;\'+\'f:\'+3(2).f()+\'k;\';a+=\'D:y:x.h.z\'+\'(b=\\\'\'+3(2).7(\'b\')+\'\\\', A=\\\'B\\\');\';a+=13+\'"></o>\';c(e!=\'\'){a=\'<o 9="14:T;16:11-W;\'+e+G+\'g:\'+3(2).g()+\'k;\'+\'f:\'+3(2).f()+\'k;\'+\'">\'+a+\'</o>\'}3(2).1p();3(2).1m(a)});3(2).E("*").w(j(){8 i=3(2).V(\'C-U\');c(i.s(".F")!=-1){8 X=i.12(\'1s("\')[1].12(\'")\')[0];3(2).V(\'C-U\',\'1k\');3(2).Y(0).10.D="y:x.h.z(b=\'"+X+"\',A=\'B\')"}});3(2).E("17[@b$=.F]").w(j(){8 i=3(2).7(\'b\');3(2).Y(0).10.D=\'y:x.h.z\'+\'(b=\\\'\'+i+\'\\\', A=\\\'B\\\');\';3(2).7(\'b\',q.Z)})}1c 3}})(3);',62,94,'||this|jQuery||||attr|var|style|strNewHTML|src|if|navigator|prevStyle|height|width|Microsoft|bgIMG|function|px|margin|appVersion|border|span|padding|settings|class|indexOf|id|alt|title|each|DXImageTransform|progid|AlphaImageLoader|sizingMethod|scale|background|filter|find|png|imgHand|imgTitle|imgId|imgClass|MSIE|Explorer|Internet|appName|parseInt|imgAlt|ie6|ie55|align|relative|image|css|block|iebg|get|blankgif|runtimeStyle|inline|split|imgStyle|position|imgAlign|display|input|space|white|pre|browser|return|pngFix|fn|extend|blank|msie|gif|line|none|parent|after|href|cursor|hide|hand|float|url|img|transparent|cssText'.split('|'),0,{}))


/**
 * jQuery.LocalScroll - Animated scrolling navigation, using anchors.
 * Copyright (c) 2007-2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 * Date: 6/3/2008
 * @author Ariel Flesler
 * @version 1.2.6
 **/
;(function($){var g=location.href.replace(/#.*/,''),h=$.localScroll=function(a){$('body').localScroll(a)};h.defaults={duration:1e3,axis:'y',event:'click',stop:1};h.hash=function(a){a=$.extend({},h.defaults,a);a.hash=0;if(location.hash)setTimeout(function(){i(0,location,a)},0)};$.fn.localScroll=function(b){b=$.extend({},h.defaults,b);return(b.persistent||b.lazy)?this.bind(b.event,function(e){var a=$([e.target,e.target.parentNode]).filter(c)[0];a&&i(e,a,b)}):this.find('a,area').filter(c).bind(b.event,function(e){i(e,this,b)}).end().end();function c(){var a=this;return!!a.href&&!!a.hash&&a.href.replace(a.hash,'')==g&&(!b.filter||$(a).is(b.filter))}};function i(e,a,b){var c=a.hash.slice(1),d=document.getElementById(c)||document.getElementsByName(c)[0],f;if(d){e&&e.preventDefault();f=$(b.target||$.scrollTo.window());if(b.lock&&f.is(':animated')||b.onBefore&&b.onBefore.call(a,e,d,f)===!1)return;if(b.stop)f.queue('fx',[]).stop();f.scrollTo(d,b).trigger('notify.serialScroll',[d]);if(b.hash)f.queue(function(){location=a.hash;$(this).dequeue()})}}})(jQuery);

/**
 * jQuery[a] - Animated scrolling of series
 * Copyright (c) 2007-2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 * Date: 3/20/2008
 * @author Ariel Flesler
 * @version 1.2.1
 *
 * http://flesler.blogspot.com/2008/02/jqueryserialscroll.html
 */
;(function($){var a='serialScroll',b='.'+a,c='bind',C=$[a]=function(b){$.scrollTo.window()[a](b)};C.defaults={duration:1e3,axis:'x',event:'click',start:0,step:1,lock:1,cycle:1,constant:1};$.fn[a]=function(y){y=$.extend({},C.defaults,y);var z=y.event,A=y.step,B=y.lazy;return this.each(function(){var j=y.target?this:document,k=$(y.target||this,j),l=k[0],m=y.items,o=y.start,p=y.interval,q=y.navigation,r;if(!B)m=w();if(y.force)t({},o);$(y.prev||[],j)[c](z,-A,s);$(y.next||[],j)[c](z,A,s);if(!l.ssbound)k[c]('prev'+b,-A,s)[c]('next'+b,A,s)[c]('goto'+b,t);if(p)k[c]('start'+b,function(e){if(!p){v();p=1;u()}})[c]('stop'+b,function(){v();p=0});k[c]('notify'+b,function(e,a){var i=x(a);if(i>-1)o=i});l.ssbound=1;if(y.jump)(B?k:w())[c](z,function(e){t(e,x(e.target))});if(q)q=$(q,j)[c](z,function(e){e.data=Math.round(w().length/q.length)*q.index(this);t(e,this)});function s(e){e.data+=o;t(e,this)};function t(e,a){if(!isNaN(a)){e.data=a;a=l}var c=e.data,n,d=e.type,f=y.exclude?w().slice(0,-y.exclude):w(),g=f.length,h=f[c],i=y.duration;if(d)e.preventDefault();if(p){v();r=setTimeout(u,y.interval)}if(!h){n=c<0?0:n=g-1;if(o!=n)c=n;else if(!y.cycle)return;else c=g-n-1;h=f[c]}if(!h||d&&o==c||y.lock&&k.is(':animated')||d&&y.onBefore&&y.onBefore.call(a,e,h,k,w(),c)===!1)return;if(y.stop)k.queue('fx',[]).stop();if(y.constant)i=Math.abs(i/A*(o-c));k.scrollTo(h,i,y).trigger('notify'+b,[c])};function u(){k.trigger('next'+b)};function v(){clearTimeout(r)};function w(){return $(m,l)};function x(a){if(!isNaN(a))return a;var b=w(),i;while((i=b.index(a))==-1&&a!=l)a=a.parentNode;return i}})}})(jQuery);

/**
 * jQuery.ScrollTo - Easy element scrolling using jQuery.
 * Copyright (c) 2007-2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 * Date: 9/11/2008
 * @author Ariel Flesler
 * @version 1.4
 *
 * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
 */
;(function(h){var m=h.scrollTo=function(b,c,g){h(window).scrollTo(b,c,g)};m.defaults={axis:'y',duration:1};m.window=function(b){return h(window).scrollable()};h.fn.scrollable=function(){return this.map(function(){var b=this.parentWindow||this.defaultView,c=this.nodeName=='#document'?b.frameElement||b:this,g=c.contentDocument||(c.contentWindow||c).document,i=c.setInterval;return c.nodeName=='IFRAME'||i&&h.browser.safari?g.body:i?g.documentElement:this})};h.fn.scrollTo=function(r,j,a){if(typeof j=='object'){a=j;j=0}if(typeof a=='function')a={onAfter:a};a=h.extend({},m.defaults,a);j=j||a.speed||a.duration;a.queue=a.queue&&a.axis.length>1;if(a.queue)j/=2;a.offset=n(a.offset);a.over=n(a.over);return this.scrollable().each(function(){var k=this,o=h(k),d=r,l,e={},p=o.is('html,body');switch(typeof d){case'number':case'string':if(/^([+-]=)?\d+(px)?$/.test(d)){d=n(d);break}d=h(d,this);case'object':if(d.is||d.style)l=(d=h(d)).offset()}h.each(a.axis.split(''),function(b,c){var g=c=='x'?'Left':'Top',i=g.toLowerCase(),f='scroll'+g,s=k[f],t=c=='x'?'Width':'Height',v=t.toLowerCase();if(l){e[f]=l[i]+(p?0:s-o.offset()[i]);if(a.margin){e[f]-=parseInt(d.css('margin'+g))||0;e[f]-=parseInt(d.css('border'+g+'Width'))||0}e[f]+=a.offset[i]||0;if(a.over[i])e[f]+=d[v]()*a.over[i]}else e[f]=d[i];if(/^\d+$/.test(e[f]))e[f]=e[f]<=0?0:Math.min(e[f],u(t));if(!b&&a.queue){if(s!=e[f])q(a.onAfterFirst);delete e[f]}});q(a.onAfter);function q(b){o.animate(e,j,a.easing,b&&function(){b.call(this,r,a)})};function u(b){var c='scroll'+b,g=k.ownerDocument;return p?Math.max(g.documentElement[c],g.body[c]):k[c]}}).end()};function n(b){return typeof b=='object'?b:{top:b,left:b}}})(jQuery);

/* Copyright (c) 2007 Paul Bakaus (paul.bakaus@googlemail.com) and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * $LastChangedDate: 2007-12-20 08:43:48 -0600 (Thu, 20 Dec 2007) $
 * $Rev: 4257 $
 *
 * Version: 1.2
 *
 * Requires: jQuery 1.2+
 */
(function($){$.dimensions={version:'1.2'};$.each(['Height','Width'],function(i,name){$.fn['inner'+name]=function(){if(!this[0])return;var torl=name=='Height'?'Top':'Left',borr=name=='Height'?'Bottom':'Right';return this.is(':visible')?this[0]['client'+name]:num(this,name.toLowerCase())+num(this,'padding'+torl)+num(this,'padding'+borr);};$.fn['outer'+name]=function(options){if(!this[0])return;var torl=name=='Height'?'Top':'Left',borr=name=='Height'?'Bottom':'Right';options=$.extend({margin:false},options||{});var val=this.is(':visible')?this[0]['offset'+name]:num(this,name.toLowerCase())+num(this,'border'+torl+'Width')+num(this,'border'+borr+'Width')+num(this,'padding'+torl)+num(this,'padding'+borr);return val+(options.margin?(num(this,'margin'+torl)+num(this,'margin'+borr)):0);};});$.each(['Left','Top'],function(i,name){$.fn['scroll'+name]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(name=='Left'?val:$(window)['scrollLeft'](),name=='Top'?val:$(window)['scrollTop']()):this['scroll'+name]=val;}):this[0]==window||this[0]==document?self[(name=='Left'?'pageXOffset':'pageYOffset')]||$.boxModel&&document.documentElement['scroll'+name]||document.body['scroll'+name]:this[0]['scroll'+name];};});$.fn.extend({position:function(){var left=0,top=0,elem=this[0],offset,parentOffset,offsetParent,results;if(elem){offsetParent=this.offsetParent();offset=this.offset();parentOffset=offsetParent.offset();offset.top-=num(elem,'marginTop');offset.left-=num(elem,'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)&&$.css(offsetParent,'position')=='static'))offsetParent=offsetParent.offsetParent;return $(offsetParent);}});function num(el,prop){return parseInt($.curCSS(el.jquery?el[0]:el,prop,true))||0;};})(jQuery);


// jquery.jparallax.js
// 0.9.1
// Stephen Band
//
// Dependencies:
// jQuery 1.2.6 (jquery.com)
//
// Project and documentation site:
// http://webdev.stephband.info/parallax.html
(function(jQuery){function stripFiletype(ref){var x=ref.replace('.html','');return x.replace('#','')}function initOrigin(l){if(l.xorigin=='left'){l.xorigin=0}else if(l.xorigin=='middle'||l.xorigin=='centre'||l.xorigin=='center'){l.xorigin=0.5}else if(l.xorigin=='right'){l.xorigin=1}if(l.yorigin=='top'){l.yorigin=0}else if(l.yorigin=='middle'||l.yorigin=='centre'||l.yorigin=='center'){l.yorigin=0.5}else if(l.yorigin=='bottom'){l.yorigin=1}}function positionMouse(mouseport,localmouse,virtualmouse){var difference={x:0,y:0,sum:0};if(!mouseport.ontarget){difference.x=virtualmouse.x-localmouse.x;difference.y=virtualmouse.y-localmouse.y;difference.sum=Math.sqrt(difference.x*difference.x+difference.y*difference.y);virtualmouse.x=localmouse.x+difference.x*mouseport.takeoverFactor;virtualmouse.y=localmouse.y+difference.y*mouseport.takeoverFactor;if(difference.sum<mouseport.takeoverThresh&&difference.sum>mouseport.takeoverThresh*-1){mouseport.ontarget=true}}else{virtualmouse.x=localmouse.x;virtualmouse.y=localmouse.y}}function setupPorts(viewport,mouseport){var offset=mouseport.element.offset();jQuery.extend(viewport,{width:viewport.element.width(),height:viewport.element.height()});jQuery.extend(mouseport,{width:mouseport.element.width(),height:mouseport.element.height(),top:offset.top,left:offset.left})}function parseTravel(travel,origin,dimension){var offset;var cssPos;if(typeof(travel)==='string'){if(travel.search(/^\d+\s?px$/)!=-1){travel=travel.replace('px','');travel=parseInt(travel,10);offset=origin*(dimension-travel);cssPos=origin*100+'%';return{travel:travel,travelpx:true,offset:offset,cssPos:cssPos}}else if(travel.search(/^\d+\s?%$/)!=-1){travel.replace('%','');travel=parseInt(travel,10)/100}else{travel=1}}offset=origin*(1-travel);return{travel:travel,travelpx:false,offset:offset}}function setupLayer(layer,i,mouseport){var xStuff;var yStuff;var cssObject={};layer[i]=jQuery.extend({},{width:layer[i].element.width(),height:layer[i].element.height()},layer[i]);xStuff=parseTravel(layer[i].xtravel,layer[i].xorigin,layer[i].width);yStuff=parseTravel(layer[i].ytravel,layer[i].yorigin,layer[i].height);jQuery.extend(layer[i],{diffxrat:mouseport.width/(layer[i].width-mouseport.width),diffyrat:mouseport.height/(layer[i].height-mouseport.height),xtravel:xStuff.travel,ytravel:yStuff.travel,xtravelpx:xStuff.travelpx,ytravelpx:yStuff.travelpx,xoffset:xStuff.offset,yoffset:yStuff.offset});if(xStuff.travelpx){cssObject.left=xStuff.cssPos}if(yStuff.travelpx){cssObject.top=yStuff.cssPos}if(xStuff.travelpx||yStuff.travelpx){layer[i].element.css(cssObject)}}function setupLayerContents(layer,i,viewportOffset){var contentOffset;jQuery.extend(layer[i],{content:[]});for(var n=0;n<layer[i].element.children().length;n++){if(!layer[i].content[n])layer[i].content[n]={};if(!layer[i].content[n].element)layer[i].content[n]['element']=layer[i].element.children().eq(n);if(!layer[i].content[n].anchor&&layer[i].content[n].element.children('a').attr('name')){layer[i].content[n]['anchor']=layer[i].content[n].element.children('a').attr('name')}if(layer[i].content[n].anchor){contentOffset=layer[i].content[n].element.offset();jQuery.extend(layer[i].content[n],{width:layer[i].content[n].element.width(),height:layer[i].content[n].element.height(),x:contentOffset.left-viewportOffset.left,y:contentOffset.top-viewportOffset.top});jQuery.extend(layer[i].content[n],{posxrat:(layer[i].content[n].x+layer[i].content[n].width/2)/layer[i].width,posyrat:(layer[i].content[n].y+layer[i].content[n].height/2)/layer[i].height})}}}function moveLayers(layer,xratio,yratio){var xpos;var ypos;var cssObject;for(var i=0;i<layer.length;i++){xpos=layer[i].xtravel*xratio+layer[i].xoffset;ypos=layer[i].ytravel*yratio+layer[i].yoffset;cssObject={};if(layer[i].xparallax){if(layer[i].xtravelpx){cssObject.marginLeft=xpos*-1+'px'}else{cssObject.left=xpos*100+'%';cssObject.marginLeft=xpos*layer[i].width*-1+'px'}}if(layer[i].yparallax){if(layer[i].ytravelpx){cssObject.marginTop=ypos*-1+'px'}else{cssObject.top=ypos*100+'%';cssObject.marginTop=ypos*layer[i].height*-1+'px'}}layer[i].element.css(cssObject)}}jQuery.fn.jparallax=function(options){var settings=jQuery().extend({},jQuery.fn.jparallax.settings,options);var settingsLayer={xparallax:settings.xparallax,yparallax:settings.yparallax,xorigin:settings.xorigin,yorigin:settings.yorigin,xtravel:settings.xtravel,ytravel:settings.ytravel};var settingsMouseport={element:settings.mouseport,takeoverFactor:settings.takeoverFactor,takeoverThresh:settings.takeoverThresh};if(settings.mouseport)settingsMouseport['element']=settings.mouseport;var layersettings=[];for(var a=1;a<arguments.length;a++){layersettings.push(jQuery.extend({},settingsLayer,arguments[a]))}return this.each(function(){var localmouse={x:0.5,y:0.5};var virtualmouse={x:0.5,y:0.5};var timer={running:false,frame:settings.frameDuration,fire:function(x,y){positionMouse(mouseport,localmouse,virtualmouse);moveLayers(layer,virtualmouse.x,virtualmouse.y);this.running=setTimeout(function(){if(localmouse.x!=x||localmouse.y!=y||!mouseport.ontarget){timer.fire(localmouse.x,localmouse.y)}else if(timer.running){timer.running=false}},timer.frame)}};var viewport={element:jQuery(this)};var mouseport=jQuery.extend({},{element:viewport.element},settingsMouseport,{xinside:false,yinside:false,active:false,ontarget:false});var layer=[];function matrixSearch(layer,ref,callback){for(var i=0;i<layer.length;i++){var gotcha=false;for(var n=0;n<layer[i].content.length;n++){if(layer[i].content[n].anchor==ref){callback(i,n);return[i,n]}}}return false}setupPorts(viewport,mouseport);for(var i=0;i<viewport.element.children().length;i++){layer[i]=jQuery.extend({},settingsLayer,layersettings[i],{element:viewport.element.children('*:eq('+i+')')});setupLayer(layer,i,mouseport);if(settings.triggerResponse){setupLayerContents(layer,i,viewport.element.offset())}}viewport.element.children().css('position','absolute');moveLayers(layer,0.5,0.5);if(settings.mouseResponse){jQuery().mousemove(function(mouse){mouseport.xinside=(mouse.pageX>=mouseport.left&&mouse.pageX<mouseport.width+mouseport.left)?true:false;mouseport.yinside=(mouse.pageY>=mouseport.top&&mouse.pageY<mouseport.height+mouseport.top)?true:false;if(mouseport.xinside&&mouseport.yinside&&!mouseport.active){mouseport.ontarget=false;mouseport.active=true}if(mouseport.active){if(mouseport.xinside){localmouse.x=(mouse.pageX-mouseport.left)/mouseport.width}else{localmouse.x=(mouse.pageX<mouseport.left)?0:1}if(mouseport.yinside){localmouse.y=(mouse.pageY-mouseport.top)/mouseport.height}else{localmouse.y=(mouse.pageY<mouseport.top)?0:1}}if(mouseport.xinside&&mouseport.yinside){if(!timer.running)timer.fire(localmouse.x,localmouse.y)}else if(mouseport.active){mouseport.active=false}})}if(settings.triggerResponse){viewport.element.bind("jparallax",function(event,ref){ref=stripFiletype(ref);matrixSearch(layer,ref,function(i,n){localmouse.x=layer[i].content[n].posxrat*(layer[i].diffxrat+1)-(0.5*layer[i].diffxrat);localmouse.y=layer[i].content[n].posyrat*(layer[i].diffyrat+1)-(0.5*layer[i].diffyrat);if(!settings.triggerExposesEdges){if(localmouse.x<0)localmouse.x=0;if(localmouse.x>1)localmouse.x=1;if(localmouse.y<0)localmouse.y=0;if(localmouse.y>1)localmouse.y=1}mouseport.ontarget=false;if(!timer.running)timer.fire(localmouse.x,localmouse.y)})})}jQuery(window).resize(function(){setupPorts(viewport,mouseport);for(var i=0;i<layer.length;i++){setupLayer(layer,i,mouseport)}});jQuery(this).data("jParallaxTimer",timer)})};jQuery.fn.jparallax.settings={mouseResponse:true,mouseActiveOutside:false,triggerResponse:true,triggerExposesEdges:false,xparallax:true,yparallax:true,xorigin:0.5,yorigin:0.5,xtravel:1,ytravel:1,takeoverFactor:0.65,takeoverThresh:0.002,frameDuration:25};initOrigin(jQuery.fn.jparallax.settings);jQuery(function(){})})(jQuery);

/**
 * jQuery.Preload
 * Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com
 * Dual licensed under MIT and GPL.
 * Date: 3/12/2008
 */

;(function($){var $preload=$.preload=function(original,settings){if(original.split)original=$(original);settings=$.extend({},$preload.defaults,settings);var sources=$.map(original,function(source){if(!source)return;if(source.split)return settings.base+source+settings.ext;var url=source.src||source.href;if(typeof settings.placeholder=='string'&&source.src)source.src=settings.placeholder;if(url&&settings.find)url=url.replace(settings.find,settings.replace);return url||null});var data={loaded:0,failed:0,next:0,done:0,total:sources.length};if(!data.total)return finish();var imgs='<img/>',thres=settings.threshold;while(--thres>0)imgs+='<img/>';imgs=$(imgs).load(handler).error(handler).bind('abort',handler).each(fetch);function handler(e){data.found=e.type=='load';data.image=this.src;var orig=data.original=original[this.index];data[data.found?'loaded':'failed']++;data.done++;if(settings.placeholder&&orig.src)orig.src=data.found?data.image:settings.notFound||orig.src;if(settings.onComplete)settings.onComplete(data);if(data.done<data.total)fetch(0,this);else{if(imgs.unbind)imgs.unbind('load').unbind('error').unbind('abort');imgs=null;finish()}};function fetch(i,img,retry){if($.browser.msie&&data.next&&data.next%$preload.gap==0&&!retry){setTimeout(function(){fetch(i,img,true)},0);return false}if(data.next==data.total)return false;img.index=data.next;img.src=sources[data.next++];if(settings.onRequest){data.image=img.src;data.original=original[data.next-1];settings.onRequest(data)}};function finish(){if(settings.onFinish)settings.onFinish(data)}};$preload.gap=14;$preload.defaults={threshold:2,base:'',ext:'',replace:''};$.fn.preload=function(settings){$preload(this,settings);return this}})(jQuery);


/* Shadowbox */

if(typeof jQuery=='undefined'){throw'Unable to load Shadowbox, jQuery library not found'}var Shadowbox={};Shadowbox.lib={adapter:'jquery',getStyle:function(el,style){return jQuery(el).css(style)},setStyle:function(el,style,value){if(typeof style!='object'){var temp={};temp[style]=value;style=temp}jQuery(el).css(style)},get:function(el){return(typeof el=='string')?document.getElementById(el):el},remove:function(el){jQuery(el).remove()},getTarget:function(e){return e.target},getPageXY:function(e){return[e.pageX,e.pageY]},preventDefault:function(e){e.preventDefault()},keyCode:function(e){return e.keyCode},addEvent:function(el,name,handler){jQuery(el).bind(name,handler)},removeEvent:function(el,name,handler){jQuery(el).unbind(name,handler)},append:function(el,html){jQuery(el).append(html)}};(function($){$.fn.shadowbox=function(options){return this.each(function(){var $this=$(this);var opts=$.extend({},options||{},$.metadata?$this.metadata():$.meta?$this.data():{});var cls=this.className||'';opts.width=parseInt((cls.match(/w:(\d+)/)||[])[1])||opts.width;opts.height=parseInt((cls.match(/h:(\d+)/)||[])[1])||opts.height;Shadowbox.setup($this,opts)})}})(jQuery);

if(typeof Shadowbox=='undefined'){throw'Unable to load Shadowbox, no base library adapter found'}(function(){var version='2.0';var options={animate:true,animateFade:true,animSequence:'hw',flvPlayer:'fileadmin/templates/player/player.swf',modal:false,overlayColor:'#000',overlayOpacity:0,flashBgColor:'#000000',autoplayMovies:true,showMovieControls:true,slideshowDelay:0,resizeDuration:0.55,fadeDuration:0.35,displayNav:true,continuous:false,displayCounter:true,counterType:'default',counterLimit:10,viewportPadding:50,handleOversize:'resize',handleException:null,handleUnsupported:'link',initialHeight:160,initialWidth:320,enableKeys:true,onOpen:null,onFinish:null,onChange:null,onClose:null,skipSetup:false,errors:{fla:{name:'Flash',url:'http://www.adobe.com/products/flashplayer/'},qt:{name:'QuickTime',url:'http://www.apple.com/quicktime/download/'},wmp:{name:'Windows Media Player',url:'http://www.microsoft.com/windows/windowsmedia/'},f4m:{name:'Flip4Mac',url:'http://www.flip4mac.com/wmv_download.htm'}},ext:{img:['png','jpg','jpeg','gif','bmp'],swf:['swf'],flv:['flv','mp4','mpeg','mpg','mov','m4v'],qt:['dv','moov','movie'],wmp:['asf','wm','wmv'],qtwmp:['avi'],iframe:['asp','aspx','cgi','cfm','htm','html','pl','php','php3','php4','php5','phtml','rb','rhtml','shtml','txt','vbs']}};var SB=Shadowbox;var SL=SB.lib;var default_options;var RE={domain:/:\/\/(.*?)[:\/]/,inline:/#(.+)$/,rel:/^(light|shadow)box/i,gallery:/^(light|shadow)box\[(.*?)\]/i,unsupported:/^unsupported-(\w+)/,param:/\s*([a-z_]*?)\s*=\s*(.+)\s*/,empty:/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i};var cache=[];var gallery;var current;var content;var content_id='shadowbox_content';var dims;var initialized=false;var activated=false;var slide_timer;var slide_start;var slide_delay=0;var ua=navigator.userAgent.toLowerCase();var client={isStrict:document.compatMode=='CSS1Compat',isOpera:ua.indexOf('opera')>-1,isIE:ua.indexOf('msie')>-1,isIE7:ua.indexOf('msie 7')>-1,isSafari:/webkit|khtml/.test(ua),isWindows:ua.indexOf('windows')!=-1||ua.indexOf('win32')!=-1,isMac:ua.indexOf('macintosh')!=-1||ua.indexOf('mac os x')!=-1,isLinux:ua.indexOf('linux')!=-1};client.isBorderBox=client.isIE&&!client.isStrict;client.isSafari3=client.isSafari&&!!(document.evaluate);client.isGecko=ua.indexOf('gecko')!=-1&&!client.isSafari;var ltIE7=client.isIE&&!client.isIE7;var plugins;if(navigator.plugins&&navigator.plugins.length){var detectPlugin=function(plugin_name){var detected=false;for(var i=0,len=navigator.plugins.length;i<len;++i){if(navigator.plugins[i].name.indexOf(plugin_name)>-1){detected=true;break}}return detected};var f4m=detectPlugin('Flip4Mac');plugins={fla:detectPlugin('Shockwave Flash'),qt:detectPlugin('QuickTime'),wmp:!f4m&&detectPlugin('Windows Media'),f4m:f4m}}else{var detectPlugin=function(plugin_name){var detected=false;try{var axo=new ActiveXObject(plugin_name);if(axo)detected=true}catch(e){}return detected};plugins={fla:detectPlugin('ShockwaveFlash.ShockwaveFlash'),qt:detectPlugin('QuickTime.QuickTime'),wmp:detectPlugin('wmplayer.ocx'),f4m:false}}var apply=function(o,e){for(var p in e)o[p]=e[p];return o};var isLink=function(el){return el&&typeof el.tagName=='string'&&(el.tagName.toUpperCase()=='A'||el.tagName.toUpperCase()=='AREA')};SL.getViewportHeight=function(){var h=window.innerHeight;var mode=document.compatMode;if((mode||client.isIE)&&!client.isOpera){h=client.isStrict?document.documentElement.clientHeight:document.body.clientHeight}return h};SL.getViewportWidth=function(){var w=window.innerWidth;var mode=document.compatMode;if(mode||client.isIE){w=client.isStrict?document.documentElement.clientWidth:document.body.clientWidth}return w};SL.createHTML=function(obj){var html='<'+obj.tag;for(var attr in obj){if(attr=='tag'||attr=='html'||attr=='children')continue;if(attr=='cls'){html+=' class="'+obj['cls']+'"'}else{html+=' '+attr+'="'+obj[attr]+'"'}}if(RE.empty.test(obj.tag)){html+='/>'}else{html+='>';var cn=obj.children;if(cn){for(var i=0,len=cn.length;i<len;++i){html+=this.createHTML(cn[i])}}if(obj.html)html+=obj.html;html+='</'+obj.tag+'>'}return html};var ease=function(x){return 1+Math.pow(x-1,3)};var animate=function(el,p,to,d,cb){var from=parseFloat(SL.getStyle(el,p));if(isNaN(from))from=0;if(from==to){if(typeof cb=='function')cb();return}var delta=to-from;var op=p=='opacity';var unit=op?'':'px';var fn=function(ease){SL.setStyle(el,p,from+ease*delta+unit)};if(!options.animate&&!op||op&&!options.animateFade){fn(1);if(typeof cb=='function')cb();return}d*=1000;var begin=new Date().getTime();var end=begin+d;var timer=setInterval(function(){var time=new Date().getTime();if(time>=end){clearInterval(timer);fn(1);if(typeof cb=='function')cb()}else{fn(ease((time-begin)/d))}},10)};var clearOpacity=function(el){var s=el.style;if(client.isIE){if(typeof s.filter=='string'&&(/alpha/i).test(s.filter)){s.filter=s.filter.replace(/[\w\.]*alpha\(.*?\);?/i,'')}}else{s.opacity='';s['-moz-opacity']='';s['-khtml-opacity']=''}};var getComputedHeight=function(el){var h=Math.max(el.offsetHeight,el.clientHeight);if(!h){h=parseInt(SL.getStyle(el,'height'),10)||0;if(!client.isBorderBox){h+=parseInt(SL.getStyle(el,'padding-top'),10)+parseInt(SL.getStyle(el,'padding-bottom'),10)+parseInt(SL.getStyle(el,'border-top-width'),10)+parseInt(SL.getStyle(el,'border-bottom-width'),10)}}return h};var getPlayer=function(url){var m=url.match(RE.domain);var d=m&&document.domain==m[1];if(url.indexOf('#')>-1&&d)return'inline';var q=url.indexOf('?');if(q>-1)url=url.substring(0,q);if(RE.img.test(url))return'img';if(RE.swf.test(url))return plugins.fla?'swf':'unsupported-swf';if(RE.flv.test(url))return plugins.fla?'flv':'unsupported-flv';if(RE.qt.test(url))return plugins.qt?'qt':'unsupported-qt';if(RE.wmp.test(url)){if(plugins.wmp)return'wmp';if(plugins.f4m)return'qt';if(client.isMac)return plugins.qt?'unsupported-f4m':'unsupported-qtf4m';return'unsupported-wmp'}else if(RE.qtwmp.test(url)){if(plugins.qt)return'qt';if(plugins.wmp)return'wmp';return client.isMac?'unsupported-qt':'unsupported-qtwmp'}else if(!d||RE.iframe.test(url)){return'iframe'}return'unsupported'};var handleClick=function(ev){var link;if(isLink(this)){link=this}else{link=SL.getTarget(ev);while(!isLink(link)&&link.parentNode){link=link.parentNode}}if(link){SB.open(link);if(gallery.length)SL.preventDefault(ev)}};var toggleNav=function(id,on){var el=SL.get('shadowbox_nav_'+id);if(el)el.style.display=on?'':'none'};var buildBars=function(cb){var obj=gallery[current];var title_i=SL.get('shadowbox_title_inner');title_i.innerHTML=obj.title||'';var nav=SL.get('shadowbox_nav');if(nav){var c,n,pl,pa,p;if(options.displayNav){c=true;var len=gallery.length;if(len>1){if(options.continuous){n=p=true}else{n=(len-1)>current;p=current>0}}if(options.slideshowDelay>0&&hasNext()){pa=slide_timer!='paused';pl=!pa}}else{c=n=pl=pa=p=false}toggleNav('close',c);toggleNav('next',n);toggleNav('play',pl);toggleNav('pause',pa);toggleNav('previous',p)}var counter=SL.get('shadowbox_counter');if(counter){var co='';if(options.displayCounter&&gallery.length>1){if(options.counterType=='skip'){var i=0,len=gallery.length,end=len;var limit=parseInt(options.counterLimit);if(limit<len){var h=Math.round(limit/2);i=current-h;if(i<0)i+=len;end=current+(limit-h);if(end>len)end-=len}while(i!=end){if(i==len)i=0;co+='<a onclick="Shadowbox.change('+i+');"';if(i==current)co+=' class="shadowbox_counter_current"';co+='>'+(++i)+'</a>'}}else{co=(current+1)+' '+SB.LANG.of+' '+len}}counter.innerHTML=co}cb()};var hideBars=function(anim,cb){var obj=gallery[current];var title=SL.get('shadowbox_title');var info=SL.get('shadowbox_info');var title_i=SL.get('shadowbox_title_inner');var info_i=SL.get('shadowbox_info_inner');var fn=function(){buildBars(cb)};var title_h=getComputedHeight(title);var info_h=getComputedHeight(info)*-1;if(anim){animate(title_i,'margin-top',title_h,0.35);animate(info_i,'margin-top',info_h,0.35,fn)}else{SL.setStyle(title_i,'margin-top',title_h+'px');SL.setStyle(info_i,'margin-top',info_h+'px');fn()}};var showBars=function(cb){var title_i=SL.get('shadowbox_title_inner');var info_i=SL.get('shadowbox_info_inner');var t=title_i.innerHTML!='';if(t)animate(title_i,'margin-top',0,0.35);animate(info_i,'margin-top',0,0.35,cb)};var loadContent=function(){var obj=gallery[current];if(!obj)return;var changing=false;if(content){content.remove();changing=true}var p=obj.player=='inline'?'html':obj.player;if(typeof SB[p]!='function'){SB.raise('Unknown player '+obj.player)}content=new SB[p](content_id,obj);listenKeys(false);toggleLoading(true);hideBars(changing,function(){if(!content)return;if(!changing){SL.get('shadowbox').style.display=''}var fn=function(){resizeContent(function(){if(!content)return;showBars(function(){if(!content)return;SL.get('shadowbox_body_inner').innerHTML=SL.createHTML(content.markup(dims));toggleLoading(false,function(){if(!content)return;if(typeof content.onLoad=='function'){content.onLoad()}if(options.onFinish&&typeof options.onFinish=='function'){options.onFinish(gallery[current])}if(slide_timer!='paused'){SB.play()}listenKeys(true)})})})};if(typeof content.ready!='undefined'){var id=setInterval(function(){if(content){if(content.ready){clearInterval(id);id=null;fn()}}else{clearInterval(id);id=null}},100)}else{fn()}});if(gallery.length>1){var next=gallery[current+1]||gallery[0];if(next.player=='img'){var a=new Image();a.src=next.content}var prev=gallery[current-1]||gallery[gallery.length-1];if(prev.player=='img'){var b=new Image();b.src=prev.content}}};var setDimensions=function(height,width,resizable){resizable=resizable||false;var sb=SL.get('shadowbox_body');var h=height=parseInt(height);var w=width=parseInt(width);var view_h=SL.getViewportHeight();var view_w=SL.getViewportWidth();var border_w=parseInt(SL.getStyle(sb,'border-left-width'),10)+parseInt(SL.getStyle(sb,'border-right-width'),10);var extra_w=border_w+2*options.viewportPadding;if(w+extra_w>=view_w){w=view_w-extra_w}var border_h=parseInt(SL.getStyle(sb,'border-top-width'),10)+parseInt(SL.getStyle(sb,'border-bottom-width'),10);var bar_h=getComputedHeight(SL.get('shadowbox_title'))+getComputedHeight(SL.get('shadowbox_info'));var extra_h=border_h+2*options.viewportPadding+bar_h;if(h+extra_h>=view_h){h=view_h-extra_h}var drag=false;var resize_h=height;var resize_w=width;var handle=options.handleOversize;if(resizable&&(handle=='resize'||handle=='drag')){var change_h=(height-h)/height;var change_w=(width-w)/width;if(handle=='resize'){if(change_h>change_w){w=Math.round((width/height)*h)}else if(change_w>change_h){h=Math.round((height/width)*w)}resize_w=w;resize_h=h}else{var link=gallery[current];if(link)drag=link.player=='img'&&(change_h>0||change_w>0)}}dims={height:h+border_h+bar_h,width:w+border_w,inner_h:h,inner_w:w,top:90,resize_h:resize_h,resize_w:resize_w,drag:drag}};var resizeContent=function(cb){if(!content)return;setDimensions(content.height,content.width,content.resizable);if(cb){switch(options.animSequence){case'hw':adjustHeight(dims.inner_h,dims.top,true,function(){adjustWidth(dims.width,true,cb)});break;case'wh':adjustWidth(dims.width,true,function(){adjustHeight(dims.inner_h,dims.top,true,cb)});break;case'sync':default:adjustWidth(dims.width,true);adjustHeight(dims.inner_h,dims.top,true,cb)}}else{adjustWidth(dims.width,false);adjustHeight(dims.inner_h,dims.top,false);var c=SL.get(content_id);if(c){if(content.resizable&&options.handleOversize=='resize'){c.height=dims.resize_h;c.width=dims.resize_w}if(gallery[current].player=='img'&&options.handleOversize=='drag'){var top=parseInt(SL.getStyle(c,'top'));if(top+content.height<dims.inner_h){SL.setStyle(c,'top',dims.inner_h-content.height+'px')}var left=parseInt(SL.getStyle(c,'left'));if(left+content.width<dims.inner_w){SL.setStyle(c,'left',dims.inner_w-content.width+'px')}}}}};var adjustHeight=function(height,top,anim,cb){height=parseInt(height);var sb=SL.get('shadowbox_body');if(anim){animate(sb,'height',height,options.resizeDuration)}else{SL.setStyle(sb,'height',height+'px')}var sand=SL.get('sandbox');var pax=SL.get('parallax');if(height>200){if(anim){animate(sand,'height',height+100,options.resizeDuration);animate(pax,'height',height+100,options.resizeDuration)}else{SL.setStyle(sand,'height',height+100+'px');SL.setStyle(pax,'height',height+100+'px')}}var s=SL.get('shadowbox');if(anim){animate(s,'top',top,options.resizeDuration,cb)}else{SL.setStyle(s,'top',top+'px');if(typeof cb=='function')cb()}};var adjustWidth=function(width,anim,cb){width=parseInt(width);var sb=SL.get('shadowbox_body');if(anim){animate(sb,'width',width,options.resizeDuration)}else{SL.setStyle(sb,'width',width+'px')}var s=SL.get('shadowbox');if(anim){animate(s,'width',width+60,options.resizeDuration,cb)}else{SL.setStyle(s,'width',width+60+'px');if(typeof cb=='function')cb()}};var listenKeys=function(on){if(!options.enableKeys)return;SL[(on?'add':'remove')+'Event'](document,'keydown',handleKey)};var handleKey=function(e){var code=SL.keyCode(e);SL.preventDefault(e);if(code==81||code==88||code==27){SB.close()}else if(code==37){SB.previous()}else if(code==39){SB.next()}else if(code==32){SB[(typeof slide_timer=='number'?'pause':'play')]()}};var toggleLoading=function(on,cb){var loading=SL.get('shadowbox_loading');if(on){loading.style.display='';if(typeof cb=='function')cb()}else{var p=gallery[current].player;var anim=(p=='img'||p=='html');var fn=function(){loading.style.display='none';clearOpacity(loading);if(typeof cb=='function')cb()};if(anim){animate(loading,'opacity',0,options.fadeDuration,fn)}else{fn()}}};var fixTop=function(){SL.get('shadowbox_container').style.top=document.documentElement.scrollTop+'px'};var fixHeight=function(){SL.get('shadowbox_overlay').style.height=SL.getViewportHeight()+'px'};var hasNext=function(){return gallery.length>1&&(current!=gallery.length-1||options.continuous)};var toggleVisible=function(cb){var els,v=(cb)?'hidden':'visible';var hide=['select','object','embed'];for(var i=0;i<hide.length;++i){els=document.getElementsByTagName(hide[i]);for(var j=0,len=els.length;j<len;++j){els[j].style.visibility=v}}var so=SL.get('shadowbox_overlay');var sc=SL.get('shadowbox_container');var sb=SL.get('shadowbox');if(cb){SL.setStyle(so,{backgroundColor:options.overlayColor,opacity:0});if(!options.modal)SL.addEvent(so,'click',SB.close);if(ltIE7){fixTop();fixHeight();SL.addEvent(window,'scroll',fixTop)}sb.style.display='none';sc.style.visibility='visible';animate(so,'opacity',parseFloat(options.overlayOpacity),options.fadeDuration,cb)}else{SL.removeEvent(so,'click',SB.close);if(ltIE7)SL.removeEvent(window,'scroll',fixTop);sb.style.display='none';animate(so,'opacity',0,options.fadeDuration,function(){sc.style.visibility='hidden';sb.style.display='';clearOpacity(so)})}};Shadowbox.init=function(opts){if(initialized)return;if(typeof SB.LANG=='undefined'){SB.raise('No Shadowbox language loaded');return}if(typeof SB.SKIN=='undefined'){SB.raise('No Shadowbox skin loaded');return}apply(options,opts||{});var markup=SB.SKIN.markup.replace(/\{(\w+)\}/g,function(m,p){return SB.LANG[p]});var bd=document.body||document.documentElement;SL.append(bd,markup);if(ltIE7){SL.setStyle(SL.get('shadowbox_container'),'position','absolute');SL.get('shadowbox_body').style.zoom=1;var png=SB.SKIN.png_fix;if(png&&png.constructor==Array){for(var i=0;i<png.length;++i){var el=SL.get(png[i]);if(el){var match=SL.getStyle(el,'background-image').match(/url\("(.*\.png)"\)/);if(match){SL.setStyle(el,{backgroundImage:'none',filter:'progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src='+match[1]+',sizingMethod=scale);'})}}}}}for(var e in options.ext){RE[e]=new RegExp('\.('+options.ext[e].join('|')+')\s*$','i')}var id;SL.addEvent(window,'resize',function(){if(id){clearTimeout(id);id=null}id=setTimeout(function(){if(ltIE7)fixHeight();resizeContent()},50)});if(!options.skipSetup)SB.setup();initialized=true};Shadowbox.loadSkin=function(skin,dir){if(!(/\/$/.test(dir)))dir+='/';skin=dir+skin+'/';document.write('<link rel="stylesheet" type="text/css" href="'+skin+'skin.css">');document.write('<scr'+'ipt type="text/javascript" src="'+skin+'skin.js"><\/script>')};Shadowbox.loadLanguage=function(lang,dir){if(!(/\/$/.test(dir)))dir+='/';document.write('<scr'+'ipt type="text/javascript" src="'+dir+'shadowbox-'+lang+'.js"><\/script>')};Shadowbox.loadPlayer=function(players,dir){if(typeof players=='string')players=[players];if(!(/\/$/.test(dir)))dir+='/';for(var i=0,len=players.length;i<len;++i){document.write('<scr'+'ipt type="text/javascript" src="'+dir+'shadowbox-'+players[i]+'.js"><\/script>')}};Shadowbox.setup=function(links,opts){if(!links){var links=[];var a=document.getElementsByTagName('a'),rel;for(var i=0,len=a.length;i<len;++i){rel=a[i].getAttribute('rel');if(rel&&RE.rel.test(rel))links[links.length]=a[i]}}else if(!links.length){links=[links]}var link;for(var i=0,len=links.length;i<len;++i){link=links[i];if(typeof link.shadowboxCacheKey=='undefined'){link.shadowboxCacheKey=cache.length;SL.addEvent(link,'click',handleClick)}cache[link.shadowboxCacheKey]=this.buildCacheObj(link,opts)}};Shadowbox.buildCacheObj=function(link,opts){var href=link.href;var o={el:link,title:link.getAttribute('title'),player:getPlayer(href),options:apply({},opts||{}),content:href};var opt,l_opts=['player','title','height','width','gallery'];for(var i=0,len=l_opts.length;i<len;++i){opt=l_opts[i];if(typeof o.options[opt]!='undefined'){o[opt]=o.options[opt];delete o.options[opt]}}var rel=link.getAttribute('rel');if(rel){var match=rel.match(RE.gallery);if(match)o.gallery=escape(match[2]);var params=rel.split(';');for(var i=0,len=params.length;i<len;++i){match=params[i].match(RE.param);if(match){if(match[1]=='options'){eval('apply(o.options, '+match[2]+')')}else{o[match[1]]=match[2]}}}}return o};Shadowbox.applyOptions=function(opts){if(opts){default_options=apply({},options);options=apply(options,opts)}};Shadowbox.revertOptions=function(){if(default_options){options=default_options;default_options=null}};Shadowbox.open=function(obj,opts){this.revertOptions();if(isLink(obj)){if(typeof obj.shadowboxCacheKey=='undefined'||typeof cache[obj.shadowboxCacheKey]=='undefined'){obj=this.buildCacheObj(obj,opts)}else{obj=cache[obj.shadowboxCacheKey]}}if(obj.constructor==Array){gallery=obj;current=0}else{var copy=apply({},obj);if(!obj.gallery){gallery=[copy];current=0}else{current=null;gallery=[];var ci;for(var i=0,len=cache.length;i<len;++i){ci=cache[i];if(ci.gallery){if(ci.content==obj.content&&ci.gallery==obj.gallery&&ci.title==obj.title){current=gallery.length}if(ci.gallery==obj.gallery){gallery.push(apply({},ci))}}}if(current==null){gallery.unshift(copy);current=0}}}obj=gallery[current];if(obj.options||opts){this.applyOptions(apply(apply({},obj.options||{}),opts||{}))}var match,r;for(var i=0,len=gallery.length;i<len;++i){r=false;if(gallery[i].player=='unsupported'){r=true}else if(match=RE.unsupported.exec(gallery[i].player)){if(options.handleUnsupported=='link'){gallery[i].player='html';var s,a,oe=options.errors;switch(match[1]){case'qtwmp':s='either';a=[oe.qt.url,oe.qt.name,oe.wmp.url,oe.wmp.name];break;case'qtf4m':s='shared';a=[oe.qt.url,oe.qt.name,oe.f4m.url,oe.f4m.name];break;default:s='single';if(match[1]=='swf'||match[1]=='flv')match[1]='fla';a=[oe[match[1]].url,oe[match[1]].name]}var msg=SB.LANG.errors[s].replace(/\{(\d+)\}/g,function(m,i){return a[i]});gallery[i].content='<div class="shadowbox_message">'+msg+'</div>'}else{r=true}}else if(gallery[i].player=='inline'){var match=RE.inline.exec(gallery[i].content);if(match){var el;if(el=SL.get(match[1])){gallery[i].content=el.innerHTML}else{SB.raise('Cannot find element with id '+match[1])}}else{SB.raise('Cannot find element id for inline content')}}if(r){gallery.splice(i,1);if(i<current){--current}else if(i==current){current=i>0?current-1:i}--i;len=gallery.length}}if(gallery.length){if(options.onOpen&&typeof options.onOpen=='function'){options.onOpen(obj)}if(!activated){setDimensions(options.initialHeight,options.initialWidth);adjustHeight(dims.inner_h,dims.top,false);adjustWidth(dims.width,false);toggleVisible(loadContent)}else{loadContent()}activated=true}};Shadowbox.change=function(num){if(!gallery)return;if(!gallery[num]){if(!options.continuous){return}else{num=num<0?(gallery.length-1):0}}if(typeof slide_timer=='number'){clearTimeout(slide_timer);slide_timer=null;slide_delay=slide_start=0}current=num;if(options.onChange&&typeof options.onChange=='function'){options.onChange(gallery[current])}loadContent()};Shadowbox.next=function(){this.change(current+1)};Shadowbox.previous=function(){this.change(current-1)};Shadowbox.play=function(){if(!hasNext())return;if(!slide_delay)slide_delay=options.slideshowDelay*1000;if(slide_delay){slide_start=new Date().getTime();slide_timer=setTimeout(function(){slide_delay=slide_start=0;SB.next()},slide_delay);toggleNav('play',false);toggleNav('pause',true)}};Shadowbox.pause=function(){if(typeof slide_timer=='number'){var time=new Date().getTime();slide_delay=Math.max(0,slide_delay-(time-slide_start));if(slide_delay){clearTimeout(slide_timer);slide_timer='paused'}toggleNav('pause',false);toggleNav('play',true)}};Shadowbox.close=function(){if(!activated)return;listenKeys(false);toggleVisible(false);if(content){content.remove();content=null}if(typeof slide_timer=='number')clearTimeout(slide_timer);slide_timer=null;slide_delay=0;if(options.onClose&&typeof options.onClose=='function'){options.onClose(gallery[current])}activated=false};Shadowbox.clearCache=function(){for(var i=0,len=cache.length;i<len;++i){if(cache[i].el){SL.removeEvent(cache[i].el,'click',handleClick);delete cache[i].el.shadowboxCacheKey}}cache=[]};Shadowbox.getPlugins=function(){return plugins};Shadowbox.getOptions=function(){return options};Shadowbox.getCurrent=function(){return gallery[current]};Shadowbox.getVersion=function(){return version};Shadowbox.getClient=function(){return client};Shadowbox.getContent=function(){return content};Shadowbox.getDimensions=function(){return dims};Shadowbox.raise=function(e){if(typeof options.handleException=='function'){options.handleException(e)}else{throw e}}})();


if(typeof Shadowbox=='undefined'){throw'Unable to load Shadowbox language file, base library not found.'}Shadowbox.LANG={code:'de-CH',of:'von',loading:'lade',cancel:'Abbrechen',next:'weiter',previous:'zurÃ¼ck',play:'Abspielen',pause:'Pause',close:'Schliessen',errors:{single:'Um den Inhalt anzeigen zu kÃ¶nnen muss die Browser-Erweiterung <a href="{0}">{1}</a> installiert werden.',shared:'Um den Inhalt anzeigen zu kÃ¶nnen mÃ¼ssen die beiden Browser-Erweiterungen <a href="{0}">{1}</a> und <a href="{2}">{3}</a> installiert werden.',either:'Um den Inhalt anzeigen zu kÃ¶nnen muss eine der beiden Browser-Erweiterungen <a href="{0}">{1}</a> oder <a href="{2}">{3}</a> installiert werden.'}};if(typeof Shadowbox=='undefined'){throw'Unable to load Shadowbox skin, base library not found.'}Shadowbox.SKIN={markup:'<div id="shadowbox_container">'+'<div id="shadowbox_overlay"></div>'+'<table cellspacing="0" id="shadowbox">'+'<tbody>'+'<tr>'+'<td style="background-position: 0px 0px;"></td>'+'<td style="background-position: 0px -60px;"></td>'+'<td id="closeTD">'+'<a id="shadowbox_close" onclick="Shadowbox.close()"title="{close}">'+'<img id="closeIMG" src="fileadmin/templates/images/box/closebox.png" width="30" height="30" alt="{close}" />'+'</a>'+'</td>'+'</tr>'+'<tr>'+'<td style="background-position: 0px -120px;"></td>'+'<td id="shadowbox_interface">'+'<span id="shadowbox_body">'+'<span id="shadowbox_body_inner"></span>'+'<span id="shadowbox_loading">'+'<a href="#" onclick="Shadowbox.close();">{cancel}</a>'+'</span>'+'</span>'+'<span id="shadowbox_info">'+'<span id="shadowbox_info_inner">'+'<ul id="shadowbox_nav">'+'<li id="shadowbox_nav_previous"><a title="{previous}" onclick="Shadowbox.previous()"><span>{previous}</span></a></li>'+'<li id="shadowbox_nav_play"><a title="{play}" onclick="Shadowbox.play()"><span>Slideshow {play}</span></a></li>'+'<li id="shadowbox_nav_pause"><a title="{pause}" onclick="Shadowbox.pause()"><span>Slideshow {pause}</span></a></li>'+'<li id="shadowbox_nav_next"><a title="{next}" onclick="Shadowbox.next()"><span>{next}</span></a></li>'+'</ul>'+'<span id="shadowbox_counter"></span>'+'<span id="shadowbox_title">'+'<span id="shadowbox_title_inner"></span>'+'</span>'+'</span>'+'</td>'+'<td style="background-position: -30px -120px;"></td>'+'</tr>'+'<tr>'+'<td style="background-position: 0px -30px;"></td>'+'<td style="background-position: 0px -90px;"></td>'+'<td style="background-position: -30px -30px;"></td>'+'</tr>'+'</tbody>'+'</table>'+'</div>',png_fix:['closeIMG']};

(function(){var SB=Shadowbox;var SL=SB.lib;var C=SB.getClient();var drag;var draggable;var drag_id='shadowbox_drag_layer';var preloader;var resetDrag=function(){drag={x:0,y:0,start_x:null,start_y:null}};var toggleDrag=function(on,h,w){if(on){resetDrag();var styles=['position:absolute','height:'+h+'px','width:'+w+'px','cursor:'+(C.isGecko?'-moz-grab':'move'),'background-color:'+(C.isIE?'#fff;filter:alpha(opacity=0)':'transparent')];SL.append(SL.get('shadowbox_body_inner'),'<div id="'+drag_id+'" style="'+styles.join(';')+'"></div>');SL.addEvent(SL.get(drag_id),'mousedown',listenDrag)}else{var d=SL.get(drag_id);if(d){SL.removeEvent(d,'mousedown',listenDrag);SL.remove(d)}}};var listenDrag=function(e){SL.preventDefault(e);var coords=SL.getPageXY(e);drag.start_x=coords[0];drag.start_y=coords[1];draggable=SL.get('shadowbox_content');SL.addEvent(document,'mousemove',positionDrag);SL.addEvent(document,'mouseup',unlistenDrag);if(C.isGecko)SL.setStyle(SL.get(drag_id),'cursor','-moz-grabbing')};var unlistenDrag=function(){SL.removeEvent(document,'mousemove',positionDrag);SL.removeEvent(document,'mouseup',unlistenDrag);if(C.isGecko)SL.setStyle(SL.get(drag_id),'cursor','-moz-grab')};var positionDrag=function(e){var content=SB.getContent();var dims=SB.getDimensions();var coords=SL.getPageXY(e);var move_x=coords[0]-drag.start_x;drag.start_x+=move_x;drag.x=Math.max(Math.min(0,drag.x+move_x),dims.inner_w-content.width);SL.setStyle(draggable,'left',drag.x+'px');var move_y=coords[1]-drag.start_y;drag.start_y+=move_y;drag.y=Math.max(Math.min(0,drag.y+move_y),dims.inner_h-content.height);SL.setStyle(draggable,'top',drag.y+'px')};Shadowbox.img=function(id,obj){this.id=id;this.obj=obj;this.resizable=true;this.ready=false;var self=this;preloader=new Image();preloader.onload=function(){self.height=self.obj.height?parseInt(self.obj.height,10):preloader.height;self.width=self.obj.width?parseInt(self.obj.width,10):preloader.width;self.ready=true;preloader.onload='';preloader=null};preloader.src=obj.content};Shadowbox.img.prototype={markup:function(dims){return{tag:'img',id:this.id,height:dims.resize_h,width:dims.resize_w,src:this.obj.content,style:'position:absolute'}},onLoad:function(){var dims=SB.getDimensions();if(dims.drag&&SB.getOptions().handleOversize=='drag'){toggleDrag(true,dims.resize_h,dims.resize_w)}},remove:function(){var el=SL.get(this.id);if(el)SL.remove(el);toggleDrag(false);if(preloader){preloader.onload='';preloader=null}}}})();(function(){var SB=Shadowbox;var SL=SB.lib;var C=SB.getClient();Shadowbox.iframe=function(id,obj){this.id=id;this.obj=obj;this.height=this.obj.height?parseInt(this.obj.height,10):SL.getViewportHeight();this.width=this.obj.width?parseInt(this.obj.width,10):SL.getViewportWidth()};Shadowbox.iframe.prototype={markup:function(dims){var markup={tag:'iframe',id:this.id,name:this.id,height:'100%',width:'100%',frameborder:'0',marginwidth:'0',marginheight:'0',scrolling:'auto'};if(C.isIE){markup.allowtransparency='true';if(!C.isIE7){markup.src='javascript:false;document.write("");'}}return markup},onLoad:function(){var win=(C.isIE)?SL.get(this.id).contentWindow:window.frames[this.id];win.location=this.obj.content},remove:function(){var el=SL.get(this.id);if(el){SL.remove(el);if(C.isGecko)delete window.frames[this.id]}}}})();(function(){var SB=Shadowbox;var SL=SB.lib;Shadowbox.html=function(id,obj){this.id=id;this.obj=obj;this.height=this.obj.height?parseInt(this.obj.height,10):300;this.width=this.obj.width?parseInt(this.obj.width,10):500};Shadowbox.html.prototype={markup:function(dims){return{tag:'div',id:this.id,cls:'html',html:this.obj.content}},remove:function(){var el=SL.get(this.id);if(el)SL.remove(el)}}})();(function(){var SB=Shadowbox;var SL=SB.lib;Shadowbox.flv=function(id,obj){this.id=id;this.obj=obj;this.resizable=true;this.height=this.obj.height?parseInt(this.obj.height,10):400;if(SB.getOptions().showMovieControls==true){this.height+=20}this.width=this.obj.width?parseInt(this.obj.width,10):600};Shadowbox.flv.prototype={markup:function(dims){var obj=this.obj;var h=dims.resize_h;var w=dims.resize_w;var options=SB.getOptions();var autoplay=String(options.autoplayMovies);var controls=options.showMovieControls;var showicons=String(controls);var displayheight=h-(controls?20:0);var flashvars=['file='+this.obj.content,'height='+h,'width='+w,'autostart='+autoplay,'displayheight='+displayheight,'showicons='+showicons,'backcolor=ffffff','frontcolor=ffffff','lightcolor=cc9900','screencolor=ffffff','skin=fileadmin/templates/player/overlay.swf&controlbar=over&autostart=true'];return{tag:'object',id:this.id,name:this.id,type:'application/x-shockwave-flash',data:options.flvPlayer,children:[{tag:'param',name:'movie',value:options.flvPlayer},{tag:'param',name:'flashvars',value:flashvars.join('&amp;')},{tag:'param',name:'allowfullscreen',value:'true'}],height:h,width:w}},remove:function(){var el=SL.get(this.id);if(el)SL.remove(el)}}})();(function(){var SB=Shadowbox;var SL=SB.lib;var C=SB.getClient();Shadowbox.qt=function(id,obj){this.id=id;this.obj=obj;this.height=this.obj.height?parseInt(this.obj.height,10):300;if(SB.getOptions().showMovieControls==true){this.height+=16}this.width=this.obj.width?parseInt(this.obj.width,10):300};Shadowbox.qt.prototype={markup:function(dims){var options=SB.getOptions();var autoplay=String(options.autoplayMovies);var controls=String(options.showMovieControls);var markup={tag:'object',id:this.id,name:this.id,height:this.height,width:this.width,children:[{tag:'param',name:'src',value:this.obj.content},{tag:'param',name:'scale',value:'aspect'},{tag:'param',name:'controller',value:controls},{tag:'param',name:'autoplay',value:autoplay}],kioskmode:'true'};if(C.isIE){markup.classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B';markup.codebase='http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0'}else{markup.type='video/quicktime';markup.data=this.obj.content}return markup},remove:function(){try{document[this.id].Stop()}catch(e){}var el=SL.get(this.id);if(el){SL.remove(el)}}}})();(function(){var SB=Shadowbox;var SL=SB.lib;Shadowbox.swf=function(id,obj){this.id=id;this.obj=obj;this.resizable=true;this.height=this.obj.height?parseInt(this.obj.height,10):300;this.width=this.obj.width?parseInt(this.obj.width,10):300};Shadowbox.swf.prototype={markup:function(dims){var bgcolor=SB.getOptions().flashBgColor;return{tag:'object',id:this.id,name:this.id,type:'application/x-shockwave-flash',data:this.obj.content,children:[{tag:'param',name:'movie',value:this.obj.content},{tag:'param',name:'bgcolor',value:bgcolor}],height:dims.resize_h,width:dims.resize_w}},remove:function(){var el=SL.get(this.id);if(el)SL.remove(el)}}})();

/**
 * 	jQuery.Cookie
 *	Version 1.0 
 */   
jQuery.cookie=function(a,b,c){if(typeof b!='undefined'){c=c||{};if(b===null){b='';c.expires=-1}var d='';if(c.expires&&(typeof c.expires=='number'||c.expires.toUTCString)){var e;if(typeof c.expires=='number'){e=new Date();e.setTime(e.getTime()+(c.expires*24*60*60*1000))}else{e=c.expires}d='; expires='+e.toUTCString()}var f=c.path?'; path='+(c.path):'';var g=c.domain?'; domain='+(c.domain):'';var h=c.secure?'; secure':'';document.cookie=[a,'=',encodeURIComponent(b),d,f,g,h].join('')}else{var j=null;if(document.cookie&&document.cookie!==''){var k=document.cookie.split(';');for(var i=0;i<k.length;i++){var l=jQuery.trim(k[i]);if(l.substring(0,a.length+1)==(a+'=')){j=decodeURIComponent(l.substring(a.length+1));break}}}return j}};


/**
 *	jQuery.trackPage
 *	http://github.com/christianhellsten/jquery-google-analytics/
 */
(function($){
	var pageTracker;
	$.trackPage = function(account_id, options){
		var host=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");
		var script;
		var settings=$.extend({},{onload:true,status_code:200},options);
		var src=host+'google-analytics.com/ga.js';
		function init_analytics(){
			if (typeof _gat!=undefined){
				debug('Google Analytics loaded');
 				pageTracker=_gat._getTracker(account_id);
				if(settings.status_code==null||settings.status_code==200){pageTracker._trackPageview()}else{debug('Tracking error '+settings.status_code);pageTracker._trackPageview("/"+settings.status_code+".html?page="+document.location.pathname+document.location.search+"&from="+document.referrer)}
				if($.isFunction(settings.callback)){settings.callback()}
			}
			else{throw "_gat is undefined"}
		}
		load_script = function(){$.ajax({type:"GET",url:src,success: function(){init_analytics()},dataType: "script",cache: true})}
		if(settings.onload==true||settings.onload==null){$(window).load(load_script)}else{load_script()}
	}
	$.trackEvent = function(category, action, label, value){
		if(typeof pageTracker=='undefined'){debug('FATAL: pageTracker is not defined')}else{pageTracker._trackEvent(category, action, label, value)}
	};
	$.trackPageview = function(uri){
		if(typeof pageTracker=='undefined'){debug('FATAL: pageTracker is not defined')}else{pageTracker._trackPageview(uri)}
	}
	$.fn.track = function(options){
    	return this.each(function(){
			var element=$(this);
			if(element.hasClass('tracked')){return false}else{element.addClass('tracked')} 
			var settings=$.extend({}, $.fn.track.defaults, options);
			var category=evaluate(element,settings.category);
			var action=evaluate(element,settings.action);
			var label=evaluate(element,settings.label);
			var value=evaluate(element,settings.value);
			var event_name=evaluate(element,settings.event_name);
			var message="category:'"+category+"' action:'"+action+"' label:'"+label+"' value:'"+value+"'";
			debug('Tracking '+event_name+' '+message);
			element.live(event_name+'.track',function(){       
				var skip=settings.skip_internal && (element[0].hostname==location.hostname);
				if(!skip){$.trackEvent(category,action,label,value);debug('Tracked '+message)}else{debug('Skipped '+message)}
				return true
			})
		});
		function evaluate(element,text_or_function){if(typeof text_or_function=='function'){text_or_function=text_or_function(element)}return text_or_function};
	};
	function debug(message){if(typeof console!='undefined'&&typeof console.debug!='undefined'&&$.fn.track.defaults.debug){console.debug(message)}};
	$.fn.track.defaults={
		category:function(element){return (element[0].hostname==location.hostname)?'internal':'external'},
		action:'click',
		label:function(element){return element.attr('href')},
		value:null,
		skip_internal:true,
		event_name:'click',
		debug:false
	};
})(jQuery);
/**
 * 	jQuery.focusFix
 */
(function($){
	$.fn.focusFix=function(){
		return this.each(function(){
			if($.browser.webkit||$.browser.msie){
				var $$=$($(this).attr('href'));
				if($$.length){
					$$.attr('tabindex','-1');
					$(this).click(function(){
						$$.focus()
					})
				}
			}
		})
	}
})(jQuery);


// READY:
jQuery(function($){$('#suchbox').searchbox({word:'suchen'});
$.trackPage('UA-6772993-1',{onload:false});$('#skiplinks a').focusFix();
function selectNav() {$(this).parents('ul:first').find('a').removeClass('selected').end().end().addClass('selected');}
function trigger(data) {var el = $('#navigation').find('a[href$="' + data.id + '"]').get(0);selectNav.call(el);}
function numExp(num){return /\d+/.exec(num);}
function bgLoaded(){bgimg = true;$('#sandbox').css('background','url(fileadmin/templates/css/images/sandbox.jpg) repeat center center');}
function resizeBox(station){if(station){$('#sandbox,#parallax').animate({height:boxheight});}else{$('#sandbox,#parallax').height(50);}}
function pFader(){
	if(boxheight==300){
	  	if(pImg<$sequence.length && !$.browser.msie && bgimg){
			if(startup){pGo();startup=false;}
			windowBind();
			$($sequence[pImg++]).fadeIn('slow', arguments.callee);
		}else if(bgimg){
		  	if(startup){pGo();startup=false;}
			windowBind();
			$sequence.show();
		}else{
			setTimeout(function(){pFader();},200);
		}  
	} 
}
function windowBind(){
	$(window).bind('resize',function(){
		if(resizeTimer) clearTimeout(resizeTimer);
		resizeTimer=setTimeout(resizeWindows,100)
	});
}
function resizeWindows(){
	var original=$('#parallax').clone();
	$('#parallax').replaceWith(original);
	$sequence = $('#parallax img');
	pGo();startup=false;
 }
function safarifeatures (){
	$('#search img').remove();
	$('#suchbox').replaceWith('<input type="search" placeholder="suchen" autosave="Suchergebnisse" results="5" accesskey="f" name="tx_indexedsearch[sword]" id="safarisearch" />');
}    
function setcookie(val) {
	if (val) {
		boxheight = val;
		$.cookie('boxheight', boxheight, { expires: 7});
		$('#sandbox,#parallax').animate({height:boxheight});
	} else {
		startup = true;
		if($.cookie('boxheight')){boxheight = $.cookie('boxheight')}
	}                   
	$('#sandbox,#parallax').removeClass()
	$('#sandbox,#parallax').addClass('h' + boxheight);  
	if (boxheight==300) {
		$('#resizerDown').hide();
		$('#resizerUp').show();
		pImg=0;
		$.preload($sequence,{onFinish: function(){pFader();}});
	} else {
		$('#resizerUp').hide();
		$('#resizerDown').show();
		if($.browser.msie) {$sequence.hide();}else{$sequence.fadeOut('slow');}
	}
}
function heightbuttons(){
	$('#sandbox').append('<a href="#" id="resizerUp">verkleinern</a><a href="#" id="resizerDown">vergrössern</a>');
	$('#resizerUp,#resizerDown').fadeTo(1,0).hover(
		function(){$(this).fadeTo(400,0.8);resizeOver=true;},
		function(){$(this).fadeTo(400,0.4);resizeOver=false}
	);
	$('#sandbox').bind('mouseover',function(){
		if(sandTimer) clearTimeout(sandTimer);
		if(!resizeOver) sandTimer=setTimeout(sandOver,1500)
	}).bind('mouseleave',function(){
		if(sandTimer)clearTimeout(sandTimer);
		$('#resizerUp,#resizerDown').fadeTo(400,0);
	});
	$('#resizerUp').click(function(){setcookie(50);return false;});
	$('#resizerDown').click(function(){setcookie(300);return false;});	
}
function sandOver(){
	$('#resizerUp,#resizerDown').fadeTo(400,0.4);
}
var boxheight=300,sandTimer=null,resizeOver=false, resizeTimer = null, $panels = $('.panel'), $container = $('#scrollContainer'), $scroll = $('#scroll').css('overflow', 'hidden'), ua = navigator.userAgent, station = true, $sequence = $('#parallax img'), bgimg = false, pImg = 0, offset = parseInt($container.css('paddingTop') || 0) * -1, scrollOptions = {target: $scroll,items: $panels,navigation: '#navigation a',prev: 'img.left',next: 'img.right',axis: 'xy',onAfter: trigger,offset: offset,duration: 500,easing: 'swing'};
if($('#sandbox').hasClass('h50')){boxheight=50}

$panels.css({'float':'left','position':'relative'});
$container.css('width', $panels[0].offsetWidth * $panels.length);
if ($panels.length > 1) {
	$scroll.before('<img class="scrollButtons left" src="fileadmin/templates/images/slider/scroll_left.png" />').after('<img class="scrollButtons right" src="fileadmin/templates/images/slider/scroll_right.png" />');
	$('#navigation').find('a').click(selectNav);
} else{$('#navigation a').width(1);};
if (ua.indexOf("iPhone") > 0 || ua.indexOf("iPod") > 0) {
	safarifeatures();
	var station = false;
	$('#sandbox,#parallax').height(50);
	$('#parallax').empty();	
	$('#safarisearch').css('padding-left','5x');
} else {
	heightbuttons();
	setcookie();
}
if ($.browser.safari){safarifeatures();}
$.preload('fileadmin/templates/css/images/sandbox.jpg',{onFinish: function(){bgLoaded();}});
$(document).pngFix();
Shadowbox.init();
$panels.each(function () {
	var galleryID = $(this).attr("id");
	$(this).find('a').each(function () {
		if ($(this).is('.sbox')) {
			$(this).shadowbox({gallery: galleryID,animate: station,onClose : function(){resizeBox(station);}});
		} 
		else if ($(this).is('[class^=sbox-],[href$=.mov],[href$=.flv],[href$=.mp4],[href$=.swf],[href$=.m4v]')) {
			 if ($(this).is('[class^=sbox-]')) {
				var dimsclass = $(this).attr('class').slice(5);
				dims = dimsclass.split('x');
			} 
			else if ($(this).is('[href$=.m4v]')) {
				dims = new Array(480,270);
			}
			else {
				filenamesplit = $(this).attr('href').split('.');
				var dimshref = filenamesplit[0].slice(-9);
				dims = dimshref.split('x');
			}			
			dims[0] = parseInt(numExp(dims[0]));
			dims[1] = parseInt(numExp(dims[1]));
			if (dims[0] > 0 && dims[1] > 0 ) {
				var filename=$(this).attr('href');
				var shboxOptions={width:dims[0],height:dims[1],gallery:galleryID,animate:station,onClose:function(){resizeBox(station);}			};
				$(this).shadowbox(shboxOptions);
			}
		}	
	});
});

if (window.location.hash) {trigger({ id : window.location.hash.substr(1) });} else {$('ul#navigation a:first').click();}
$('#slider').serialScroll(scrollOptions);
$.localScroll(scrollOptions);
scrollOptions.duration = 1;
$.localScroll.hash(scrollOptions);
if ($('#sbb').length) {
	var t=new Date(),yy=t.getFullYear(),mm=t.getMonth()+1,dd=t.getDate(),h=t.getHours(),m=t.getMinutes();
	m=Math.ceil(m/5)*5;if(m==60){h++;m=0}
	if(dd<10){dd='0'+dd};if(mm<10){mm='0'+mm};if(h<10){h='0'+h};if(m<10){m='0'+m};
	var date=dd+'.'+mm+'.'+yy,time=h+':'+m;
	$('#REQ0JourneyDate').val(date);$('#REQ0JourneyTime').val(time);
}

if($('.quicklink').length){
	var qheight='';
	$(this).find('.quicklink').each(function(){
		var h=$(this).height();
		if(qheight<h){qheight=h}
	}).css({height:qheight})
}

if($('.quicklist').length){
	$('.quicklist').each(function(){
		var heightArray = new Array(),$$=$(this),$dt=$$.find('dt'),$dd=$$.find('dd'),show='Alle Elemente ausklappen',hide='Alle Elemente einklappen',length=$dt.length;
		var link = $('<a class="toggler" href="#">Alle Elemente ausklappen</a>').click(function(){
			if($(this).hasClass('out')){
				$(this).removeClass('out').text(show);
				$dt.removeClass('act');
				$dd.slideUp('slow')
			}else{
				$(this).addClass('out').text(hide);
				$dt.each(function(){$(this).addClass('act').next('dd').css({height:heightArray[$('dl dt').index(this)]}).slideDown('slow')})
			}
			return false;
		});
		$$.after(link);
		$dd.each(function(i){heightArray[i]=$(this).height()}).hide();
		$dt.click(function () {
			$(this).toggleClass('act').next('dd').css({height:heightArray[$dt.index(this)]}).slideToggle('slow');
			if($dt.filter('.act').length==length){link.addClass('out').text(hide)}else if($dt.filter('.act').length==0){link.removeClass('out').text(show)}
		})
	})
}

});

