


/*	----------------------------------
	--	toolbox.js	
		20090704|Christian Jarolim	--	*/
		
/*		slideshow */
function slideSwitch(){var $active = $('#slideshow DIV.active');if ( $active.length == 0 ) $active = $('#slideshow DIV:last');/* use this to pull the divs in the order they appear in the markup*/var $next =  $active.next().length ? $active.next() : $('#slideshow DIV:first');/* randomly*/var $sibs  = $active.siblings();var rndNum = Math.floor(Math.random() * $sibs.length );var $next  = $( $sibs[ rndNum ] );$active.addClass('last-active');$next.css({opacity: 0.0}).addClass('active').animate({opacity: 1.0}, 1000, function(){$active.removeClass('active last-active');});}$(function(){setInterval("slideSwitch()", 5000);});
		
/*		image preload */
jQuery.pi = function(){for(var i = 0; i<arguments.length; i++){jQuery("<img>").attr("src", arguments[i]);}}
		// for the respective Source: <script type="text/javascript"> $.pi("image1.png", "image2.png"); </script>
	
/*		image link roll over */
$(function() {$(".ro img").hover( function(){this.src = this.src.replace("_off","_on");},function(){this.src = this.src.replace("_on","_off");});})