//hsy specific utility and global scripts built on top of jquery library which is included in /_scripts/core/jquery.js

//all calls need to be made inside the DOM ready function so that they get called after the page loads.
$(document).ready(function()
{
    //for IE 6.0 navigation z-index issue over form elements fix
    //needs jquery.bgiframe.pack.js
    $('#nav ul li ul').bgiframe();
    
    //common function for textboxes with blur or focus and labels located inside the textboxes
    $.fn.textboxSelect = function() {
	    return this.focus(function() {
		    if( this.value == this.defaultValue ) {
			    this.value = "";
		    }
	    }).blur(function() {
		    if( !this.value.length ) {
			    this.value = this.defaultValue;
		    }
	    });
    };
     
});