$(document).ready(function(){
	//input textbox handling
	$('input[type="text"]').focus(function(){
        if($(this).val()==$(this).attr('default'))
        {
            $(this).val('');
        }
    }).blur(function(){
        if($(this).val()=='')
        {
            $(this).val($(this).attr('default'));
        }
    });
    //top nav menu handling
	$('#topNavMenu').insertAfter('#mainWrapper'); //<=IE6 fix, #topNavMenu must be absolute to the page
    $('ul.parent li').hover(
        //mouse over
        function(){
           $(this).find('ul.sub').css({'zIndex':9999}).show();
        },
        //mouse out
        function(){
           $(this).find('ul.sub').hide();
        }).each(function(){
            $(this).find('ul.sub').hide();
        });
});