$(window).load(function() {
        $('#slider').nivoSlider({
        effect:'sliceDown', //Specify sets like: 'fold,fade,sliceDown'
        slices:15,
        animSpeed:500, //Slide transition speed
        pauseTime:6000,
        startSlide:0, //Set starting Slide (0 index)
        directionNav:true, //Next & Prev
        directionNavHide:false, //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*/
    	});
    });

	

$(document).ready(function() {			 
	//$("#msg").fadeIn("slow");

	
	$("li.dropdown").mouseover(function() {
		$("ul",this).addClass("hovering");
		//(this).find("ul") -- could also use this way
		$("a",this).addClass("dropped");
	});
	
	$("li.dropdown").mouseout(function() {
		$("ul",this).removeClass("hovering");
		$("a",this).removeClass("dropped");
	});
	
	//Testimonials slider
	$("#tslider").easySlider({
		prevId: 		'prevBtn',
		prevText: 		'&lt; Prev',
		nextId: 		'nextBtn',	
		nextText: 		'Next &gt;',
		controlsShow:	true,
		controlsBefore:	'',
		controlsAfter:	'',	
		controlsFade:	true,
		firstId: 		'firstBtn',
		firstText: 		'First',
		firstShow:		false,
		lastId: 		'lastBtn',	
		lastText: 		'Last',
		lastShow:		false,				
		vertical:		false,
		speed: 			800,
		auto:			true,
		pause:			4000,
		continuous:		true, 
		numeric: 		false,
		numericId: 		'controls'
	});
	
	/*--- Tweet ---*/
	$("#latestTweetInner").tweet({
            username: "Breaking_Limits",
            join_text: "auto",
            avatar_size: 0,
            count: 1,
            auto_join_text_default: "", 
            auto_join_text_ed: "",
            auto_join_text_ing: "",
            auto_join_text_reply: "",
            auto_join_text_url: "",
            loading_text: ""
        });
	
	//pngfix();
});// document ready

document.execCommand("BackgroundImageCache",false,true);
