/* 

Author: Mr. Henry
Date: 2009-05-27

Fueled by jQuery

*/

// Note: No conflict function

// This function must be called after including the jQuery javascript file, but before including any other conflicting library, 
// and also before actually that other conflicting library gets used, in case jQuery is included last. noConflict can be called at 
// the end of the jQuery.js file to globally disable the $() jQuery alias. jQuery.noConflict returns a reference to jQuery, so it 
// can be used to override the $() alias of the jQuery object.
// Use jQuery via jQuery(...)
//jQuery.noConflict();

jQuery(document).ready(function(){
    
    $.localScroll();
    
    /* Header backgrounds
    -----------------------------------------------------*/
    if (template_url != undefined) {
        var header_bg_url   = template_url + "/images/backgrounds/bg-header.gif";
        $("#content h2 .wrap").each(function(){
            var width       = $(this).outerWidth();
            $(this).parents("h2").css({ 
                "background-image"      : "url(" + header_bg_url + ")",
                "background-position"   : (width + 10) + "px 0"
            });
        });
    }
});
