/**
 * @author Emmanuel-Dev
 */

$(document).ready(function() {
	
	$('a.lightbox').lightBox();

	// $('.slickbox').hide();

    // toggles the slickbox on clicking the noted link  
    /*$('.slick-toggle').click(function(e) {
		e.preventDefault();
		
		var box_id = $(this).attr("id").replace("box-","");
		
		//alert(box_id);
		
		$('#detail-'+box_id).toggle("normal");
	    return false;
    });*/
    
    // Page Scroll Function
    $('.backtotop').click(function(){
		$('html, body').animate({scrollTop:0}, 'slow');
	});
	
	
	// JQuery Twitter Setup
	/*$("#twitter").getTwitter({
		userName: "grafikkaos",
		numTweets: 2,
		loaderText: "...Loading tweets...",
		slideIn: true,
		slideDuration: 750,
		showHeading: true,
		headingText: "Latest Tweets",
		showProfileLink: true,
		showTimestamp: true
	});*/
    


        // JQuery Tweet Setup
        $(".tweet").tweet({
            username: "grafikkaos",
            join_text: "auto",
            avatar_size: 48,
            count: 2,
            auto_join_text_default: "I said,",
            auto_join_text_ed: "I",
            auto_join_text_ing: "I was",
            auto_join_text_reply: "I replied to",
            auto_join_text_url: "I was checking out",
            loading_text: "<div style='text-align: center;'>...loading tweets...</div>"
        });

     $(function() { 
        	// Here we have the auto_save() function run every 30 secs
		// We also pass the argument 'editor_id' which is the ID for the textarea tag
		setInterval("auto_save('editor_id')",30000);
	 });

    
});

function auto_save()
{
    
}

