function OffWindowH() {
	var OffWindowH=0;
	window.scrollTo(0,10000000);

	if(typeof self.pageYOffset!='undefined')
		OffWindowH=self.pageYOffset;
	 else if(document.compatMode && document.compatMode != 'BackCompat')
		OffWindowH=document.documentElement.scrollTop;
	 else if(document.body && typeof(document.body.scrollTop)!='undefined')
		OffWindowH=document.body.scrollTop;
	
	window.scrollTo(0,0);

return OffWindowH;

}

function WindowHeight() {
	var WindowHeight = 0;
	
	if( typeof( window.innerWidth ) == 'number' )
		WindowHeight = window.innerHeight;
	else if (document.documentElement &&  document.documentElement.clientHeight)
		WindowHeight = document.documentElement.clientHeight;
	else if(document.body && document.body.clientHeight)
		WindowHeight = document.body.clientHeight;

  return WindowHeight;
}

function pHeight() {
	var pHeight = OffWindowH() + WindowHeight();
	return pHeight;
}

function favBg() {
	var favBg = document.getElementById('favBg');
	favBg.style.height = pHeight() + 'px';
}

var cdiv = "blank";

function favArea() {
	if (cdiv == "blank") { cdiv = window.setInterval("favArea()", 50); }
		var Element = document.getElementById("favArea");
		objh = parseFloat(Element.style.height)/2;
		objw = parseFloat(Element.style.width)/2;
		Element.style.top = Math.floor(Math.round((document.documentElement.offsetHeight/2)+document.documentElement.scrollTop)-objh-50)+'px';

		Element.style.left = Math.floor(Math.round((document.documentElement.offsetWidth/2)+document.documentElement.scrollLeft)-objw)+'px';

}

function showHideItems(Item1,Item2,txt){
	if (txt == "exp") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-expertise.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','exp')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><br><div style=\"padding:15px; line-height:20px;\">You can look to us with confidence. We pledge to give our clients the most recent service and thought leadership in all areas of our business. We hire bright, skilled personnel to provide you with the expertise you need. For more than 60 years there hasn't been a customer challenge that we haven't solved.</div>";
	}
	if (txt == "inn") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-innovation.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','exp')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><br><div style=\"padding:15px; line-height:20px;\">Either you keep innovating or you go backwards. We pledge to push ourselves to find new and better ways of providing the integrated solutions our customers expect. Our forward thinking sets us apart from \"equipment suppliers.\"</div>";
	}
	if (txt == "rel") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-reliability.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','rel')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><br><div style=\"padding:15px; line-height:20px;\">We pledge to prove to our customers that they can depend on us to provide consistent service levels worldwide. In your industry, timelines and deadlines call for contractors and partners you can count on. AMECO keeps it simple: we do what we say we're going to do.</div>";
	}
	if (txt == "res") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-responsiveness.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','res')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><br><div style=\"padding:15px; line-height:20px;\">The last thing you need is delay. We pledge to be responsive and flex with our clients' needs, challenges and environments. No two job sites, no two customers, no two projects are identical. AMECO's years of experience allow us to respond quickly and creatively to help meet your specific needs.</div>";
	}
	if (txt == "saf") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-safety.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','saf')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><br><div style=\"padding:15px; line-height:20px;\">People are our &mdash; and your &mdash; most important asset. We pledge to ensure safety, health and welfare for everyone in all of our work environments. Our track record shows that we painstakingly emphasize a safety culture, and our employees foster best practices while also anticipating potential problems.</div>";
	}
	if (txt == "css_ser1") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-services.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','css_ser1')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><ul><li>Construction equipment</li><li>Planning/forecasting</li><li>Preventative maintenance & repairs</li><li>Parts inventory management</li><li>Fueling & lubricating services</li><li>Operator training </li><li>Equipment disposal</li><li>Tools</li><li>Management reporting</i><li>Logistics</li><li>Expendable supplies</li><li>Consumable supplies</li><li>Safety supplies</li><li>Welding rods & gases</li><li>Scaffolding</li><li>Ice</li><li>Pins, loads & fasteners</li>	<li>Site-based program management</li><li><a href=\"shelter.php\">Blast Resistant Air Shelters</a></li></ul>";
	}
