var glossary = new Array();

// Glossary Items
addGlossary('Technical Standard Safety Authority', '<p>TSSA is an organization dedicated to increasing public safety in the home, workplace and at recreational facilities.  It was created in 1996 as a not-for-profit, self-funded delegated administrative authority to administer and enforce public safety laws in Ontario in designated industry sectors.  It is also involved in the training and certification of operating engineers and technicians.</p><p>TSSA has established a Training and Certification Advisory Board to develop and maintain the utilization of a uniform training standard for the qualification, examination and certification of tradespersons in the natural gas, propane and fuel oil industries.  All of RIV’s technicians are TSSA licensed.</p>');
addGlossary('Electrical Standard Authority', '<p>ESA operated under the Electrical Act, 1998, which empowers it, subject to government approval, to make or amend the Regulations related to the prescribing of the design, construction, installation, protection, use, maintenance, repair, extension, alteration, connection and disconnection of all works and matters used or to be used in the generation, transmission, distribution, retail or use of electricity in Ontario.  To ensure compliance with the Regulations, ESA is given the authority to all electrical work and installations in Ontario.</p><p>The  Authorized Contractor Program (ACP) which RIV Heating Installations is part of, provides a process for recognizing Ontario Electrical Safety Code compliant work, performed by a Contractor bases on current practices and previous work.  The ACP provides for safe electrical installations and works on an audit-based process.  As such, the Electrical Safety Authority will audit RIV Heating Installations’ heating and cooling installations rather than conduct full electrical inspections.</p>');
addGlossary('Better Business Bureau', '<p>The BBB created in 1925 in the USA and expanded to Canada in the 1930s. The BBB is the only organization dedicated to providing reliability reports  on businesses to promote ethical business practices and honest advertising in the marketplace.  As a marketplace watchdog, the BBB responds to all inquiries and Business/Customer relationship issues.</p><p>The BBB is a self-regulated, non-profit organization, supported, owned and controlled by the Members.  It is not funded by nor connected to any Government agency.  Self-regulation allows the BBB to react quickly and inexpensively to marketplace problems with informal, practical and flexible solutions.  BBB membership is a partnership between your business and your community, based on respect and integrity.  Because the BBB stands for integrity and honesty, not all businesses can be accepted as BBB members.  Membership is by invitation only.</p>');
addGlossary('Modulating Furnace', '<p>Furnaces are designed to deliver maximum heat for comfort on the coldest of days. In most cases, those days account for fewer than three percent of winter days. The rest of the time, your furnace is providing more heat than necessary.</p><p>Because conventional furnaces are either providing no heat, or at full capacity, the temperature in your house goes up and down by several degrees, adversely affecting your comfort and your energy bills.</p><p>Modulating furnaces solve this problem by varying the amount and temperature of air delivered between different capacities, so that the air flowing out of the registers is always at the temperature you determine. This results in lower operating costs, more comfortable temperatures throughout the house and quieter operation.</p>');
addGlossary('AFUE', '<p>Used to express the fuel efficiency of gas furnaces. The higher the AFUE rating, the more efficient the unit.</p><p>If your furnace was built before 1992, chances are that the heat is lost up the chimney or out the exhaust vent - devices used by older furnaces to expel dangerous fumes created by the furnace, such as carbon monoxide, carbon dioxide, aldehydes, and even soot.</p><p>Modern furnaces use more technologically advanced venting techniques to achieve greater energy efficiency. RIV’s qualified technicians will determine if your chimney or exhaust vent is suitable for use with your new equipment.</p><p>It must also be noted that the AFUE rating does not take into consideration electrical consumption.  The electrical savings of a DC motor furnace are substantial when compared to a conventional high efficiency furnace which operates with an AC motor.</p>');
addGlossary('Consumers Digest BEST BUY Awards', '<p>A BEST BUY is defined as a product offering the most value for a given amount of money and must be a better value than directly competitive models.  On average, a Consumer Digest BEST BUY rating is awarded to fewer than three percent of the competing models in any given product category.</p><p>"Consumers Digest has built a reputation over the last 45 years as a trusted information resource to homeowners across North America for their most important product purchasing decisions".  Ruud has receive more design and innovation awards than any since 2003.  This award is evidence that Ruud products are satisfying homeowner value expectations by consistently delivering high quality performance and reliability for every consumer dollar invested in home comfort products.</p>');
addGlossary('ARI', '<p>The Air Conditioning and Refrigeration Institute is an organization created by HVAC manufacturers to ensure an acceptable level of quality within the industry.  ARI is a voluntary, nonprofit organization which publishes ratings standards and benchmarks for testing cooling and heating products.  Ruud is an active member of ARI.</p>');
addGlossary('Seasonal Energy Efficiency Rating (SEER)', '<p>A SEER is used to express the efficiency of an air conditioning unit, or a heat pump in cooling mode. The higher the SEER rating, the more efficient the unit. Air conditioners contribute directly to the need for new electricity generation, and therefore result in higher rates for electricity customers. As a result, Canada now requires that all air conditioners have a minimum of 13 SEER.</p>');
addGlossary('Scroll Compressor', '<p>The most expensive component of any condensing unit is the compressor. Ruud installs Copeland&reg; Compliant Scroll&reg; Compressors throughout its entire residential air conditioning line for proven dependability, efficiency, and sound reduction.</p>');
addGlossary('BTU', '<p>Short for British Thermal Unit. The amount of heat required to raise or lower the temperature of one pound of water by one degree Fahrenheit.</p>');
addGlossary('Ton', '<p>The ton ratings have nothing to do with the weight of the unit. In fact a ton is simply 12,000 <acronym term="BTU" onmousemove="this.onclick=showGlossary; this.onmousemove=\'\';">BTU</acronym>s. A typical Business cooling/heating system uses heat pumps or air conditioners with a capacity of between 1.5 and 5 tons.</p>');
addGlossary('Heat Recovery Core', '<p>Certain Venmar Air Exchangers feature a heat recovery system. As warm air is expelled from your house, it warms the incoming cold, fresh air before it’s circulated throughout your home. The result is a constant supply of fresh air, no unpleasant drafts and greater home comfort.</p>');
addGlossary('Direct Vent', '<p>All gas fireplaces need a constant supply of fresh air in order to operate. Direct Vent fireplaces have a sealed, glass-fronted combustion chamber that keeps the byproducts of combustion out of the living space. Air is drawn into the firebox from outside the home using a special co-axial flue pipe system. This "pipe within a pipe" also exhausts the flue products outside the home. Direct vent fireplaces offer good efficiency because they don\'t steal heated air from the living space.</p>');
addGlossary('B-Vent', '<p>B-Vent fireplaces (sometimes called Top Vent or Natural Vent) draw air into the combustion chamber from inside the home. This fresh air is mixed with gas and burned in the fireplace. The fireplace exhausts the byproducts of combustion outside of your home using a dedicated B-Vent flue pipe. Although fresh air is used from inside your home, products of combustion are never vented into your home.</p>');
addGlossary('Power Vent', '<p>Power Vent fireplaces draw air into the combustion chamber via a Power assisted motor and blower from outside the home. This fresh air is drawn into the fireplace, and begins at the exterior Termination, then is pulled through the Venting duct, into the Power vent, and then directed into the fireplace under forced Air movement. The Power vent is usually a requirement if the fireplace is a excessive distance from the exterior of the home, or the fireplace requires the CFM Cubic foot of air movement) of air to be efficient in its combustion. The fireplace then exhausts the by products of combustion outside of your home using one (1) or multiple dedicated flue Vent\'s. Although fresh air is used from outside your home, high BTU fireplaces with Power Venters will inherintly draught some air from inside your home.</p>');
addGlossary('Ventless', '<p>A Vent Free fireplace does not use a chimney or flue pipe. These fireplaces burn extremely clean so the byproducts of combustion can be vented back into the room. This eliminates the need for a chimney resulting in lower installation costs. Because they do not send hot flue gases up the chimney, these fireplaces are extremely heat-efficient. All models feature an Oxygen Depletion Sensor for maximum safety.</p>');

