

/* ********************************************************************************** 
    * This code was created by Jim Young of www.requestcode.com .                *
    * You may use this code at no charge.  All I ask is that you give me             *
    * credit.  Please visit my site for more scripts like this one.                          *
    **********************************************************************************
    Enter your links or text in the array below that you want to scroll.  Mak sure that you use single quotes within 
    the double quotes 
*/
var msg=new Array()

// msg[0]="<A HREF='more.htm'>New guidance to the Building Regulations – Conservation of Energy</a><br>Technical Paper No 17 has been prepared by the Metal Cladding &amp; Roofing Manufacturers Association Limited (MCRMA) and Engineered Panels in Construction Limited (EPIC) as a guide to good practice and construction for the use of metal roof and wall cladding to comply with the following parts of the revised Building Regulations – Conservation of Energy...		<A HREF='more.htm'>read more</A>"

// msg[1]="<A HREF='more.htm'>Best Practice for the Specification of Cladding and Secondary Steelwork</a><br>This publication presents guidance to designers and contractors on the specification and installation of profiled metal cladding systems and the supporting purlins and side rails. Built-up cladding systems and insulated panels are both considered...		<A HREF='more.htm'>read more</A>"
// msg[2]="<A HREF='more.htm'>Update to MCRMA/EPIC Technical Paper No 17</a><br>The current version of National Calculation Methodology for determining the CO2 emissions using BRE iSBEM method has been updated to v2.0.c. The key changes are identified in...		<A HREF='more.htm'>read more</A>"

// msg[3]="<A HREF='more.htm'>Metal Matters - Summer 2008 </a><br>The Metal Matters journal is intended to keep you informed about the latest developments in the use of metal in the construction of building envelopes. The environmental and sustainable benefits of metal, together with developments in colour and form are now recognised by clients, designers and engineers alike and has led to a much wider use of metal in construction...		<A HREF='more.htm'>read more</A>"


//msg[0]="<a href='http://www.steadmans.co.uk' target='_blank'>Steadmans expands sales team</a><br>Roofing, cladding and structural products company Steadmans has expanded its sales team in the UK and Ireland by appointing a business development manager and three area sales managers whilst simultaneously creating dedicated account teams to enhance customer service levels... to read more, <a href='http://www.steadmans.co.uk' target='_blank'>click here</a>"
//msg[1]="<a href='http://www.kalzip.com/kalzip/uk/home/default.aspx?lang=uk' target='_blank'>Ingenious new facade system</a><br>The new bi-directional Kalzip FC Facade System is stylish, non-penetrative and extremely cost effective.  Installed on vertically fixed modular click rails, each lightweight panel is simply hooked at the top and then clicked into place at the bottom.  Kalzip FC Facade's innovative bi-directional installation capability allows flexible project scheduling... to read more, <a href='http://www.kalzip.com/kalzip/uk/home/default.aspx?lang=uk' target='_blank'>click here</a>"
//msg[2]="<a href='http://www.communities.gov.uk/planningandbuilding/buildingregulations' target='_blank'>Building Regulations consultation</a><br>The Department of Communities and Local Government has published proposals on changes to Part L (Conservation of Fuel and Power) and Part F (Means of Ventilation) that are planned to come into force in 2010.  Deadline for responses to the consultation is 17th September 2009... to read more, <a href='http://www.communities.gov.uk/planningandbuilding/buildingregulations' target='_blank'>click here</a>"
//msg[3]="<a href='http://www.colorcoat-online.com/en' target='_blank'>Exclusive agreement for Colorcoat Prisma</a><br>Corus Colors has signed an exclusive agreement with European fireproof facade manufacturer, Trimo, to provide its Colorcoat Prisma product for use on the new modular facade system Qbiss... to read more, <a href='http://www.colorcoat-online.com/en' target='_blank'>click here</a>"