//	if (txt == "css_ovr1") {
//		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-overview.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','css_ovr1')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><div style=\"border-bottom:1px solid #F7921C\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\" width=\"500\" height=\"323\" id=\"site_services\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\"><param name=\"allowFullScreen\" value=\"false\"><param name=\"movie\" value=\"site_services.swf\"><param name=\"quality\" value=\"best\"><param name=\"bgcolor\" value=\"#ffffff\"><embed src=\"site_services.swf\" quality=\"best\" bgcolor=\"#ffffff\" width=\"500\" height=\"323\" name=\"site_services\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer\"></object></div><div style=\"text-align:right; font-size:8pt;\"><a href=\"ind_resources/SiteServices-FlyOver.pdf\" target=\"_blank\">View full size <img src=\"images/document_search.gif\" align=\"absmiddle\" border=\"0\"></a></div>";
//	}	
	if (txt == "css_ovr1") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-overview.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','css_ovr2')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><div style=\"border-bottom:1px solid #F7921C\"><a href=\"ind_resources/SiteServices-FlyOver.pdf\" target=\"_blank\"><img src=\"images/siteservices_flyover.gif\" width=\"500\" height=\"324\" border=\"0\"></div><div style=\"text-align:right; font-size:8pt;\">Click to view full size PDF <img src=\"images/document_search.gif\" align=\"absmiddle\" border=\"0\"></a></div>";
	}		
