 var version = jQuery.browser.version.substr();
 
 jQuery(document).ready(function(){
    jQuery("div.uniMenuTopo").mouseenter(function(event){
      event.stopImmediatePropagation();
      jQuery(".submenuTopo", this).show(100);
    });
    
    jQuery("div.uniMenuTopo").mouseleave(function(event){
      event.stopImmediatePropagation();
      jQuery(".submenuTopo", this).hide();
    });
    
    jQuery("div.pr1").click(function(){
      if( jQuery("+ div", this).css("display") == "none")
      jQuery("+ div", this).show(200);
      
      else
      jQuery("+ div", this).hide(200);
    });
    
    
 });
 function popup(id,este){
  $('.imgmodelo a').attr("class","");
  var _black = document.getElementById("black_screen");
  var _carrinho = document.getElementById("pop");
  var altura = $(document).height();
  var janela = $(window).height();
  var scrool = $(document).scrollTop();
  
  var params = {ids:id};
  var str = jQuery.param(params);

  jQuery.ajax({
    type: "GET",
    url: "ajax_popup.php",
    data:str,
    success: function(data) {
        if(data !=1){
          $('.tit').html(data);
          var conta = (janela /2) - 285;
		  if(janela < 650) {
		  _black.style.height = altura + 100 + "px";
		  } else {
		  _black.style.height = altura + "px";
		  }
          
          _black.style.display = "block";
		
	    var altura2 = scrool + (janela - 452) / 2;
          _carrinho.style.marginTop = altura2 + "px";
          _carrinho.style.display = "block"; 
          //este.className='sel'; 
        }
    }
  });
  
  
}
function closePopCart(){
  var _black = document.getElementById("black_screen");
  var _carrinho = document.getElementById("pop");

  _carrinho.style.display = "none";
  _black.style.display = "none";
}

function changeLocation(id,este){
  location.href='index.php?id='+id+'&year='+este.value;
} 
