function inputTextOnFocus(element, value)
{
	if(element.value == value)
	{
		element.value = '';
	}
}

function inputTextOnBlur(element, value)
{
	if(element.value.trim() == '')
	{
		element.value = value;
	}
}

function showHeader(type, otherType1, otherType2, otherType3)
{
	//if($(".slideshow_"+type).css("display")=="none")
	//{
		$('.slideshow_'+otherType1).cycle('stop');
        
		$(".slideshow_"+otherType1).css("display","none");
		$(".slideshow_"+otherType2).css("display","none");
        $(".slideshow_"+otherType3).css("display","none");
        
		$('.slideshow_'+otherType3).cycle('stop');
		
        $("#"+otherType1+"Description").css("display","none");
		$("#"+otherType2+"Description").css("display","none");
        $("#"+otherType3+"Description").css("display","none");
		
        $(".slideshow_"+type).css("display","block");
		$("#"+type+"Description").css("display","block");
		$('#nav').html('');
		$(".slideshow_"+type).cycle({
            fx: 'fade',
            speed: 1000,
            timeout:  3000, 
            pause: 1,
			pager:'#nav',
     
			// callback fn that creates a thumbnail to use as pager anchor 
			pagerAnchorBuilder: function(idx, slide) { 
				return '<a href="#">&nbsp;</a>'; 
			} 
        });
	//}
}

function showSelectedType()
{
	// TODO
}
