
 default_stat = 'DistriSort / we sort it out';
 
 function  popupimage(img)	{
 	w = 510;
	h = 390;
	popitup(img,w,h)
 }
 
 function popitup(url,w,h)
	{
		newwindow=window.open(url,'name','height='+h+',width='+w+'');
		if (window.focus) {newwindow.focus()}
	}
  
/* Allows dynamically new content in div */

function write2div(div,desc)	{	
	var popobj=document.all? document.all[div] : document.getElementById? document.getElementById(div) : ""
	popobj.innerHTML= desc;
 }		


 
function slideSwitch() {
    var $active = jQuery('#logobox div.active');

    if ( $active.length == 0 ) $active = jQuery('#logobox div:last');

    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : jQuery('#logobox div:first');

    // uncomment the 3 lines below to pull the images in random order
    
    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');
        });
}

jQuery(function() {
    setInterval( "slideSwitch()", 2500 );
});

 