function toggleTextOut(e,txtval) {
	if(e.value=="") e.value = txtval;

}
function toggleTextIn(e,txtval) {
	if(e.value==txtval) e.value="";
	else e.select();
}



$(document).ready(function(){
	
	$(".swap").hover(
		function(){
		if($(this).attr("src").indexOf("-on.") == -1) {
			var newSrc = $(this).attr("src");
			newSrc = (newSrc.replace(/.jpg|.gif|.png/, '-on' + newSrc.substr(newSrc.length - 4)));
			$(this).attr("src",newSrc);
		}},
		function(){
		if($(this).attr("src").indexOf("-on.") > 0) {
			var oldSrc = $(this).attr("src").replace('-on.', '.');
			$(this).attr("src",oldSrc);
		};
		});
	$('#navigation li ul').hide(); 
	$('#navigation li').hover( function() {
		$(this).children('ul').show();
		$(this).addClass('selected');
		
		}, function() {
			
		$(this).children('ul').hide();
		$(this).removeClass('selected');
			
		})
	
	var wid = $('#navigation').outerWidth(true) + 1;
	$('#navigation').css('width', wid );
	
});



