/* Modified by Roland, 2009-10-13 14:56:00 EST */
/* Modified by Attila Pest, 2009-10-21 08:00:46 EST */
function logos(len)
{
  random = Math.floor(Math.random()*len)+1;
  current = 1;
  $("[id^='logo_']").each(function(){
    if ($(this).is(':visible')) {
      c = $(this).attr("id").split("logo_");
      current = c[1];
    }
  });
  
  $("#logo_" + current).fadeOut("slow",function(){
    $("#logo_" + random).fadeIn("slow",function(){
        setTimeout("logos(len)",5000);
    });
  });      
}

$(document).ready(function(){
// FLASHEMBED
	flashembed("flash_main", { src: "flashes/tropic_main.swf", wmode: 'transparent'});
	len = $("[id^='logo_']").size();
  logos(len);
});