$(function () {
	$('#lavaLampBasicImage').lavaLamp({
		fx: 'easeOutBounce',
		speed: 600,
		homeTop:-100,
		homeLeft:-25
	});
	
	$('.lavaLampx').lavaLamp({
		fx: 'easeOutBounce',
		speed: 1000
	});
});
function formatText(index, panel) {
	return index + "";
}

$(function () {
	$('.anythingSlider').anythingSlider({
		easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
		autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
		delay: 12000,                    // How long between slide transitions in AutoPlay mode
		startStopped: false,            // If autoPlay is on, this can force it to start stopped
		animationTime: 1500,             // How long the slide transition takes
		hashTags: true,                 // Should links change the hashtag in the URL?
		buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
		pauseOnHover: false,             // If true, and autoPlay is enabled, the show will pause on hover
		startText: "Go",             // Start text
		stopText: "Stop",               // Stop text
		navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
	});
	
	$("#slide-jump").click(function(){
		$('.anythingSlider').anythingSlider(6);
	});
	
	$('#start-stop').addClass("disSlNav");
	$('.anythingSlider .arrow').addClass("disSlNav1");
	$('#thumbNav a').addClass("disSlNav");
	
	$(".anythingSlider").hover(
		function () {
			$('#start-stop').removeClass("disSlNav");
			$('.anythingSlider .arrow').removeClass("disSlNav1");
			$('#thumbNav a').removeClass("disSlNav");
		},
		function () {
			$('#start-stop').addClass("disSlNav");
			$('.anythingSlider .arrow').addClass("disSlNav1");
			$('#thumbNav a').addClass("disSlNav");
		}
	);
    
	//$('#login').submit(function() {
	//	var formData = $(this).serialize();
	//	$.get('logincheck.php',formData,processData);
	//	function processData(data) {
	//		if (data=='pass') {
	//			$('#loginmessage').html("<p>You have successfully logged on!</p><a href='add_news.php'>Add / Edit News Article</a>");
	//		}else { 
	//			if (! $('#fail').length) {
	//				$('#loginmessage').html('<p id="fail" class="error">Incorrect login information. Please try again</p>');
	//			}
	//		}
	//	} // end processData
	//	return false;
	//});
	
    $('#sliderHide').click(function(){
		//$('#big_image').toggle();
		if ($('#big_image').is(":hidden")){
			 $('#big_image').slideDown("slow");
			 $('.anythingSlider').slideDown("slow");
		} else {
			 $('#big_image').slideUp("slow");
			 $('.anythingSlider').slideUp("slow");
		}
	});
	
	if($.browser.msie){
		var option = {};
		option = { x: 0, y: -1, radius: 0, color: "#AAFCFF" }
		$("div.std_layout h1").textShadow(option);
		option = { x: 0, y: 2, radius: 1, color: "#000000" }
		$("h2").textShadow(option);
        option = { x: 0, y: -1, radius: 0, color: "#AAFCFF" }
		$("#b2pspecial").textShadow(option); 
	}
});

