
var pages ={
    "spicylemon.html" : "5",
    "werkwijze.html" : "5",
    "research.html" : "5",
    "statistieken.html" : "5",
    "werkenbij.html" : "5",
    "actueel.html" : "4",
    "actueel01.html" : "2",
	"blogs.html": "4",
    "archive.html" : "4",
    "newsDetail.html" : "4",
    "newsDetail01.html" : "4",
    "advies.html" : "3",
    "SpicyLeboratory.html" : "3",
    "OnlineScan.html" : "3",
    "SpicyAnalyser.html" : "3",
    "SpicyLemonizer.html" : "3",
	"aff_account.html" : "3",
    "Secwatch.html" : "3",
    "producten.html" : "2",
	"producten_v5.html" : "2",
    "product_ESET_Mail_Security_Exchange.html": "1",
    "product_ESET_NOD32_antivirus.htm": "1",
	"product_ESET_NOD32_antivirusGE.html": "1",
    "product_ESET_Smart_Security.htm": "1",
	"product_ESET_Cybersecurity.html": "1",  
	"product_ESET_cybersecurity_consument.html": "1",
	"product_ESET_mobile_Security.htm": "1",
    "product_Acronis.htm": "1",
	"service_ripandreplace.html": "1",
	"service_ripandreplacefaq.html": "1",
    "product_Puresight.htm": "1",
    "product_ESET_NOD32_Business_Edition.html" : "1",
    "product_ESET_Smart_Security_Business_Edition.html" : "1",
    "product_ESET_Server_Security.html" : "2",
    "product_ESET_Mobile_Security.html" : "1",
	"product_Secwatch.html" : "1",
	"product_Acronis_vmProtect.html" : "1",
    "product_Caretaker_Antispam.html" : "1",
	"product_ESET_NOD32_antivirus_v5.html" : "1",
	"product_ESET_Smart_Security_v5.html" : "1",
    "woordenboek.html" : "3",
	"apps.html" : "3",
	"tools.html": "3",
	"goededoelen.html" : "3",
    "product_Kerio_Control.html" : "1",
    "shop.html" : "1",
	"shop2.html" : "2",
    "contact.html" : "0",
    "contactForm.html" : "0",
    "bedankt.html" : "0",
    "sitemap01.html" : "6",
    "adviesZ.html" : "3",
    "productenZ.html" : "2",
    "shopZ.html" : "1",
    "sitemap02.html" : "6",
    "adviesN.html" : "3",
	"ontmasker.html" : "3",
	"assortiment.html" : "3",
    "productenN.html" : "2",
    "lemonwijzer.html" : "3",
    "sitemap03.html" : "6",
	"adres.html" : "0",
	"20111222_Campagne_SpicyLemon_voor_talent_is_een_cadeau_voor_de_toekomst_van_ons_land.html": "4",
	"20111212_Top_10_bedreigingen_november.html": "4",
	"20111201_Tweakers_kiezen_voor_ESET_NOD32_als_enige_betaalde_antivirus_in_de_top_3.html": "4",
	"20111125_SpicyLemon_reageert_op_lek_sinterklaasjournaal.nl.html": "4",
	"20110530_Steeds-meer-gamers-schaffen-eset-antivirus-aan.html": "4",
	"20101210_SpicyLemon INFautorun bezorgt wereldwijd meeste overlast.html": "4",
	"20110429_ESET-kondigt-BETA-versie-van-ESET-Mobile-Security-voor-Android-Smartphones-aan.html": "4",
    "20100923_SpicyLemon introduceert ESET NOD32 Antivirus 4 Business Edition voor Mac.html" : "4",
	"20110502-criminelen_profiteren_van_dood_osama.html": "4",
    "20100916_ESET maakt top 10 internetbedreigingen bekend.html" : "4",
	"20110428_Computer-fraudeurs-cashen-tijdens-het-Britse-Koningklijk-huwelijk-en-het-WK-ijshockey-in-Slowakije.html": "4",
    "20100903_SpicyLemon brengt nieuwe ESET Mobile Security op de markt.html": "4",
	"20110107_beveiligingstrends.html": "4",
	"20110303_ESET_Smart_Security_4_als_beste_gestest_door_de_consumentenbond.html": "4",
	"20110310_Puresight_beschermt_computeractiviteiten_kind.html": "4",
   	"20110310_ESET_sneak_preview-Smart_Security_5_en_Mobile_Security_for_Android.html": "4",
	"20110401_spicylemon_introduceert_eset_security_mail_exchange_server.html": "4",
	"20110401_spicylemon_introduceert_nieuwe_beveiligingsproducten.html": "4",
	"20110505_ESET_lanceert_BETA_versies_van_ESET_Smart_Security_5en_ESET_NOD32_Antivirus_5.html": "4",
	"20110705_sociale_netwerkgebruikers_maken_zich_zorgen.html": "4",
	"20110505_kraken_van_betaalde_software_populair.html": "4",
	"20110505_gratis_global_integreert_portit.html": "4",
	"20110801_ESET_NOD32_Antivirus_5_en_Smart_Security_5_scoren_hoog_in_test_AV-TEST.html": "4",
	"20110801_ESET_NOD32_Antivirus_5_en_Smart_Security_5_scoren_hoog_in_test_AV-TEST-pb.html": "4",	
	"20110803_1_op_20_mobiele_platforms_volgend_jaar_geinfecteerd.html": "4",
	"20110805_Nieuwe_trojan_verspreidt_zich_razendsnel_via_Facebook.html": "4",
	"20110811_ESET_Mobile_Security_Android_RC_nu_beschikbaar.html": "4",	
	"20110816_ESET_scoort_hoog.html": "4",
	"20110907_Worm_conficker_1000_dagen_actief.html": "4",
	"20110913_eset_herkent_trojan.html": "4",
	"20110913_spicylemon_introduceert.html": "4",
	"20111020_SpicyLemon_lanceert_ESET_Mobile_Security_voor_Android.html": "4",
	"20110923_site_wilders_gehackt.html": "4",
	"20111021_BeveiligingsexpertSpicyLemon_sluit_naadloos_aan.html": "4",
	"20111031_Voorkom_activiteiten_crimineel_en_maak_kans_op_iPad_2.html": "4",
	"20111031_SpicyLemon_lanceert_Acronis_vmProtect_6.html": "4",
	"20111101_SpicyLemon_investeert_in_talentontwikkeling_organisaties.html": "4",
	"20110111_Nieuw_bij_SpicyLemon_ Acronis_True_Image_Home_2012.html": "4",
	"20110211_SpicyLemon_start_oudergastlessen_gericht_op_online_veiligheid_kind.html": "4",
	"20111107_Top_10_internetbedreigingen_oktober_in_Nederland_en_wereldwijd.html": "4",
	"20110911_Nieuw_bij_SpicyLemon_Network_Security_en_Intelligence_voor_midden_en_kleinbedrijf.html": "4",
	"20111215_ESET_Nod32_als_beste_uit_test_AV-Comparatives.html": "4",
	"20120111_SpicyLemon_Internetgebruiker_moet_slimmer_en_weerbaarder_worden.html": "4",
	"20120112_top_5_bedreigingen_december.html": "4",
	"20120116_Vrijheid_van_internet_op_de_tocht_door_SOPA_en_BREIN.html" : "4",
	"20120123_Organisaties_zeer_slecht_voorbereid_op_cyberdiefstal.html" : "4",
	"20120203_SpicyLemon_test_de_nieuwste_generatie_zakelijke_beveiligingsoplossingen.html" : "4",
	"20120206_Antivirussoftware_van_SpicyLemon_scoort_goed_op_lage_false_positives_en_impact_systeem.html" : "4",
	"20120208_SpicyLemon_geeft_top_10_bedreigingen_januari.html" : "4",
	"20120215_Android_tablets_steeds_populairder_en_daarom_interessant_voor_cybercriminelen.html" : "4",
	"20120221_SpicyLemom_beveiligingspakket_ESET_wederom_een_van_de_beste.html" : "4",
    "lanmag.html": "2",
	"reviews.html": "5",
	"reviews_acronis.html": "5",
	"review_acronis1.html": "5",
	"reviews_eset.html": "5",
	"reviews_kerio.html": "5",
	"reviews_puresight.html": "5",
	"reviews_secwatch.html": "5",
	"productvergelijking.html": "5",
	"lemonwijzer.html": "1",
	"gastlessen.html": "1",
	"gastlesbasisscholen.html": "1",
	"gastlesmbohbo.html": "1",
	"gastles3stappenexpert.html": "1",
	"gastlesouders.html": "1",
	"gastlesitbeheerders.html": "1",
	"workshopsvoorbedrijven.html": "1",
	"ranking.html": "1",
	"contactRedirect.html": "1",
	"gefopt.html": "1",
	"keepass.html": "1"

};

