// for background fade//
function fadeheader() {
	$('#full-bg').hide();
	    // Set the timer
		var dTimer = {};
	    dTimer = $.timer(250,function(){
		    // Actions to perform when the timer goes off
			$('#full-bg').fadeIn(1000);
		 
	    });	
}

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


	
});
// 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});
			});			
		});

// for fadein effect in branding page
var addthis_config = {
    ui_click: true /* normally would disable mouseover behavior */
}
$(document).ready(function(){
	$("#content-box-branding img").fadeTo("normal", 1.0); // This sets the opacity of the thumbs to fade down to 60% when the page loads
	$("#content-box-branding img").hover(function(){
		$(this).fadeTo("normal", 0.4); // 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
	});
});
$(document).ready(function(){
	$("#content-box-archive img").fadeTo("normal", 1.0); // This sets the opacity of the thumbs to fade down to 60% when the page loads
	$("#content-box-archive img").hover(function(){
		$(this).fadeTo("normal", 0.4); // 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
	});
});
// for fadein effect in the home page
$(document).ready(function(){
	$("#ContainerTwo_Blocks_Coloumn1 img").fadeTo("normal", 0.6); // This sets the opacity of the thumbs to fade down to 60% when the page loads
	$("#ContainerTwo_Blocks_Coloumn1 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
	});
});

$(document).ready(function(){
	$("#GOTO_TOP img").fadeTo("normal", 0.6); // This sets the opacity of the thumbs to fade down to 60% when the page loads
	$("#GOTO_TOP 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
	});
});

$(document).ready(function(){
	$("#GOTO_TOP_X img").fadeTo("normal", 0.6); // This sets the opacity of the thumbs to fade down to 60% when the page loads
	$("#GOTO_TOP_X 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
	});
});

$(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
	});
});
