var agent=navigator.userAgent.toLowerCase();
var is_iphone = ((agent.indexOf('iphone')!=-1));

if(! is_iphone){
    $(document).ready(function() {

    //When mouse rolls over
    $("#nav-content li.expand").mouseover(function(){
        $(this).find("ul").stop().animate({height:'30px'},{queue:false, duration:600, easing: 'easeInOutBack'})
    });

    //When mouse is removed
    $("#nav-content li.expand").mouseout(function(){
        $(this).find("ul").stop().animate({height:'0px'},{queue:false, duration:500, easing: 'easeInOutBack'})
    });

        $("#nav-content li").hover(
        function() {
            $(this).stop().animate({"opacity": "0"}, "slow");
        },
        function() {
            $(this).stop().animate({"opacity": "1"}, "slow");
        });

$("#social a").css("opacity","0.3");
        $("#social a").hover(
        function(){
            $(this).stop().animate({"opacity":"1"},"slow");
        },function(){
            $(this).stop().animate({"opacity":"0.3"},"slow");
        });



/*
    $( "#ball_holder") .everyTime ( 10, function (){
    $("#ball_holder") .animate ({top:"184px" }, 400 ).animate ({top:" " }, 370 );
    });
*/

	function redirectPage() {
            if(linkLocation != currLocation){
		window.location = linkLocation;
            }
	}
        $('.item').fader({
            mode:3,
            time: 300,
            tofade:".item-content",
            begincolor: "#444444",
            changecolor:"#CE1467",
            tochange:"h1",
            beginopacity:.75
        });

        $('#footer-nav li').fader({
            mode:2,
            time: 300,
            tochange:"a",
            changecolor: "#FFFFFF"
        });
        $('#footer-nav .nav1,#footer-nav .nav2,#footer-nav .newsletter ').fader({
            mode:2,
            time: 300,
            tochange: "h2",
            begincolor: "#373A40",
            changecolor: "#CE1467"
        });
        externalLinks();
    });
}
