// JavaScript Document
(function($){
	  
$.hideAllExcept = function(tabs,boxes){
    function init() {
		
      // make it bookmarkable/refreshable. but, no history.
      var hash = window.location.hash;
      (!hash) ? hideShow('#' + $(boxes+':first').attr('id')) : hideShow(window.location.hash);

      // add click handler.
	
      $(tabs).click(function(e) {
        e.preventDefault();
        var href = $(this).attr('href');
        // add back the hash which is prevented by e.preventDefault()
        window.location.hash = href;
        hideShow(href);
      });
    }
function hideShow(el) {
         $(boxes).animate({"left": "-650px"}, "slow");
	     $(el).fadeIn('slow').animate({"left" : "50%" }, 1000);
		 
		 $(tabs).removeClass('active');
      $('a[href="' + el + '"]').addClass('active');
    }
	init();
	
};

})

(jQuery);
$(document).ready(function(){ 
$('#navbarwrapper').fadeIn(3000);
$('#navbarwrapper').animate({width:1062},3000); 
});
 

 


(jQuery);
 $(function() {
 $('.contact').click(function(){
$('#contact_details2').fadeIn("slow");
  });     
 //if close button is clicked
    $('.contact .close').click(function (e) {
       $('#contact_details2').fadeOut("slow");     
 return false;

  });
  });
  
(jQuery);
 $(function() {
 $('.clients').click(function(){
$('#flash-picshow').fadeIn("slow");
  });     
 //if close button is clicked
    $('.clients .close').click(function (e) {
       $('#flash-picshow').fadeOut("slow");     
 return false;

  });
  });
