// exmaple jscript functions that can be included in your pages.
// Please note you need to have a good understanding of jscript 
// to add to this page.

				function adjust(region)
				{
					document.getElementById('loc_corporate').style.display = 'none';
					document.getElementById('loc_sanf').style.display = 'none';
					document.getElementById('loc_oakl').style.display = 'none';
					document.getElementById('loc_sanj').style.display = 'none';
					document.getElementById('loc_sacr').style.display = 'none';
					document.getElementById('loc_oran').style.display = 'none';
					document.getElementById('loc_sand').style.display = 'none';
					switch (region)
					{
						case "corp":
							document.getElementById('loc_corporate').style.display = '';
							break;
						case "sacr":
							document.getElementById('loc_sacr').style.display = '';
							break;
						case "oakl":
							document.getElementById('loc_oakl').style.display = '';
							break;
						case "sanj":
							document.getElementById('loc_sanj').style.display = '';
							break;
						case "sanf":
							document.getElementById('loc_sanf').style.display = '';
							break;
						case "oran":
							document.getElementById('loc_oran').style.display = '';
							break;
						case "sand":
							document.getElementById('loc_sand').style.display = '';
							break;
					}
				}


function MM_openBrWindow(theURL,winName,features) 
{ //v2.0
  window.open(theURL,winName,features);
}

