﻿$(document).ready(function () {

//--Links--//
	$('.footer .sites').mouseover(function () {
		if (!$(this).hasClass('current')) {
			$(this).addClass('current open');
			$(this).children('.dropdown').removeClass('hidden');
		}
		
	});
	
	$('.footer .sites').mouseout(function (event) {
		if ($(this).hasClass('current')) {
			$(this).removeClass('current open');
			$(this).children('.dropdown').addClass('hidden');
		}
		
	});


/* 
	
	// Edit POPUP - Close Btn
	$('.edit-popup .btn-close').click(function () {
		$(this).parent().parent().parent().parent().parent('.btn-edit').removeClass('open');
		$(this).parent().parent().parent().parent().addClass('hidden');
			
		this.blur();
		return false;
	});
	
   var flash={
        stopFlash:function(){
            var flashObj = new Array(
                'flashcontent',
                'flashcontent-volcano',
                'flashcontent-mezcal',
                'flashcontent-first',
                "flashcontent-shot",
                "flashcontent-jalisco",
                "flashcontent-jimadors",
                "flashcontent-bicycle",
                "flashcontent-cooking",
                "flashcontent-distill",
                "flashcontent-aging",
                "flashcontent-noms",
                "flashcontent-town"
            );
            
            for(var i = 0; i <flashObj.length; i++){     
                var movie = document.getElementById(flashObj[i]);
                try{
                    if(movie.kill)
                        movie.kill();
                }
                catch(err){}
           }
        }
    }
*/    
   
/*
   $(function() {
		$("#tabs").tabs();
		if($("#tabs") && document.location.hash){ 	}
    	$("#tabs").localScroll({ 
            target:"#tabs",
            duration:0,
    	    hash:true
    	});
	});
*/	

/*
    $('.origins li a.toggler').click(function(){
        $('.origins .showhide').addClass('hide');
        $('.origins li a.toggler').removeClass('minus').addClass('plus');
        $(this).toggleClass('minus').toggleClass('plus');
        $(this).parent().parent().siblings().toggleClass('hide');
        flash.stopFlash();
		this.blur();
		return false;
   });
   
   $('.production li a.toggler').click(function(){
        $('.production .showhide').addClass('hide');
        $('.production li a.toggler').removeClass('minus').addClass('plus');
        $(this).toggleClass('minus').toggleClass('plus');
        $(this).parent().parent().siblings().toggleClass('hide');        
        flash.stopFlash();
		this.blur();
		return false;
   });
*/   
   
//   $(".accordion-setone").accordion({ header: 'h3' });
//   $(".accordion-settwo").accordion({ header: 'h3' });

	
});