//	if (txt == "css_ben1") {
//		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-benefits.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','css_ben1')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><div style=\"border-bottom:1px solid #F7921C\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\" width=\"500\" height=\"360\" id=\"ctf\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"allowFullScreen\" value=\"false\" /><param name=\"movie\" value=\"ctf.swf\" /><param name=\"quality\" value=\"best\" /><param name=\"bgcolor\" value=\"#ffffff\" />	<embed src=\"ctf.swf\" quality=\"best\" bgcolor=\"#ffffff\" width=\"500\" height=\"360\" name=\"ctf\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer\" /></object></div><div style=\"text-align:right; font-size:8pt;\"><a href=\"ind_resources/CTA-sales-sheet-graphic.pdf\" target=\"_blank\">View full size <img src=\"images/document_search.gif\" align=\"absmiddle\" border=\"0\"></a></div>";
//	}
	if (txt == "css_ben1") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-benefits.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','css_ben1')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><div style=\"border-bottom:1px solid #F7921C\"><a href=\"ind_resources/CTA-sales-sheet-graphic.pdf\" target=\"_blank\"><img src=\"images/cta_graphic.gif\" width=\"500\" height=\"324\" border=\"0\"></div><div style=\"text-align:right; font-size:8pt;\">View full size <img src=\"images/document_search.gif\" align=\"absmiddle\" border=\"0\"></a></div>";
	}
		
	if (txt == "css_ben2") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-benefits.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','css_ben1')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><div style=\"padding-right:20px\"><ul><li><b>Project Savings</b> -  Projects can achieve 8-12% savings on labor costs, due to placement of personnel at or near the work site for safety meetings, breaks and meals, and by eliminating or reducing travel time to and from the site.</li><li><b>Thermal Protection</b> - A layer of thin air in the inner and outer layers of the shelter creates a thick, insulating barrier against thermal waves. Recommendations can be made on shelter placement in relation to blast zones and flare stacks.</li><li><b>Craft Retention</b> - The shelter is aesthetically pleasing, with a bright, climate-controlled interior. It is a work environment that will be a source of pride for project personnel.</li><li><b>The Blast Resistant Air Shelter</b> is versatile and has been used around the world for the following applications:<ul><li>Lunch rooms</li><li>Wash rooms</li><li>Meeting rooms</li><li>Supervisory offices</li><li>Tool rooms</li><li>Storage facilities</li><li>Work site protection and weather remediation</li><li>General warehousing</li></ul></li></ul></div>";
	}
	if (txt == "css_ser2") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-services.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','css_ser1')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><ul><li>Fueling & lubrication services</li><li>Vehicles/trucks</li><li>Man camp solutions</li><li>Mobile office complexes</li><li>Welding rods & gases</li><li>Scaffolding materials (including assembly & dismantling)</li><li>Ice & drinking water</li><li>Concrete forms</li><li>Truss materials (including assembly & dismantling)</li><li>Site cleanup</li><li>Janitorial services</li></ul>";
	}
	if (txt == "css_ser3") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-services.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','css_ser1')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><ul><li>Mobile equipment availability - reduce your overhead and still have what you need</li><li>Performance metrics - know what's working and what's down</li><li>Predictive maintenance - prevent breakdowns before they happen</li><li>Spare parts inventory & management - let us manage and reduce costs for you</li><li>Operator training & certification - ensure your operators are prepared</li><li>Licensing/registration - keep your vehicles legal</li><li>Equipment standardizing/rightsizing - customize your MPE specs to your needs</li><li>Fueling services - reduce downtime for refueling</li><li>24/7 emergency response - keep the unexpected from bringing work to a halt</li><li>Accident tracking and investigation - get the facts on mishaps</li><li>Inspection services - confirm that your mobile equipment and vehicles are in working order</li><li>Equipment disposal - leave the hassles to us</li></ul>";
	}
	if (txt == "css_ben3") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-benefits.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','css_ben1')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><div style=\"padding:20px\">With AMECO's Construction Management Support Services, you can:<ul>	<li>Reduce equipment- and tool-related costs up to 30%</li>	<li>Optimize utilization of labor and machiner</li>	<li>Improve craft productivity</li>	<li>Gain fixed rates over the project duration</li>	<li>Share fleet between contractors, reducing equipment duplication and associated costs</li>	<li>Reduce administrative and auditing costs</li></ul></div>";
	}
	if (txt == "ofs_ser3") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-services.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','css_ser1')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><div style=\"padding-right:20px\"><ul><li>Equipment availability - reduce your overhead and still have what you need</li><li>Performance metrics - know what's working and what's down</li><li>Predictive maintenance - prevent breakdowns before they happen</li><li>Spare parts inventory & management - let us manage and reduce costs for you</li><li>Operator training & certification - ensure your operators are prepared</li><li>Licensing/registration - keep your vehicles up to date</li><li>Equipment standardizing/rightsizing - customize your equipment to your needs</li><li>Fueling services - eliminate unnecessary downtime for refueling</li><li>24/7 emergency services - don't let the unexpected bring work to a halt</li><li>Inspection services - confirm that your fleet is in working order</li><li>Equipment disposal - leave the hassles to us</li></ul></div>";
	}
	if (txt == "ofs_ben3") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-benefits.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','css_ser1')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><div style=\"padding-right:20px\"><ul><li><b>Expertise</b><br>Look to us with confidence.<br><br></li><li><b>Innovation</b><br>If you're not innovating, you're moving backwards.<br><br></li><li><b>Reliability</b><br>At AMECO, what we say we're going to do, we deliver.<br><br></li><li><b>Responsiveness</b><br>The last thing you need is delay.<br><br></li><li><b>Safety</b><br>People are our most important asset, and yours too.</li></ul></div>";
	}
	if (txt == "css_ser4") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-services.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','css_ser1')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><div style=\"padding-right:20px\"><ul>	<li>Mobile equipment availability - reduce your overhead and still have what you need</li>	<li>Performance metrics - know what's working and what's down</li>	<li>Predictive maintenance - prevent breakdowns before they happen</li>	<li>Spare parts inventory & management - let us manage and reduce costs for you</li>	<li>Operator training & certification - ensure your operators are prepared</li>	<li>Licensing/registration - keep your vehicles legal</li>	<li>Equipment standardizing/rightsizing - customize your MPE specs to your needs</li>	<li>Fueling services - reduce downtime for refueling</li>	<li>24/7 emergency response- keep the unexpected from bringing work to a halt</li>	<li>Accident tracking & investigation - get the facts on mishaps</li>	<li>Inspection services - confirm that your mobile equipment and vehicles are in working order</li>	<li>Equipment disposal - leave the hassles to us</li></ul></div>";
	}													
