﻿
jQuery(document).ready(function () {
    var url = location.href;
    url = url.toLowerCase();

    if (url.indexOf("/admin") > 0) $('.footer').css('display', 'none');
    else if (url.indexOf("/aboutus") > 0) $('#navabout').css('font-weight', 'bold');
    else if (url.indexOf("/technology") > 0) $('#navtech').css('font-weight', 'bold');
    else if (url.indexOf("/products") > 0) $('#navproducts').css('font-weight', 'bold');
    else if (url.indexOf("/gallery") > 0) {
        $('#navgallery').css('font-weight', 'bold');
    }
    else if (url.indexOf("/merchants") > 0 && url.indexOf("/merchants/logon") < 0 && url.indexOf("/merchants/retrievepassword") < 0) {
        $('#navmerchants').css('font-weight', 'bold');
        $('.footer').css('display', 'none');
    }
    else if (url.indexOf("/frames") > 0) $('#navframes').css('font-weight', 'bold');
    else if (url.indexOf("/contact") > 0) $('#navcontact').css('font-weight', 'bold');
    else $('#navhome').css('font-weight', 'bold');
});
