preloadImg('img/add_menu/your_growth_on.gif');
preloadImg('img/add_menu/testimonials_on.gif');
preloadImg('img/add_menu/how_we_work_on.gif');
preloadImg('img/add_menu/clients_on.gif');

browser_name = navigator.appName;
browser_version = parseFloat(navigator.appVersion);

if (browser_name == "Netscape" && browser_version >= 3.0) { roll = 'true'; }
else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 3.0) { roll = 'true'; }
else { roll = 'false'; }

function over(img,ref) { if (roll == 'true') { document.images[img].src = ref; } }
function out(img,ref)  { if (roll == 'true') { document.images[img].src = ref; } }


function preloadImg(file){
  image = new Image();
  image.src = file;
}

function HideShow (par) {
var lay=document.getElementById(par);

//if (t==0) { lay.style.visibility="visible"; }
//if (t==1) { lay.style.visibility="hidden"; }
if (lay.style.visibility=="visible") {
	lay.style.visibility="hidden";
} else {
	lay.style.visibility="visible";
}

}

function menu (td,color,colorf)
{
document.getElementById(td).style.background=color; 
document.getElementById(td).style.color=colorf;
}

function menuIns (td,p,color,colorf,img)
{
if (p==1) {
document.getElementById(td).style.background=color+' url(img/'+img+') no-repeat bottom'; 
document.getElementById(td).style.color=colorf;
//document.getElementById(td).style.textDecoration="none"; 
}
if (p==2) {
document.getElementById(td).style.background=color+' url(img/'+img+') repeat-x left bottom'; 
document.getElementById(td).style.color=colorf; 
}

}

function menuImg (td,p,color,colorf)
{
if (p==1) {
document.getElementById(td).style.backgroundImage='url(img/'+color+')'; 
document.getElementById(td).style.color=colorf;
}
if (p==2) {
document.getElementById(td).style.backgroundImage='url(img/'+color+')';
document.getElementById(td).style.color=colorf; 
}

}

function add_click (url,target) {
if (url) {
//alert("Debug:"+url);
//alert("Debug:"+target);
if (target=="_parent") {
parent.location.href=url;
}
if (target=="_blank") {
window.open(url);
}
if (target=="_self") {
location.href=url;
}
if (target=="_top") {
top.location.href=url;
}
}//end if !url
}
