$(document).ready(function(){
    var tabs = $('ul.tabs');
        tabs.children('li').click(function(){
             if(!$(this).hasClass('active')){
                 var active = tabs.find('li.active');
                     active.find('div.description-data').hide();
                     active.removeClass('active');
                 $(this).find('div.description-data').fadeIn(1000);
                 $(this).addClass('active');
             return false;
             }
        });


   var navs = $('ul.navigation li.subNavigation');
   //var navs = $('ul.navigation li');
   var activeUl = $('ul.navigation #active');

       navs.hover(function(){
            activeUl.removeAttr('id');
            $(this).attr('id','active');
            $(this).find('ul').show();
                },function(){
                    //activeUl.removeAttr('id');
                    $(this).removeAttr('id');
                    $(this).find('ul').hide();
                    activeUl.attr('id','active');
                });
});


function showMap(href){  
	$('body ._garcha').remove();

 var img = new Image();
	img.src = href;
 
 var newImg = $('<img src="'+href+'" onclick="$(\'body ._garcha\').remove();" class="_garcha" width="'+img.width+'" height="'+img.height+'" alt="" />');
     newImg.css({
          'cursor':'pointer',  
          'display':'none',  
     	'z-index':200,
     	'position':'fixed',
		'top':'0',
		'left':'0'
     });
	
	var overLay = $('<div class="_garcha" onclick="$(\'body ._garcha\').remove();" style="filter:alpha(opacity=50);-moz-opacity:0.5;-khtml-opacity: 0.5;opacity: 0.5;width:100%;height:100%;background:black;position:fixed;top:0;left:0;z-index:100;"></div>');
	
	    overLay.appendTo('body');
	    
 	newImg.appendTo('body');    
     newImg.show('fast');
    
    //	alert();
 
	return false;
}
