﻿/// <reference path="jquery.js" />  // TODO This line can be removed on release versions of the software.

$(document).ready(function() {

    if ($("#NewWorkRequest").length > 0) {
        $("#CenterBool").removeClass("ItemCenter");
        $("#CenterBool").addClass("ItemNoCenter");
        

        //alert("ID exists and Classes should have changed"); //this line is for testing purposes only
        if ($(".ie7").length > 0) {

            $("#CenterBool").removeClass("ItemCenter");
            $("#CenterBool").addClass("ItemNoCenter");
            //alert("Internet Explorer 7 requires your permission to load this form.        Upgrading to Internet Explorer 8 or using Firefox will eliminate this popup");


            $("#endStuff").addClass("endStuffClass"); //This need to be left in for ie7  This is a hack to get it to re-render the changed div

        }


        
    }





})

/// this is for changing the background so the text boxes will show what has the focus.  
/// TODO it is not working as of 06/08/2009 DeeG
//$(document).ready(function() {

//    //this changes the background when the control gains focus
//    $(".input").focus(function() {
//    //$(this).css("background", "#ccdcf3");
//    $(this).css("border", "solid 2px #83abe4")
//        //alert("Caught Focus"); // for testing only

//    });

//    //this changes back to the default color on blur
//    $(".input").blur(function() {
//    $(this).css("border", "inset thin #cccccc");
//        //alert("on blur"); // for testing only
//    });


//})


