/******************************************************************************/
/*                             Javascript By Cco                              */
/******************************************************************************/
jQuery(document).ready(function(){
jQuery('#menu_principal').hover(show_transp,hide_transp);
});

function show_transp(){
	//var width = eval (jQuery(window).width());
	//var height = eval (jQuery("#container_top_home").height()+jQuery("#container_middle_bg").height());
	
	width = jQuery(window).width();
	height = jQuery(document).height();


	if (jQuery.browser.msie){
		//alert(jQuery.browser.version);
		//alert(document.getElementById('container').offsetLeft);
		left = (jQuery('#container').offset().left) * -1;

	}else{
		jQuery('#container').css('position','inherit');
		left=0;
	}

	//jQuery("<div>").attr({'id':'transparent_bg','style':'position:absolute; top:160px; left: 0px;width:'+width+'px;height:'+height+'px;','class':'transparent'}).appendTo("#container");
	
	
	div = jQuery("<div>").attr({'id':'transparent_bg','style':'position:absolute; top:0px; left:'+left+'px;width:'+width+'px;height:'+height+'px;','class':'transparent'});
	jQuery("#container").append(div);
	
	//alert(div);
	
	jQuery('#transparent_bg').css('background-color','#000000');
	jQuery('#transparent_bg').css('z-index','30');
	jQuery('#transparent_bg').css('opacity','0.5');
}

function hide_transp(){
	jQuery('#container').css('position','relative');
	jQuery('#transparent_bg').remove();
}
