$(document).ready( function() {
    $(".sf-vertical").parent(".middle").css("border","0");
    //$(".hs1").cycle({timeout:6000,});
    //$(".hs2").cycle({timeout:6000,delay:2000,});
    //$(".hs3").cycle({timeout:4000,});

  //AlexsSuperfish hover fixerjoby
    $("#sample-menu-1 > li").children("ul").children("li").hover( function() {
        $(this).parent("ul").parent("li").children("a").addClass("selected");
    },
    function() {
        $(this).parent("ul").parent("li").children("a").removeClass("selected");
    });

	//SF MENUANIMATE 
	$(".sf-menu a").hover( function() {
		$(this).animate( {'padding-left':'18px','opacity':'.4'},100, function(){
			$(this).animate( {'opacity':'1.0'},100, function(){});
		});
	},
	function() {
		$(this).animate( {'padding-left':'14px',},100, function(){

		});
	});
/*
	// A animate
	$("a").click( function() {
		
		$(this).animate({'opacity':'.4'},50, function() {
			$(this).animate({'opacity':'1.0'},50);
		});
	});*/
	$(".sidetwitter , .sidefacebook").hover( function() 
	{
		$(this).animate({'opacity':'.8',},100,function() 
		{
			$(this).animate({'opacity':'1.0',},100);
		});		
	},
	function() 
	{
		$(this).animate({'opacity':'.8',},100,function() {
			$(this).animate({'opacity':'1.0',},100);
		});	
	});
	
	$(".homeslide").cycle({'timeout':'5000','':'',});

//  COOKIE MONSTER
var frequenter = $.cookie('beenhere'); /*Check cookie value and put in var*/


if(!frequenter) /*Check var for no value and do shit if no value */
{
	$.cookie('beenhere','1'); /*Set the cookie so it doesnt do shit next time*/
	//IE CHECK
		if ($.browser.msie) {
			$(".iewarning").slideDown(600);
		}
		$(".iewarningcloser").click( function() {
			$(".iewarning").slideUp(600);
		});

		$(window).scroll( function() {
			var windowheight = $(this).height();
			var scrolled = $(this).scrollTop();
			divheight = 110;
			var myshit = windowheight + scrolled - divheight;
			$(".iewarning").css('top',myshit);
		});
	//eof IE CHECK
}

//eof COOKIE MONSTER
//
	$(".headerstuff div").hover( 
		function()
			{
				$(this).animate({backgroundPosition:'0px -34px','opacity':'.5'},200, 
					function()
						{
							$(this).animate({'opacity':'1.0'},200);
						}				
				);
			},
			function() {
				$(this).animate({backgroundPosition:'0px 0px','opacity':'.5'},200, 
					function()
						{
							$(this).animate({'opacity':'1.0'},200);
						}				
				);
			}
	);
//
//
	$(".facebook, .twitter, .blog").hover( 
		function()
			{
				$(this).animate({/*backgroundPosition:'0px -48px',*/'opacity':'.5'},100, 
					function()
						{
							$(this).css('background-position','0px -48px');
							$(this).animate({'opacity':'1.0'},100);		
						}				
				);
			},
			function() {
				$(this).animate({/*backgroundPosition:'0px 0px',*/'opacity':'.5'},100, 
					function()
						{
							$(this).css('background-position','0px 0px');
							$(this).animate({'opacity':'1.0'},100);
						}				
				);
			}
	);
//
//

//

//
	$(".checkusout").hover( 
		function()
			{
				$(this).animate({/*backgroundPosition:'0px -48px',*/'opacity':'.5'},100, 
					function()
						{
							$(this).css('background-position','0px -19px');
							$(this).animate({'opacity':'1.0'},100);		
						}				
				);
			},
			function() {
				$(this).animate({/*backgroundPosition:'0px 0px',*/'opacity':'.5'},100, 
					function()
						{
							$(this).css('background-position','0px 0px');
							$(this).animate({'opacity':'1.0'},100);
						}				
				);
			}
	);
//

	$(".dropdown a").hover( 
		function() 
			{
				$(this).animate( {/*'padding-left':'-=6px','padding-right':'-=6px',*/'opacity':'.6',},100, 
					function()
						{
							$(this).animate( {/*'padding-left':'+=6px','padding-right':'+=6px',*/'opacity':'1.0',},100);
						}
				);
			},
		function() 
			{
				$(this).animate( {/*'padding-left':'-=6px','padding-right':'-=6px',*/'opacity':'.6',},100, 
					function()
						{
							$(this).animate( {/*'padding-left':'+=6px','padding-right':'+=6px',*/'opacity':'1.0',},100);
						}
				);
			}
		);
});

