/*
	4 spaces per tab, monospaced font
*/



// used in the home page

	function setupTheHomePage() {
	
		// setup the main cycle 
		$('#homepagePortfolioDesignSamples').cycle({ 
			fx:				'fade',				// the effect
			pause:  		0,					// pause if the mouse is over the image
			speed:			500,				// speed of the transition
			timeout:		0,					// how long to pause after a transition, 0 creates a manual slideshow
			next:			'#arrowNext',		// id of the next button
			prev:			'#arrowPrevious'	// id of the previous button
		});
	
	
		// manage the Next and Previous buttons' events
		$('#arrowPrevious')	.fadeIn(800);
		$("#arrowPrevious")	.mousedown( function () { $(this).attr({ src: 'resources/miscellaneous/arrowPreviousActive.gif'	});});
		$("#arrowPrevious")	.mouseup(   function () { $(this).attr({ src: 'resources/miscellaneous/arrowPrevious.gif' 		});});
		$("#arrowPrevious")	.hover(
			function () 	{ $(this).attr({ src: 'resources/miscellaneous/arrowPreviousHover.gif' 	});}, 
			function () 	{ $(this).attr({ src: 'resources/miscellaneous/arrowPrevious.gif' 		});}	);
	
		$('#arrowNext')		.fadeIn(800);
		$("#arrowNext")		.mousedown( function () { $(this).attr({ src: 'resources/miscellaneous/arrowNextActive.gif'		});});
		$("#arrowNext")		.mouseup(   function () { $(this).attr({ src: 'resources/miscellaneous/arrowNext.gif'			});});
		$("#arrowNext")		.hover(
			function () 	{ $(this).attr({ src: 'resources/miscellaneous/arrowNextHover.gif'		});}, 
			function () 	{ $(this).attr({ src: 'resources/miscellaneous/arrowNext.gif' 			});}	);
	
	
		// for the mini cycle
		$('#mini-design-web-graphic-interface-portfolio').cycle({ 
			fx:				'fade',				// the effect
			pause:  		1,					// pause if the mouse is over the image
			speed:			750,				// speed of the transition
			timeout:		3000				// how long to pause after a transition
		});
		
	}



// the content select 

	function showSelectedContent() {
		var currentSelectValue = document.formName.contentSelector.value;
		if (currentSelectValue == "" || currentSelectValue === undefined) {
			return;
		} else {
			document.location.href = currentSelectValue;
		}
	}

