


function onVBPageLoad(id) {
    //if ((id==="97EC187F-5065-4D5D-832E-571C7A23DB5F")||(id===-1)) {   //id of home page
    if ((id==="75D16514-10C5-4199-BB90-5F933F868572")||(id===-1)) {   //id of home page  --> recovered
        fw_source=gebi("fred_wissink").childNodes[0].childNodes[0].src
        fw_hl_source=gebi("fred_wissink_hl").childNodes[0].childNodes[0].src
        clients_source=gebi("clients").childNodes[0].childNodes[0].src
        clients_hl_source=gebi("clients_hl").childNodes[0].childNodes[0].src
        rate_source=gebi("rate").childNodes[0].childNodes[0].src
        rate_hl_source=gebi("rate_hl").childNodes[0].childNodes[0].src
    
        
         setcenter2("fred","content")
         setcenter2("stilllife","content")
         setcenter2("editorial","content")
         setcenter2("advertising","content")
         setcenter2("interior","content")
         setcenter2("fashion","content")
         setcenter2("lensmiddle","content")
         setcenter2("clientcenter","content")
         //setcenter2("ratecenter","content")
         
         setcenter2("northeast","content")
         setcenter2("east","content")
         setcenter2("southeast","content")
         setcenter2("west","content")
         setcenter2("northwest","content")
         
         $("#northwest").animate({left:'-=62',top:'-=60'},1).css("display","")
         $("#west").animate({left:'-=82',top:'+=15'},1).css("display","") 
         $("#northeast").animate({left:'+=62',top:'-=75'},1).css("display","")   
         $("#east").animate({left:'+=95',top:'-=0'},1).css("display","")   
         $("#southeast").animate({left:'+=50',top:'+=60'},1).css("display","")  
         
         $("#northeast").css("opacity",0).bind("mouseover",function(){gebi("interior").style.display="";}).bind("click",function(){showNode("74135E43-BBAB-4AD6-952E-DAD2ED3C2FD5","modal","")})  
         $("#northeast").bind("mouseout",function(){gebi("interior").style.display="none";})   
         
         $("#east").css("opacity",0).bind("mouseover",function(){gebi("fashion").style.display="";}).bind("click",function(){showNode("8FD1C399-31B1-49AA-9386-CF901668CB85","modal","")})     
         $("#east").bind("mouseout",function(){gebi("fashion").style.display="none"; })   
         
         $("#southeast").css("opacity",0).bind("mouseover",function(){gebi("advertising").style.display="";}).bind("click",function(){showNode("9E4A0E7F-5AE4-4939-B1A0-C2F3267B6D58","modal","")})     
         $("#southeast").bind("mouseout",function(){gebi("advertising").style.display="none"; })   
         
         $("#northwest").css("opacity",0).bind("mouseover",function(){gebi("stilllife").style.display="";}).bind("click",function(){showNode("3C435FF1-E7AE-42A1-8822-6A98552FD8AD","modal","")})     
         $("#northwest").bind("mouseout",function(){gebi("stilllife").style.display="none";})   
         
         $("#west").css("opacity",0).bind("mouseover",function(){gebi("editorial").style.display="";}).bind("click",function(){showNode("0F83AEBA-39EB-4E47-A57E-BB9BB7EF946B","modal","")})     
         $("#west").bind("mouseout",function(){gebi("editorial").style.display="none";})   
         
         
         
         $("#clients").bind("click",function(){showNode("	3DB63998-50A6-4C75-A8CD-D097C8F248E2","modal","")})     
         setcenter("clients","content")
         gebi("clients").style.display=""
         $("#clients").animate({left:'+=165',top:'+=125'},1)   // fashion
         $("#clients").bind("mouseover",function(){
            gebi("clientcenter").style.display=""; 
            gebi("clients").childNodes[0].childNodes[0].src=clients_hl_source
                  
         })   
         $("#clients").bind("mouseout",function(){
            gebi("clientcenter").style.display="none"  ; 
            gebi("clients").childNodes[0].childNodes[0].src=clients_source
                  
         }) 
         
         if (1===2) {
         $("#rate").bind("click",function(){showNode("	33A4937F-6487-475E-AB03-B046918C553F","modal","")})     
         setcenter("rate","content")
         gebi("rate").style.display=""
         $("#rate").animate({left:'-=214',top:'+=125'},1)   // fashion
         $("#rate").bind("mouseover",function(){
            gebi("ratecenter").style.display=""; 
         
            gebi("rate").childNodes[0].src=rate_hl_source
                  
         })   
         $("#rate").bind("mouseout",function(){
            gebi("ratecenter").style.display="none"; 
         
            gebi("rate").childNodes[0].src=rate_source
                  
         }) 
        }         
         
         
         
         gebi("lensmiddle").style.display=""
         
         setcenter("fred_wissink","content")
         gebi("fred_wissink").style.display=""
         
         //setcenter("fred_wissink_hl","content")

         $("#fred_wissink").bind("click",function(){showNode("8340E33E-D2DF-49A7-BB3F-25B9F3119D51","modal","")})     
         
         
         //$("#fred_wissink").bind("click",function(){showNode("D843C571-D457-4EA9-A6D3-F313DDFDF72D","modal","")})     
         $("#fred_wissink").animate({left:'-=165',top:'-=150'},1)   // fashion
         $("#fred_wissink").bind("mouseover",function(){
            gebi("fred").style.display=""; 
            gebi("fred_wissink").childNodes[0].childNodes[0].src=fw_hl_source
                  
         })   
         $("#fred_wissink").bind("mouseout",function(){
            gebi("fred").style.display="none"  ; 
            gebi("fred_wissink").childNodes[0].childNodes[0].src=fw_source
                  
         }) 
         
         
         
         
         

         
         
        return
        
        $(".noresize").each(function(){
            //$(this).css("opacity",0)
            setcenter2($(this)[0].parentNode.id,"content")
            this.style.display="inline"
        })
        $("#fred").animate({opacity:1},700)   // fashion
        
        $("#freddiv1").animate({left:'+=240',top:'-=20',opacity:1},700)   // fashion
        $("#freddiv2").animate({left:'-=185',top:'+=110',opacity:1},700)    // still life
        $("#freddiv3").animate({left:'+=165',top:'-=140',opacity:1},700)  // interior
        $("#freddiv5").animate({left:'+=10',top:'+=180',opacity:1},700)  // frederik
        $("#freddiv6").animate({left:'+=195',top:'+=110',opacity:1},700)  // clients
        $("#freddiv7").animate({left:'-=250',top: '-=20',opacity:1},700) // advertising
        $("#freddiv8").animate({left:'-=150',top: '-=140',opacity:1},700) // editorial


        //$("#freddiv4").animate({left:'-=200',top:'-=20',opacity:1},700)  // event
        //$("#freddiv7").animate({left:'+=1',top: '-=170',opacity:1},700) // advertising

        //$("#div5").animate({top:'+=245',opacity:1},500,function(){
        //$("#div5").animate({left:'+=230'},500)
        //})
    }
}


