$().ready(function(){
    if(document.getElementById('presentation') && $.browser.safari==false){
        $.slideshow(
        	{
        		container : 'presentation',
        		loader: '/images/slideshow-loader.gif',
        		linksPosition: 'top',
        		linksClass: 'pagelinks',
        		linksSeparator : ' | ',
        		fadeDuration : 1200,
        		activeLinkClass: 'active',
        		nextslideClass: 'next',
        		prevslideClass: 'prev',
        		captionPosition: 'bottom',
        		captionClass: 'slide_caption',
        		autoplay: 5,
        		images : [
        		    {
        				src: '/images/football-home.jpg',
        				caption: ''
        			},
        			{
        				src: '/images/rugby-home.jpg',
        				caption: ''
        			},
        			{
        				src: '/images/cricket-home.jpg',
        				caption: ''
        			},
        			{
        				src: '/images/superbike-home.jpg',
        				caption: ''
        			}
        		]
        	}
        );
    }
    // external urls
    $('a').click(function(){
	    if(this.href.match(/^http/i) && !this.href.match(location.host)){
		    window.open(this.href,'_');
		    return false;
	    }
	});
    // ie pngs
	/*@cc_on
	if(navigator.appVersion.match(/MSIE [0-6]\./)){
		$('img[@src*=".png"]').addClass('png');
		$('input[@src*=".png"]').addClass('png');
		$('*').each(function(){
			if(this.currentStyle.backgroundImage != 'none' && this.currentStyle.backgroundImage.match(/\.png/)){
				var image = this.currentStyle.backgroundImage;
				image = this.currentStyle.backgroundImage.substring(5, image.length - 2);
				$(this).css({
					'backgroundImage': 'none',
					'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=image, src='" + image + "')"
				});
			}
		});
	}
	@*/
});

