	currentForm = '';
	
// JavaScript Document
	function showLayer(id) {
		if(document.getElementById(id).style.display == 'block')
			document.getElementById(id).style.display = 'none';
		else
			document.getElementById(id).style.display = 'block';
	}
	
	function hideLayer(id) {
		document.getElementById(id).style.display = 'none';
	}
		
	function toggleForm(id) {
		
		
		if(currentForm) {
			$(currentForm).hide();
		}
		
		$(id).show();
		currentForm = id;
		
		
	}
	
	
	function toggleIntro(){
		var cssObj = {
		/*'background-image' : 'url(/img/roboter.jpg)',
        'background-position' : 'top right',
        'margin-left' : '636px',
        'width' : '262px',
        'height' : '442px'*/
        'width' : '0px',
        'height' : '0px'
    	}
		
		$("#intro").css(cssObj);
		
		//$("#intro").css({right:230});
		//$("#intro").width(230);
		$("#ticketform").jScrollPane({scrollbarWidth:15, scrollbarMargin:40});
		$("#intro").html('&nbsp;');
	}
	

	
	function startfadeintro()
	{
		$('#ticketform').show();
		$("#ticketform").jScrollPane({scrollbarWidth:15, scrollbarMargin:40});
		$('#roboter_layer_rechts').show();
	}
	
	
	function openpop(adr)
	{
		newwindow=window.open(adr,'openpop', 'width=600,height=710');
		if (window.focus) {newwindow.focus()}
		return false;

	}
	
	function openworkspace(adr)
	{
		newwindow=window.open(adr,'openworkspace', 'width=820,height=420');
		if (window.focus) {newwindow.focus()}
		return false;
	}
	
	function clearRadioGroup(groupName) {
		var var_name = $("input[name='"+groupName+"']:checked").val();
		
	}
	
	$(document).ready(function(){  
		$('#footernav .expand').hover(   
			 function () { 
				 $('.subitems',this).slideDown(150);  
			 },  
			 function () {  
			 	$('.subitems',this).slideUp(150);
			 }  
		 );
		$('.subitems .active').clone().prependTo('#footernav #actlang');
		
	});
	
	function selectLink(box,path){
		newPath = '/' + path + '/' +  box.options[box.selectedIndex].value;
		
		document.location.href = newPath;	
	}

