
// Nivo Slider	
$(window).load(function() {
    $('#slider').nivoSlider({
        effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
        slices:15,
        animSpeed:500, //Slide transition speed
        pauseTime:4000,
        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
    });
	$('#ss1_partners, #ss2_apps, #ss3_cust, #ss4_dlm').nivoSlider({
		effect: 'fade',
		animSpeed: 500,
		pauseTime: 3000,
		directionNav: false,
		controlNav: false,
		pauseOnHover: true,
	});	
});


// initialise plugins
jQuery(function(){
	jQuery('ul.sf-menu').superfish();
	jQuery('#rss-container:last-child').css("border", "none");
});

// enable my ui-tabs
$(function() {
	$("#tabs").tabs({selected: 5});
});


// Google Analytics
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-15807878-7']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();


// Cufon
Cufon('.menu a', { hover: { color: '#666'} }); 
Cufon.replace('h1, p h1, .menu,', { fontFamily: 'GillSansMTPro-Light' });
Cufon.replace('h2, h4, .breadcrumbs, #caption_container, span#email, ul#contact-info,');

