// JScript File

  preload();

  // preload images used
  function preload(){
    var i = 0;
    var img = new Image();
    images = new Array();
    images[0]="/images/bodybg.jpg";
    images[1]="/images/contact.jpg";
    images[2]="/images/contentbg.jpg";
    images[3]="/images/graphicdesign.jpg";
    images[4]="/images/logo.gif";
    images[5]="/images/tv.jpg";
    images[6]="/images/typewriter.jpg";
    images[7]="/images/web.jpg";
    for(i=0; i<=8; i++){
        img.src=images[i];
    }
  } 

function fadeIn() 
{
    var o = document.getElementById("content")
    o.style.filter="blendTrans(duration=1,transition=12)";
    if (o.filters.blendTrans.status != 2) 
    {
        o.filters.blendTrans.apply();
        o.style.visibility="visible";
        o.filters.blendTrans.play();
    }
}

  function resize(){
        //window.moveTo(0,0);
        if (document.all){
          // top.window.resizeTo(screen.availWidth,screen.availHeight);
        }
        else if (document.layers||document.getElementById){
            if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
               // top.window.outerHeight = screen.availHeight;
               // top.window.outerWidth = screen.availWidth;
            }   
        }

        if (document.all){
            fadeIn();
        }
        
        var nWidth =  document.body.clientWidth;
        var nHeight = 0
        if(document.all){
            nHeight = document.body.clientHeight;
        }
        else{
            nHeight = window.innerHeight;
        }
                  
        var nContentLeft   =   (nWidth - 600) / 2
        var nContentTop    =   (nHeight - 450) / 2
        var o       =   document.getElementById("content")
        o.style.left = nContentLeft + 'px';
        o.style.top  = nContentTop-10 + 'px';
        o.style.display='block';
        
        var menuLeft = o.offsetLeft + 43;
        var menuTop = o.offsetTop + o.offsetHeight + 5;
        var o  =   document.getElementById("menu")
        o.style.left = menuLeft + 'px';
        o.style.top = menuTop + 'px';
        o.style.display='block';
    }


 function resize2(){
        //window.moveTo(0,0);
        if (document.all){
          // top.window.resizeTo(screen.availWidth,screen.availHeight);
        }
        else if (document.layers||document.getElementById){
            if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
            //    top.window.outerHeight = screen.availHeight;
            //    top.window.outerWidth = screen.availWidth;
            }   
        }

        var nWidth =  document.body.clientWidth;
        var nHeight = 0
        if(document.all){
            nHeight = document.body.clientHeight;
        }
        else{
            nHeight = window.innerHeight;
        }
                  
        var nContentLeft   =   (nWidth - 800) / 2
        var nContentTop    =   (nHeight - 600) / 2
        var o       =   document.getElementById("content")
        o.style.left = nContentLeft + 'px';
        o.style.top  = nContentTop-10 + 'px';
        o.style.display='block';
        
   }
