// JavaScript Document

function menu(id,borderwidth,bordercolor,bgcolor,textcolor)
{
obj=document.getElementById(id);
obj.style.borderWidth=borderwidth;
obj.style.borderColor=bordercolor;
obj.style.backgroundColor=bgcolor;
obj.style.color=textcolor;
}
////////////////////////////////////
function chcolor(border,value,bgcolor,layer)
{
obj=document.getElementById(layer);
obj.style.borderColor=value;
obj.style.borderWidth=border;
obj.style.backgroundColor=bgcolor;
}
///////////////////////////////////
function showorhide(value,layer)
{
obj=document.getElementById(layer);
if (value==0)
obj.style.visibility="hidden";
else
obj.style.visibility="";
}
/////////////////////////////
function bgchange(layer,bgcolor)
{
obj=document.getElementById(layer);
obj.style.backgroundColor=bgcolor;
}

/////////////////////////////

function delay(layer,value1,value2,timeout,period,l2)
{
tester=value1;
perr=period;
o = document.getElementById(layer);
if (l2!=null)
o2 = document.getElementById(l2);
else
o2=null;
hideit(layer,value1,value2,timeout,period);
}
function hideit(divv,v1,v2,time,peri,l2){
peri=perr;

if (tester==v2)
 return;
o.style.filter =  'alpha(opacity=' + tester + ')';
if (o2!=null)
o2.style.filter = 'alpha(opacity=' + tester + ')';

tester=tester + per;
setTimeout("hideit()",time);
}

///////////////////////////////
///////////////////////////////////
h=1;
function menhs(layer)
{
obj=document.getElementById(layer);
if (h==0)
{
obj.style.visibility="hidden";
h=1;
}
else if (h==1)
{
obj.style.visibility="";
h=0;	
}
}
///////////////////////
function chsource(layer,srcc)
{
iframe=document.getElementById(layer);
iframe.src=srcc;	
}

//////////////////
function colorise(id,bgcolor)
{
obg=document.getElementById(id);	
obg.style.backgroundColor=bgcolor;
}