msg[0]="The Summer 2010 issue of Metal Matters is now available and features a range of projects by MCRMA members as well as an article on the growing popularity of green roofs.  <a href='pdf/metal_matters5.pdf' target='_blank'>Click here to download your copy</a>."
msg[1]="New Approved Documents Now Online<br><br>Approved Documents Part J, Part F and Part L are now available for download from <a href='http://www.planningportal.gov.uk' target='_blank'>www.planningportal.gov.uk</a>"
msg[2]="New Colour Selector From Steadmans<br><br>Steadmans has released a new colour selector illustrating its 200LG range of over 30 colour options available on its metal roof and wall profiles and composite panels. The new A4 booklet provides performance and specification details of 200LG plus thumbnails of the full range of colours available.<br>For further information visit <a href='http://www.steadmans.co.uk' target='_blank'>www.steadmans.co.uk</a>."
msg[3]="SFS Intec Web TV<br><br>SFS has launched SFS intec web TV making it quick and easy to watch installation training and airtightness video podcasts.  SFS has also included the scripts for the installation podcasts so that the technical details can be read and printed out.<br>To find out more visit <a href='http://www.sfsintec.biz/uk' target='_blank'>www.sfsintec.biz/uk</a>"
msg[4]="New MCRMA Projects - <br><ul><li><a href='examples/example19.htm'>Roofing Solution For New Resource Centre</a></li><br><li><a href='examples/example20.htm'>UK’s Largest BSF School</a></li><br><li><a href='examples/example21.htm'>Big Yellow Storage</a></li><br><li><a href='examples/example22.htm'>New Cladding Serves An Ace For Leisure Centre</a></li><br><li><a href='examples/example23.htm'>Landmark Roof Rolls Into Place</a></ul>"
msg[5]="MCRMA has produced a series of best practice data sheets designed to advise contractors of the best ways of handling decking materials on site taking into account both product and health and safety considerations.<br><br>The data sheets give guidance on material loading out and packing; system edge protection; concrete pouring onto steel floor decking and propping steel floor decking.  The data sheets can be downloaded from the <a href='floordeck/floordeck.htm'>MCRMA Floor/Deck Group</a> section of the web site"


// msg.sort( randOrd );


/* The variables below are the ones you want to change  */

speed=75                    // Sets the speed in milliseconds at which the link or text scrolls.
var divwidth=205            // Setswidth of the div or layer in pixels.  You will have to play with this to get it set correctly.
var divheight=262            // Sets the height of the div or layer in pixels.  Same as above.

/*
   The variables divincbt, divinctb, divincrl and divinclr set the increment in pixels that the div that contains the text
    or links is moved.  Which one is used is determined by the direction that you pick in the variable whichscroll.
    The variable divinctb would be used if you set whichscroll to 1, divinctb if you set whichscroll to 2, divincrl if
     you set whichscroll to 3 and divinclr if you set whichscroll to 4.  You can change these variables to speed up
     or slow down the movement of the scroll.
*/

var divincbt=1                 
var divinctb=-1
var divincrl=10
var divinclr=-10

var divpause=3000        // Sets how long to pause in milliseconds before scrolling the next link or text. 

var divtop="31"              // divtop and divleft set the top and left positions of the container div or layer in pixels. 
var divleft="688"               

var divcolor="#F4F0EA"      // Sets the background color of the div or layer
    divcolor=""      	// TRANSPARENT???

var divname1="scroll2"  // Sets the name of your div or layer for the first link or text that is displayed
var divname2="scroll3"  // Sets the name of your div or layer for the next link or text to be displayed

/*
   The variable whichscroll is used to set the direction of the scrolling.  It is currently set to 1.
    1 = Bottom to Top
    2 = Top to Bottom
    3 = Right to Left
    4 = Left to Right
*/
var whichscroll="1"

/* END OF CONFIGURATION VARIABLES */

/* THERE IS NO NEED TO CHANGE THE VARIABLES OR SCRIPTS BELOW */

var divinc
var stopposa
var stopposb
var scrollmsga
var scrollmsgb 
var thediva
var thedivb
var posa
var posb
var i=msg.length
var firsttime="y"
var divprop
var whichdiv=divname1
if(whichscroll=="1")
  {
   stopposa=0
   stopposb=divheight*-1
   divprop="top"
   divinc=divincbt
  }
