	$(document).ready(function(){
		$('#gallery').galleryView({
			panel_width: 565,
			panel_height: 215,
			frame_width: 115,
			frame_height: 60,
			overlay_color: 'black',
			background_color: '#26255E',
			overlay_text_color: 'white',
			caption_text_color: 'white',
			border: '1px solid #FFF',
			onItemShowCallback: function(index)
								{
									$("#servicebox div.item").fadeOut(400).eq(index%4).fadeIn(400, function() {if ($.browser.msie){this.style.removeAttribute('filter');}});
								}
		});


		// When a tab link is clicked
		$("#qcktabs-list a").click(function () {
			
			// switch tab off
			var curTab = $("#qcktabs-list .active:first");
			curTab.removeClass("active");

			var newTab = $(this);
			newTab.addClass("active");

			$("#"+curTab.attr("rel")).hide();			
			$("#"+newTab.attr("rel")).show();
		});

		$(".qcktabs-holder>div").hide();
		$(".qcktabs-holder>div").eq(0).show();


		$(".jc-scroll").jCarouselLite({
			visible:5,
			speed: 1000,
			vertical: true,
			auto: 800
		});

		$(".jc-scroll2").jCarouselLite({
			visible:5,
			speed: 2000,
			vertical: true,
			auto: 800
		});
		
		$("ul.sf-menu").superfish({ 
            		animation: {height:'show'},   // slide-down effect without fade-in 
            		delay:     1200               // 1.2 second delay on mouseout 
        		}); 
		
		$('#mycarousel').jcarousel({
    		auto:2,
			wrap: 'circular'
		});

	});
			

