$(window).load( function() {
        if (!$.cookie('archlord') || $.cookie('archlord') == null)
        {
            // if the function argument is given to overlay,
            // it is assumed to be the onBeforeLoad event listener
            $("#archlord-promo").overlay({
                    mask: {color: '#161c1e', opacity: 1},
                    effect: 'apple',
                    load: true,
                    closeOnClick: false,
                    top: -215,
                    fixed: false,
                    left: 0,
                    onClose: function(event)
                    {
                        $.cookie('archlord', "1", {path: "/"});
                    }
                });
        }
});
$(document).ready(function(){

$(function() {
  $('.email').each(function() {
     var $email = $(this);
     var address = $email.text()
        .replace(/\s*\[at\]\s*/, '@')
        .replace(/\s*\[dot\]\s*/g, '.');
     $email.html('<a href="mailto:' + address + '">'
        + address +'</a>');
  });
});

});
$(window).load(function () {
 $("#products ul li .equal").equalHeights(); });	 
   
$(document).ready(function(){	
									
$.fn.cycle.updateActivePagerLink = function(pager, currSlideIndex) { 
    	$(pager).find('li').removeClass('activeLI') 
        .filter('li:eq('+currSlideIndex+')').addClass('activeLI'); 
}; 
 
});
 
$(document).ready(function(){	
 $('#slide').cycle({ 
    timeout: 5000,
    fx:     'fade', 
	 speed: 300,
    pager:  '#nav', 
    pagerAnchorBuilder: function(idx, slide) { 
	 	  var link = $('img', slide).attr('src');
        return '<li><a href="#"><img src="' + link + '" width="80" /></a></li>'; 
		  
    } 

}); 

 $('#empty').remove();
});






