$(window).load(function() {
	var total = $('#slider img').length;
	var rand = Math.floor(Math.random()*total);
	$('#slider').nivoSlider({
		effect: 'fade',
		animSpeed: 250,
		pauseTime: 4000,
		directionNav: false,
		controlNav: false,
	    startSlide:rand
	});
	$('#slider-patient').nivoSlider({
		effect:'fade',
		animSpeed:400,
		pauseTime:4000,
		directionNav:false,
		controlNav:false
	});
	$(".example6").colorbox({
		iframe:true,
		innerWidth:570,
		innerHeight:365,
		scrolling:false
	});
	$(".example7").colorbox({
		iframe:true,
		innerWidth:806,
		innerHeight:460,
		scrolling:false
	});
	$("#click").click(function(){ 
		$('#click').css({
		"background-color":"#f00",
		"color":"#fff",
		"cursor":"inherit"
	}).text("Open this window again and this message will still be here.");
		return false;
	});
	$('#preheader').fadeTo(500,0).fadeTo(1300, 1);
	$('#report1').delay(100).fadeIn('slow', function() {
	});
	$('#report2').delay(300).fadeIn('slow', function() {
	});
	$('#report3').delay(500).fadeIn('slow', function() {
	});
	$('#report4').delay(700).fadeIn('slow', function() {
	});
	$('#report5').delay(900).fadeIn('slow', function() {
	});
	$('#report6').delay(1100).fadeIn('slow', function() {
	});
});
