﻿var drawIt;
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
        var words = navigator.plugins["Shockwave Flash"].description.split(" ");
        for (var i = 0; i < words.length; ++i)
        {
        if (isNaN(parseInt(words[i])))
        continue;
        var MM_PluginVersion = words[i]; 
        }
    var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
    document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
    document.write('on error resume next \n');
    document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
    document.write('<\/SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay ) {
     drawIt=true;
} else{
     drawIt=false;
}

function drawFlash1() {
    if (drawIt == true) {
        document.write('<object data="/flash/TEMCog.swf" quality="high" width="150" height="106"type="application/x-shockwave-flash">');
        document.write('  <param name="movie" value="/flash/TEMCog.swf" />');
        document.write('  <param name="quality" value="high" />');
        document.write('  <param name="menu" value="false" />');
        document.write('<\/object>');
    } else {
        document.write('<img src="images/TEM_homepage.png" alt="home" border="0"><\/a>');
    }
}

function drawFlash2() {
    if ( drawIt == true) {
        // Do this if Flash is installed and enabled

        document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="590" height="560" id="cogs" align="middle">');
        document.write('<param name="movie" value="http://www.energyteam.co.uk/Flash/cogs.swf" />');
        document.write('<param name="quality" value="high" />');
        document.write('<param name="bgcolor" value="#ffffff" />');
        document.write('<param name="play" value="true" />');
        document.write('<param name="loop" value="true" />');
        document.write('<param name="wmode" value="transparent" />');
        document.write('<param name="scale" value="noborder" />');
        document.write('<param name="menu" value="true" />');
        document.write('<param name="devicefont" value="false" />');
        document.write('<param name="salign" value="" />');
        document.write('<param name="allowScriptAccess" value="sameDomain" />');
        document.write('<!--[if !IE]>-->');
        document.write('<object type="application/x-shockwave-flash" data="http://www.energyteam.co.uk/Flash/cogs.swf" width="590" height="560">');
        document.write('<param name="movie" value="http://www.energyteam.co.uk/Flash/cogs.swf" />');
        document.write('<param name="quality" value="high" />');
        document.write('<param name="bgcolor" value="#ffffff" />');
        document.write('<param name="play" value="true" />');
        document.write('<param name="loop" value="true" />');
        document.write('<param name="wmode" value="transparent" />');
        document.write('<param name="scale" value="noborder" />');
        document.write('<param name="menu" value="true" />');
        document.write('<param name="devicefont" value="false" />');
        document.write('<param name="salign" value="" />');
        document.write('<param name="allowScriptAccess" value="sameDomain" />');
        document.write('<!--<![endif]-->');
        document.write('<a href="http://www.adobe.com/go/getflash">');
        document.write('  <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />');
        document.write('</a>');
        document.write('<!--[if !IE]>-->');
        document.write('</object>');
        document.write('<!--<![endif]-->');
        document.write('</object>');


        } else {
        // Do this if flash is not installed or not enabled
        document.write('<img src="images/cogs_replacement.png" alt="" border="0" width="590px" height="472px;" class="mapper" usemap="#mymap"/>');
        document.write('<map id="mymap" name="mymap">');
        document.write('<area shape="poly" coords="109,21,105,21,101,31,93,36,82,36,79,39,83,47,82,59,74,65,74,69,84,73,89,81,89,93,91,94,101,91,111,93,118,100,122,101,126,91,134,85,146,86,147,83,144,74,145,63,153,57,153,53,144,49,139,41,138,29,136,28,127,31,115,29,114,27" alt="Risk Managed Contract" href="ProcurementProducts.aspx#Anchor3" />');
        document.write('<area shape="poly" coords="14,98,12,101,16,110,13,121,6,127,6,132,15,134,21,143,21,155,23,157,32,153,43,155,50,163,53,163,54,162,58,152,67,147,78,147,79,145,75,136,77,126,85,119,85,115,76,111,70,103,70,91,68,89,58,93,48,91,41,83,37,83,33,93,25,98,14,98" alt="Portfolio Managed Contract" href="ProcurementProducts.aspx#Anchor2" />');
        document.write('<area shape="poly" coords="41,178,38,178,34,188,26,193,14,193,12,195,16,205,14,215,6,222,6,226,16,230,21,238,21,249,24,251,33,247,43,249,50,257,53,257,54,257,58,247,67,242,78,242,79,240,75,231,77,220,85,213,85,210,76,206,70,197,70,186,68,184,59,188,49,186,41,178" alt="Fixed Contract" href="ProcurementProducts.aspx#Anchor1" />');
        document.write('<area shape="poly" coords="164,88,156,88,144,106,126,113,105,108,99,114,103,134,95,154,77,165,77,173,95,185,102,204,98,224,103,230,124,226,144,234,154,252,163,252,175,234,194,226,214,231,220,226,215,205,224,185,242,175,241,166,224,155,216,135,221,115,215,109,194,113,176,106,164,88,156,88" alt="Energy Procurement" href="Procurement.aspx" />');
        document.write('<area shape="poly" coords="391,23,387,23,384,32,375,38,363,37,362,40,365,50,363,61,356,67,355,71,365,75,371,83,370,95,373,97,384,93,393,95,399,102,404,102,408,92,417,87,427,87,429,85,425,75,428,64,435,59,435,54,425,50,421,42,420,31,418,29,407,33,398,31,391,22" alt="DEC" href="energylegislation.aspx#Anchor3" />');
        document.write('<area shape="poly" coords="478,6,475,6,471,16,462,21,451,20,449,23,453,33,451,43,443,49,443,54,453,58,458,66,458,78,461,79,470,75,481,78,487,85,491,85,496,74,504,70,515,71,517,68,513,58,515,48,523,41,523,38,513,34,507,25,508,14,505,12,496,15,485,13,479,5" alt="EPC" href="energylegislation.aspx#Anchor2" />');
        document.write('<area shape="poly" coords="540,72,536,72,532,82,523,87,512,86,510,88,513,98,512,109,504,116,504,120,514,123,519,132,519,143,522,145,532,141,542,143,548,151,552,151,556,141,565,136,576,136,578,133,574,125,576,113,583,107,583,103,573,99,568,90,569,79,566,77,556,82,546,79,540,71" alt="CRC" href="energylegislation.aspx#Anchor4" />');
        document.write('<area shape="poly" coords="534,160,530,160,526,171,518,175,507,175,505,177,508,187,506,198,499,205,498,208,509,212,514,221,514,232,516,234,526,230,536,232,543,240,546,240,552,229,559,225,570,225,572,222,569,213,571,202,578,196,578,192,569,188,563,179,563,168,561,166,552,170,541,168,534,160" alt="ACI" href="energylegislation.aspx#Anchor1" />');
        document.write('<area shape="poly" coords="443,92,438,92,432,106,420,114,405,113,402,117,407,130,404,145,393,155,393,161,407,167,414,178,414,194,418,197,432,192,447,195,456,206,462,206,468,192,480,184,496,185,499,180,493,167,496,151,507,143,507,137,493,131,485,119,486,103,481,101,468,106,453,102,443,91" alt="Energy Legislation" href="EnergyLegislation.aspx" />');
        document.write('<area shape="poly" coords="309,109,301,110,293,130,275,140,253,140,249,145,256,165,252,186,236,200,237,208,257,216,267,233,267,256,272,260,292,252,313,257,327,273,335,272,344,251,360,241,383,242,387,236,379,215,384,196,400,182,399,173,379,165,368,148,369,126,363,122,343,130,323,125,309,109" alt="Energy Services" href="EnergyServices.aspx" />');
        document.write('<area shape="poly" coords="356,269,351,268,343,281,330,286,314,283,310,286,313,301,307,314,294,321,294,327,307,337,311,350,308,364,312,368,326,365,340,371,347,383,353,384,361,372,376,367,390,370,394,366,391,351,397,338,409,331,410,330,410,325,398,317,393,303,396,289,392,284,377,287,364,281,356,268" alt="Carbon Reduction" href="CarbonReduction.aspx" />');
        document.write('<area shape="poly" coords="258,261,254,261,248,269,239,273,229,270,226,272,228,282,223,292,215,297,214,301,224,308,227,317,224,327,227,330,238,327,247,332,251,340,256,341,261,332,272,328,280,331,284,329,282,320,286,309,295,304,295,300,287,295,283,285,286,275,284,272,273,274,263,269,258,261" alt="Energy Policies" href="CarbonReduction.aspx#Anchor2" />');
        document.write('<area shape="poly" coords="268,350,264,351,262,359,253,366,241,366,239,368,244,377,242,388,234,395,234,399,244,402,249,410,249,422,252,424,262,420,273,422,279,429,283,429,287,419,295,414,306,414,308,411,304,403,306,391,313,385,313,381,304,377,298,369,298,358,295,355,286,359,276,357,268,350" alt="M and T" href="CarbonReduction.aspx#Anchor4" />');
        document.write('<area shape="poly" coords="339,391,336,393,336,404,330,411,319,415,318,418,326,426,327,437,322,445,323,448,335,449,343,456,346,464,346,465,349,466,359,458,368,457,376,462,380,461,380,449,387,441,397,438,397,434,390,427,389,416,394,408,392,404,381,404,373,397,370,388,366,387,359,394,348,395,339,390" alt="Energy Managers" href="CarbonReduction.aspx#Anchor3" />');
        document.write('<area shape="poly" coords="408,359,405,361,407,371,403,381,394,386,394,390,402,395,406,406,404,415,406,418,417,416,426,421,431,429,435,430,441,421,451,418,460,420,464,418,462,407,466,398,475,393,475,389,466,383,463,373,465,363,462,360,452,362,442,358,438,349,433,349,428,357,418,361,408,358" alt="Energy Surveys" href="CarbonReduction.aspx#Anchor5" />');
        document.write('<area shape="poly" coords="450,269,447,268,442,277,432,281,422,279,419,282,422,292,418,302,410,307,410,311,418,316,422,327,421,336,423,338,432,336,443,340,448,349,453,348,458,339,467,336,477,338,480,335,478,325,481,315,490,310,490,305,482,301,477,291,479,281,476,278,467,280,456,277,451,268" alt="Staff Training" href="CarbonReduction.aspx#Anchor1" />');      
        document.write('</map>'); 
    }
}
