/**
 * JavaScript behaviors for layout elements.
 *
 * @copyright  Copyright (c) 2005-2008 Found Line, Inc. (http://www.foundline.com/)
 * @version    $Id: layout.js 187 2008-09-07 15:47:11Z bradley.holt $
 */

jQuery.preloadImages = function() {
    for(var i = 0; i < arguments.length; i++)
    {
        jQuery("<img/>").attr("src", arguments[i]);
    }
};

$("document").ready(function() {
    $("body").addClass("enhanced");
    if (jQuery.browser.msie == true && parseFloat(jQuery.browser.version) < 7) {
        $("img.png").each(function() {
            $(this).attr("writing-mode", "tb-rl");
            $(this).css("background-image", "none");
            $(this).css("filter", 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + $(this).attr("src") + '",sizingMethod="scale")');
            $(this).attr("src", "/images/spacer.gif");
        });
    }
});
