/**
 * @author Cernos(10.09.2008)
 * E-Mail: adm.styland@gmail.com
 * icq: 984-964
 * (http://www.humorland.org)
 */

var timer = 5000;
var this_logo = 0;
var src = ["nerox","simpex"];

function resize(){
        if(document.getElementById('rc').clientHeight>document.getElementById('lc').clientHeight)
        document.getElementById('space').style.height =  document.getElementById('rc').clientHeight+20+"px";
        else
        document.getElementById('space').style.height =  document.getElementById('lc').clientHeight+20+"px";

        setTimeout("resize();",2000);
}

function next_logo(){
    $("#"+src[this_logo]).fadeOut(2000);


    if(this_logo == (src.length-1)) this_logo = -1;
    this_logo++;

    $("#"+src[this_logo]).fadeIn(2000);
    setTimeout("next_logo()",timer);
}

$(document).ready(function(){
   resize();

   $(".logo").css({"position":"absolute", "display":"none","left":"15px", "top":"5px"});
   $("#"+src[0]).fadeIn(2000);
   setTimeout("next_logo()",timer);


   $("#gallery img").css({"cursor":"pointer","border":"solid 1px silver","margin":"10px","padding":"5px"});
   $("#gallery hr").css({"background-color":"red","height":"2px"});

});
