// DBS jQuery Startup Script
// v1.0 - Matthew Harris - 26/08/09 - Initial Release

// add any startup methods here
// make sure you have already included them in a script reference before this file

$(document).ready(function() {

    // setup stylesheet switcher
    stylesheetOnLoad();
    $(window).unload(function() { stylesheetOnUnload(); });
	
	
	$("div#footer_bodybottom").pngFix(); 
	
	// UFO flash loader example
	// dont forget to include the ufo.js script
	// dont forget the # at the start of the jquery if()
    /*if ($("#flash_container_home").length) {
        var FO = { movie: "/site/flash/banner2.swf", width: "512", height: "135", majorversion: "6", build: "0" };
        UFO.create(FO, "flash_container_home");
    }*/

});

$(window).load(function() {
			$("div#scrollingText").smoothDivScroll({autoScroll: "always", autoScrollDirection: "endlessloopright", autoScrollStep: 1, autoScrollInterval: 15});
		
	// Mouse over
	$("div#scrollingText").bind("mouseover", function(){
		$("div#scrollingText").smoothDivScroll("stopAutoScroll");
	});
	
	// Mouse out
	$("div#scrollingText").bind("mouseout", function(){
		$("div#scrollingText").smoothDivScroll("startAutoScroll");
	});


});



