function change_classOver(element){
        element.className = 'menu_nav_item_over';
}
function change_classOut(element){
        element.className = 'menu_nav_item';
}
function change_classSubOver(element){
        element.className = 'submenu_nav_item_over';
}
function change_classSubOut(element){
        element.className = 'submenu_nav_item';
}

function hideshow(div2show){
    hideall();
    document.getElementById(div2show).style.display = '';
}

function printProperty( print_page ) {
    window.open(print_page,'PRINT_PREVIEW');
}


//function clearHashtag(){url=location.href;hashtag=(url.indexOf('#!prettyPhoto')>0)?true:false;if(hashtag)location.hash="!prettyPhoto";}


function show_recommend(ficha) { 
    $("#recomendar_div").fadeIn('slow'); 
    
   var div_w = $("#recomendar_div").width() + 10; 
   var div_h = $("#recomendar_div").height() + 28; 
   
    var w = $(this).width(); 
    var h = $(this).height(); 
    
   //Centra el popup    
   w = (w/2) - (div_w/2); 
   h = (h/2) - (div_h/2) + 150; 
   $("#recomendar_div").css("left",w + "px"); 
   $("#recomendar_div").css("top",h + "px");
   
   
} //show recommend

function close_recommend(){
        //document.getElementById('ficha').value=0;
        $("#recomendar_div").fadeOut('slow'); 
        document.getElementById('commentFormRecommend').reset();
        //document.getElementById('recomendar_div').style.display="none";
	
} //close_recommend

function show_contact(ficha) { 
    $("#send_mail").fadeIn('slow');
    $("#pop_up_close").fadeIn('slow'); 
    
   var div_w = $("#send_mail").width() + 10; 
   var div_h = $("#send_mail").height() + 28; 
   
    var w = $(this).width(); 
    var h = $(this).height(); 
    
   //Centra el popup    
   w = (w/2) - (div_w/2); 
   h = (h/2) - (div_h/2) + 150; 
   $("#send_mail").css("left",w + "px"); 
   $("#send_mail").css("top",h + "px");
   
   
} //show recommend

function close_contact(){
        //document.getElementById('ficha').value=0;
        $("#send_mail").fadeOut('slow'); 
        $("#pop_up_close").fadeIn('slow');
        document.getElementById('commentForm').reset();
        //document.getElementById('recomendar_div').style.display="none";
	
} //close_recommend

function show_map(latitud,longitud,geolocalizacion) { 
    $("#map_content").fadeIn('slow'); 
    
   var div_w = $("#map_content").width() + 10; 
   var div_h = $("#map_content").height() + 28; 
   
    var w = $(this).width(); 
    var h = $(this).height(); 
    
   //Centra el popup    
   w = (w/2) - (div_w/2); 
   h = (h/2) - (div_h/2) + 150; 
   $("#map_content").css("left",w + "px"); 
   $("#map_content").css("top",h + "px");
   
    var latitud = latitud;
    var longitud = longitud;
    //$.noConflict();
    if (GBrowserIsCompatible()) {
        var map;
        map = new GMap2(document.getElementById("map"),{size:new GSize(400,340)});
        map.setCenter(new GLatLng(latitud,longitud),15);
	if (geolocalizacion == 1) {
	        var point = new GLatLng(latitud,longitud);
        	map.addOverlay(new GMarker(point));
	}
    }
    map.setUIToDefault();
    map.setCenter(new GLatLng(latitud,longitud),15);
   
   
} //show_map

function close_map(){
        //document.getElementById('ficha').value=0;
        $("#map_content").fadeOut('slow'); 
        //document.getElementById('recomendar_div').style.display="none";
	
} //close_map


function show_video() { 
    $("#video_content").fadeIn('slow'); 
    
   var div_w = $("#video_content").width() + 10; 
   var div_h = $("#video_content").height() + 28; 
   
    var w = $(this).width(); 
    var h = $(this).height(); 
    
   //Centra el popup    
   w = (w/2) - (div_w/2); 
   h = (h/2) - (div_h/2) + 150; 
   $("#video_content").css("left",w + "px"); 
   $("#video_content").css("top",h + "px");
   
} //show_video

function close_video(){
        //document.getElementById('ficha').value=0;
        $("#video_content").fadeOut('slow'); 
        //document.getElementById('recomendar_div').style.display="none";
	
} //close_video


// fin de funciones de map

