function show_sub( item ){	
	
	var divsId = new Array(
	
		"top_under_our_comp", 
		"top_under_solutions", 
		"top_under_advertisers", 
		"top_under_application", 
		"top_under_relations", 
		"top_under_news",
		"top_under_faq"
	);
		
	for( var i=0; i<divsId.length; i++ ){		
		
		if( divsId[i] != item ){
			
			document.getElementById(divsId[i]).style.display = "none";
		}
		else{
			
			document.getElementById(divsId[i]).style.display = "block";
		}		
	}	
}

function show_menu(pg){
	
	if( pg == 2 || pg == 3 || pg == 4 ){
		
		show_sub("top_under_our_comp");
		document.getElementById("top_under_our_comp_par").style.color="#00B0DB";
	}
	
	if( pg == 6 || pg == 8 || pg == 28 || pg == 9 || pg == 10 ){
		
		show_sub("top_under_solutions");
		document.getElementById("top_under_solutions_par").style.color="#00B0DB";
	}
	
	if( pg == 13 || pg == 7 || pg == 11 ){		
		
		show_sub("top_under_advertisers");
		document.getElementById("top_under_advertisers_par").style.color="#00B0DB";
	}
	
	if( pg == 16 || pg == 17 || pg == 18 || pg == 19 || pg == 20 || pg == 21 ){
		
		show_sub("top_under_application");
		document.getElementById("top_under_application_par").style.color="#00B0DB";
	}
	
	if( pg == 32 || pg == 33 ){
		
		show_sub("top_under_faq");
		document.getElementById("top_faq_par").style.color="#00B0DB";
	}
	
	/*if( pg == 22 || pg == 23 || pg == 24 ){
		
		show_sub("top_under_relations");
	}*/
	
	if( pg == 25 || pg == 26 || pg == 27 ){
		
		show_sub("top_under_news");
		document.getElementById("top_under_news_par").style.color="#00B0DB";
	}
	
	if( pg == 30 ){
		
		document.getElementById("top_flash_par").style.color="#00B0DB";
	}
	
	if( pg == 22 ){
		
		document.getElementById("top_under_relations_par").style.color="#00B0DB";
	}
	
	if( pg == 29 ){
		
		document.getElementById("top_contacts_par").style.color="#00B0DB";
	}
}



function closeImageShowDiv(){
	
	var imageDiv = document.getElementById("image_show_div");
	imageDiv.style.display = "none";
}

function ImageShow( img ){
	
	var imageTd = document.getElementById("image_here_td");
	var imageDiv = document.getElementById("image_show_div");
	
	imageTd.innerHTML = '<img src="' + img + '">';
	imageDiv.style.display = "block";
}

function MenuManage( num ){
	
	var Ul = document.getElementById('menu_group_' + num);
	
	if( Ul.style.display == "none" || Ul.style.display == "" ){
		
		Ul.style.display = "block";
	}
	else{
		
		Ul.style.display = "none";
	}
}

function FormDivOpen( DivIdsToShow, BodyId ){
	
	var ShowDiv = document.getElementById(DivIdsToShow);
	
	var carsDiv = document.getElementById("cars_form_div");
	
	var autobusDiv = document.getElementById("autobus_form_div");
	var tracksDiv = document.getElementById("tracks_form_div");
	var commercialDiv = document.getElementById("commercial_tracks_form_div");
	
	carsDiv.style.display = "none";
	autobusDiv.style.display = "none";
	tracksDiv.style.display = "none";
	commercialDiv.style.display = "none";
	
	if( BodyId > 0 ){
		
		if( document.getElementById("App_SEARCH_1_body")==undefined ){
			
			var bodyInput = document.getElementById("App_1_body");
		}
		else{
			
			var bodyInput = document.getElementById("App_SEARCH_1_body");
		}
	
		bodyInput.value = BodyId;
	}
	
	ShowDiv.style.display = "block";
}

function ShowService(id) {
	
	if ( document.getElementById("ser_text_" + id).style.display == "none" ) {
		
		document.getElementById("ser_text_" + id).style.display = "block";
		document.getElementById("serv_icon_" + id).innerHTML = '<img src="../uploads/templates/media/img/services_icon_act.gif">';
		document.getElementById("ser_title_" + id).className = "service_title_1";
		
	} else {
		
		document.getElementById("ser_text_" + id).style.display = "none";
		document.getElementById("serv_icon_" + id).innerHTML = '<img src="../uploads/templates/media/img/services_icon_pass.gif">';
		document.getElementById("ser_title_" + id).className = "service_title";
	}
}