function showMenu(image,menu,base_url){
			document.getElementById('mainNav').style.backgroundImage='url('+base_url+'css/i/' + image + ')';
			document.getElementById(menu).style.display="block";
}
function hideMenu(menu,activeimage,activemenu,base_url){
			document.getElementById('mainNav').style.backgroundImage='none';
			document.getElementById(menu).style.display="none";
      
      if (activeimage != '') {
        document.getElementById('mainNav').style.backgroundImage = 'url(' + base_url + 'css/i/' + activeimage + ')';
        //document.getElementById(activemenu).style.display = "block";
      }
}
function showTab(image,menu,base_url){
			document.getElementById('mainNav').style.backgroundImage='url('+base_url+'css/i/' + image + ')';
			//document.getElementById(menu).style.display="block";
}


// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 100;
PositionY = 100;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 500;
defaultHeight = 500;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(300,300);');
writeln('width=300-(document.body.clientWidth-document.images[0].width);');
writeln('height=300-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
close();		
}}

function openwindow(url)
{
	window.open(url,"mywindow","menubar=0,resizable=1,width=650,height=650,left=100,top=100,location=0,scrollbars=1,status=0,titlebar=0,toolbar=0");
}


function preload(imagenames,base_url){
  var imagenames = [];
  imagenames[0] = "sideClientPortal.jpg";
  imagenames[1] = "sideCompany.jpg";
  imagenames[2] = "sideContactUs.jpg";
  imagenames[3] = "sideDnsReports.jpg";
  imagenames[4] = "sideecampaigns.jpg";
  imagenames[5] = "sideEvents.jpg";
  imagenames[6] = "sideExecutiveLeadership.jpg";
  imagenames[7] = "sideFeaturedClients.jpg";
  imagenames[8] = "sideInternetMarketing.jpg";
  imagenames[9] = "sideLogin.jpg";
  imagenames[10] = "sideMediaInfo.jpg";
  imagenames[11] = "sideMethodology.jpg";
  imagenames[12] = "sideMobileMarketing.jpg";
  imagenames[13] = "sideNewsRoom.jpg";
  imagenames[14] = "sideOverview.jpg";
  imagenames[15] = "sidePrivacyPolicy.jpg";
  imagenames[16] = "sideSeo.jpg";
  imagenames[17] = "sideSitemap.jpg";
  imagenames[18] = "sideWebAssessment.jpg";
  imagenames[19] = "sideWebDesign.jpg";
  imagenames[20] = "sideWebMarketing.jpg";
  imagenames[21] = "sideWebTechnology.jpg";
  imagenames[22] = "picEricKlein.jpg";
  imagenames[23] = "picJulieSettle.jpg";
  imagenames[24] = "picKarlGoodhew.jpg";
  imagenames[25] = "picMaryJohnson.jpg";
  imagenames[26] = "picTommySpratlin.jpg";
  imagenames[27] = "picTonyDepalmo.jpg";
  imagenames[28] = "logoDiscoverAlbany.jpg";
  imagenames[29] = "logoGeda.jpg";
  imagenames[30] = "logoGreenGold.jpg";
  imagenames[31] = "events_left.jpg";
  imagenames[32] = "events_right.jpg";
  imagenames[33] = "DNS_Report_1.png";
  imagenames[34] = "DNS_Report_2.png";
  imagenames[35] = "dnsLeft.jpg";
  imagenames[36] = "dnsRight.jpg";
  imagenames[37] = "mainNavCoMark.jpg";
  imagenames[38] = "mainNavCoTech.jpg";
  imagenames[39] = "mainNavMarkTech.jpg";
  imagenames[40] = "webMarkOn.jpg";
  imagenames[41] = "companyOn.jpg";
  imagenames[42] = "webTechOn.jpg";
  
  
  

  var images = [];
  for (var i=0; i< imagenames.length; i++){
    images[i] = new Image();
    images[i].src = base_url+"css/i/"+imagenames[i];
  }
}