// Fireplace Finishes
addGlossary('Satin Black', '<img src="../../images/produits/fireplaces/finish_satin_black.jpg">');
addGlossary('Polished Brass', '<img src="../../images/produits/fireplaces/finish_Polished_Brass.jpg">');
addGlossary('Stainless Steel', '<img src="../../images/produits/fireplaces/finish_Stainless_Steel.jpg">');
addGlossary('Bay Window', '<img src="../../images/produits/fireplaces/finish_Bay_window.jpg">');

// LG Ductless Conditioning Table items
addGlossary('Customizable Indoor Unit', '<p>Art Cool provides numerous options to compliment any decor. The <span class="text-highlight">Art Cool Customizable</span> panel works like a picture frame – any art or photograph can be displayed. Other Art Cool units come in a variety of beautiful colors and finishes to suit any room</p>');
addGlossary('Multi-Power System', '<p>(On 18,000+ BTU units)<br>Energy-saving twin compressors: one provides power at 60% capacity until the system reaches a desired temperature. Then the smaller compressor takes over to provide sustained operation at 40% capacity.  Both compressors are activated when maximum cooling or heating is needed.</p>');
addGlossary('Patented Neo Plasma Air Purifying System', '<p>The 4-stage system features a large, permanent filter and an electronic air purifier that captures microscopic contaminants like dust, mite, pollen, and pet fur.</p>');
addGlossary('Triple-Filter Air Purifying System', '<p>An electrostatic filter removes dust, pollen and smoke; an anti-fungal filter prevents bacteria and mold from forming; and a deodorizing filter freshens the air.</p>');
addGlossary('R-410A refrigerant', '<p>LG has utilized this <span class="text-highlight">ozone-friendly</span> refrigerant for the majority of their 2006/07 ductless models. Unlike R22, <span class="text-highlight">R410A</span> does not contribute to ozone depletion so you can be sure the world will be a cleaner place for generations to come.</p>');
addGlossary('Art Cool Self-Cleaning Indoor Coil', '<p>Drives dirt and moisture from coil surface leaving it clean and fresh smelling.</p>');
addGlossary('Dehumidifying Mode', '<p>Indoor unit accurately senses room temperature and controls humidity by shutting down the compressor before a room is over-cooled.</p>');
addGlossary('Chaos Swing', '<p>Electronically controlled louvers and fan speeds create a more natural, random flow of air, reducing temperature stratification.</p>');
addGlossary('Art Cool Three-way Cooling', '<p>Air flows out of the unit from three directions, creating more natural circulation.</p>');
addGlossary('Jet Cool', '<p>Operates at high speed for up to 30 minutes to quickly cool a room down to 65&deg;F.</p>');
addGlossary('Swirl Wind', '<p>Four-way controlled louvers and fan speeds create a stronger, wider air flow and reduce temperature stratification.</p>');
addGlossary('Auto Operation', '<p>Provides three levels of comfort from which to choose. Temperature and fan speed will set automatically.</p>');
addGlossary('Manual Power Switch', '<p>Easily accessed button that allows for continued operation if the remote control is misplaced.</p>');
addGlossary('Defrost Control', '<p>Shuts down the indoor fan to prevent cold air from being blown into the house. Removes frost from outdoor coil when the outdoor temperature is low (Heat Pump only).</p>');
addGlossary('Temperature Display', '<p>Shows room temperature of interior unit.</p>');
addGlossary('Auto Sleep Mode', '<p>Automatically increases the temperature setting 2&deg;F twice (after 1/2 hour and one hour). The interior unit shuts off when the timer setting is reached.</p>');
addGlossary('Auto Restart', '<p>Automatically restarts a unit to programmed setting when the electricity comes on after a power failure.</p>');

