/**
 * Copyright ActiveWebShop for Anderson Willinger
 * ----------------------------------------------
*/


/* eval(function(p,a,c,k,e,r){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--)r[e(c)]=k[c]||e(c);k=[function(e){return r[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}('1 1Q(2,Q){t 13=8.D?8.D.14().15:2.m.R(2.16,2.17);t S=\'<\'+Q+\'>\'+13+\'</\'+Q+\'>\';n(8.D){8.D.14().15=S}18{2.m=2.m.R(0,2.16)+S+2.m.R(2.17,2.m.1R)}}(1($){$.19.1a=$.19.1b=1(E){E=E||1S;1c=1(2){1d(2);2.u=$("1T",2);2.u.1U(":1V(0)").v().1W();2.w=0;1e(2)};1e=1(2){2.1f=1X(1(){1g(2)},E)};1d=1(2){1Y(2.1f)};1h=1(2){2.x=y};1i=1(2){2.x=z};1g=1(2){n(2.x)c;2.x=y;$(2.u[2.w]).1Z("1j",1(){$(3).v();2.w=++2.w%(2.u.20());$(2.u[2.w]).21("1j",1(){2.x=z})})};3.22(1(){n(3.23.24()!="p")c;1c(3)}).f("1b").25(1(){1h(3)},1(){1i(3)});c 3}})(T);$(8).1k(1(){$(".26").1a()});$(1(){$(\'.k d\').v();t 1l=/^#(.*)/;$(\'.k #F a\').g(1(1m){$(\'.k #F l a\').h(\'1n\');$(3).f(\'1n\');1m.G=3.H;$(\'.k d\').v();n(1l.27($(3).U(\'I\'))){$($(3).U(\'I\')).28();$(\'.k\').9(\'e\').i({"A":"B"});J.1o.8.1p.1q=\'\'+($(\'.k #F\').7()+$($(3).U(\'I\')).7())+\',*\';c z}18 J.1o.8.1p.1q=\'\'+$(\'.k #F\').7()+\',*\'})});$(8).1k(1(){$("d.1r").g(1(){$("d#1s").o({7:"29"}).o({7:"2a"},"K");$("d.1r").j()});$("d#2b").g(1(){$("d#1s").o({7:"1t"},"K")});$("e.1u").g(1(){$("d#1v").o({7:"2c"}).o({7:"2d"},"K");$("e.1u").j()});$("e#2e").g(1(){$("d#1v").o({7:"1t"},"K")});$(1(){$(\'2f > 2g\').2h({2i:y});$(\'.1w\').v();$(\'2j\').g(1(){$(\'.1w:2k\').2l().2m().h(\'1x\');$(3).f(\'1x\').2n().2o()})});$("#2p").2q({2r:y,2s:y})});T(J).b(\'2t\',1(){T(\'d#2u\').2v()});$(1(){t L=z;t M=z;$(\'#N\').b(\'5\',1(4){$(\'#N\').h(\'q\');$(3).f(\'q\');c!M});$(\'#N l e\').g(1(4){$(3).V(\'5\');4.W();$(3).b(\'5\',1(4){$(\'.6\').9(\'.2w\').j(r);$(\'.6\').9(\'.X\').j(r);$(\'.6\').9(\'.Y\').i({"A":"B"});$(\'.6\').i({"Z-7":"10"})})}).b(\'5\',1(4){$(\'#N l e\').h(\'s\');$(3).f(\'s\');4.G=3.H;c!L});$(\'#O\').b(\'5\',1(4){$(\'#O\').h(\'q\');$(3).f(\'q\');c!M});$(\'#O l e\').g(1(4){$(3).V(\'5\');4.W();$(3).b(\'5\',1(4){$(\'.6\').9(\'.1y\').i({"A":"B"});$(\'.6\').9(\'.Y\').j(r);$(\'.6\').9(\'.X\').j(r);$(\'.6\').i({"Z-7":"10"})})}).b(\'5\',1(4){$(\'#O l e\').h(\'s\');$(3).f(\'s\');4.G=3.H;c!L});$(\'#C\').b(\'5\',1(4){$(\'#C\').h(\'q\');$(3).f(\'q\');c!M});$(\'#C l e\').g(1(4){$(3).V(\'5\');4.W();$(3).b(\'5\',1(4){$(\'.6\').9(\'.X\').i({"A":"B"});$(\'.6\').9(\'.1y\').i({"A":"B"});$(\'.6\').9(\'.2x\').j(r);$(\'.6\').9(\'.Y\').j(r);$(\'.6\').i({"Z-7":"10"})})}).b(\'5\',1(4){$(\'#C l e\').h(\'s\');$(3).f(\'s\');4.G=3.H;c!L});$(\'#C\').b(\'5\',1(4){})});1 2y(1z,P,1A){2z(1z+".1B=\'"+P.2A[P.1C].m+"\'");n(1A)P.1C=0}1 2B(1D){1E=2C("2D 11 2E 11 1F 1G 1H 3 1I? 2F 1J 2G, 2H 2I 1K 1L 12 1M 1N.");n(1E){8.1B.I=1D}}1 1O(1P){J.8.2J.2K(1P)}1 2L(){2M("2N ! 2O 11 1F 1G 1H 3 1I, 12 2P 2Q 2R 1J 1K 1L 12 1M 1N.")}8.2S=1O;',62,179,'|function|el|this|event|rowclicked|mdsw|height|document|find||bind|return|div|span|addClass|click|removeClass|css|toggle|header|li|value|if|animate||focused|1000|selected|var|items|hide|currentitem|pause|true|false|display|none|ul3|selection|delay|menus|rowID|id|href|window|fast|stopOnRow|stopOnTable|ul1|ul2|selObj|tag|substring|newText|jQuery|attr|bubble|stopPropagation|tbl2|tbl3|min|310px|you|be|selectedText|createRange|text|selectionStart|selectionEnd|else|fn|newsTicker|newsticker|initTicker|stopTicker|startTicker|tickfn|doTick|pauseTicker|resumeTicker|slow|ready|id_href|events|cur|top|body|rows|slide|panel|0px|slide2|panel2|adm|open|tbl|targ|restore|location|selectedIndex|idurl|go_on|want|to|delete|item|associated|data|will|deleted|also|handleClick|evnt|formatText|length|4000|strong|not|eq|end|setInterval|clearInterval|fadeOut|size|fadeIn|each|nodeName|toLowerCase|hover|ticker|test|show|130px|90px|hide_button|230px|200px|hide_button2|map|area|tooltip|positionLeft|h2|visible|slideUp|prev|next|slideDown|slider|easySlider|auto|continuous|load|slider1|codaSlider|tbl1|quotes|MM_jumpMenu|eval|options|delitem|confirm|Are|sure|All|documents|pictures|and|del|handleEvent|showMsg|alert|Warning|If|aware|that|all|onclick'.split('|'),0,{}))
*/