function MM_preloadImages() 
{ //v3.0 
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() 
{ //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n,d) 
{ //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() 
{ //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function forget(newurl,newname) 
{
	apopup = window.open(newurl,newname,'toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=380,height=270');
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}





function display(val)
{
	if (val == "leaves")
	{
		document.getElementById('showDefault').style.display="none";
		document.getElementById('showLeaves').style.display="";
		document.getElementById('showTrunk').style.display="none";
		document.getElementById('showBranches').style.display="none";
		document.getElementById('showBark').style.display="none";
		document.getElementById('showRoots').style.display="none";
	}
	else if (val == "trunk")
	{	
		document.getElementById('showDefault').style.display="none";
		document.getElementById('showLeaves').style.display="none";
		document.getElementById('showTrunk').style.display="";
		document.getElementById('showBranches').style.display="none";
		document.getElementById('showBark').style.display="none";
		document.getElementById('showRoots').style.display="none";
	}
	else if (val == "branches")
	{
		document.getElementById('showDefault').style.display="none";
		document.getElementById('showLeaves').style.display="none";
		document.getElementById('showTrunk').style.display="none";
		document.getElementById('showBranches').style.display="";
		document.getElementById('showBark').style.display="none";
		document.getElementById('showRoots').style.display="none";
	}
	else if (val == "bark")
	{
		document.getElementById('showDefault').style.display="none";
		document.getElementById('showLeaves').style.display="none";
		document.getElementById('showTrunk').style.display="none";
		document.getElementById('showBranches').style.display="none";
		document.getElementById('showBark').style.display="";
		document.getElementById('showRoots').style.display="none";
	}
	else if (val == "roots")
	{
		document.getElementById('showDefault').style.display="none";
		document.getElementById('showLeaves').style.display="none";
		document.getElementById('showTrunk').style.display="none";
		document.getElementById('showBranches').style.display="none";
		document.getElementById('showBark').style.display="none";
		document.getElementById('showRoots').style.display="";
	}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
/*******************Visual SEO More Info*****************************/
function moreinfo()
{
document.getElementById("content").style.display="block";
document.getElementById("moreinfodiv1").style.display="block";
document.getElementById("moreinfodiv").style.display="none";
}
function moreinfohide()
{
document.getElementById("content").style.display="none";
document.getElementById("moreinfodiv").style.display="block";
document.getElementById("moreinfodiv1").style.display="none";
}
function ResetImages(sticky)
{
	if (sticky !='regional')
		document.getElementById('btn_regional').src = '_data/docs/btn_regional.png';
	if (sticky !='account')
		document.getElementById('btn_account').src = '_data/docs/btn_account.png';
	if (sticky !='production')
		document.getElementById('btn_production').src = '_data/docs/btn_production.png';
	if (sticky !='estimator')
		document.getElementById('btn_estimator').src = '_data/docs/btn_estimator.png';
	if (sticky !='foreman')
		document.getElementById('btn_foreman').src = '_data/docs/btn_foreman.png';
	if (sticky !='climber')
		document.getElementById('btn_climber').src = '_data/docs/btn_climber.png';
	if (sticky !='grounds')
		document.getElementById('btn_grounds').src = '_data/docs/btn_grounds.png';

	if (sticky !='marketing')
		document.getElementById('btn_marketing').src = '_data/docs/btn_marketing.png';
	if (sticky !='coo')
		document.getElementById('btn_coo').src = '_data/docs/btn_coo.png';
	if (sticky !='ceo')
		document.getElementById('btn_ceo').src = '_data/docs/btn_ceo.png';
	if (sticky !='finance')
		document.getElementById('btn_finance').src = '_data/docs/btn_finance.png';
	if (sticky !='hr')
		document.getElementById('btn_hr').src = '_data/docs/btn_hr.png';
	if (sticky !='safety')
		document.getElementById('btn_safety').src = '_data/docs/btn_safety.png';
	if (sticky !='service')
		document.getElementById('btn_service').src = '_data/docs/btn_service.png';
	if (sticky !='fleet')
		document.getElementById('btn_fleet').src = '_data/docs/btn_fleet.png';

}

function ShowJob(job)
{
	switch (job)
	{
		case "Account Manager":
			document.getElementById('jobtitle').innerHTML = "<h3>Account Manager</h3>";
			document.getElementById('jobdescription').innerHTML = "<h4>Description</h4><span class=\"jobtext\">Responsibilities include all estimating and sales in a specific territory or market segment.  Work order generation, job layout, quality control, customer service, and billing accuracy are key components to the position.</span>";
			document.getElementById('jobqualifications').innerHTML = "<p><h4>Qualifications</h4><span class=\"jobtext\"><ul><li>ISA Certified Arborist<li>Certified in CPRFirst Aid, annually<li>California driver\'s license with clean DMV record</ul></span>";
			break;	
		case "Production Manager":
			document.getElementById('jobtitle').innerHTML = "<h3>Production Manager</h3>";
			document.getElementById('jobdescription').innerHTML = "<h4>Description</h4><span class=\"jobtext\">Leads all crew members in enforcing safety, work quality, productivity, performance, setting up jobs sites, and assessing safety conditions.  Exhibits proper use of equipment and communication with clients.</span>";
			document.getElementById('jobqualifications').innerHTML = "<p><h4>Qualifications</h4><span class=\"jobtext\"><ul><li>Certified in safety, first aid and CPR<li>Completed TCIA electrical Hazards awareness program<li>ISA Certified Tree Worker completed or in progress<li>Must be able to lift up to 40 pounds<li>California driver\'s license with clean DMV record<li>Class B or Class A license highly valued</ul></span>";
			break;
		case "Estimator":
			document.getElementById('jobtitle').innerHTML = "<h3>Estimator</h3>";
			document.getElementById('jobdescription').innerHTML = "<h4>Description</h4><span class=\"jobtext\">Primary role is to support the Regional Manager with all estimating, quote and work order generation, equipment requirements, property inventories, arborist reports, job quality, and customer service.</span>";
			document.getElementById('jobqualifications').innerHTML = "<p><h4>Qualifications</h4><span class=\"jobtext\"><ul><li>ISA Certified Arborist<li>Certified in CPR/first aid<li>California driver\'s license with clean DMV record<li>Certified Tree Safety Professional (Recommended)<li>Qualified Applicators License (Recommended)<li>Electrical Hazards Awareness Program (Recommended)</ul></span>";
			break;
		case "Foreman":
			document.getElementById('jobtitle').innerHTML = "<h3>Foreman</h3>";
			document.getElementById('jobdescription').innerHTML = "<h4>Description</h4><span class=\"jobtext\">Skilled tree climber responsible for leading a team of tree workers, setting up jobs sites, assessing safety conditions, proper use of equipment and communication with clients.</span>";
			document.getElementById('jobqualifications').innerHTML = "<p><h4>Qualifications</h4><span class=\"jobtext\"><ul><li>Certified in safety, first aid and CPR<li>Completed TCIA electrical Hazards awareness program<li>ISA Certified Tree Worker completed or in progress<li>Must be able to lift up to 40 pounds<li>California driver\'s license with clean DMV record preferred<li>Class B or Class A license highly valued<li>Must be able to communicate effectively with clients</ul></span>";
			break;
		case "Climber":
			document.getElementById('jobtitle').innerHTML = "<h3>Climber</h3>";
			document.getElementById('jobdescription').innerHTML = "<h4>Description</h4><span class=\"jobtext\">Skilled position responsible for tree maintenance, pruning and removals on residential and commercial properties using ropes, harness, saddle, and/or bucket truck.</span>";
			document.getElementById('jobqualifications').innerHTML = "<p><h4>Qualifications</h4><span class=\"jobtext\"><ul><li>TCIA Tree Climber Specialist completed or in progress<li>Knowledge of accident prevention and electrical hazards<li>Certified in safety, first aid and CPR<li>California driver\'s license with clean DMV record<li>Class B or Class A license highly valued</ul></span>";
			break;
		case "Grounds":
			document.getElementById('jobtitle').innerHTML = "<h3>Grounds</h3>";
			document.getElementById('jobdescription').innerHTML = "<h4>Description</h4><span class=\"jobtext\">Assists the climber in the field regarding clearing limbs and brush from the site, operating and feeding the wood chipper.</span>";
			document.getElementById('jobqualifications').innerHTML = "<p><h4>Qualifications</h4><span class=\"jobtext\"><ul><li>TCIA Ground Operations Specialist completed or in progress<li>Knowledge of accident prevention, electrical hazards, traffic control<li>Certified in safety, first aid and CPR<li>California driver\'s license with clean DMV record<li>Class B or Class A license highly valued</ul></span>";
			break;

		case "Finance":
			document.getElementById('jobtitle').innerHTML = "<h3>Director of Finance</h3>";
			document.getElementById('jobdescription').innerHTML = "<h4>Description</h4><span class=\"jobtext\">The Director of Finance role is to maximize the return on financial assets by establishing financial policies, procedures, controls and reporting systems.</span>";
			document.getElementById('jobqualifications').innerHTML = "<p><h4>&nbsp;</h4><span class=\"jobtext\"></span>";
			break;
		case "Marketing":
			document.getElementById('jobtitle').innerHTML = "<h3>Director of Marketing</h3>";
			document.getElementById('jobdescription').innerHTML = "<h4>Description</h4><span class=\"jobtext\">The role of the Director of Marketing is to strategize and implement marketing, public relations, and business development objectives to design and execute solutions to maximize effectiveness, efficiency, and results in the marketing department.</span>";
			document.getElementById('jobqualifications').innerHTML = "<p><h4>&nbsp;</h4><span class=\"jobtext\"></span>";
			break;
		case "Fleet":
			document.getElementById('jobtitle').innerHTML = "<h3>Fleet Manager</h3>";
			document.getElementById('jobdescription').innerHTML = "<h4>Description</h4><span class=\"jobtext\">The Fleet Manager organizes, manages, and performs the repair and maintenance of Arborwell vehicles and equipment.</span>";
			document.getElementById('jobqualifications').innerHTML = "<p><h4>&nbsp;</h4><span class=\"jobtext\"></span>";
			break;
		case "Safety":
			document.getElementById('jobtitle').innerHTML = "<h3>Safety Director</h3>";
			document.getElementById('jobdescription').innerHTML = "<h4>Description</h4><span class=\"jobtext\">The Safety Director is responsible for developing, maintaining, coordinating, and monitoring Arborwell’s Safety Program, as well as the coordination and implementation of safety and emergency preparedness policies and procedures and all coordinated safety training.</span>";
			document.getElementById('jobqualifications').innerHTML = "<p><h4>&nbsp;</h4><span class=\"jobtext\"></span>";
			break;
		case "HR":
			document.getElementById('jobtitle').innerHTML = "<h3>Human Resources Manager</h3>";
			document.getElementById('jobdescription').innerHTML = "<h4>Description</h4><span class=\"jobtext\">The purpose of this position is to oversee the human resources department, focusing on legal compliance, recruitment, hiring, employee relationships, compensation, & benefits.</span>";
			document.getElementById('jobqualifications').innerHTML = "<p><h4>&nbsp;</h4><span class=\"jobtext\"></span>";
			break;
		case "Service":
			document.getElementById('jobtitle').innerHTML = "<h3>Community Service Manager</h3>";
			document.getElementById('jobdescription').innerHTML = "<h4>Description</h4><span class=\"jobtext\">The primary role of the Customer Service Manager is to supervise, train, and develop a staff of Customer Service Representatives whose primary goal is to support the sales staff and ensure client satisfaction. He or she is also responsible for designing and implementing improved process or operational policies.</span>";
			document.getElementById('jobqualifications').innerHTML = "<p><h4>&nbsp;</h4><span class=\"jobtext\"></span>";
			break;
		case "COO":
			document.getElementById('jobtitle').innerHTML = "<h3>Chief Operations Officer</h3>";
			document.getElementById('jobdescription').innerHTML = "<h4></h4><span class=\"jobtext\"></span>";
			document.getElementById('jobqualifications').innerHTML = "<p><h4>&nbsp;</h4><span class=\"jobtext\"></span>";
			break;
		case "Marketing":
			document.getElementById('jobtitle').innerHTML = "<h3>Director of Marketing</h3>";
			document.getElementById('jobdescription').innerHTML = "<h4></h4><span class=\"jobtext\"></span>";
			document.getElementById('jobqualifications').innerHTML = "<p><h4>&nbsp;</h4><span class=\"jobtext\"></span>";
			break;	
		case "Regional Manager":
			document.getElementById('jobtitle').innerHTML = "<h3>Regional Manager</h3>";
			document.getElementById('jobdescription').innerHTML = "<h4>Description</h4><span class=\"jobtext\">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</span>";
			document.getElementById('jobqualifications').innerHTML = "<p><h4>Qualifications</h4><span class=\"jobtext\">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</span>";
			break;	
	}
}

/***********************Ends******************************/

