jQuery.noConflict();
(function($) { 
$(function(){
    $('.box').prepend('<b class="btop"></b>').append('<b class="bbottom"></b>')
    $('#left .loginbox table input[@type=submit], #right .box input[@type=submit]').wrap('<span class="submitwrapper"><b class="submitinner"></b></span>');
	$('input[@type=text], input[@type=password]').not('input.partial, input.textInput').wrap('<span class="inputwrapper"><b class="inputinner"></b></span>');		
    $("input[@type=text], input[@type=password]").one("focus", function(){
        $(this).val('');
    });
    if ($('#gallery')[0]) { $('#gallery a').lightBox({fixedNavigation:true});   }
    
	if (($.browser.msie) && ($.browser.version <= 6)) {
        $('input[@type=text]').addClass('text_input')
        $('input[@type=submit]').addClass('submit_input')
    }
    $('div.jNiceSelectWrapper ul li:last').addClass('last_option');
    /*equalHeights*/
    var lheight = $('#left').height();
    var rheight = $('#right').height();
    var difference = lheight - rheight;
    var difference2 = rheight - lheight;
    if (lheight > rheight) {
        var boxheight = $('#right .box:last .boxinner').height();
        $('#right .box:last .boxinner').height(boxheight + difference)
    }
    else 
        if (difference2 > 30) {
            $('#left').append('<div class="box"><b class="btop"></b><div class="boxinner"></div><b class="bbottom"></b></div>')
            $('#left .box:last .boxinner').height(difference2 - 19)
        }
        else 
            if (difference2 < 30) {
                var boxheight2 = $('#left .box:last .boxinner').height();
                $('#left .box:last .boxinner').height(boxheight2 + difference2)
            };
});
})(jQuery);

