//document.write('<'+'script src="/js/nav_main.js" type="text/javascript"'+'><'+'/script'+'>');
document.write('<'+'script src="/js/swfobject.js" type="text/javascript"'+'><'+'/script'+'>');


function hmpf_autotab()
	{//{{{
		 $(document).bind('ready',function(){
			
			$(".expandableTab").click(function() {
				$(this).siblings().toggle("");
				$(this).parent().toggleClass("expandableOpen");
			}).siblings().hide();
			$(".expandableOpen .expandableTab").siblings().show();
			
			
			$(".expandableTab")
				.mouseover(function() {
					$(this).addClass("over");
				})
				.mouseout(function() {
					$(this).removeClass("over");
				});
			
			
				
			$(".expandableLink").click(function() {
				$(this).siblings().toggle("");
				$(this).parent().toggleClass("expandableOpen");
			}).siblings().hide();	
			
			

			$(".btn_schliessen_grey").click(function() {
				$(this).parent().parent().parent().parent().hide();
			});

			

		});
	}//}}}
	
	
	
	function changeImageFromParent(uri,_this)
		{/*{{{*/
			if (!uri) return false;

			if (_this && _this.firstChild && _this.firstChild.tagName && _this.firstChild.tagName.toLowerCase) //DOM ?
				{
					if (_this.firstChild.tagName.toLowerCase() == 'img') // <img... ?
					_this.firstChild.src = uri;//set src="...">
					return true;
				}

			//IE 4+ (?)
			if (!window || !window.event || !window.event.srcElement || !window.event.srcElement.tagName) return false;
			if (window.event.srcElement.tagName.toLowerCase() != 'img') return false;
			window.event.srcElement.src = uri;
			return true;
		}/*}}}*/
	function changeImageFromSubmit(uri,_this)
		{/*{{{*/
			if (uri && _this && _this.src) _this.src = uri;
		}/*}}}*/
		
		
		
	function openWin(uri,w,h,l,t,_options)
	{
		if (!uri) return false;
		if (!w) w=400;
		if (!h) h=500;
		if (!l) l=10;
		if (!t) t=10;
		if (!_options)	_options='scrollbars=no,resizable=1,status=no';
		window.open(uri,"_blank","width="+w+",height="+h+",left="+l+",top="+t+","+_options) 
	}
	