//	if (txt == "ofs_ovr2") {
//		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-overview.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','css_ovr2')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><div style=\"border-bottom:1px solid #F7921C\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\" width=\"500\" height=\"323\" id=\"mpe\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\"><param name=\"allowFullScreen\" value=\"false\"><param name=\"movie\" value=\"mpe.swf\"><param name=\"quality\" value=\"best\"><param name=\"bgcolor\" value=\"#ffffff\"><embed src=\"mpe.swf\" quality=\"best\" bgcolor=\"#ffffff\" width=\"500\" height=\"323\" name=\"mpe\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer\"></object></div><div style=\"text-align:right; font-size:8pt;\"><a href=\"ind_resources/MPEM_Brochure.pdf\" target=\"_blank\">View full size <img src=\"images/document_search.gif\" align=\"absmiddle\" border=\"0\"></a></div>";
//	}			
	if (txt == "ofs_ovr2") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/bd-overview.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','css_ovr2')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><div style=\"border-bottom:1px solid #F7921C\"><a href=\"ind_resources/MPEM-FlyOver.pdf\" target=\"_blank\"><img src=\"images/mpe_graphic_small.gif\" width=\"500\" height=\"324\" border=\"0\"></div><div style=\"text-align:right; font-size:8pt;\">Click to view full size PDF <img src=\"images/document_search.gif\" align=\"absmiddle\" border=\"0\"></a></div>";
	}
	if (txt == "video1") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/vid_slowmo.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','video2')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><center><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"501\" height=\"315\" id=\"slow_mo_blast\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"allowFullScreen\" value=\"false\" /><param name=\"movie\" value=\"slow_mo_blast.swf\" /><param name=\"quality\" value=\"best\" /><param name=\"bgcolor\" value=\"#000000\" /><embed src=\"slow_mo_blast.swf\" quality=\"best\" bgcolor=\"#000000\" width=\"501\" height=\"315\" name=\"slow_mo_blast\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer\" /></object></center>";
	}		
		
	if (txt == "video2") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/vid_fieldtest.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','video2')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><center><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"501\" height=\"315\" id=\"high_speed_blast\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"allowFullScreen\" value=\"false\" /><param name=\"movie\" value=\"high_speed_blast.swf\" /><param name=\"quality\" value=\"best\" /><param name=\"bgcolor\" value=\"#000000\" /><embed src=\"high_speed_blast.swf\" quality=\"best\" bgcolor=\"#000000\" width=\"501\" height=\"315\" name=\"high_speed_blast\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer\" /></object></center>";
	}

	if (txt == "video3") {
		document.getElementById('bdtxt').innerHTML = "<img src=\"images/vid_mpem.gif\" width=\"482\" height=\"30\"><a href=\"javascript:showHideItems('favArea','favBg','video3')\"><img src=\"images/popup-x.gif\" border=\"0\"></a><center><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"501\" height=\"350\" id=\"mpe_mgmt\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"allowFullScreen\" value=\"false\" /><param name=\"movie\" value=\"mpe_mgmt.swf\" /><param name=\"quality\" value=\"best\" /><param name=\"bgcolor\" value=\"#000000\" /><embed src=\"mpe_mgmt.swf\" quality=\"best\" bgcolor=\"#000000\" width=\"501\" height=\"350\" name=\"mpe_mgmt\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer\" /></object></center>";
	}		
		

	myItem1 = document.getElementById(Item1);
    if (myItem1.style.visibility != "hidden") {
        myItem1.style.visibility = "hidden";
    } else {
 		myItem1.style.visibility = "visible";
	}
	myItem2 = document.getElementById(Item2);
    if (myItem2.style.visibility != "hidden") {
        myItem2.style.visibility = "hidden";
    } else {
 		myItem2.style.visibility = "visible";
	}
}


