jQuery(document).ready(function($){
    
    //Paint links to current page
    var url = $.url();
    file = url.attr('path');
    
    $("#nav a").each( function(i) {
        var link = $.url(this.href);
        if( url.attr('path') == link.attr('path')) {
            $(this).addClass("selected");
        }
    });
    
//    $("#cms-nav ul[class='parent']").filter("a").click(function(){
//        alert("Width" + $(this).outerWidth() );
//        return false;
//    })
    
    //Touch compatible devices
    if(Modernizr.touch == true){
        
    }
    //If the browser supports placeholders, remove <labels>
    if(Modernizr.input.placeholder){
        $('input[placeholder]').each(function(){
           var id = this.id;
           //$("label[for='" + id + "']").hide();
        });
        //alert("placeholder support");
    }
    
});
