$(document).ready(function(){
	
	
	$(".first a span").hide(); 
	
		$(".first a").hover(
			function () {
			$(this).children("span").fadeIn(300);
			},function(){
			$(this).children("span").fadeOut(200);
		});//hover
		
    $('#slideshow').cycle({
        fx:     'scrollHorz',
        speed:  1500,
        timeout: 0,
        pager:  '#nav',
        prev: '.back',
        next: '.forward',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#nav div:eq(' + (idx) + ')';
        }
    });

	$('.direct').click(function() {
		var integer = $(this).attr('rel');
        $('#nav div:eq(' + (integer) + ')').triggerHandler('click');
        return false;
    });
	
	$('.exit').click(function(){
							  		
		 $('#nav div:eq(0)').triggerHandler('click');
	
	});
	
	$('.widget:last').css('border-bottom', 'none');
	$('.post-excerpt:last').css('border-bottom', 'none');
	
	var linkedin_css = { 
		'background' : 'url(http://elauwit.com/wp-content/themes/elauwit/images/linkedin.png) no-repeat !important',
		'height' : '16px !important',
		'width' : '16px !important'
	
	}	
	$('.li-connect-widget .li-connect-mark').css(linkedin_css);
	
	var facebook_css ={
		'background' : 'url(http://elauwit.com/wp-content/themes/elauwit/images/facebook.png) no-repeat !important',
		'height' : '16px !important',
		'width' : '16px !important'
	}
	
	$('.button_count .like_button_dark .like_button_no_like .liketext, .button_count .connect_widget_like_button .liketext').css(facebook_css);
	
	/*
	$('.controls a').click(function(){
									
		var integer = $(this).attr('rel');
		
		$('#cover').animate({
			left:-960*(parseInt(integer)-1)},
			{
				duration: 1000, 
				easing: 'easeInSine'
			}
		);
	
	});

	$('.forward').click(function(){
		
		var integer = $(this).attr('rel');
		
		$('#cover').animate({left:-960*(parseInt(integer)-1)},
			{
				duration: 1000, 
				easing: 'easeInQuad'
			}
		);
	
	});
	
	$('.back').click(function(){
		
		var integer = $(this).attr('rel');
		
		$('#cover').animate({left:-960*(parseInt(integer)-1)},
			{
				duration: 1000, 
				easing: 'easeOutQuad'
			}
		);
	
	});
	
	$('.exit').click(function(){
							  		
		 $('#nav div:eq(0)').triggerHandler('click');
	
	});
	
	*/
	
});
