$(function() {
   
	

	





		$('#myGallery').cycle({ 
    delay:  2000, 
    speed:  900, 
    before: onBefore 
}); 
 
function onBefore() { 
    $('.title') 
        .html(this.alt); 
}; 

            });
			




				



				easing = 'Back';
		
		function loadEasing(e) {
			location.href = 'index.html'+e;
		}
		
		function setEasing(e) {
			loadLamps(e);
		}
		
		
		
jQuery(document).ready(function() {
								
								
								
if ( $(".first-and-second-carousel").length > 0 ) {
	jQuery('.first-and-second-carousel').jcarousel({scroll: 2});
	
}
	
});


	// Set thickbox loading image
tb_pathToImage = "/images/loading-thickbox.gif";
		
		



				easing = 'Back';
		
		function loadEasing(e) {
			location.href = 'index.html'+e;
		}
		





	
  $(document).ready(function(){
    
	

	$("#smallthumb img").bind("click", function (e) {
      
	  e.stopPropagation();	 

      var domEl = $(this).get(0);
	  var indexofimg = $("#smallthumb img").index(this);
	  
	 	  
	  window.$filename = domEl.src.substr(domEl.src.lastIndexOf("/")+1,domEl.src.length);
	   
	  

	  
	 //$("#bigimg").html('<img src="/images/gallery/m-'+$filename+'" >');
	 
	$("#bigimg").html('<img src="/images/gallery/m-'+$filename+'" >');

$("#bigimg img").hide();
$("#bigimg img").fadeIn();
	 

	 




    });


$("#zoom a").bind("click",function(xxx){
								  
								  
							
						    	xxx.stopPropagation();	
								
								  //$("#smallthumb img").trigger('click');
								  
								  
								  
							
								
								
								 tb_show('', '/images/gallery/b-'+$filename+'', 'null');
								 
						
								

								 
								
			
 															


}); 	 

//Added by HostPipe
$('#hpbanners').reorder()

});


  
  
