$(document).ready(function(){
          
  $("table tr:odd").addClass("odd");
  $("table tr:even").addClass("even");
   
   $("#navigationBar").treeview({
                animated: "fast",
                collapsed: true,
                unique: true,
                persist: "cookie",
                toggle: function() {
                        window.console && console.log("%o was toggled", this); 
                }
  });
  
  //$(".product").corner("5px");
  //$("#panel .login").corner("10px");
  $(".contrast").corner("10px"); 
  $(".baner").corner("10px"); 
  
  //hide buttons
  $(".submitRecountButton").hide();     
  
  $("#invoiceAddressManager").bind("change",showInvoiceAddess);
  $("#invoiceAddress").addClass("hide");
  $(".product dd a").corner("5px");
  
  
  $("#detail .lEfect").lightBox();
  $("#gallery a").lightBox();
         
});


function sendForm(form){ 
    //var form = $(this).parents('form:first');
  form.submit();
}

function showInvoiceAddess(){    
  if($("#invoiceAddress").hasClass("hide")){
      $("#invoiceAddress").removeClass("hide");
      $("#invoiceAddress").addClass("show");
  }else{
    $("#invoiceAddress").removeClass("show");
    $("#invoiceAddress").addClass("hide");
  }
}

