// JavaScript Document


function showglass(thediv) {
    $(thediv).firstDescendant().style.display = 'block';
}

function hideglass(thediv) {
    (thediv).firstDescendant().style.display = 'none';
}

function showfull(imagelocation) {
    var siteName = $(imagelocation).up().id;
    new Effect.Fade('large-picture-box', {
        delay: 0.0,
        duration: 1.0
    });
    new Effect.Appear('bigloader', {
        delay: 0.0,
        duration: 1.0
    });
    new Effect.Appear('bigloader2', {
        delay: 0.0,
        duration: 1.0
    });
    setTimeout('$(\'large-picture-box\').style.background = "url(' + imagelocation.href + ') top left no-repeat"', 1000);
    setTimeout('$(\'large-picture-box\').style.display ="none"', 1500);
    new Effect.Fade('bigloader', {
        delay: 2.0,
        duration: 1.0
    });
    new Effect.Fade('bigloader2', {
        delay: 2.0,
        duration: 1.0
    });
    setTimeout('new Effect.Appear(\'large-picture-box\', { delay: 1.2, duration: 1.0 });', 1000);

    new Effect.Fade('content-text');
    setTimeout("new Ajax.Updater('content-text','info/" + siteName + ".html',{onComplete:function(){ new Effect.Appear('content-text');},method:'get', asynchronous:true, evalScripts:true});", 2000);

}

function showprofile() {
    new Effect.Fade('large-picture-box', {
        delay: 0.0,
        duration: 1.0
    });
    new Effect.Appear('bigloader', {
        delay: 0.0,
        duration: 1.0
    });
    new Effect.Appear('bigloader2', {
        delay: 0.0,
        duration: 1.0
    });
    setTimeout('$(\'large-picture-box\').style.background = "url(fulls/photo.jpg) top left no-repeat"', 1000);
    setTimeout('$(\'large-picture-box\').style.display ="none"', 1500);
    new Effect.Fade('bigloader', {
        delay: 2.0,
        duration: 1.0
    });
    new Effect.Fade('bigloader2', {
        delay: 2.0,
        duration: 1.0
    });
    setTimeout('new Effect.Appear(\'large-picture-box\', { delay: 1.2, duration: 1.0 });', 1000);

    new Effect.Fade('content-text');
    setTimeout("new Ajax.Updater('content-text','info/profile.html',{onComplete:function(){ new Effect.Appear('content-text');},method:'get', asynchronous:true, evalScripts:true});", 2000);

}

function pageLoad() {
    new Effect.Appear('large-picture', {
        delay: 0.2,
        duration: 1.0
    });
    new Effect.Appear('content', {
        delay: 0.0,
        duration: 1.0
    });
    new Effect.Appear('cecenas', {
        delay: 0.4,
        duration: 1.0
    });
    new Effect.Appear('kujawa', {
        delay: 0.6,
        duration: 1.0
    });
    new Effect.Appear('bells', {
        delay: 0.8,
        duration: 1.0
    });
    new Effect.Appear('dreamvision', {
        delay: 1.0,
        duration: 1.0
    });
    new Effect.Appear('bcl', {
        delay: 1.2,
        duration: 1.0
    });
    new Effect.Appear('kiatuner', {
        delay: 1.4,
        duration: 1.0
    });
    new Effect.Appear('dachsund', {
        delay: 1.6,
        duration: 1.0
    });
    new Effect.Appear('medstar', {
        delay: 1.8,
        duration: 1.0
    });
    new Effect.Appear('premiere', {
        delay: 2.0,
        duration: 1.0
    });
    new Effect.Appear('sigamp', {
        delay: 2.2,
        duration: 1.0
    });
}
