
function getInternetExplorerVersion()// Returns the version of Windows Internet Explorer or a -1
{
    var rv = -1; // Return value assumes failure.
    if (navigator.appName == 'Microsoft Internet Explorer') {
        var ua = navigator.userAgent;
        var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
        if (re.exec(ua) != null) 
            rv = parseFloat(RegExp.$1);
    }
    return rv;
}

$(document).ready(function () {

    $('a.login_account').toggle(function () {
        $(this).addClass('active_account');
        $('div.accountLinks').css('display', 'block');
    }, function () {
        $(this).removeClass('active_account');
        $('div.accountLinks').css('display', 'none');
    })

    var browserName = navigator.appName;
    var browserVer = getInternetExplorerVersion();

    if (browserName == 'Microsoft Internet Explorer' & browserVer == '6') {
        /* IE6 PNG FIX */
        $('div.singleHeader, div.underline, .imgOk, a.sendMsg, .big_ok_ico').ifixpng();
    }

    $('.addCommentBtn').click(function () {
        $(this).parent().next('div.addCommentForm').fadeIn();
    });

    $('.showSecondStep').click(function () {
        $(this).hide();
        $('.secondStepProject').fadeIn();
    });
    //$('.galleryCont a').lightBox({fixedNavigation:true});

    $('#propAccept').change(function () { $('#propBtn').toggle(); });
    $('.sformerr, .sformok').delay(5000).fadeOut(1000);

    $('#pass_rem a').click(function () {
        $('#rembox').toggle(500);
    });


});         //end ready function
	



