jQuery.noConflict();
jQuery(function () {
	jQuery(document).ready(function () {
            resizing();
            });

    jQuery(window).resize(function () {
            resizing();
            });

    jQuery('#TabRMI').click(function () {
        //jQuery("#SlideIn").focusin();
        if (jQuery('#TabRMI').css("font-size") == "10px") {
            jQuery('#TabRMI').css("font-size", "11px");
            jQuery('#TabLocation').css("font-size", "10px");
            jQuery('#TabContactUs').css("font-size", "10px");
            jQuery('#TabRMI').css("background-image", "url('/Images/Common/SlideIn-Button-Highlighted-RMI.gif')");
            jQuery('#TabLocation').css("background-image", "url('/Images/Common/SlideIn-Button-Normal-Location.png')");
            jQuery('#TabContactUs').css("background-image", "url('/Images/Common/SlideIn-Button-Normal-ContactUs.png')");
            jQuery('#ContentContactUs').fadeOut('fast');
            jQuery('#ContentLocation').fadeOut('fast');
            jQuery('#Content').css("display", "inline");
            jQuery("#SlideIn").stop(false, true);
            jQuery("#SlideIn").animate({
                width: "303px", right: "0px"
            }, {
                duration: 1000,
                step: function (now, fx) {
                    jQuery("#Content").css("width", now - 40);
                },
                complete: function () {
                    jQuery('#ContentRMI').fadeIn();
                }
            });
        }
        else {
            jQuery('#TabRMI').css("font-size", "10px");
            jQuery('#TabRMI').css("background-image", "url('/Images/Common/SlideIn-Button-Normal-RMI.png')");
            jQuery('#TabLocation').css("background-image", "url('/Images/Common/SlideIn-Button-Normal-Location.png')");
            jQuery('#TabContactUs').css("background-image", "url('/Images/Common/SlideIn-Button-Normal-ContactUs.png')");
            jQuery('#ContentRMI').fadeOut('fast');
            jQuery('#ContentContactUs').fadeOut('fast');
            jQuery('#ContentLocation').fadeOut('fast');
            jQuery("#SlideIn").stop(false, true);
            jQuery("#SlideIn").animate({
                width: "40px", right: "0px"
            }, {
                duration: 1000,
                step: function (now, fx) {
                    jQuery("#Content").css("width", now - 40);
                }
            });
        }
    });
    jQuery('#TabLocation').click(function () {
        //jQuery("#SlideIn").focusin();
        if (jQuery('#TabLocation').css("font-size") == "10px") {
            jQuery('#TabRMI').css("font-size", "10px");
            jQuery('#TabLocation').css("font-size", "11px");
            jQuery('#TabContactUs').css("font-size", "10px");
            jQuery('#TabLocation').css("background-image", "url('/Images/Common/SlideIn-Button-Highlighted-Location.png')");
            jQuery('#TabContactUs').css("background-image", "url('/Images/Common/SlideIn-Button-Normal-ContactUs.png')");
            jQuery('#TabRMI').css("background-image", "url('/Images/Common/SlideIn-Button-Normal-RMI.png')");
            jQuery('#ContentRMI').fadeOut('fast');
            jQuery('#ContentContactUs').fadeOut('fast');
            jQuery('#Content').css("display", "inline");
            jQuery("#SlideIn").stop(false, true);
            jQuery("#SlideIn").animate({
                width: "303px", right: "0px"
            }, {
                duration: 1000,
                step: function (now, fx) {
                    jQuery("#Content").css("width", now - 40);
                },
                complete: function () {
                    jQuery('#ContentLocation').fadeIn();
                }
            });
        }
        else {
            jQuery('#TabLocation').css("font-size", "10px");
            jQuery('#TabLocation').css("background-image", "url('/Images/Common/SlideIn-Button-Normal-Location.png')");
            jQuery('#TabContactUs').css("background-image", "url('/Images/Common/SlideIn-Button-Normal-ContactUs.png')");
            jQuery('#TabRMI').css("background-image", "url('/Images/Common/SlideIn-Button-Normal-RMI.png')");
            jQuery('#ContentRMI').fadeOut('fast');
            jQuery('#ContentContactUs').fadeOut('fast');
            jQuery('#ContentLocation').fadeOut('fast');
            jQuery("#SlideIn").stop(false, true);
            jQuery("#SlideIn").animate({
                width: "40px", right: "0px"
            }, {
                duration: 1000,
                step: function (now, fx) {
                    jQuery("#Content").css("width", now - 40);
                }
            });
        }
    });
    jQuery('#TabContactUs').click(function () {
        //jQuery("#SlideIn").focusin();
        if (jQuery('#TabContactUs').css("font-size") == "10px") {
            jQuery('#TabRMI').css("font-size", "10px");
            jQuery('#TabLocation').css("font-size", "10px");
            jQuery('#TabContactUs').css("font-size", "11px");
            jQuery('#TabContactUs').css("background-image", "url('/Images/Common/SlideIn-Button-Highlighted-ContactUs.png')");
            jQuery('#TabRMI').css("background-image", "url('/Images/Common/SlideIn-Button-Normal-RMI.png')");
            jQuery('#TabLocation').css("background-image", "url('/Images/Common/SlideIn-Button-Normal-Location.png')");
            jQuery('#ContentRMI').fadeOut('fast');
            jQuery('#ContentLocation').fadeOut('fast');
            jQuery('#Content').css("display", "inline");
            jQuery("#SlideIn").stop(false, true);
            jQuery("#SlideIn").animate({
                width: "303px", right: "0px"
            }, {
                duration: 1000,
                step: function (now, fx) {
                    jQuery("#Content").css("width", now - 40);
                },
                complete: function () {
                    jQuery('#ContentContactUs').fadeIn();
                }
            });
        }
        else {
            jQuery('#TabContactUs').css("font-size", "10px");
            jQuery('#TabContactUs').css("background-image", "url('/Images/Common/SlideIn-Button-Normal-ContactUs.png')");
            jQuery('#TabRMI').css("background-image", "url('/Images/Common/SlideIn-Button-Normal-RMI.png')");
            jQuery('#TabLocation').css("background-image", "url('/Images/Common/SlideIn-Button-Normal-Location.png')");
            jQuery("#SlideIn").stop(false, true);
            jQuery('#ContentRMI').fadeOut('fast');
            jQuery('#ContentContactUs').fadeOut('fast');
            jQuery('#ContentLocation').fadeOut('fast');
            jQuery("#SlideIn").animate({
                width: "40px", right: "0px"
            }, {
                duration: 1000,
                step: function (now, fx) {
                    jQuery("#Content").css("width", now - 40);
                }
            });
        }
    });

//                jQuery("#SlideIn").focusout(function () { //Need to reset all
//                    jQuery('#TabRMI').css("font-size", "10px");
//                    jQuery('#TabLocation').css("font-size", "10px");
//                    jQuery('#TabContactUs').css("font-size", "10px");
//                    jQuery('#TabRMI').css("background-image", "url('Images/Common/SlideIn-Button-Normal-RMI.png')");
//                    jQuery('#TabLocation').css("background-image", "url('Images/Common/SlideIn-Button-Normal-Location.png')");
//                    jQuery('#TabContactUs').css("background-image", "url('Images/Common/SlideIn-Button-Normal-ContactUs.png')");
//                    jQuery('#ContentRMI').fadeOut('fast');
//                    jQuery('#ContentContactUs').fadeOut('fast');
//                    jQuery('#ContentLocation').fadeOut('fast');
//                    jQuery("#SlideIn").stop(false, true);
//                    jQuery("#SlideIn").animate({
//                        width: "40px", right: "0px"
//                    }, {
//                        duration: 1000,
//                        step: function (now, fx) {
//                            jQuery("#Content").css("width", now - 40);
//                        }
//                    });
//                });

});
function resizing() {
    jQuery("#SlideIn").height(jQuery(document).height() - 81); /* 113 115*/
    jQuery("#Tabs").height(jQuery("#SlideIn").height());
    jQuery("#Content").height(jQuery("#SlideIn").height());
    jQuery("#TabsSpace").height(jQuery("#SlideIn").height() - 666);
    jQuery(".Logo").offset({ top: 0, left: (jQuery(window).width() / 2) - 460 });
    jQuery("#BannerCopy").offset({ top: 165, left: (jQuery(window).width() / 2) - 425 });
    //jQuery("#Footer").offset({ top: (jQuery(document).height() - 60) });
    var footerOffset = jQuery("#Footer").offset();
    jQuery("#Footer").height(jQuery(document).height()-footerOffset.top);
    jQuery(".MainMenu div.menuTabBox").offset({left: (jQuery(window).width() / 2)-190 });
    //jQuery("#BreadCrumbsContainer").offset({left: (jQuery(window).width() / 2)-425 });
}
 function onFocus(inputText) {
    if (inputText.value == inputText.defaultValue) {
        inputText.value = '';
    }
}
function onBlur(inputText) {
    if (inputText.value == '') {
        inputText.value = inputText.defaultValue;
    }
}

