jQuery(document).ready(function($) {
	$("#slideshow").cycle({ 
	    fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...   
	    speed: 1500, // defines the number of milliseconds it will take to transition from one slide to the next.
 		timeout: 3500, // specifies how many milliseconds will elapse between the start of each transition
	    delay:  2500, // set a delay before 1st slide starts transitioning
	    pause: 1,
	    fit: 1,
	     cleartype:  true,
    cleartypeNoBg:  true,
    random:  1
	});
	

        //Default Action
        $(".tab_content").hide(); //Hide all content
        $("ul.tabs li:first").addClass("active").show(); //Activate first tab
        $(".tab_content:first").show(); //Show first tab content
        
        //On Click Event
        $("ul.tabs li").click(function() {
                $("ul.tabs li").removeClass("active"); //Remove any "active" class
                $(this).addClass("active"); //Add "active" class to selected tab
                $(".tab_content").hide(); //Hide all tab content
                var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
                $(activeTab).fadeIn(); //Fade in the active content
                return false;
        });


Cufon.replace('#main h1,.mainheading', { fontFamily: 'Myriad Pro' });

$('#news-container').vTicker({ 
                speed: 1000,
                pause: 5000,
                animation: 'fade',
                mousePause: true,
                showItems: 3,
                height: 190
        });

	$("#twitted").getTwitter({
					userName: "creativejunc",
					numTweets: 2,
					loaderText: "Loading tweets...",
					slideIn: false,
					slideDuration: 750,
					showHeading: true,
					headingText: "",
					showProfileLink: false,
					showTimestamp: true
				});	
});

$(document).ready(function() {
	$("#content a:contains('Read More')").addClass("button");
	$("#content a:contains('Read more')").addClass("button");
		
	// Add pdf icons to pdf links
	$("#content a[href$='.pdf']").addClass("pdf");
	
		// Add ppt icons to ppt links
	$("#content a[href$='.ppt']").addClass("ppt");
	
	// Add word icons to word links
	$("#content a[href$='doc']").addClass("doc");
	
	// Add email icons to email links
	$("#content a[href^='mailto:']").addClass("emailaddress");

});