function beforeVBPageLoad(id) {
    return
    if (gebi("fashion")) {
        $("#fashion").css("opacity",0)
    
        setcenter("fashion","content_scroller")

    }


}

//=====================================        
function gebi(id) {return document.getElementById(id);}

// ======================================================================	
function setcenter2(idToCenter,idToCalculate) {
    // center something in the middle of a screen
    oldvis=gebi(idToCenter).style.display;
    gebi(idToCenter).style.display="block";
    
    //if (idToCalculate==="content") {idToCalculate="content_scroller";}
    gebi(idToCenter).style.position="absolute";
    //document.body.insertBefore(gebi(idToCenter),document.body.childNodes[0])
    if ((idToCalculate==="window") ||(idToCalculate==="screen")) {
        x=getWindowSize('w')/2+getScrollXY()[0]-getscrollwidth(idToCenter)/2;
        y=getWindowSize('h')/2+getScrollXY()[1]-getscrollheight(idToCenter)/2;
    }
    else {
        if(isIE()) {
            x=getscrollwidth(idToCalculate)/2-getscrollwidth(idToCenter)/2;
            y=getscrollheight(idToCalculate)/2-getscrollheight(idToCenter)/2;
        }
        else {
            x=getscrollwidth(idToCalculate)/2-getscrollwidth(idToCenter)/2;
            y=getscrollheight(idToCalculate)/2-getscrollheight(idToCenter)/2;
       }

    }
    
    document.getElementById(idToCenter).style.left=x+'px';
    document.getElementById(idToCenter).style.top=y+'px';
    //settop(document.getElementById(idToCenter),y)
    gebi(idToCenter).style.display=oldvis;
    
}       
 