$(document).ready(function(){
   
    var settingsTop = {
      tl: { radius: 12 },
      tr: { radius: 12 },      
      antiAlias: true
    } 
    var settingsBottom = {
      bl: { radius: 12 },
      br: { radius: 12 },       
      antiAlias: true
    }      
    //curvyCorners(settings, "#container");       
    curvyCorners(settingsTop, "#header");      
    curvyCorners(settingsBottom, ".lineBottom");
    
    $('#content #inner100 .mainSideLeft ul li[class!="active"] a').toggle(function() {
      $(this).parent().addClass('active');
    }, function() {
      $(this).parent().removeClass('active'); 
    }); 
    
    $('#content #inner100 .mainSideLeft ul li[class="active"] a').toggle(function() {
      $(this).parent().removeClass('active'); 
    }, function() {
      $(this).parent().addClass('active');
    });   

	
	/*$('#lightbox a').lightBox();
	
	$('#lightbox_bank a').lightBox();	
	$('#lightbox_metal a').lightBox();
	$('#lightbox_wire a').lightBox();
	$('#lightbox_trade a').lightBox();
	$('#lightbox_rest a').lightBox();
	$('#lightbox_constr a').lightBox();
	$('#lightbox_design a').lightBox();
	$('#lightbox_details a').lightBox();
	
	$('#lightbox_lazer a').lightBox();
    $('#lightbox_hydro a').lightBox();
	$('#lightbox_lazer a').lightBox();
	$('#lightbox_bending a').lightBox();
	$('#lightbox_perf a').lightBox();
	$('#lightbox_milling a').lightBox();
	$('#lightbox_welding a').lightBox();
	$('#lightbox_painting a').lightBox();*/
	
//$(document).ready(function() {
    $('.slideshow').cycle({
		fx: 'fade',
                speed: 3000,
                timeout: 5000
	});
//});




//$(document).ready(function(){
	 $(".flip").click(function(){
	   $(".panel").slideToggle("slow");
	  });
// });


  //hide the all of the element with class msg_body
  $(".msg_body").hide();
  //toggle the componenet with class msg_body
  $(".msg_head").click(function()
  {
    $(this).next(".msg_body").slideToggle("slow");
  });

	
	
	
	
	
});
