<!--

// Use Freely as long as following disclaimer is intact ::
//---------------------------------------------------------------
// Cross Browser Multi-Directional Scroller v1.0 24th August 2004
// This script written by Rik Comery. www.ricom.co.uk
// For support, visit the "Resources" section at www.ricom.co.uk           
// All rights reserved.   
// Featured in the SimplytheBest DHTML Scripts Library at http://simplythebest.net/scripts/
                                     
Article2 = new Array;

/* DEFINE SCROLLER ELEMENTS
  Define new scroller elements here in the following format.
  Article[i] = new Array ("display text", "URL", "frame target to load link in");i++  
  Note: If you do not want the item to be a link, change the URL value to "none".
*/

////// SCROLLER CONFIGURATION ///////////////////////////////////////////////////////////////////  

orientation2 = "horizontal"        // Orientation of scroller (Horizontal or vertical)
scrollerWidth2 = "795"             // Width of entire scroller.
scrollerHeight2 = "24"             // Height of Scroller.
borderWidth2 = 0                   // Width of border. (use 0 for no border).
borderColour2 = "#006600"          // Colour of scroller border. (Use either hexadecimal or text values. e.g. "#FF0000" or "Red") 
backColour2 = "#eeeeee"              // Colour of scroller background. (Use either hexadecimal or text values. e.g. "#FF0000" or "Red") 
staticColour2 = "#39899b"          // Colour of scroller items that are NOT a link. (including scrollerDivider characters)
stopScroll2 = 1                    // Pause the scroller on mouseOver. (use 0 for no.)
textAlignment2="left"            // Alignment of each scroller item.  Only really makes a difference on vertical scroller
                                  // (center, left, right, justify)

// Scroller Links
linkFont2 = "arial"                // Font of scroller links;
linkWeight2 = "bold"             // Weight of scroller links;
linkColour2 = "#666666"            // Colour of scroller links
linkSize2 = "9"                   // Size of links (in points)
linkDecoration2 = "none"           // Decoration of links. (underline, overline, none)

// Scroller Links On MouseOver
slinkFont2 = "arial"               // Font of scroller links;
slinkWeight2 = "bold"            // Weight of scroller links;
slinkColour2 = "#666666"           // Colour of scroller links
slinkSize2 = "9"                  // Size of links (in points)
slinkDecoration2 = "underline"     // Decoration of links. (underline, overline, none)

scrollerDivider2 = "&nbsp;<img src='2011-graphics/divider.gif' alt='| ' border='0'>" // Character to place between each scroller item. 
                                  // <img> tags can be used if an image is required. 
                                  // Use "none" for nothing.  For Vertical scrollers, it is best to use "<br>"

/* 
  Because Netscape version 4 does not support this scroller, configure the values below so NS4 users do not see an error. 
  In the scroller's place will be a static title which can be a link if require.  The appearance of the static text (colour, scroller border etc)
  will be exactly the same as for the working version in other browsers.
*/
ns4Text2 = "Click Here to view confirmed speakers";  // Alternative text to display in Netscape 4.
ns4URL2 = "$template?lang=$lang&page=atte";            // URL of link in NS4. If no URL is required, enter "none"
ns4Target2 = "_top";                           // Frame target for link in NS4


style2='<style type="text/css">';
style2+='.p2{padding:0;border:0;margin:0;font-family:'+linkFont2+'; color:'+staticColour2+'; font-size:'+linkSize2+'pt; font-weight:'+linkWeight2+'; text-align:'+textAlignment2+'}';
style2+='a.rcScroller,a.rcScroller:active,a.rcScroller:visited{color:'+linkColour2+';text-decoration:'+linkDecoration2+'; font-weight:'+linkWeight2+'}';
style2+='a.rcScroller:hover{color:'+slinkColour2+';text-decoration:'+slinkDecoration2+'; font-weight:'+slinkWeight2+'}';
style2+='rcScrollerHoverNS{color:red;text-decoration:'+slinkDecoration2+'; font-weight:'+slinkWeight2+'}';
style2+='<\/style>';
document.writeln(style2);

////// DO NOT EDIT BELOW THIS LINE  ///////////////////////////////////////////////////////////////////

//Browser Sniffer
var isIE = (document.getElementById && document.all)?true:false;
var isNS4 = (document.layers)?true:false;
var isNS6 = (document.getElementById && !document.all)?true:false;


