
var ids=new Array('Angie','Carl','Elizabeth','Jackie', 'Lee', 'Susan');


function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

// JavaScript Document
function toggleLayer(whichLayer) {
hideallids();
var elem, vis;
if(document.getElementById) // this is the way the standards work
elem = document.getElementById(whichLayer);
else if(document.all) // this is the way old msie versions work
elem = document.all[whichLayer];
else if(document.layers) // this is the way nn4 works
elem = document.layers[whichLayer];
vis = elem.style; // if the style.display value is blank we try to figure it out here
if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}


//function for popup in Aboutus page
function dirtypop(name,desc, phone, cell, email)
{
var centerWidth = (window.screen.width - 200) / 2;
 var centerHeight = (window.screen.height - 200) / 2;
 
  var generator = window.open('','','toolbar=0, scrollbars=0, statusbar=0, menubar=0, resizable=0, height=220, width=350,left=' + centerWidth + ',top=' + centerHeight);

  generator.focus();
  
  
  generator.document.write('<html><head><title>Dowden Custom Media :: About Dowden</title>');
  
  generator.document.write('<link href="../css/style.css" rel="stylesheet" type="text/css">');
  
  generator.document.write('</head><body leftmargin="10" topmargin="10" marginwidth="10" marginheight="10">');

  generator.document.write('<br /><table border="0" cellspacing="10" cellpadding="10" align="center" bgcolor="#FFFFFF"><tr><td>');  

  generator.document.write('<span class="mainmsg_text">' + name + ' </span><br /><span class="blue_text"><strong>'+ desc + '</strong></span><br /> P: '+ phone + '<br /> C: ' + cell  + '<br /> E-mail: <a class="blue_text_large" href="mailto:' +  email +'">' + email + '</a><br />');

  generator.document.write('</td></tr></table>');

  generator.document.write('<p align="center"><a class="blue_text_large" href="javascript:self.close()">Close</a> this window.</p>');

  generator.document.write('</body></html>');

  generator.document.close();

}




//function for popup for image
    function imagepopupin(imagePath)
    {
    var generator1 = window.open('','name','toolbar=0, scrollbars=1, statusbar=0, menubar=0, resizable=1, fullscreen=yes');

    generator1.document.write('<html><head><title>Dowden Custom Media :: Full Image</title>');
    generator1.document.write('<link href="../css/style.css" rel="stylesheet" type="text/css">');
    generator1.document.write('</head><body leftmargin="10" topmargin="10" marginwidth="10" marginheight="10">');
    generator1.document.write('<br /><table border="0" cellspacing="10" cellpadding="10" align="center" bgcolor="#FFFFFF"><tr><td>');  
    generator1.document.write('<img alt="" src=" ' + imagePath + '" />');
    generator1.document.write('</td></tr></table>');
    generator1.document.write('<p align="center"><a class="blue_text_large" href="javascript:self.close()">Close</a> this window.</p>');
    generator1.document.write('</body></html>');
    generator1.document.close();
    }


