/***** INPUT FOCUS *****/

function inpFocus(obj, stdText) {
    if (obj.value == stdText) {
	obj.value = '';
    }
}

function inpBlur(obj, stdText) {
    if (obj.value == '') {
	obj.value = stdText;
    }
}

/***** MENU BEHAVIOUR *****/ 


$(function(){   
    // nasty IE7 hack
    setTimeout(function(){  
	// hide all ul's
	$('div.caretMenuD_menu ul li ul').hide();
	// open correct ul
	openUl();
    },10);
    
    $('li a').click(function(){
	var anchor = $(this);
	if(anchor.parent().children('ul').length > 0){
	    anchor.parent().children('ul').slideDown(500, function(){
		location.href= anchor.attr('href');
	    });
	} else {
	    location.href= anchor.attr('href');
	}
	return false;
    });
});
