	var J = jQuery.noConflict();
	

   J(document).ready(function() {  
							  
		// adding a class to the first child anchors of the list elements so we can correctly mark you are here in the nav
		J(".sf-menu > li > a").addClass("imgreplace");
			
						  					  						  
     J("ul.sf-menu").superfish({
			autoArrows:  false, 
			dropShadows:   false
		 });  
	 
   
	 J('a.enlargeproduct').each(function() {
		this.onclick = function() {
		  return hs.expand(this);
		};
	 });


    J("#jkdya-jkdya").attr({ value: 'Enter Your Email' }).focus(function(){
            if(J(this).val()=="Enter Your Email"){
               J(this).val("");
            }
       }).blur(function(){
            if(J(this).val()==""){
               J(this).val("Enter Your Email");
            }
       });
 
    // home slideshow 
	
    J('#slideshow').cycle({ 
        fx:      'fade', 
        timeout:  3500, 
        before:   onBefore 
    }); 
 
    var slidesAdded = false; 
     
    function onBefore(curr, next, opts) { 
        // make sure we don't call addSlide before it is defined 
        if (!opts.addSlide || slidesAdded) 
            return; 
         
        // add slides for images 3 - 5 
        // slides can be a DOM element, a jQuery object, or a string 
        for (var i=3; i < 6; i++) 
            opts.addSlide('<a href="/product/"><img src="http://vinoture.net/wp-content/uploads/image_'+i+'.jpg" width="900" height="500" /></a>'); 
        slidesAdded = true; 
    }; 
	
	
	   
  }); 
