<!-- Begin
function Favorit(nr){
	if (document.images['FavoritA'].src.indexOf("notice-de.gif") !=-1){
		document.images['FavoritDummy'].src="/search/favorit.php?Do=Add&ID="+nr+"&reload="+Math.floor(Math.random()*1000+1); 
		document.images['FavoritA'].src= "http://"+window.location.hostname+"/img/object/noticed-de.gif"; 
		document.images['FavoritB'].src= "http://"+window.location.hostname+"/img/object/noticed-de.gif";
	} 
	else{ 
		document.images['FavoritDummy'].src="/search/favorit.php?Do=Del&ID="+nr+"&reload="+Math.floor(Math.random()*1000+1); 
		document.images['FavoritA'].src= "http://"+window.location.hostname+"/img/object/notice-de.gif"; 
		document.images['FavoritB'].src= "http://"+window.location.hostname+"/img/object/notice-de.gif"; 
	}
}

function Favorit1(nr){
	if (document.images['FavoritAlone'].src.indexOf("notice-de.gif") !=-1){
		document.images['FavoritDummy'].src="/search/favorit.php?Do=Add&ID="+nr+"&reload="+Math.floor(Math.random()*1000+1); 
		document.images['FavoritAlone'].src= "http://"+window.location.hostname+"/img/object/noticed-de.gif"; 
	}
	else{ 
		document.images['FavoritDummy'].src="/search/favorit.php?Do=Del&ID="+nr+"&reload="+Math.floor(Math.random()*1000+1); 
		document.images['FavoritAlone'].src= "http://"+window.location.hostname+"/img/object/notice-de.gif"; 
	}
}

function change_div_height(div_id){
	if (document.images['DisplayVacancy'].src.indexOf("6m-de.gif") !=-1){
		document.images['DisplayVacancy'].src= "/img/object/12m-de.gif";
		div_height = 86;
		document.images['FavoritDummy'].src="/object/session_mng.php?VacMonths=6"; 
	}
	else{
		document.images['DisplayVacancy'].src= "/img/object/6m-de.gif";
		div_height = 165;
		document.images['FavoritDummy'].src="/object/session_mng.php?VacMonths=12"; 
	}
	if(document.layers){
		document.vacancy_table.height = div_height+'px'
	}
	else if(document.all){
		document.all[div_id].style.height = div_height+'px'
	}
	else if(document.getElementById){
		document.getElementById(div_id).style.height = div_height+'px'
	}
}
function change_iframe_height(div_id,gmap,gmap_id,option){
	if (document.images['DisplayGmap'].src.indexOf("hide-de.gif") !=-1 && option != 'center' && option != 'fullzoom'){
		document.images['DisplayGmap'].src= "/img/object/show-de.gif";
		div_height = 0;
		//document.images['FavoritDummy'].src="/object/session_mng.php?Gmap=N";
	}
	else{
		document.images['DisplayGmap'].src= "/img/object/hide-de.gif";
		div_height = 400;
		//document.images['FavoritDummy'].src="/object/session_mng.php?Gmap=Y"; 
		if(parent.GmapIF.location.href == "about:blank"){
			parent.GmapIF.location.href="/object/ext/gmap.php?"+gmap+"ID="+gmap_id+"&option="+option;
		}
		else{
			window.frames.GmapIF.center_map(option);
			
		}
		self.location.href='#gmap';
	}
	
	if(document.layers){
		document.vacancy_table.height = div_height+'px'
	}
	else if(document.all){
		document.all[div_id].style.height = div_height+'px'
	}
	else if(document.getElementById){
		document.getElementById(div_id).style.height = div_height+'px'
	}
}
// End -->