if(whichscroll=="2")
  {
   stopposa=0
   stopposb=divheight
   divprop="top"
   divinc=divinctb
  }
if(whichscroll=="3")
  {
   stopposa=0
   stopposb=divwidth*-1
   divprop="left"
   divinc=divincrl
  }
if(whichscroll=="4")
  {
   stopposa=1
   stopposb=divwidth+2
   divprop="left"
   divinc=divinclr
  }

function Scrollboxa(obja)
     {
// alert("scroll a");
         savobja=obja
         posa=posa-divinc
         if(((whichscroll=="1" || whichscroll=="3")&&(posa<=stopposa))||
           ((whichscroll=="2" || whichscroll=="4")&&(posa>=stopposa)))
           {
            clearTimeout(scrollmsga)
            setTimeout("scrollit()",divpause)
           } 
         else
             {
              if(document.getElementById) // IE5 and NS6
                {
                 eval("elma.style."+divprop+"=posa")
                 elma.style.visibility="visible"
                }
              if(document.layers)    // NS4+
                {
                 eval("obja."+divprop+"=posa")
                 document.main.visibility="show"
                }
              scrollmsga=setTimeout("Scrollboxa(savobja)",speed)
             }
     }
function Scrollboxb(objb)
     {
// alert("scroll B");		 
         savobjb=objb
         posb=posb-divinc
         if(((whichscroll=="1" || whichscroll=="3")&&(posb<=stopposb))||
            ((whichscroll=="2" || whichscroll=="4")&&(posb>=stopposb)))
           {
            clearTimeout(scrollmsgb)
           }
         else
              {
               if(document.getElementById) // IE5 and NS6
                 {
                  eval("elmb.style."+divprop+"=posb")
                 }
               if(document.layers)  // NS4+
                 {
                  eval("objb."+divprop+"=posb")
                  objb.visibility="show"
                 }
               scrollmsgb=setTimeout("Scrollboxb(savobjb)",speed)
              }
     }
function scrollit()
   {

    i++
    if(i>=msg.length)
      {i=0}
    posa=stopposb*-1
    posb=0
    if(firsttime=="y")
      {
       firsttime= "n"
       if(document.getElementById)      // IE5 and NS6
         {
          elma=document.getElementById(divname1)
          elma.innerHTML=msg[i]
         }
      if(document.layers)   // NS4+
        {
         thediva=eval("document.main.document."+divname1)
         thediva.document.write(msg[i])
         thediva.document.close()
        }
//       runSlideShow() // added to synchronise image scrolling
        
       Scrollboxa(thediva)
      }
    else
      {
       if(whichdiv==divname1)
         {
          if(document.getElementById)  // IE5 and NS6
            {
             elmb=document.getElementById(divname1)
             elma=document.getElementById(divname2)
             elma.innerHTML=msg[i]
            }
          if(document.layers)  //  NS4+
            {
             thedivb=eval("document.main.document."+divname1)
             thediva=eval("document.main.document."+divname2)  
             thediva.document.write(msg[i])
             thediva.document.close()
            }
            
//          runSlideShow() // added to synchronise image scrolling            
            
          Scrollboxb(thedivb)
          whichdiv=divname2
          Scrollboxa(thediva)
         }
       else
         {
          if(document.getElementById)   // IE5 and NS6
            {
             elmb=document.getElementById(divname2)
             elma=document.getElementById(divname1)
             elma.innerHTML=msg[i]
             }
          if(document.layers)  // NS4+
            {
             thedivb=eval("document.main.document."+divname2)
             thediva=eval("document.main.document."+divname1)
             thediva.document.write(msg[i])
             thediva.document.close()
             }
             
//          runSlideShow() // added to synchronise image scrolling            
             
          Scrollboxb(thedivb)
          whichdiv=divname1
          Scrollboxa(thediva)
         }
      }
  }
  
  function randOrd(){
return (Math.round(Math.random())-0.5); }

//***********************************************************//

//function runSlideShow(){
// do NOTHING on ALL pages other than INDEX - it loads custom slideshow.js file.
//}