
var bDebug="true";
//var menus = new Object();


function clientList(divId, action)
{
	
	if (action == "hide")
	{
		var mainDiv = "main" + divId;

		hideObject(mainDiv);

	}
	else if (action=="show")
	{
		var mainDiv = "main" + divId;

		showObject(mainDiv);
	}
	else if (action=="rand")
	{
		randmDiv(divId, 12);
	}
	
}

function randomQuote()
	{
		var quoteName;
		for (count = 0; count < 3; count++)
		{	
			quoteName = 'quote' + count;
			hideObject(quoteName);
		}
			
	}
function setShowcase ()
{	
	var ranNum = randmNum(2);
   init();
   if (what =="none") {  
   return;  }  
   else if (what == "dom1") {  
   document.getElementById('showcaseHeader').className='clientShowCaseDark' + 0;
   }  
	else if (what == 'ie4') {  
	
	document.all.showcaseHeader.className='clientShowCaseDark' + 0; 
	}
	else if (what == 'ns4') 
	{
		document.layers[layerName].className='clientShowCaseLight' + ranNum;
		
		}
   
}
	
function randmNum(num)
	{
	var rndnum = num * Math.random();
		rndnum = Math.round(rndnum);
	
	return rndnum;
	}
function randmDiv(Div, numDiv)
{

	var rndnum;
	
		rndnum = numDiv * Math.random();
		rndnum = Math.round(rndnum);
		var randDiv;
	randDiv = Div + rndnum;

	showObject(randDiv);
}
	

function openMenu( mainImg ,mainImgSrc, mainDiv, imgDir )
{

if (document.images) {
newImgDown = new Image();
newImgDown.src = imgDir + mainImgSrc + "_down.gif";
}
function buttonDown( buttonname )
{
	if (document.images) 
	{
		document[ buttonname ].src = eval( "newImgDown.src" );
	}
}
showObject(mainDiv);
buttonDown(mainImg);
}

function closeMenu( mainImg ,mainImgSrc, mainDiv, imgDir )
{
if (document.images) {
newImgUp = new Image();
newImgUp.src = imgDir + mainImgSrc + "_up.gif";
}
function buttonUp( buttonname )
{
	if (document.images) 
	{
		document[ buttonname ].src = eval( "newImgUp.src" );
	}
}
hideObject(mainDiv);
buttonUp(mainImg);
}

function showBody( mainImg ,mainImgSrc, mainDiv, oldImg, oldImgSrc, oldDiv, imgDir )
{
if (document.images) {
newImgDown = new Image();
newImgDown.src = imgDir + mainImgSrc + "_down.gif";
}
function buttonDown( buttonname )
{
	if (document.images) 
	{
		document[ buttonname ].src = eval( "newImgDown.src" );
	}
}

showObject(mainDiv);
buttonDown(mainImg);
closeMenu(oldImg,oldImgSrc,oldDiv, 'images/');
	if (mainDiv == "whatWeDo")
		{
			
		}
}




function init() { 

		if (document.layers) {  
			layerRef="document.layers"; 
			styleSwitch="";  
			visibleVar="show"; 
			what ="ns4";  }  
		else if(document.all) {  
			layerRef="document.all";  
			styleSwitch=".style";  
			visibleVar="visible"; 
			what ="ie4";  } 
		else if(document.getElementById) {  
			layerRef="document.getElementByID";  
			styleSwitch=".style";  
			visibleVar="visible";  
			what="dom1";  }  
		else {  
			what="none";  
			newbrowser = false;  
		} 
check = true;
   } 
   
      function hideObject(layerName) {  

   init();
   if(check) {  
   if (what =="none") {  
   return;  }  
   else if (what == "dom1") {  
   document.getElementById(layerName).style.visibility="hidden";  
  
   
   }  
	else if (what == 'ie4') {  
	var lay = layerRef+ '["' + layerName + '"]' + styleSwitch + '.visibility="hidden"';
	
	eval(lay); }  
	else if (what == 'ns4') 
	{
		document.layers[layerName].visibility = "hide";
	
	}
   
	} 
    else {  return;  } 

     } 

   
   
   function showObject(layerName) {  

   init();
   if(check) {  
   if (what =="none") {  
   return;  }  
   else if (what == "dom1") {  
   document.getElementById(layerName).style.visibility="visible";  
   }  
	else if (what == 'ie4') {  

	var lay = layerRef+ '["' + layerName + '"]' + styleSwitch + '.visibility="visible"';
	eval(lay); }  
	else if (what == 'ns4') 
	{
		document.layers[layerName].visibility = "show";
		
	}
   
	} 
    else {  return;  } 

     } 
     
     function quotes() 
     {
		rndQuote = new Array();
		rndQuote[0] = "One Thing that really stands out about Verascend is that you listened carefully during the development stages of this project, and you continue to listen and to understand our ongoing needs.";
		rndQuote[1] = 'It seems like most consultants have a stock product. They pretend to listen and then say, "I know what you want..." and, coincidentally, it turns out to be what they have to sell. You, on the other hand, listened very closely and designed a solution that specifcally met our needs.';
		rndQuote[2] = "Working with Verascend was like working with a partner. Our interests were mutual.";
		rndQuote[3] = "Verascend was not just interested in getting our business, but interested in us - in our philosophy, in how we treat clients, and in our results with settlements and trials.";
		rndQuote[4] = "Verascend created a profile for us that is accurate, clear informative, and very appealing, as we've been told by those who visit our site.";
		rndQuote[5] = "We would have never been able to do this without Verascend's help.";
		rndQuote[6] = "Before our new clients actually call for an appointment, they practically know us and feel comfortable during the first consultation.  Which makes our job much easier in converting a potential client into an actual client.";
		rndQuote[7] = "I had to write you a letter to express my gratitude for Verascend's hard work and inform you of the incredible results we are experiencing.";
		rndQuote[8] = "I have worked with many Information Technology companies during my twenty years in business and I can honestly say that Verascend is by far the best I have ever worked with.";
		rndQuote[9] = "Your team always listens to what we have to say and never pretends to have all the answers right away.  When you offer a solution, you communicate it in terms that we understand rather than using IT jargon.";
		rndQuote[10] = "Since you installed the system...we have seen a 60% increase in our real estate research business due to mortgage refinance boom.  Our new software has enabled us to manage this increase with only a 15% increase in staff.";
		rndQuote[11] = "Simply put Verascend is the only company we have dealt with that could understand our vision and make it a reality.";
		rndQuote[12] = "I look forward to a long and mutually beneficial relationship with Verascend and will eagerly refer my business associates you way.";
		

     	var rndnum = 12* Math.random();
		rndnum = Math.round(rndnum);
		document.write(rndQuote[rndnum]);
     }
    