$(document).ready(function(){
	
	// Main Image Area
	$('#coda-slider-1').codaSlider({
        slideEaseDuration: 1000,
        slideEaseFunction: "easeOutSine"
	});
	
	// slide-down images on homepage
	$('a.show').click( function(){$(this).next('div').animate({top:'0px'},{queue:false,duration:500});});		
	$('a.close').click( function(){$(this).parent('div').animate({top:'165px'},{queue:false,duration:500});});
	
	
	$("a[rel^='prettyPhoto[pp_gal]']").prettyPhoto({
		animationSpeed: 'slow', /* fast/slow/normal */
		padding: 40, /* padding for each side of the picture */
		opacity: 0.65, /* Value betwee 0 and 1 */
		showTitle: true, /* true/false */
		allowresize: true, /* true/false */
		counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
		theme: 'dark_rounded' /* light_rounded / dark_rounded / light_square / dark_square */
	});

});
// clearing  inputs on focus
function doClear(theText) 
{
	if (theText.value == theText.defaultValue) 
	{
		theText.value = "";
	} 
}

//replace input value with default on blur
function doReset(theText)
{
	if (theText.value == "")
	{
		theText.value = theText.defaultValue;
	}
}


