/*---- clear inputs ---*/
$('input:text, input:password, textarea').each(function(){
	var _el = jQuery(this);
	_el.data('val', _el.val());
	_el.bind('focus', function(){
		if(_el.val() == _el.data('val')) _el.val('');
	}).bind('blur', function(){
		if(_el.val() == '') _el.val(_el.data('val'));
	});
});
if ( $.browser.msie && $.browser.version == '7.0' ) {
	$('.mainNav .sub-menu, .mainNav .children').each(function(){
		var max_width = 0;
		var fontSize = Math.round(parseInt($(this).css('font-size')) / 2);
		$('li', this).each(function(){
			var _width = $(this).text().length * fontSize;
			if (_width > max_width) max_width = _width;
		});
		$(this).css({
			width: max_width + 'px'
		});
	})
}
/* $('.content img').each(function(){
	var _title = $(this).attr('title');
	var _class = $(this).attr('class');
	$(this).wrap(function(){
		return '<span class="imgPlacer '+ _class +'"span><b></b><em>'+_title+'</em></span>'
	}).attr('class', '');
}); */