// Pedestal Stove Installation Figures
addGlossary('Install - Through the wall', '<img src="../../images/produits/fireplaces/install_fig_01.gif">');
addGlossary('Install - Rear Vent', '<img src="../../images/produits/fireplaces/install_fig_02.gif">');
addGlossary('Install - Through the roof', '<img src="../../images/produits/fireplaces/install_fig_03.gif">');
addGlossary('Install - Existing Chimneys', '<img src="../../images/produits/fireplaces/install_fig_04.gif">');





// Convert all acronyms to display the box
function initGlossary() {
	var arrAcronyms = document.getElementsByTagName('acronym');
	for (var i = 0; i < arrAcronyms.length; i++) {
		var ele = arrAcronyms[i];
		arrAcronyms[i].onclick = showGlossary;
		//arrAcronyms[i].onmouseout = hideGlossary;
		arrAcronyms[i].term = arrAcronyms[i].title;
		arrAcronyms[i].title = '';
	}
}

function showGlossary(e) {
	var myX;
	var myY;
	var offsetX = -150;
	var offsetY = 10;
	
	if (!e) e = window.event;
	
	if (e.x) { // IE
		myX = e.x + (document.body.scrollLeft ? document.body.scrollLeft : document.documentElement.scrollLeft);
		myY = e.y + (document.body.scrollTop ? document.body.scrollTop : document.documentElement.scrollTop);
	} else if (e.clientX) { // Firefox
		myX = e.clientX + window.pageXOffset;
		myY = e.clientY + window.pageYOffset;
	}
	
	// Get glossary window
	var glossDiv = $('divGlossary');
	var glossTitle = $('glossaryTitle');
	var glossDesc = $('glossaryDesc');
	
	// Just change the text if the glossary is already shown
	//if (glossDiv.style.display != 'inline') {
		glossDiv.style.left = (myX + offsetX) + 'px';
		glossDiv.style.top = (myY + offsetY) + 'px';
		glossDiv.style.display = 'inline';
	//}
	glossTitle.innerHTML = glossary[this.term]['title'];
	glossDesc.innerHTML = glossary[this.term]['desc'];
}

function hideGlossary() {
	$('divGlossary').style.display = 'none';	
}

function addGlossary(term, desc) {
	glossary[term] = new Array();
	glossary[term]['title'] = term;
	glossary[term]['desc'] = desc;
}