$(document).ready(function(){   
    $("#mapping").colorbox({iframe:true, innerWidth:650, innerHeight:490});  
    obj=document.getElementById('tab1'); 
    obj.style.visibility='hidden';
    obj.style.display='none';  
}); 


function scrolltoprice()
{
    $.scrollTo( '#araink', 800);   
}

function scrolltomore()
{
    $.scrollTo( '#more_area', 800);   
}

function external(path) { // pass in the correct path to the function so we only need one  for infinite amount of calls from  flash
   $(".portfolio"+path).colorbox({open:true});      
}

function onOver(name)
{
    obj=document.getElementById(name);
    if (obj.className!='active')
    {
    obj.className='over';
    }
}

function onOut(name)
{
   obj=document.getElementById(name);
   if (obj.className!='active')
   {
   obj.className=''; 
   }
}

function onClick(name)
{
   obj=document.getElementById(name);
   obj2=obj.getElementsByTagName('a');
   window.location=obj2[0];
}

function clickMore(name)
{
    obj=document.getElementById('tab1'); 
    obj.style.visibility='hidden';
    obj.style.display='none';  
    obj=document.getElementById('tab2'); 
    obj.style.visibility='hidden';
    obj.style.display='none';  
    obj=document.getElementById('tab3'); 
    obj.style.visibility='hidden';
    obj.style.display='none';  
    obj=document.getElementById('tab4'); 
    obj.style.visibility='hidden';
    obj.style.display='none';  
    
    obj=document.getElementById(name); 
    obj.style.visibility='visible';
    obj.style.display='inline';
    
}

