var ua = navigator.userAgent.toLowerCase();
var isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile");

jQuery(document).ready( function ($){
	//console.log("Ready");
    /* @CarmineRumma */
    $("#header_logo").on("mouseover", function (){
    	//console.log("here");
    	//$(this).children(".clone").addClass("oshow");
    	$(this).find(".shine").width($(this).children(".logo").width());
    	$(this).find(".shine").height($(this).children(".logo").height());
    });
    $("#header_logo").bind("mouseout", function (){
    	//$(this).children(".clone").removeClass("oshow");
    })
    /* @CarmineRumma */

    if ($("#ellipse").length > 0) {
        $(window).scroll(function () {
            var $dy = $(window).scrollTop();
            var $mainY = $("#ellipse").offset().top;
            $mainY = 261;
            //console.log($dy, $("#main_content_area").offset().top);
            if ($dy >= $mainY) {
                $("#header_right").addClass("swip");
                $("body").addClass("sticky");
            } else {
                $("#header_right").removeClass("swip");
                $("body").removeClass("sticky");
            }
        });
    }

    $(window).resize( function (){

    });
    $(window).load( function (){
        $(window).resize();


    });

    //$("#hhbike").peShiner({hover:false,glow:2,duration:3,reverse:true,colors:"fireHL"});
    //  $("#header--logo").peShiner({hover:false,glow:2,duration:3,reverse:true,colors:"fireHL"});
    if (isAndroid){
        $("body").addClass("android");
    }
    if ($(".product_list.list").length > 0) {

    }

})
