// initialise Top Buttons Effect
		$(document).ready(function(){
	$("#logo img").fadeTo("normal", 1.0); // This sets the opacity of the thumbs to fade down to 60% when the page loads
	$("#logo img").hover(function(){
		$(this).fadeTo("normal", 0.8); // This should set the opacity to 100% on hover
	},function(){
   		$(this).fadeTo("normal", 1.0); // This should set the opacity back to 60% on mouseout
	});
});

// initialise Goto Top Button
$(document).ready(function() {			
			
			$().UItoTop({ easingType: 'easeOutQuart' });
			
});

// for OTHERS//
$(function() {
			$('ul.hover_block li').hover(function(){
				$(this).find('img').animate({top:'182px'},{queue:false,duration:900});
			}, function(){
				$(this).find('img').animate({top:'0px'},{queue:false,duration:900});
			});			
		});

$(document).ready(function(){
	$(".service-links img").fadeTo("normal", 0.6); // This sets the opacity of the thumbs to fade down to 60% when the page loads
	$(".service-links img").hover(function(){
		$(this).fadeTo("normal", 1.0); // This should set the opacity to 100% on hover
	},function(){
   		$(this).fadeTo("normal", 0.6); // This should set the opacity back to 60% on mouseout
	});
});
jQuery.timer = function(time,func,callback){
	var a = {timer:setTimeout(func,time),callback:null}
	if(typeof(callback) == 'function'){a.callback = callback;}
	return a;
};

jQuery.clearTimer = function(a){
	clearTimeout(a.timer);
	if(typeof(a.callback) == 'function'){a.callback();};
	return this;
};

function fadeheader() {
	$('#innerbanner img').hide();
	    // Set the timer
		var dTimer = {};
	    dTimer = $.timer(250,function(){
		    // Actions to perform when the timer goes off
			$('#innerbanner img').fadeIn(3000);
		 
	    });	
}

$(document).ready(function() {
	// Fade in Header
	fadeheader();
	if ($.browser.msie) {
		$('.p-images .tt').hide();
		$('.p-details .tt').hide();
		$('.p-view .tt').hide();
	}	
});

