﻿$(document).ready(function(){
    var lhref = location.href;
    if (lhref.indexOf("cmspagemode=edit") === -1) {
        $("area").focus(function () {
            $(this).blur();
        }).click(function () {
            $(this).blur();
        });
    }
    Cufon.replace('.popup .close, .sub-one-product .cufon-text-product-one table td, .st-left h1, .st-right h2, .st-right h1, .st-left h2, .my-cufon-text table td, .v1 .sbsw .gray-color, .v2 .sbsw .gray-color, .v2 .sbsw .red-color, .v1 .sbsw .blue-color, .mail-form h1, .nright .nsub h3, .item span.h1, .main h1, .breadcrumbs, .menu a, .like .inlike a, .start-color .in h2, .for-a-text .box table td a, .for-a-text .box table td span, .from-sweden .flag label', { fontFamily: 'ITCAvantGardePro', hover: true, hoverables: { a: true} });
    $("#antioxidant, #reload, #defence, #everyday, #care, #focus, #lred, #mred, #aqua, #lorange, #sgray, #sgreen, #srosy").hover(function (e) {
        id = this.id;
        $(".hover").hide();
        $(".hover."+id).show();
        Cufon.replace(".hover." + id + " .inv", { fontFamily: 'ITCAvantGardePro', hover: true, hoverables: {a:true} });
    }, function(){
        id = this.id;
        $(".hover." + id).hide();
    });
    $(".hover").hover(function(){$(this).show()});
    $(".currentlang, .langpopup").hover(function(){$(".langpopup").show();}, function(){$(".langpopup").hide();});
});
