function cssClassChange(cl,theid) {
	var e = document.getElementById(theid);
    e.setAttribute("className",cl);//for IE       
    e.setAttribute("class",cl);
}
function initImage(imageId) {
  image = document.getElementById(imageId);
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  fadeIn(imageId,0);
}
function setOpacity(obj, opacity) {
  opacity = (opacity == 100)?99.999:opacity;
  // IE/Win
  obj.style.filter = "alpha(opacity:"+opacity+")";
  // Safari<1.2, Konqueror
  obj.style.KHTMLOpacity = opacity/100;
  // Older Mozilla and Firefox
  obj.style.MozOpacity = opacity/100;
  // Safari 1.2, newer Firefox and Mozilla, CSS3
  obj.style.opacity = opacity/100;
}
function fadeIn(objId,opacity) {
  if (document.getElementById) {
    obj = document.getElementById(objId);
    if (opacity <= 100) {
      setOpacity(obj, opacity);
      opacity += 10;
      window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 100);
    }
  }
}

function displayMenu(){
	document.getElementById('leftMenu').style.display = "block";
}

function displayID(theID){
	document.getElementById(theID).style.display = "block";
}
function hideID(theID){
	document.getElementById(theID).style.display = "none";
}
if (document.images){
	pic1on= new Image(162,22);
	pic1on.src="/images/menu_home_hl.gif";  
	pic2on= new Image(162,22);
	pic2on.src="/images/menu_aboutus_hl.gif";  
	pic3on= new Image(162,22);
	pic3on.src="/images/menu_portfolio_hl.gif";  
	pic4on= new Image(162,22);
	pic4on.src="/images/menu_development_hl.gif";  
	pic5on= new Image(162,22);
	pic5on.src="/images/menu_abacos_hl.gif";  
	pic6on= new Image(162,22);
	pic6on.src="/images/menu_press_hl.gif";  
	pic7on= new Image(162,22);
	pic7on.src="/images/menu_contactus_hl.gif";  
}
function showInfo(){
	document.getElementById('infoPop').style.display = "block";
}
function closeInfo(){
	document.getElementById('infoPop').style.display = "none";
}
function getGallery(sec,pag){
	document.getElementById('gallery').innerHTML = "<iframe src='gallery.php?s=" + sec + "&p='" + pag + "></iframe>";
}
function showMap(){
	document.getElementById('theMap').style.display = "block";
	document.body.style.overflowY = 'auto';
}
function showMapBtm(){
	document.getElementById('theMap').style.display = "block";
	document.body.style.overflowY = 'auto';
	location.href='#mapBTM';
}
function closeMap(){
	document.getElementById('theMap').style.display = "none";
	document.body.style.overflowY = 'hidden';
}


