// start first function

/*function addServizi (areaID, divID) {
	// Make sure that the browser supports getElementById()
	if(!document.getElementById) return false;

	var serv = document.getElementById(divID);
	if(serv != null) {
		return false;
	}

	// Get the div where the maps will appear
	var divArea = document.getElementById(areaID);
	
	// The whole HTML of the table
	var htmlText = 	"<table class='services' width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>"+
					"<tr><td class='tl'></td><td class='tc'></td><td class='tr'></td></tr>"+
					"<tr><td rowspan='7' class='ml'></td><td height='50' align='center' bgcolor='#53628c'><font color='#FFFFFF' size='+1'><b>I NOSTRI SERVIZI</b></font></td>"+
					"<td rowspan='7' class='mr'></td></tr><tr><td height='15'></td></tr>"+
					"<tr><td align='left'>Officina meccanica</td></tr><tr><td align='left'>Carrozzeria</td></tr>"+
					"<tr><td align='left'>Autolavaggio automatico e manuale</td></tr><tr><td align='left'>Showroom</td></tr>"+
					"<tr><td align='center'><a class='services' href='#' onClick=\"removeDiv('servizi', 'serv'); return false;\">CHIUDI FINESTRA</a></td></tr>"+
					"<tr><td class='bl'></td><td class='bc'></td><td class='br'></td></tr></table>";
		
	
	//alert(htmlText);
		
	// Create a new div, which will hold the new table
	var newDiv = document.createElement('div');
	newDiv.id = divID;
	newDiv.innerHTML = htmlText;
	
	divArea.appendChild(newDiv);
}

// end first function

// start second function

function removeDiv (areaID, divID) {
	if(!document.getElementById) return false; //Prevent older browsers from getting any further.
	
	var divArea = document.getElementById(areaID);

	var div = document.getElementById(divID);
	if (div != null){
		divArea.removeChild(div);
	}
}*/

$(document).ready(function(){
    
	$("#orari_gottardo").hide();
    $("#orari_sottobisio").hide();
    $("#orari_cadenazzo").hide();
    $("#servizi").hide();

	$("#orari").click(function() {
		$("#orari_gottardo").slideToggle();
        $("#orari_sottobisio").slideToggle();
        $("#orari_cadenazzo").slideToggle();
        $("#servizi").hide();
        return false;
	});
    
    $("#servizzi").click(function() {
        $("#servizi").slideToggle();
        $("#orari_gottardo").hide();
        $("#orari_sottobisio").hide();
        $("#orari_cadenazzo").hide();
        return false;
    });

});