// Build the scroller and place it on the page
function buildScroller2()
{
  if(isNS4){
    scroller2='<table border="0" cellpadding="0" cellspacing="0" width="'+scrollerWidth2+'" bgcolor="'+borderColour2+'"><tr><td>'
    scroller2+='<table border="0" cellpadding="0" cellspacing="0" width="100%" height="'+scrollerHeight2+'" bgcolor="'+backColour2+'"><tr><td align="center" nowrap><span class="p2">';
    if(ns4URL2.toLowerCase()!="none"){scroller2+='<a href="'+ns4URL2+'" class="rcScroller" target="'+ns4Target2+'">'+ns4Text2+'</a>';}
    else{scroller2+=ns4Text2;} 
    scroller2+='</span></td></tr></table></td></tr></table>'   
  }else{
    scroller2='<table border="0" cellpadding="0" cellspacing="0" style="width:'+scrollerWidth2+';height:'+scrollerHeight2+';border:'+borderWidth2+'px solid '+borderColour2+';background-color:'+backColour2+'">';
    scroller2+='<tr valign="middle"><td><div id="div" style="';
    if(orientation2.toLowerCase()=="vertical"){scroller2+='height:'+scrollerHeight2+';';}
    scroller2+='width:'+scrollerWidth2+'; position:relative; background-color:'+backColour2+'; overflow:hidden">';
    scroller2+='<div id="div2" style="position:relative; left:0; z-index:1">';
    scroller2+='<table border="0" name="table2" id="table2"';
    if(orientation2.toLowerCase()=="vertical"){scroller2+='style="width:'+scrollerWidth2+'"';}
    scroller2+='><tr>';
    y2=0;
    while (y2<4)
    {
      for (x2=0; x2<(Article2.length); x2++)
      {
        if(orientation2.toLowerCase()=="vertical"){scroller2+='<tr>';}
        scroller2+='<td ';
        if(orientation2.toLowerCase()=="horizontal"){scroller2+='nowrap';} if(stopScroll2==1){scroller2+=' onMouseOver="stopScroller2();" onMouseOut="setWidth2()"';}
        scroller2+='><span class="p2">';
        if(Article2[x2][1].toLowerCase()!="none"){scroller2+='<a class="rcScroller" href="'+Article2[x2][1]+'" target="'+Article2[x2][2]+'" >'+Article2[x2][0]+'<\/a>';
        }else{scroller2+=Article2[x2][0];}          
        scroller2+='</span><\/td>';
        
        if(orientation2.toLowerCase()=="vertical"){scroller2+='<\/tr>';}
              
        if(scrollerDivider2.toLowerCase() != "none"){scroller2+='<td nowrap><span>'+scrollerDivider2+'<\/span><\/td>';}
      }
      y2++
    }
    scroller2+='<\/tr><\/table><\/div><\/div><\/td><\/tr><\/table>';  
  }
  document.writeln(scroller2);
}
// Ensure the width of the scroller is divisible by 2. This allows smooth flowing of the scrolled content
function setWidth2()
{ 
  tableObj2=(isIE)?document.all("table2"):document.getElementById("table2"); 
  obj2=(isIE)?document.all.div2:document.getElementById("div2");   
  objWidth2=(orientation2.toLowerCase()=="horizontal")?getOffset2(tableObj2,"width"):getOffset2(tableObj2,"height");
  HalfWidth2=Math.floor(objWidth2/2);
  newWidth2 = (HalfWidth2*2)+2;
  obj2.style.width=newWidth2
  moveLayer2(obj2, newWidth2);
  
}

// Move the layer by one pixel to the left
function moveLayer2(obj2, width2)
{
  
  maxLeft2 = (0-(width2/2)+2)/2
  if(orientation2.toLowerCase()=="horizontal"){
    obj2.style.left=(parseInt(obj2.style.left) <= maxLeft2)?0:parseInt(obj2.style.left)-1
  }else{
    if(obj2.style.top==""){obj2.style.top=0;}
   // alert(obj2.style.top)
    if (parseInt(obj2.style.top)<(0-(width2/2)+6)){
      obj2.style.top = 0
    }else{
      obj2.style.top = parseInt(obj2.style.top)-1
    }
  }
  timer2 = setTimeout ("moveLayer2(obj2, "+width2+");", 25); 
}

// Get width and height of layer
function getOffset2(obj2, dim2) 
{
  if(dim2=="width")
  {
    oWidth2 = obj2.offsetWidth
    return oWidth2
  }  
  else if(dim2=="height")
  {
    oHeight2 = obj2.offsetHeight
    return oHeight2
  }    
}

function stopScroller2()
{
  clearTimeout(timer2)  
}

function runScroller2(){
  if(!isNS4){setWidth2()}
}

//-->