function carouselClick(clickLink) {
    clickLink = clickLink.replace(/\"/g, "");
    var contentItem =$(".PagesContainer .PageItem.Current");
    $(".PreloaderBlock").show();

    var loadItem = clickLink;
    var contentNameUrl = loadItem.lastIndexOf("#");
    contentNameUrl = loadItem.substring(contentNameUrl + 1, loadItem.length);
    var urlInfo = document.location.hash;
    var urlString = urlInfo.lastIndexOf("#");
    var contentString = urlInfo.lastIndexOf("$");
    contentString = urlInfo.substring(urlString + 1, contentString);
    document.location.hash = contentString + "$" + contentNameUrl;
    $.loadInfo();
    var contentName = loadInfo.contentName;
    $.get(
                "/" + contentName,
                function(res){
                   $(".ContentTarget", contentItem)
                   .html(res)
                   .queue(function(next){
                        $.callFunction();
                       next();
                   })
                   .queue(function(next){
                        $(".PreloaderBlock").hide();
                       next();
                   });


                }
            );
return false;
}
 var loadInfo;
(function( $ ) {
	$.extend({
        start: function() {
            $(".PreloaderBlock").show();
            $.loadInfo();
            $.rightMenu();
            $.homeFunctions();
            $.topMenu();
            var scrollContent =$(".PagesContainer");
            var scrollContent01 =$(".PagesBg");
            var scrollItem =$(".PagesContainer .PageItem");
            var indexHome = $(".PagesContainer .HomeItem").index();
            var indexSitemap = $(".PagesContainer .SitemapItem").index();
            var startPosition;
            var contentName = loadInfo.contentName;
            var ItemIndex = loadInfo.itemIndex;
            var Unit = loadInfo.unit;
            if(Unit == "consument")
                {
                    $(".PageContainer .MenuTop ul li a").removeClass("Current");
                    $(".PageContainer .MenuTop ul li").eq(0).children("a").addClass("Current");
                }
                if(Unit == "zakelijk")
                {
                    $(".PageContainer .MenuTop ul li a").removeClass("Current");
                    $(".PageContainer .MenuTop ul li").eq(1).children("a").addClass("Current");
                }
                if(Unit == "nonprofit")
                {
                    $(".PageContainer .MenuTop ul li a").removeClass("Current");
                    $(".PageContainer .MenuTop ul li").eq(2).children("a").addClass("Current");
                }
            var menuItem =$(".RightMenu .Inside ul li");
            if(ItemIndex == indexHome || ItemIndex == undefined)
                {
                    var queueElement =  $(document.body);
                    queueElement.queue(function(next){
                        $.layuotFunctions();
                        $(".BottomRight").hide();
                        ItemIndex = indexHome;
                        $(scrollItem[ItemIndex]).addClass("Current");
                        startPosition = -($(scrollItem[ItemIndex]).height() * ItemIndex);
                        scrollContent01.css("top",startPosition);
                        scrollContent.css("top",startPosition);
                        
                        next();
                    })
                    .queue(function(next){
                         $(".HomeItem").css({"visibility" : "visible"});
                         $(".PagesBg").css({"visibility" : "visible"});
                         $(".PreloaderBlock").hide();
                         next();
                    });
                }
            else
                {
                    if(ItemIndex == indexSitemap)
                        {
                            $(".BottomRight").hide();
                            if(Unit == "consument")
                            {
                                $.lightedButton01();
                            }
                            if(Unit == "zakelijk")
                            {
                                $.lightedButton02();

                            }
                            if(Unit == "nonprofit")
                            {
                                $.lightedButton03();

                            }
                            $.get(
                                "/" + contentName,
                                function(res){
                                   $(".ContentTarget", scrollItem[ItemIndex])
                                   .html(res)
                                   .queue(function(next){
                                        $.layuotFunctions();
                                        $(scrollItem[ItemIndex]).addClass("Current");
                                        startPosition = -($(scrollItem[ItemIndex]).height() * ItemIndex);
                                        scrollContent.css("top",startPosition);
                                        scrollContent01.css("top",startPosition);
                                        $.sitemapFunctions();
                                        $(".HomeItem").css({"visibility" : "visible"});
                                        $(".PagesBg").css({"visibility" : "visible"});
                                        $(".PreloaderBlock").hide();
                                        next();
                                   });


                                }
                            );
                        }
                    else
                    {
                        $(".PreloaderBlock").show();
                        $(".MenuContainer").show();
                        if(Unit == "consument")
                        {
                            menuItem =$(".RightMenu .Inside .ConsumentMenu ul li");
                            $(".RightMenu .ConsumentMenu").show();
                            $(".RightMenu .ZakelijkMenu").hide();
                            $(".RightMenu .NonProfitMenu").hide();
                            $.lightedButton01();
                        }
                        if(Unit == "zakelijk")
                        {
                            menuItem =$(".RightMenu .Inside .ZakelijkMenu ul li");
                            $(".RightMenu .ConsumentMenu").hide();
                            $(".RightMenu .ZakelijkMenu").show();
                            $(".RightMenu .NonProfitMenu").hide();
                            $.lightedButton02();

                        }
                        if(Unit == "nonprofit")
                        {
                            menuItem =$(".RightMenu .Inside .NonProfitMenu ul li");
                            $(".RightMenu .ConsumentMenu").hide();
                            $(".RightMenu .ZakelijkMenu").hide(); 
                            $(".RightMenu .NonProfitMenu").show();
                            $.lightedButton03();

                        }
                        $(menuItem[ItemIndex]).addClass("Current");
                        $(scrollItem[ItemIndex]).addClass("Current");
                        startPosition = -($(scrollItem[ItemIndex]).height() * ItemIndex);
                        scrollContent.css("top",startPosition);
                        scrollContent01.css("top",startPosition);
                        $.get(
                            "/" + contentName,
                            function(res){
                                $(".ContentTarget", scrollItem[ItemIndex]).html(res)
                                .queue(function(next){
                                    $.layuotFunctions();
                                    $(scrollItem[ItemIndex]).addClass("Current");
                                    startPosition = -($(scrollItem[ItemIndex]).height() * ItemIndex);
                                    scrollContent.css("top",startPosition);
                                    scrollContent01.css("top",startPosition);
                                    $.callFunction();
                                    $(".HomeItem").css({"visibility" : "visible"});
                                    $(".PagesBg").css({"visibility" : "visible"});
                                    $(".PreloaderBlock").hide();
                                    next();
                               });


                            }
                        );
                    }

                }
        }
        ,
        scrollTo: function(link) {
            var indexHome = $(".PagesContainer .HomeItem").index();
            var indexSitemap = $(".PagesContainer .SitemapItem").index();
            var loadItem = link.attr("href");
            var contentNameUrl = loadItem.lastIndexOf("#");
            contentNameUrl = loadItem.substring(contentNameUrl + 1, loadItem.length);
            var unitItem = loadItem.substring(contentNameUrl + 1, loadItem.lastIndexOf("$"));
            var urlInfo = document.location.hash;
            var urlString = urlInfo.lastIndexOf("#");
            var contentString = urlInfo.lastIndexOf("$");
            contentString = urlInfo.substring(urlString + 1, contentString);
            if( unitItem != "" || unitItem != "#")
            {
                document.location.hash = contentNameUrl;
            }
            if( unitItem == "" || unitItem == "#")
            {

                document.location.hash = contentString + "$" + contentNameUrl;
            }
            $.loadInfo();
            var contentName = loadInfo.contentName;
            var ItemIndex = loadInfo.itemIndex;
            var Unit = loadInfo.unit;
            var menuItem =$(".RightMenu .Inside ul li");
            if(Unit == "consument")
            {
                 menuItem =$(".RightMenu .Inside .ConsumentMenu ul li");
            }
            if(Unit == "zakelijk")
            {
                 menuItem =$(".RightMenu .Inside .ZakelijkMenu ul li");
            }
            if(Unit == "nonprofit")
            {
                 menuItem =$(".RightMenu .Inside .NonProfitMenu ul li");
            }
            var scrollContent =$(".PagesContainer");
            var scrollContent01 =$(".PagesBg");
            var scrollItem =$(".PagesContainer .PageItem");

            menuItem.removeClass("Current");
            $(menuItem[ItemIndex]).addClass("Current");

            $(scrollItem).removeClass("Current");
            $(scrollItem[ItemIndex]).addClass("Current");
            var distance = $(scrollItem[ItemIndex]).height() * ItemIndex;
            var position = - distance;
            $(".PreloaderBlock").show();

            //$$$ pascal
            can_move = 0;
            //alert(timer_is_on);

            $(".OverlayAnimated").show();
            if(ItemIndex == indexHome || isNaN(ItemIndex))
            {
                $.layuotFunctions();
                $(".BottomRight").hide();
                $(scrollItem[indexHome]).addClass("Current");
                distance = $(scrollItem[indexHome]).height() * indexHome;
                position = - distance;
                $(".MenuContainer").hide();
                scrollContent.animate({
                    "top" : position
                },1200, function(){
                    $(".PreloaderBlock").hide();
                    $(".OverlayAnimated").hide();
                });
                scrollContent01 .animate({
                    "top" : position
                },1200);
            }
            else
            {
                if(ItemIndex == indexSitemap)
                {

                    $(".BottomRight").hide();
                    $(".MenuContainer").hide();

                    scrollContent.animate({
                            "top" : position
                    },1200, function(){
                        $(".PreloaderBlock").hide();
                        $(".OverlayAnimated").hide();
                    });
                    scrollContent01 .animate({
                        "top" : position
                    },1200);
                    $.get(
                            "/" + contentName,
                            function(res){

                               $(".ContentTarget", scrollItem[ItemIndex])
                               .html(res)
                               .queue(function(next){
                                    $.layuotFunctions();
                                    $.sitemapFunctions();
                                   next();
                               });
                            }
                        );
                }
                else
                {
                    $(".BottomRight").show();
                    scrollContent
                    .animate({
                        "top" : position
                    },1200, function(){

                    });
                    scrollContent01 .animate({
                        "top" : position
                    },1200).queue(function (next){
                        $.get(
                            "/" + contentName,
                            function(res){
                               $(".ContentTarget", scrollItem[ItemIndex])
                               .html(res)
                               .queue(function(next){
                                   $.layuotFunctions();
                                   $.callFunction();
                                   $(".PreloaderBlock").hide();
                                   $(".OverlayAnimated").hide();
                                   next();
                               });

                            }
                        );
                        next();
                    });
                    $(".MenuContainer").show();
                    if(Unit == "consument")
                        {
                            $(".RightMenu .ConsumentMenu").show();
                            $(".RightMenu .ZakelijkMenu").hide();
                            $(".RightMenu .NonProfitMenu").hide();
                        }
                        if(Unit == "zakelijk")
                        {
                            $(".RightMenu .ConsumentMenu").hide();
                            $(".RightMenu .ZakelijkMenu").show();
                            $(".RightMenu .NonProfitMenu").hide();
                        }
                        if(Unit == "nonprofit")
                        {
                            $(".RightMenu .ConsumentMenu").hide();
                            $(".RightMenu .ZakelijkMenu").hide();
                            $(".RightMenu .NonProfitMenu").show();
                        }

                }
            }
            return false;

        },
        loadTo: function(link) {
            var loadItem = link.attr("href");
            if(!link.hasClass("Current") && loadItem != "#")
            {
                var contentItem =$(".PagesContainer .PageItem.Current");
                $(".PreloaderBlock").show();
                var contentNameUrl = loadItem.lastIndexOf("#");
                contentNameUrl = loadItem.substring(contentNameUrl + 1, loadItem.length);
                var unitItem = loadItem.substring(contentNameUrl + 1, loadItem.lastIndexOf("$"));

                var urlInfo = document.location.hash;
                var urlString = urlInfo.lastIndexOf("#");
                var contentString = urlInfo.lastIndexOf("$");
                contentString = urlInfo.substring(urlString + 1, contentString);


                if( unitItem != "" && unitItem != "#")
                {
                    document.location.hash = contentNameUrl;

                }
                else

                {

                    document.location.hash = contentString + "$" + contentNameUrl;
                }
                $.loadInfo();
                var contentName = loadInfo.contentName;
                $.get(
                    "/" + contentName,
                    function(res){
                       $(".ContentTarget", contentItem)
                       .html(res)
                       .queue(function(next){
                            $.callFunction();
                            if($(".PagesContainer .SitemapItem").hasClass("Current")){
                                $.sitemapFunctions();
                            }
                           next();
                       })
                       .queue(function(next){
                           $.pngfix();
                            $(".PreloaderBlock").hide();
                           next();
                       });
                    }
                );
            }
            return false;
        }
        ,
        productPopup: function() {
           if($(".ProductList li a").length)
           {
                $(".ProductList li a").each(function(){
                   $(this).click(function(){
                       var Title = $(this).attr("title");
                       var Description = $("> img",this).attr("alt");
                       var Link = $(this).attr("href");
                       var Link2 = $(this).attr("href2");
                       var Link3 = $(this).attr("href3");
                       var topPosition = $(this).parent("li").offset().top + 60;
                       var leftPosition = $(this).parent("li").offset().left - ($(".ProductPopup").width()/2 - $(this).parent("li").width()/2);
                       $(".ProductPopup h3").text(Title);
                       $(".ProductPopup p").text(Description);
                       $(".ProductPopup a.ButtonMeerInfo").attr("href", Link);
                       $(".ProductPopup a.Buttonkopen").attr("href", Link2);
                       $(".ProductPopup a.ButtonVerlengen").attr("href", Link3);
                       $(".ProductPopup").appendTo("body");
                       $(".ProductPopup").css({
                           "z-index" : "1000",
                           "top" : topPosition,
                           "left" : leftPosition,
                           "visibility": "visible"
                       });
                       $.pngfix();
                       return false;
                   });
               });
               $("*").not(".ProductList li a").click(function(){
                    $(".ProductPopup").css({
                           "z-index" : "-1000",
                           "visibility": "hidden"
                    });
               });
           };
        }
        ,
        lightedButton01: function(){
            var button01 = $(".HomeItem .ButtonsRow .Button01");
            var lemonBg01 = $(".HomeItem .ButtonsRow .ButtonLemon01");
            var swirlBg01 = $(".ButtonOverBg01");
            button01.css({"background-position" : "0 -59px"});
            $(".HomeItem .ButtonsRow .Button").not(button01).css({"background-position" : "0 0"});
            swirlBg01.addClass("OverBgVisible");
            $(".HomeItem .ButtonsRow .Button").not(button01).removeClass("OverBgVisible");
            lemonBg01.css({"display" : "block"});
            $(".HomeItem .ButtonsRow .ButtonLemon").not(lemonBg01).css({"display" : "none"});
            swirlBg01.css({"display" : "block"});
            $(".ButtonOverBg").not(swirlBg01).css({"display" : "none"});
            $.pagesBgHeight();
        },
        lightedButton02: function(){
            var button02 = $(".HomeItem .ButtonsRow .Button02");
            var lemonBg02 = $(".HomeItem .ButtonsRow .ButtonLemon02");
            var swirlBg02 = $(".ButtonOverBg02");
            button02.css({"background-position" : "0 -59px"});
            $(".HomeItem .ButtonsRow .Button").not(button02).css({"background-position" : "0 0"});
            swirlBg02.addClass("OverBgVisible");
            $(".HomeItem .ButtonsRow .Button").not(button02).removeClass("OverBgVisible");
            lemonBg02.css({"display" : "block"});
            $(".HomeItem .ButtonsRow .ButtonLemon").not(lemonBg02).css({"display" : "none"});
            swirlBg02.css({"display" : "block"});
            $(".ButtonOverBg").not(swirlBg02).css({"display" : "none"});
            $.pagesBgHeight();
        },
        lightedButton03: function(){
            var button03 = $(".HomeItem .ButtonsRow .Button03");
            var lemonBg03 = $(".HomeItem .ButtonsRow .ButtonLemon03");
            var swirlBg03 = $(".ButtonOverBg03");
            button03.css({"background-position" : "0 -59px"});
            $(".HomeItem .ButtonsRow .Button").not(button03).css({"background-position" : "0 0"});
            swirlBg03.addClass("OverBgVisible");
            $(".HomeItem .ButtonsRow .Button").not(button03).removeClass("OverBgVisible");
            lemonBg03.css({"display" : "block"});
            $(".HomeItem .ButtonsRow .ButtonLemon").not(lemonBg03).css({"display" : "none"});
            swirlBg03.css({"display" : "block"});
            $(".ButtonOverBg").not(swirlBg03).css({"display" : "none"});
            $.pagesBgHeight();
        },
        homeButtons: function() {
            var button01 = $(".HomeItem .ButtonsRow .Button01");
            var lemonBg01 = $(".HomeItem .ButtonsRow .ButtonLemon01");
            var swirlBg01 = $(".ButtonOverBg01");
            button01.hover(
                function(){
                    if(!$(".PagesContainer").is(":animated"))
                    {
                        $(this).css({"background-position" : "0 -59px"});
                        swirlBg01.addClass("OverBgVisible");
                        lemonBg01.css({"display" : "block"});
                        swirlBg01.css({"display" : "block"});
                        $(".HomeItem .ButtonsRow a").not(".HomeItem .ButtonsRow .Button01").css({"background-position" : "0 0"});
                        lemonBg02.css({"display" : "none"});
                        swirlBg02.css({"display" : "none"});
                        lemonBg03.css({"display" : "none"});
                        swirlBg03.css({"display" : "none"});
                        swirlBg02.removeClass("OverBgVisible");
                        swirlBg03.removeClass("OverBgVisible");
                        $.pagesBgHeight();
                    }
                },
                function(){
                    if(!$(".PagesContainer").is(":animated"))
                    {
                        $(this).css({"background-position" : "0 0"});
                        lemonBg01.css({"display" : "none"});
                        swirlBg01.css({"display" : "none"});

                    }
                    else
                    {
                         $(this).css({"background-position" : "0 -59px"});
                        lemonBg01.css({"display" : "block"});
                        swirlBg01.css({"display" : "block"});
                    }
                }
            );
            button01.click(function(){
                $(this).css({"background-position" : "0 -59px"});
                lemonBg01.css({"display" : "block"});
                swirlBg01.css({"display" : "block"});
                $.scrollTo($(this));
                $(".PageContainer .MenuTop ul li a").removeClass("Current");
                $(".PageContainer .MenuTop ul li").eq(0).children("a").addClass("Current");
                return false;
            });
            var button02 = $(".HomeItem .ButtonsRow .Button02");
            var lemonBg02 = $(".HomeItem .ButtonsRow .ButtonLemon02");
            var swirlBg02 = $(".ButtonOverBg02");
            button02.hover(
                function(){
                    if(!$(".PagesContainer").is(":animated"))
                    {
                        
                        $(this).css({"background-position" : "0 -59px"});
                        lemonBg02.css({"display" : "block"});
                        swirlBg02.css({"display" : "block"});
                        swirlBg02
                                .addClass("OverBgVisible")
                        .queue(function(next){
                            $.pagesBgHeight();
                            next();
                        });
                        $(".HomeItem .ButtonsRow a").not(".HomeItem .ButtonsRow .Button02").css({"background-position" : "0 0"});
                        lemonBg01.css({"display" : "none"});
                        swirlBg01.css({"display" : "none"});
                        lemonBg03.css({"display" : "none"});
                        swirlBg03.css({"display" : "none"});
                        swirlBg01.removeClass("OverBgVisible");
                        swirlBg03.removeClass("OverBgVisible");
                    }
                },
                function(){
                    if(!$(".PagesContainer").is(":animated"))
                    {
                        $(this).css({"background-position" : "0 0"});
                        lemonBg02.css({"display" : "none"});
                        swirlBg02.css({"display" : "none"});

                    }
                    else
                    {
                        $(this).css({"background-position" : "0 -59px"});
                        lemonBg02.css({"display" : "block"});
                        swirlBg02.css({"display" : "block"});
                    }
                }
            );
            button02.click(function(){
                $(this).css({"background-position" : "0 -59px"});
                lemonBg02.css({"display" : "block"});
                swirlBg02.css({"display" : "block"});
                swirlBg02
                            .addClass("OverBgVisible")
                    .queue(function(next){
                        $.pagesBgHeight();
                        next();
                    });
                $.scrollTo($(this));
                $(".PageContainer .MenuTop ul li a").removeClass("Current");
                $(".PageContainer .MenuTop ul li").eq(1).children("a").addClass("Current");
                return false;
            });
            var button03 = $(".HomeItem .ButtonsRow .Button03");
            var lemonBg03 = $(".HomeItem .ButtonsRow .ButtonLemon03");
            var swirlBg03 = $(".ButtonOverBg03");
            button03.hover(
                function(){
                    if(!$(".PagesContainer").is(":animated"))
                    {
                        $(this).css({"background-position" : "0 -59px"});
                        lemonBg03.css({"display" : "block"});
                        swirlBg03.css({"display" : "block"});
                        swirlBg03.addClass("OverBgVisible");
                        $(".HomeItem .ButtonsRow a").not(".HomeItem .ButtonsRow .Button03").css({"background-position" : "0 0"});
                        lemonBg02.css({"display" : "none"});
                        swirlBg02.css({"display" : "none"});
                        lemonBg01.css({"display" : "none"});
                        swirlBg01.css({"display" : "none"});
                        swirlBg01.removeClass("OverBgVisible");
                        swirlBg02.removeClass("OverBgVisible");
                        $.pagesBgHeight();
                    }
                },
                function(){
                    if(!$(".PagesContainer").is(":animated"))
                    {
                        $(this).css({"background-position" : "0 0"});
                        lemonBg03.css({"display" : "none"});
                        swirlBg03.css({"display" : "none"});

                    }
                    else
                    {
                         $(this).css({"background-position" : "0 -59px"});
                        lemonBg03.css({"display" : "block"});
                        swirlBg03.css({"display" : "block"});
                    }
                }
            );
            button03.click(function(){
                $(this).css({"background-position" : "0 -59px"});
                lemonBg03.css({"display" : "block"});
                swirlBg03.css({"display" : "block"});
                $.scrollTo($(this));
                $(".PageContainer .MenuTop ul li a").removeClass("Current");
                $(".PageContainer .MenuTop ul li").eq(2).children("a").addClass("Current");
                return false;
            });
        }
        ,
        pager: function(){
            $(".Pager li a").click(function(){
                $.loadTo($(this));
                return false;
            });
        },
        subMenu: function(){
            if($("ul.SubMenu").height() > 47)
            {
                $("ul.SubMenu").height(47);
            }
            $("ul.SubMenu li a").click(function(){
                $.loadTo($(this));
                return false;
            });
        },
        sitemapLinks: function(){
            $(".SiteMapBlock a").click(function(){
				var loadItem = $(this).attr("href");
				if(loadItem.indexOf("http") != -1)
				{
					window.location.replace(loadItem);
				}
				else
				{
					$.scrollTo($(this));
				}
                return false;
            });
        },
        changePosition: function(){
            var topPosition = - $(".PagesContainer .PageItem.Current").height() * $(".PagesContainer .PageItem.Current").index();
            $(".PagesContainer").css({"top" : topPosition});
            $(".PagesBg").css({"top" : topPosition});
        },
        scrollArea: function(){
            if($(".LeftBlock .ScrollArea").length)
            {
                $(".LeftBlock .ScrollArea").each(function(){
                    var parentHeight = $(this).parent().height();
                    if($(this).parent().children().not(".ScrollArea").length)
                    {
                        var childrenHeight = $(this).parent().children().not(".ScrollArea").height();
                        var childrenPadding = parseInt($(this).parent().children().not(".ScrollArea").css("paddingTop"));
                        var childrenMargin = parseInt($(this).parent().children().not(".ScrollArea").css("marginBottom"));
                    }
                    else
                    {
                        childrenHeight = 0;
                        childrenPadding =0;
                        childrenMargin = 0;
                    }
                    var ScrollHeight = parentHeight - childrenHeight - childrenPadding - childrenMargin;

                    $(this).height(ScrollHeight);
                });
                $(".LeftBlock .ScrollArea").jScrollPane({showArrows: true, verticalDragMinHeight: 10, verticalDragMaxHeight: 10});
                
            }
        },
        flash: function(){
            if($("#FlashBox").length)
            {
                var location = document.location.hash;
                var Unit = location.lastIndexOf("#");
                Unit = location.substring(Unit + 1, location.lastIndexOf("$"));
                if(Unit == "consument")
                {
                    var flashvars = {p: "products.xml"};
                }
                if(Unit == "zakelijk")
                {
                    flashvars = {p: "productsNZ.xml"};    
                }
                if(Unit == "nonprofit")
                {
                    flashvars = {p: "productsNZ.xml"};
                }
                var params = {
                  wmode: "transparent"
                };
                var attributes = {};
                swfobject.embedSWF("carousel.swf", "FlashBox", "542", "257", "9.0.0","expressInstall.swf", flashvars, params, attributes);
            }
        },

        tellFiend: function(){
            $(".TellAFriendButton").click(function(){
                $(".Overlay").show();
                $(".TellFriendPopup").show();
                $.tellFiendValidate();
                return false;
            });
            $(".TellFriendPopup .Inside .ClosePopup").click(function(){
                $(".Overlay").hide();
                $(".TellFriendPopup").hide();
                return false;
            });
            $(".Overlay").click(function(){
                $(".Overlay").hide();
                $(".TellFriendPopup").hide();
                return false;
            });

        },
        tellFiendValidate: function(){
            if($(".Popup .Inside .FormBlock").length)
            {
                $(".Popup .Inside .FormBlock .BottomRow .Button").click(function(){
                   $("#TellFiend").validate({
                        errorElement: "em",
                        errorPlacement: function(error, element) {
                            error.appendTo( element.parent().parent(".Row").children(".ErrorMessage") );
                            $.scrollArea();
                        },
                        rules: {
                            Jnaam: {
                                required:true
                            },
                            Jemail: {
                                email: true,
                                required:true
                            },
                            NaamO: {
                                required:true
                            },
                            EmailO: {
                                email: true,
                                required:true
                           }
                        },
                       submitHandler: function(form){
                            $(form)
                                    .ajaxSubmit()
                            .queue(function(next){
                                $(".Overlay").hide();
                                $("#TellFiend input").val(" ");
                                $("#TellFiend textarea").val(" ");
                                $(".TellFriendPopup").hide();
                                next();
                            });
                        }
                   });

                });    
            }

        },
        disclaimer: function(){
            $("#Disclaimer").click(function(){
                $(this).addClass("Current");
                $(".Overlay").show();
                $(".Disclaimer")
                .show()
                .queue(function(next){
                    $(".Disclaimer .ScrollArea").jScrollPane({showArrows: true, verticalDragMinHeight: 10, verticalDragMaxHeight: 10});
                    next();
                });

                return false;
            });
            $(".Disclaimer .Inside .ClosePopup").click(function(){
                $(".Overlay").hide();
                $(".Disclaimer").hide();
                $("#Disclaimer").removeClass("Current");
                return false;

            });
            $(".Overlay").click(function(){
                $(".Overlay").hide();
                $(".Disclaimer").hide();
                $("#Disclaimer").removeClass("Current");
                return false;
            });
        },
        verkoopvoorwaarden: function(){
            $("#Verkoopvoorwaarden").click(function(){
                $(this).addClass("Current");
                $(".Overlay").show();
                $(".Verkoopvoorwaarden")
                .show()
                .queue(function(next){
                    $(".Verkoopvoorwaarden .ScrollArea").jScrollPane({showArrows: true, verticalDragMinHeight: 10, verticalDragMaxHeight: 10});
                    next();
                });

                return false;
            });
            $(".Verkoopvoorwaarden .Inside .ClosePopup").click(function(){
                $(".Overlay").hide();
                $(".Verkoopvoorwaarden").hide();
                $("#Verkoopvoorwaarden").removeClass("Current");
                return false;

            });
            $(".Overlay").click(function(){
                $(".Overlay").hide();
                $(".Verkoopvoorwaarden").hide();
                $("#Verkoopvoorwaarden").removeClass("Current");
                return false;
            });
        },
        privacy: function(){
            $("#Privacy").click(function(){
                $(this).addClass("Current");
                $(".Overlay").show();
                $(".Privacy")
                .show()
                .queue(function(next){
                    $(".Privacy .ScrollArea").jScrollPane({showArrows: true, verticalDragMinHeight: 10, verticalDragMaxHeight: 10});
                    next();
                });

                return false;
            });
            $(".Privacy .Inside .ClosePopup").click(function(){
                $(".Overlay").hide();
                $(".Privacy").hide();
                $("#Privacy").removeClass("Current");
                return false;

            });
            $(".Overlay").click(function(){
                $(".Overlay").hide();
                $(".Privacy").hide();
                $("#Privacy").removeClass("Current");
                return false;
            });
        },
        selectField: function(){
            if($(".ContactForm .Row .Field03 select").length)
            {
                $(".ContactForm .Row .Field03 select").selectbox();
            }
            if($(".ProductItem .InfoBlock .CompareBlock select").length)
            {
                $(".ProductItem .InfoBlock .CompareBlock select").selectbox().bind("change", function(){
                    $(".ProductItem .InfoBlock .CompareBlock .ButtonCompare").attr("href", $(this).val());
                });

            }
        },

        contactFormSubmit: function(){
                if($(".ContactForm").length)
                {
                    $(".ContactForm").validate({

                        errorElement: "em",
                        errorPlacement: function(error, element) {
                            error.appendTo( element.parent().parent(".Row").children(".ErrorMessage") );
                            $.scrollArea();
                        },
                        rules: {
                            Email: {
                                required:true,
                                email: true
                            },
                           Vraag: {
                                required:true
                            }
                        },
                        debug: true,
                        submitHandler: function(form){
                        $(form)
                                .ajaxSubmit()
                        .queue(function(next){
                            var contentItem =$(".PagesContainer .PageItem.Current");
                            var contentName;
                            $(".PreloaderBlock").show();
                            var loadItem = $(".ContactForm .VerzendBtn").attr("name");
                            var contentNameUrl = loadItem.lastIndexOf("#");
                            contentNameUrl = loadItem.substring(contentNameUrl + 1, loadItem.length);
                            var urlInfo = document.location.hash;
                            var urlString = urlInfo.lastIndexOf("#");
                            var contentString = urlInfo.lastIndexOf("$");
                            contentString = urlInfo.substring(urlString + 1, contentString);
                            document.location.hash = contentString + "$" + contentNameUrl;
                            $.loadInfo();
                            contentName = loadInfo.contentName;
                            $.get(
                                "/" + contentName,
                                function(res){
                                   $(".ContentTarget", contentItem)
                                   .html(res)
                                   .queue(function(next){
                                        $.callFunction();
                                       next();
                                   })
                                   .queue(function(next){
                                        $(".PreloaderBlock").hide();
                                       next();
                                   });


                                }
                            );
                            next();
                        });
                    }
                   });
                }

        },
        navBar: function(){
            $(".NavBar  a").click(function(){
                $.loadTo($(this));
                return false;
            });
        },
        logoClick: function(){
            $(".PageContainer .Logo a").click(function(){
                if(!$(".PagesContainer .HomeItem").hasClass("Current"))
                {
                    $.scrollTo($(this));
                }
            });
        },
        topMenu: function(){
                if($(".SitemapItem").hasClass("Current"))
                {
                    $(".MenuTop ul li").each(function(index){
                        $(this).children("a").click(function(){
                            $(".MenuTop ul li a").removeClass("Current");
                            $(this)
                                .addClass("Current")
                                .queue(function(next){

                                    if($(this).parent("li").index() == 1)
                                    {
                                        $.lightedButton02();
                                    }
                                    if($(this).parent("li").index() == 0)
                                    {
                                        $.lightedButton01();
                                    }
                                    if($(this).parent("li").index() == 2)
                                    {
                                        $.lightedButton03();
                                    }
                                    next();
                                })
                                .queue(function(next){

                                    $.loadTo($(this));
                                    next();
                                });
                        });
                    });
                }
                else

                {
                    $(".MenuTop ul li a").removeClass("Current");
                    $(".MenuTop ul li").each(function(index){
                        $(this).children("a").click(function(){
                            $(".MenuTop ul li a").removeClass("Current");
                            $(this)
                                .addClass("Current")
                                .queue(function(next){
                                    if($(this).parent("li").index() == 1)
                                    {
                                        $.lightedButton02();
                                    }
                                    if($(this).parent("li").index() == 0)
                                    {
                                        $.lightedButton01();
                                    }
                                    if($(this).parent("li").index() == 2)
                                    {
                                        $.lightedButton03();
                                    }
                                    next();
                                })
                                .queue(function(next){
                                    $.scrollTo($(this));
                                    next();
                                });

                        });
                    });
                }
        },

        verticalAlignment: function(){
            $(".PageItem").each(function(){
                var TopPadding = parseInt(($(this).height() - $(".ItemContainer", this).height()) / 2);
                var TopPaddingM = parseInt(($(".PageItem.Current").height() - $(".PageItem.Current .ItemContainer").height()) / 2);
                var HomeTopPadding = parseInt(($(".PageItem.HomeItem").height() - $(".PageItem.HomeItem .ItemContainer").height()) / 2);
                $(".ItemContainer", this).css({"padding-top" : TopPadding + "px"});
                $(".PageItem.HomeItem .ItemContainer").css({"padding-top" : HomeTopPadding + "px"});
                $(".MenuContainer").css({"padding-top" : (TopPaddingM - 2) + "px"});
            });

        },
        pagesBgHeight: function(){
            var difference;
            var overBgHeight = $(".OverBgVisible").height();
            var homeItemContHeight = $(".PagesContainer .HomeItem .ItemContainer").height();
            var homeItemPad = parseInt($(".PagesContainer .HomeItem .ItemContainer").css("paddingTop"));
            difference = overBgHeight - (homeItemContHeight + homeItemPad) + 30;
            var homeItemHeight = $(".PagesContainer .HomeItem").height();
            var allPagesHeight = $(".PagesContainer").height();
            if(overBgHeight == null)
            {
                $(".PagesBg").height(allPagesHeight - homeItemHeight);
            }
            if(overBgHeight != null)
            {
                $(".PagesBg").height(allPagesHeight - homeItemHeight - difference);
            }
        },
        loadInfo: function(){
            var location = document.location.hash;
            var ContentName = location.lastIndexOf("$");
            ContentName = location.substring(ContentName + 1, location.length);
            var ItemIndex;
            var Unit = location.lastIndexOf("#");
            Unit = location.substring(Unit + 1, location.lastIndexOf("$"));
            if(ContentName == "" || location == "")
            {
                ItemIndex = $(".PagesContainer .HomeItem").index();
                return  loadInfo = {contentName : ContentName, itemIndex : ItemIndex, unit : Unit};
            }
            else
            {
                for(var key in pages)
                {
                    if(ContentName == key)
                    {
                        ItemIndex = pages[key];
                        break;
                    }
                }
                return  loadInfo = {contentName : ContentName, itemIndex : ItemIndex, unit : Unit};
            }

        },
        contentLinks: function(){
            if($(".ItemContainer .LeftBlock .Inside .ScrollArea").length)
            {
                $(".ItemContainer .LeftBlock .Inside .ScrollArea a").not(".ProductList a, .jspVerticalBar a").each(function(){

                    $(this).click(function(){
                        var loadItem = $(this).attr("href");
                        var contentNameUrl = loadItem.lastIndexOf("#");
                        contentNameUrl = loadItem.substring(contentNameUrl + 1, loadItem.length);
                        for(var key in pages)
                        {
                            if(contentNameUrl == key)
                            {
                               
                                if(pages[key] == $(".PagesContainer .PageItem.Current").index())
                                {

                                    $.loadTo($(this));
                                    return false;
                                }
                                if(pages[key] != $(".PagesContainer .PageItem.Current").index())
                                {
                                    $.scrollTo($(this));
                                    return false;
                                }
                            }
                            if(contentNameUrl == "")
                            {
                                return false;
                            }
                        }
                       
                    });
                });
            }
        },
        siteMapbottomLink: function(){
            $(".BottomRight a.SiteMap").click(function(){ 
                if(loadInfo.unit == "consument")
                {
                    $(this).attr("href", "#consument$sitemap01.html");
                    $.scrollTo($(this));
                }
                if(loadInfo.unit == "zakelijk")
                {
                    $(this).attr("href", "#zakelijk$sitemap02.html");
                    $.scrollTo($(this));
                }
                if(loadInfo.unit == "nonprofit")
                {
                    $(this).attr("href", "#nonprofit$sitemap03.html");
                    $.scrollTo($(this));
                }
            });

        },
        homebottomLink: function(){
            $(".BottomRight a.HomeLink").click(function(){
                $.scrollTo($(this));
            });
        },
        introMaxHeight: function(){
           if($(".ItemContainer .LeftBlock .Inside p.Intro").length && $(".ItemContainer .LeftBlock .Inside p.Intro").height() > 72)
           {
                $(".ItemContainer .LeftBlock .Inside p.Intro").height(72);
                $(".ItemContainer .LeftBlock .Inside p.Intro").css({"overflow" : "hidden"});
           }
        },
        visiblePartHeight: function(){
            $(".PageContainer").height($(window).height());
            $(".PagesContainer .PageItem").height($(window).height());
        },
        rightMenu: function(){
            if($(".RightMenu .ConsumentMenu, .RightMenu .ZakelijkMenu, .RightMenu .NonProfitMenu").height() > 410)
            {
                $(".RightMenu .ConsumentMenu, .RightMenu .ZakelijkMenu, .RightMenu .NonProfitMenu").height(410);
            }
            $(".RightMenu .Inside ul li a").click(function(){
				var loadItem = $(this).attr("href");
				if(loadItem.indexOf("http") != -1)
				{
					window.location.replace(loadItem);
				}
				else
				{
					$.scrollTo($(this));
				}
                return false;
            });
        },
        pngfix: function(){
            if ($.browser.msie && $.browser.version.substr(0,1)<7) {
              DD_belatedPNG.fix(".fixy");
              DD_belatedPNG.fix(".LeftBlock .Inside .RightPhotoBlock");  
            }
        },
        productsNavigation: function(){
            if($(".RightMenu .Inside ul li.Producten").hasClass("Current"))
            {
                if(loadInfo.unit == "consument")
                {
                    $(".NavBar a.OverviewLink").attr("href", "#producten.html");
                    if(loadInfo.contentName == "productDetail04.html")
                    {
                        $(".NavBar .NextBtn").attr("href", "#product_Caretaker_Antispam.html");
                    }
                    if(loadInfo.contentName == "product_Caretaker_Antispam.html")
                    {
                        $(".NavBar .NextBtn").attr("href", "#productDetail05.html");
                    }
                }
                if(loadInfo.unit == "zakelijk")
                {
                    $(".NavBar a.OverviewLink").attr("href", "#productenZ.html");
                    if(loadInfo.contentName == "productDetail04.html")
                    {
                        $(".NavBar .NextBtn").attr("href", "#product_Caretaker_Antispam.html");
                    }
                    if(loadInfo.contentName == "product_Caretaker_Antispam.html")
                    {
                        $(".NavBar .NextBtn").attr("href", "#product_Kerio_Control.html");
                    }
                    if(loadInfo.contentName == "product_Kerio_Control.html")
                    {
                        $(".NavBar .PrevBtn").attr("href", "#product_Caretaker_Antispam.html");
                    }
                }
                if(loadInfo.unit == "nonprofit")
                {
                    $(".NavBar a.OverviewLink").attr("href", "#productenN.html");
                    if(loadInfo.contentName == "productDetail04.html")
                    {
                        $(".NavBar .NextBtn").attr("href", "#product_Kerio_Control.html");
                    }
                    if(loadInfo.contentName == "product_Kerio_Control.html")
                    {
                        $(".NavBar .PrevBtn").attr("href", "#productDetail04.html");
                    }
                }
            }
        },
        layuotFunctions: function(){
            $.visiblePartHeight();
            $.verticalAlignment();
            $.pagesBgHeight();
        },
        homeFunctions: function(){
            $.homeButtons();
            $.disclaimer();
            $.privacy();
            $.verkoopvoorwaarden();
            $.logoClick();
            $.introMaxHeight();
        },
        sitemapFunctions: function(){
            $.sitemapLinks();
            $.disclaimer();
            $.logoClick();
            $.privacy();
            $.verkoopvoorwaarden();
        },
        callFunction: function(){
            $.productPopup();
            $.pager();
            $.subMenu();
            $.scrollArea();
            $.flash();
            $.tellFiend();
            $.disclaimer();
            $.privacy();
            $.verkoopvoorwaarden();
            $.selectField();
            $.contactFormSubmit();
            $.navBar();
            $.logoClick();
            $.contentLinks();
            $.siteMapbottomLink();
            $.homebottomLink();
            $.introMaxHeight();
            $.pngfix();
            $.productsNavigation();
        },
		init: function() {

			$(window).resize(function() {
                $.visiblePartHeight();
                $.changePosition();
                $.verticalAlignment();
                $.pagesBgHeight();
            });

            $(window).scroll(function(){});

			$(window).load(function(){

                $.start();

                //Clear inputs on focus -------------------------------------------------------
                var inputs = $("input[type='text']");
                //alert(inputs.length);
                for (var i=0; i < inputs.length; i++) {
                    inputs[i].onfocus = function () {
                        if ($(this).attr("alt") && this.value.indexOf($(this).attr("alt")) == 0) { this.value = ''; }
                    };
                    inputs[i].onblur = function () {
                        if (this.value == '') { this.value = $(this).attr("alt"); }
                    };
                }
			});
		}
	});
} )(jQuery);
jQuery( function( $ ) {
	$.init(); // Inits content fixes

} );



