/*
jQuery(window).load(function(){
});
*/
/*
jQuery(window).load(function(){
    $('#slider').nivoSlider({
        effect: 'sliceUpDown', 
        slices: 15,
        animSpeed: 500, //Slide transition speed
        pauseTime: 5000,
        startSlide: 0, //Set starting Slide (0 index)
        directionNav: true, //Next & Prev
        directionNavHide: true, //Only show on hover
        controlNav: true, //1,2,3...
        controlNavThumbs: false, //Use thumbnails for Control Nav
        controlNavThumbsFromRel: false, //Use image rel for thumbs
        controlNavThumbsSearch: '.jpg', //Replace this with...
        controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
        keyboardNav: true, //Use left & right arrows
        pauseOnHover: true, //Stop animation while hovering
        manualAdvance: true, //Force manual transitions
        captionOpacity: 0.8, //Universal caption opacity
        beforeChange: function(){},
        afterChange: function(){},
        slideshowEnd: function(){}, //Triggers after all slides have been shown
        lastSlide: function(){}, //Triggers when last slide is shown
        afterLoad: function(){} //Triggers when slider has loaded
    });
	// $('#slider').data('nivo:vars').stop = true; //Stop the Slider
});
*/
;$(document).ready(function()
{

    $('#slider').nivoSlider({
        effect: 'sliceUpDown', 
        slices: 15,
        animSpeed: 500, //Slide transition speed
        pauseTime: 5000,
        startSlide: 0, //Set starting Slide (0 index)
        directionNav: true, //Next & Prev
        directionNavHide: true, //Only show on hover
        controlNav: true, //1,2,3...
        controlNavThumbs: false, //Use thumbnails for Control Nav
        controlNavThumbsFromRel: false, //Use image rel for thumbs
        controlNavThumbsSearch: '.jpg', //Replace this with...
        controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
        keyboardNav: true, //Use left & right arrows
        pauseOnHover: true, //Stop animation while hovering
        manualAdvance: false, //Force manual transitions
        captionOpacity: 0.8, //Universal caption opacity
        beforeChange: function(){},
        afterChange: function(){},
        slideshowEnd: function(){}, //Triggers after all slides have been shown
        lastSlide: function(){}, //Triggers when last slide is shown
        afterLoad: function(){} //Triggers when slider has loaded
    });
	// $('#slider').data('nivo:vars').stop = true; //Stop the Slider

	// jQuery Tweet
	$("#social-twitter .cbox-cnt").tweet({
    	//username: "PepsiMusicARG",
    	query : '#CosquinRock',
        join_text: "auto",
        avatar_size: 32,
        count: 6,
        refresh_interval: 15,
        template: "{avatar}{text}{join}<div class=\"tweet-time\">{time}</div>",
        auto_join_text_default: ":",
        auto_join_text_ed: "",
        auto_join_text_ing: "",
        auto_join_text_reply: "respondimos a ",
        auto_join_text_url: "",
        loading_text: "cargando tweets..."
	});


	/**
	* Widget para reproducir el wall de Facebook
	*/
	$('#social-facebook .cbox-cnt').fbWall({
		id:'148008581880417', 
		max : 6,
		accessToken:'145603615496040|U2SN1fScp5ipuMgJqhMslG9KJnc',
		avatarAlternative:		'avatar-alternative.jpg',
		avatarExternal:			'avatar-external.jpg',
		showComments:			false,
		showGuestEntries:		false,
		timeConversion:			24,
		useAvatarAlternative:	false,
		useAvatarExternal:		false,
		translateAt: 'a ',
		translateLikeThis: ' les gusta esto',
		translateLikesThis: ' le gusta esto',
		translatePeople : ' personas',
		useAvatarAlternative : false,
		useAvatarExternal : false
	});
});
