// JavaScript Document

	$(function() {
		//run the currently selected effect
		function runEffect(){
			//get effect type from 
			//var selectedEffect = $('#effectTypes').val(); // Based on pulldown
			/*
			--- Options for Transition ---
			blind
			bounce
			clip
			drop
			explode
			fold
			highlight
			puff
			pulsate
			scale
			shake
			size
			slide
			transfer
			
			*/
			var selectedEffect = 'blind';
			
			//most effect types need no options passed by default
			var options = {};
			//check if it's scale, transfer, or size - they need options explicitly set
			if(selectedEffect == 'scale'){  options = {percent: 0}; }
			else if(selectedEffect == 'size'){ options = { to: {width: 200,height: 60} }; }
			
			//run the effect
			$("#effect").toggle(selectedEffect,options,500);
			
		};
		
		//set effect from select menu value
		$("#button").click(function() {
			runEffect();
			return false;
		});
		
		$("#effect").hide();

	});
	
	
	//blind effect for Free Designs link on homapage
	

