
/* - ++resource++ergocontrol.static/javascripts/main.js - */
$(document).ready(function() {
    // not so nice check if we are in bewegenwerkt
    var mypath = String(window.location);
    if (mypath.indexOf("bewegenwerkt") >= 0) {
        //Tell the browser to change the background when hovered over
        function over(event) {
            $(this).css("cursor", "pointer");
        }
        //tell the browser to change the background to nothing
        //when going outside the object area
        function out(event) {
        $(this).css("cursor", "default");
        }

        //call the jQuery Hover Over and Out
        $('.section-front-page #portal-column-content').hover(over, out);
        //This adds the click event to your object and tells it where to go
        $('.section-front-page #portal-column-content #content').click(function() {
            window.location = "http://www.ergocontrol.nl/gratisfitness/aanmelden"
        });
    }
});


