﻿// JScript File

function gotoSection(index)
    {
     if (index != 0)
     {
       if (index == 1)
       {
          document.location = "/ArtStudio/1/1/1/1.html";
       } else if (index == 2)
       {
          document.location = "/ArtStudio/2/1/1.html";
       } else if (index == 3)
       {
          document.location = "/ArtStudio/3/1/1.html";
       } else if (index == 4)
       {
          document.location = "/ArtStudio/4/1/1.html";
       } else if (index == 5)
       {
          document.location = "/ArtStudio/5/1/1.html";
       }
     }
    }
    
    
   function swapText(textTitle)
   {
        $('bartitle').innerHTML = textTitle;
   }
   
   function swapDiv(hidediv, showdiv)
   {
        $(hidediv).hide();
        $(showdiv).show();                
   }
   
   function swap3Div(hidediv1,hidediv2, showdiv)
   {
        $(hidediv1).hide();
        $(hidediv2).hide();
        $(showdiv).show();                
   }
   
   function swapHeader(imagebase, numoption, optionselected)
   {      
         if (numoption == 2)
         {  
            var imagebg = 'url(' + imagebase + 'insBar2_' + optionselected + '.gif)';   
            Element.setStyle($('2bar'),{backgroundImage: imagebg});
         } 
         else if (numoption == 3)
         {         
            var imagebg = 'url(' + imagebase + 'insBar3_' + optionselected + '.gif)';                                    
            Element.setStyle($('3bar'),{backgroundImage: imagebg});
         }
   }
   
   function swapHeaderA(imagebase, optionselected)
   {                 
            var imagebg = 'url(' + imagebase + 'insBar2a_' + optionselected + '.gif)';   
            Element.setStyle($('2bar'),{backgroundImage: imagebg});
                  
   }
   
   
   
   function popUp(URL) 
   {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=800,height=600,left = 880,top = 212');");
}

function swapCredits(towhich)
{
    $('c1').hide();
    $('c2').hide();
    $('c3').hide();
    $('c4').hide();
    $('c5').hide();
    
    $('c' + towhich).show();
}

function swapCredits2(towhich)
{
    $('c1').hide();
    $('c2').hide();    
    
    $('c' + towhich).show();
}

function swapCredits3(towhich)
{
    $('c1').hide();
    $('c2').hide();
    $('c3').hide();  
    
    $('c' + towhich).show();
}

function swapCredits4(towhich)
{
    $('c1').hide();
    $('c2').hide();
    $('c3').hide();  
    $('c4').hide();  
    
    $('c' + towhich).show();
}

function swapCredits6(towhich)
{
    $('c1').hide();
    $('c2').hide();
    $('c3').hide();  
    $('c4').hide();  
    $('c5').hide();
    $('c6').hide(); 
    
    $('c' + towhich).show();
}

function swapCredits8(towhich)
{
    $('c1').hide();
    $('c2').hide();
    $('c3').hide();  
    $('c4').hide();  
    $('c5').hide();
    $('c6').hide();
    $('c7').hide();  
    $('c8').hide();  
    
    $('c' + towhich).show();
}