function PrintThisPage() 
{ 
   var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
       sOption+="scrollbars=yes,top=25"; 

   var sWinHeader = document.getElementById('content-header').innerHTML;
   var sWinHeaderDisplay = document.getElementById('content-headerdisplay').innerHTML;
   var sWinHTML = document.getElementById('content-start').innerHTML; 
 

   
   var winprint=window.open("","",sOption); 
       winprint.document.open();
	   
	   winprint.document.write('<');
	   winprint.document.write('html>'); 

       winprint.document.write('<head><meta http-equiv="Content-Style-Type" content="text/css"><link rel=Stylesheet type=text/css href=/utility/print.css></head>');
   
	   winprint.document.write(sWinHeader);
	   winprint.document.write('<body>');	             
	   winprint.document.write(sWinHeaderDisplay);           
       winprint.document.write(sWinHTML);          
       winprint.document.write('</body></html>'); 
       winprint.document.close(); 
       winprint.focus(); 
	   winprint.print();
}

function PrintThisPDF(loc)
{
	var winprint=window.open(loc, "", "toolbar=yes,location=yes,directories=yes,menubar=yes");
	winprint.focus();
}
function showmap(city)
{
	//alert("view_map.html?location="+city);
	var mapwin = window.open("view_map.html?location="+city, "mapwin", "width=450,height=275,resizable=0,scrollbars=no,menubar=no,status=no");
}

function showmap2(city)
{
	//alert("view_map.html?location="+city);
	var mapwin = window.open("../our_people/offices/view_map.html?location="+city, "mapwin", "width=450,height=275,resizable=0,scrollbars=no,menubar=no,status=no");
}

function showmap3(city)
{
	//alert("view_map.html?location="+city);
	var mapwin = window.open("offices/view_map.html?location="+city, "mapwin", "width=450,height=275,resizable=0,scrollbars=no,menubar=no,status=no");
}

   function show(rowID) {
    if (eval(rowID+'.className=="hide"')) {
        eval(rowID+'.className="show"')
    }
    else {
        eval(rowID+'.className="hide"')
    }
   }
   
   	function popUp(URL, argName, argScroll, argWidth, argHeight) {
		window.open(URL, argName,"toolbar=0,location=0,directories=0,status=1,menubar=0,left=400,top=250,screenX=400,screenY=250,scrollbars="+argScroll+",resizable=0,width="+argWidth+",height="+argHeight);
		}
		
function get_cookie ( cookie_name )
{
  var results = document.cookie.match ( cookie_name + '=(.*?)(;|$)' );

  if ( results )
    return ( unescape ( results[1] ) );
  else
    return null;
}

function delete_cookie ( cookie_name )
{
  var cookie_date = new Date ( );  // current date & time
  cookie_date.setTime ( cookie_date.getTime() - 1 );
  document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString();
}

function create_cookie()
{
	document.cookie="videocheck=yes; expires="+cookie_date.toGMTString();
}

function expirecookie()
{
  var cookie_date = new Date ( );  // current date & time
  cookie_date.setTime ( cookie_date.getTime() - 1 );
  document.cookie = "videocheck=; expires=" + cookie_date.toGMTString();
}

function show_video()
{
	document.getElementById('demo-all').style.opacity=1.0;    
	new Effect.toggle($('demo-all'),'blind');
}

function clear_field(email_value)
{
	if (email_value.defaultValue == email_value.value)
		email_value.value="";
}

