$(document).ready(function() {

//show_hide_text('#q');
//show_hide_text('.nletter');

	var sh = [ '#q', '.nletter .formCell input' ];
	for(var i=0; i<sh.length; i++) {
		show_hide_text(sh[i]);
	}


	$('.round').corner();
	$('.newsletter').corner();
	$('.ctop').corner("top");
	$('.cal1').corner("top");
	$('.cal2').corner("bottom");
	$('.mainimg').corner();
	$('.searchie').corner();
	$('.signie').corner();
	$('.blue').corner();
	$('.corner').corner();
	$('.bluey').corner();
	$('.gogo').corner();
	$('.cycgall').corner();
	$('#cycle_gallery').cycle();
	
	
	
	$(function() {
	$('#gall.lightbox a').lightBox();
}); 

$('.navigation ul .li-level-1').each(function(){
		$(this).find('ul').hide();
		$(this).hover(function(){
			$(this).find('ul').show();
		},function(){
			$(this).find('ul').hide();
		});
	});
});

function show_hide_text(el) {
$(el).each(function() {
document['def_'+$(this).attr('name')] = $(this).attr('value');
$(this).focus(function()
{
if($(this).attr('value') == document['def_'+$(this).attr('name')]) {
$(this).attr('value','');
if(el == '.toggle-input') $(this).css('color','#000000');
}
});
$(this).blur(function()
{
if($(this).attr('value') == '') {
$(this).attr('value',document['def_'+$(this).attr('name')]);
if(el == '.toggle-input') $(this).css('color','#999999');
}
});
});
}

