$(document).ready(function(){
	$("#nav-one li").hover(
		function(){ $("ul", this).fadeIn("slow"); }, 
		function() { } 
	);
	if (document.all) {
		$("#nav-one li").hoverClass ("sfHover");
	}
	});
	  
	$.fn.hoverClass = function(c) {
		return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
	
	$('#flash-home').flash(
        { src: '/sites/motocinch.com/themes/motocinch/flash/moto_cinch02.swf',
          width: 1016,
          height: 420 },
        { expressInstall: true },
        { wmode: transparent },
        { version: 9 }
    );
    
    $('#contacts').bind('change', function(){
		if(this.value='http://www.cinchitdown.com'){
			//location.href=this.value;
			alert(this.value);
		}
	});
    
    // hides the slickbox as soon as the DOM is ready
 // (a little sooner than page load)
  $('#slickbox').hide();
 // shows the slickbox on clicking the noted link
  $('a#slick-show').click(function() {
	$('#slickbox').show('slow');
	return false;
  });
 // hides the slickbox on clicking the noted link
  $('a#slick-hide').click(function() {
	$('#slickbox').hide('fast');
	return false;
  });
 // toggles the slickbox on clicking the noted link
  $('a#slick-toggle').click(function() {
	$('#slickbox').toggle(400);
	return false;
  });
	 
};



