/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function viewFade(divId1,divId2){
    $("#"+divId1).fadeIn(2000,function(){
        if(divId2!=null && divId2!=''){
            $("#"+divId2).fadeIn(2000);
        }
    });
}
function hideFade(divId){
    $("#"+divId).fadeOut("fast");
}

function viewIndexContent(){
    $("#delay").fadeIn(2000,function(){
        $("#presentation").fadeIn(500,function(){
            $("#firma").fadeIn(500,function(){
                $("#imgContent").fadeIn(500,function(){
                    //$("#services").fadeIn(1000);
                });
            });
        });
    });
}

function rollImg(obj,img){
    //objId = obj.id;
    //oblSrc = obj.src;
    obj.src = img;
}

function rollIn(obj){
    objId = obj.id;
    $("#"+objId).animate({opacity: 1}, "fast" );
}
function fadeToId(objId,opacityValue){
    if(opacityValue == null) opacityValue=1;
    $("#"+objId).fadeTo("fast",opacityValue);
}
function rollOut(obj){
    objId = obj.id;
    $("#"+objId).animate({opacity: 0.2}, "fast" );
}

function rollover(imgId, textId){
    $("#"+imgId).animate({opacity: 0.2}, "fast" );
    $("#"+textId).fadeIn("low");
}

function rollout(imgId, textId){
    $("#"+imgId).animate({opacity: 1}, "fast" );
    $("#"+textId).fadeOut("fast");
}

