/************************************************************
 ** Clears a field
 ** By: 	Joshua Sowin (fireandknowledge.org)
 ** HTML: <input type="text" value="Search" name="search"
 **			id="search" size="25" 
 ** 		onFocus="clearInput('search', 'Search')" 
 ** 		onBlur="clearInput('search', 'Search')" />
 ***********************************************************/
function clearInput(field_id, term_to_clear) {
	
	// Clear input if it matches default value
	if (document.getElementById(field_id).value == term_to_clear ) {
		document.getElementById(field_id).value = '';
	}
	
	// If the value is blank, then put back term
	else if (document.getElementById(field_id).value == '' ) {
		document.getElementById(field_id).value = term_to_clear;
	}
} // end clearSearch()


/* a javascript function that takes a QT movie and calls its "Play" method */
	function PlayIt(anObj)
	{
		anObj.Play();
	}
/* a javascript function that takes a QT movie and calls its "Stop" method */
	function StopIt(anObj)
	{
		anObj.Stop();
	}
/* a javascript function that takes a QT movie and calls its "Rewind" method */
	function StartIt(anObj)
	{
		anObj.Rewind();
	}
/* a javascript function that takes a QT movie and calls its "Reverse" method */
        function ReverseIt(anObj)
	{
		anObj.Step(-1);
	}
/* a javascript function that takes a QT movie and calls its "Reverse" method */
        function ForwardIt(anObj)
	{
		anObj.Step(1);
	}
	

$(document).ready(function(){
	
	if ( $('.slideshow').length ) {
    $('#slidenav').html('<input type="image" src="/wp-content/themes/sldV2/css/prevPageArrow.gif" id="prev" value="Previous" /><input type="image" src="/wp-content/themes/sldV2/css/pause.gif" id="pauseButton" value="Pause" /><input type="image" src="/wp-content/themes/sldV2/css/play.gif" id="resumeButton" value="Play" style="display: none;" /><input type="image" src="/wp-content/themes/sldV2/css/nextPageArrow.gif" id="next" value="Next" />');
    $('.gallery-link').css({'margin-top' : '-320px !important;' , 'margin-right' : '60px'});
}

});