function formatText(el,tag){
	var selectedText=document.selection ? document.selection.createRange().text:el.value.substring(el.selectionStart,el.selectionEnd);
	var newText='<'+tag+'>'+selectedText+'</'+tag+'>';
	if(document.selection){
		document.selection.createRange().text=newText
	}else{
		el.value=el.value.substring(0,el.selectionStart)+newText+el.value.substring(el.selectionEnd,el.value.length)
	}
}
(function($){
	$.fn.newsTicker=$.fn.newsticker= function(delay){
		delay=delay||4000;
		initTicker= function(el){
			stopTicker(el);
			el.items=$("strong",el);
			el.items.not(":eq(0)").hide().end();
			el.currentitem=0;
			startTicker(el)
		};
		startTicker=function(el){
			el.tickfn=setInterval(function(){
				doTick(el)},delay)
		};
		stopTicker=function(el){
			clearInterval(el.tickfn)
		};
		pauseTicker=function(el){el.pause=true};
		resumeTicker=function(el){el.pause=false};
		doTick=function(el){
			if(el.pause)return;
			el.pause=true;
			$(el.items[el.currentitem]).fadeOut("slow",function(){
				$(this).hide();
				el.currentitem=++el.currentitem%(el.items.size());
				$(el.items[el.currentitem]).fadeIn("slow",function(){ el.pause=false })
			})
		};
		this.each(function(){
			if(this.nodeName.toLowerCase()!="p")return;
			initTicker(this)
		}).addClass("newsticker").hover(function(){pauseTicker(this)},function(){resumeTicker(this)});
		return this
	}
})
(jQuery);
$(document).ready(function(){
	$(".ticker").newsTicker()
});
$(function(){
	$('.header div').hide();
	var id_href=/^#(.*)/;
	$('.header #menus a').click(function(events){
		$('.header #menus li a').removeClass('cur');
		$(this).addClass('cur');
		events.rowID=this.id;
		$('.header div').hide();
		if(id_href.test($(this).attr('href'))){
			$($(this).attr('href')).show();
			$('.header').find('span').css({"display":"none"});
			window.top.document.body.rows=''+($('.header #menus').height()+$($(this).attr('href')).height())+',*';
			return false
		}else window.top.document.body.rows=''+$('.header #menus').height()+',*'
	})
});
$(document).ready(function(){
	$("div.slide").click(function(){
		$("div#panel").animate({height:"130px"}).animate({height:"90px"},"fast");
		$("div.slide").toggle()
	});
	$("div#hide_button").click(function(){
		$("div#panel").animate({height:"0px"},"fast")});
		$("span.slide2").click(function(){
			$("div#panel2").animate({height:"230px"}).animate({height:"200px"},"fast");
			$("span.slide2").toggle()});
			$("span#hide_button2").click(function(){
				$("div#panel2").animate({height:"0px"},"fast")
			});
		$(function(){
			$('map > area').tooltip({positionLeft:true});
			$('.adm').hide();
			$('h2').click(function(){
				$('.adm:visible').slideUp().prev().removeClass('open');
				$(this).addClass('open').next().slideDown()
			})
		});
		$("#slider").easySlider({auto:true,continuous:true})
});
jQuery(window).bind('load',function(){
	jQuery('div#slider1').codaSlider()});
	$(function(){
		var stopOnRow=false;
		var stopOnTable=false;
		$('#ul1').bind('rowclicked',function(event){
			$('#ul1').removeClass('focused');
			$(this).addClass('focused');
			return!stopOnTable
		});
		$('#ul1 li span').click(function(event){
			$(this).bubble('rowclicked');
			event.stopPropagation();
			$(this).bind('rowclicked',function(event){
				$('.mdsw').find('.tbl1').toggle(1000);
				$('.mdsw').find('.tbl2').toggle(1000);
				$('.mdsw').find('.tbl3').css({"display":"none"});
				$('.mdsw').css({"min-height":"310px"})
			})
		}).bind('rowclicked',function(event){
			$('#ul1 li span').removeClass('selected');
			$(this).addClass('selected');
			event.rowID=this.id;
			return!stopOnRow
		});
		$('#ul2').bind('rowclicked',function(event){
			$('#ul2').removeClass('focused');
			$(this).addClass('focused');
			return!stopOnTable
		});
		$('#ul2 li span').click(function(event){
			$(this).bubble('rowclicked');
			event.stopPropagation();
			$(this).bind('rowclicked',function(event){
				$('.mdsw').find('.tbl').css({"display":"none"});
				$('.mdsw').find('.tbl3').toggle(1000);
				$('.mdsw').find('.tbl2').toggle(1000);
				$('.mdsw').css({"min-height":"310px"})
			})
		}).bind('rowclicked',function(event){
			$('#ul2 li span').removeClass('selected');
			$(this).addClass('selected');
			event.rowID=this.id;
			return!stopOnRow
		});
		$('#ul3').bind('rowclicked',function(event){
			$('#ul3').removeClass('focused');
			$(this).addClass('focused');
			return!stopOnTable
		});
		$('#ul3 li span').click(function(event){
			$(this).bubble('rowclicked');
			event.stopPropagation();
			$(this).bind('rowclicked',function(event){
				$('.mdsw').find('.tbl2').css({"display":"none"});
				$('.mdsw').find('.tbl').css({"display":"none"});
				$('.mdsw').find('.quotes').toggle(1000);
				$('.mdsw').find('.tbl3').toggle(1000);
				$('.mdsw').css({"min-height":"310px"})
			})
		}).bind('rowclicked',function(event){
			$('#ul3 li span').removeClass('selected');
			$(this).addClass('selected');
			event.rowID=this.id;
			return!stopOnRow
		});
		$('#ul3').bind('rowclicked',function(event){})
	});
function MM_jumpMenu(targ,selObj,restore){
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if(restore)selObj.selectedIndex=0}
function delitem(idurl){
	go_on=confirm("Are you sure you want to delete this item? All associated documents, pictures and data will be deleted also.");
	if(go_on){document.location.href=idurl}
}
function handleClick(evnt){
	if(window.document.del) window.document.del.handleEvent(evnt)
}
function showMsg(){
	alert("Warning ! If you want to delete this item, be aware that all associated data will be deleted also.")
}
document.onclick=handleClick;
