$(document).ready( function() {
	$('img').css({visibility: 'visible'})
});

$(document).ready( function() {
	$('.rotate').cycle({
		fx: 'none',
                                timeout: 2000
	});

});

$(document).ready( function() {
	$('.Landingpagerotate').cycle({
		fx: 'none',
                                timeout: 2000,
height: '20px'
	});

});

$(document).ready( function() {
	$('.linkrotate').cycle({
		fx: 'none',
                                timeout: 4000,
height: '80px'
	});

});

$(document).ready( function() {
	$('.ContainerTitlerotate').cycle({
		fx: 'none',
                                timeout: 4000,
height: '20px'
	});

});


$(document).ready( function() {
	$('.Introrotate').cycle({
		fx: 'none',
                                timeout: 10000,
height: '170px'
	});

});

$(document).ready( function() {
	$('.titlerotate').cycle({
		fx: 'none',
                                timeout: 10000,
height: '36px'
	});

});
$(document).ready( function() {
	$('.richtextrotate').cycle({
		fx: 'none',
                                timeout: 10000
	});

});

$(document).ready(function() {

setCookie('cookiesActivated', 'true', 3600);
if (getCookie('cookiesActivated') != 'true') {	
	$(".nocookies").css('display', 'block');
}
else 
{
	if(getCookie('disclaimerCookie')!='accepted'){
		$.fn.colorbox({
					open: true,
					overlayClose: false, 
					escKey: false, 
					close: null,
					onComplete:function(){$('#cboxClose').remove();},
					href: "/System/Lightbox.aspx",
					opacity: "0.90",
					initialWidth: '582px',
					maxWidth: '582px',
					maxHeight: '562px',
				   scrolling: false
					});
	   }
	}
});

function acceptDisclaimer()
{
   $.fn.colorbox.close();
   setCookie('disclaimerCookie','accepted', 3600);
}

function setCookie(name, value, seconds) {
 
		if (typeof(seconds) != 'undefined') {
			var date = new Date();
			date.setTime(date.getTime() + (seconds*1000));
			var expires = "; expires=" + date.toGMTString();
		}
		else {
			var expires = "";
		}
 
		document.cookie = name+"="+value+expires+"; path=/";
	}
 
	function getCookie(name) {
 
		name = name + "=";
		var carray = document.cookie.split(';');
 
		for(var i=0;i < carray.length;i++) {
			var c = carray[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
		}
 
		return null;
	}
 
	function deleteCookie(name) {
		this.setCookie(name, "", -1);
	}
