<!--

// 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/
                                     
// 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/
                                     
Article3 = 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 ///////////////////////////////////////////////////////////////////  

orientation3 = "horizontal"        // Orientation of scroller (Horizontal or vertical)
scrollerWidth3 = "600"             // Width of entire scroller.
scrollerHeight3 = "20"             // Height of Scroller.
borderWidth3 = 0                   // Width of border. (use 0 for no border).
borderColour3 = "#006600"          // Colour of scroller border. (Use either hexadecimal or text values. e.g. "#FF0000" or "Red") 
backColour3 = "#ffffff"              // Colour of scroller background. (Use either hexadecimal or text values. e.g. "#FF0000" or "Red") 
staticColour3 = "#39899b"          // Colour of scroller items that are NOT a link. (including scrollerDivider characters)
stopScroll3 = 1                    // Pause the scroller on mouseOver. (use 0 for no.)
textAlignment3="left"            // Alignment of each scroller item.  Only really makes a difference on vertical scroller
                                  // (center, left, right, justify)

// Scroller Links
linkFont3 = "verdana"                // Font of scroller links;
linkWeight3 = "bold"             // Weight of scroller links;
linkColour3 = "#39899b"            // Colour of scroller links
linkSize3 = "8"                   // Size of links (in points)
linkDecoration3 = "none"           // Decoration of links. (underline, overline, none)

// Scroller Links On MouseOver
slinkFont3 = "verdana"               // Font of scroller links;
slinkWeight3 = "bold"            // Weight of scroller links;
slinkColour3 = "#39899b"           // Colour of scroller links
slinkSize3 = "8"                  // Size of links (in points)
slinkDecoration3 = "underline"     // Decoration of links. (underline, overline, none)

scrollerDivider3 = "none" // 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.
*/
ns4Text3 = "Click Here to view confirmed speakers";  // Alternative text to display in Netscape 4.
ns4URL3 = "$template?lang=$lang&page=atte";            // URL of link in NS4. If no URL is required, enter "none"
ns4Target3 = "_top";                           // Frame target for link in NS4

////// 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;

style='<style type="text/css">';
style+='.p3{font-family:'+linkFont3+'; color:'+staticColour3+'; font-size:'+linkSize3+'pt; font-weight:'+linkWeight3+'; text-align:'+textAlignment3+'}';
//style+='a.rcScroller,a.rcScroller:active,a.rcScroller:visited{color:'+linkColour+';text-decoration:'+linkDecoration+'; font-weight:'+linkWeight+'}';
//style+='a.rcScroller:hover{color:'+slinkColour+';text-decoration:'+slinkDecoration+'; font-weight:'+slinkWeight+'}';
//style+='rcScrollerHoverNS{color:red;text-decoration:'+slinkDecoration+'; font-weight:'+slinkWeight+'}';
style+='<\/style>';
document.writeln(style);

// Build the scroller and place it on the page
function buildScroller3()
{
  if(isNS4){
    scroller='<table border="0" cellpadding="0" cellspacing="0" width="'+scrollerWidth3+'" bgcolor="'+borderColour3+'"><tr><td>'
    scroller+='<table border="0" cellpadding="3" cellspacing="1" width="100%" height="'+scrollerHeight3+'" bgcolor="'+backColour3+'"><tr><td align="center" nowrap><p class="p2">';
    if(ns4URL3.toLowerCase()!="none"){scroller+='<a href="'+ns4URL3+'" class="rcScroller" target="'+ns4Target3+'">'+ns4Text3+'</a>';}
    else{scroller+=ns4Text3;} 
    scroller+='</p></td></tr></table></td></tr></table>'   
  }else{
    scroller='<table border="0" cellpadding="0" cellspacing="0" style="width:'+scrollerWidth3+';height:'+scrollerHeight3+';border:'+borderWidth3+'px solid '+borderColour3+';background-color:'+backColour3+'">';
    scroller+='<tr valign="middle"><td><div id="div" style="';
    if(orientation3.toLowerCase()=="vertical"){scroller+='height:'+scrollerHeight3+';';}
    scroller+='width:'+scrollerWidth3+'; position:relative; background-color:'+backColour3+'; overflow:hidden">';
    scroller+='<div id="div3" style="position:relative; left:0; z-index:1">';
    scroller+='<table border="0" name="table3" id="table3"';
    if(orientation3.toLowerCase()=="vertical"){scroller+='style="width:'+scrollerWidth3+'"';}
    scroller+='><tr>';
    y3=0;
    while (y3<4)
    {
      for (x3=0; x3<(Article3.length); x3++)
      {
        if(orientation3.toLowerCase()=="vertical"){scroller+='<tr>';}
        scroller+='<td ';
        if(orientation3.toLowerCase()=="horizontal"){scroller+='nowrap';} if(stopScroll3==1){scroller+=' onMouseOver="stopScroller3();" onMouseOut="setWidth3()"';}
        scroller+='><p class="p3">';
        if(Article3[x3][1].toLowerCase()!="none"){scroller+='<a class="rcScroller" href="'+Article3[x3][1]+'" target="'+Article3[x3][2]+'" >'+Article3[x3][0]+'<\/a>';
        }else{scroller+=Article3[x3][0];}          
        scroller+='</p><\/td>';
        
        if(orientation3.toLowerCase()=="vertical"){scroller+='<\/tr>';}
              
        if(scrollerDivider3.toLowerCase() != "none"){scroller+='<td nowrap><p>'+scrollerDivider3+'<\/p><\/td>';}
      }
      y3++
    }
    scroller+='<\/tr><\/table><\/div><\/div><\/td><\/tr><\/table>';  
  }
  document.writeln(scroller);
}
// Ensure the width of the scroller is divisible by 2. This allows smooth flowing of the scrolled content
function setWidth3()
{ 
  tableObj3=(isIE)?document.all("table3"):document.getElementById("table3"); 
  obj3=(isIE)?document.all.div3:document.getElementById("div3");   
  objWidth3=(orientation3.toLowerCase()=="horizontal")?getOffset3(tableObj3,"width"):getOffset3(tableObj3,"height");
  HalfWidth3=Math.floor(objWidth3/2);
  newWidth3 = (HalfWidth3*2)+2;
  obj3.style.width=newWidth3
  moveLayer3(obj3, newWidth3);
  
}

// Move the layer by one pixel to the left
function moveLayer3(obj3, width3)
{
  
  maxLeft3 = (0-(width3/2)+2)/2
  if(orientation3.toLowerCase()=="horizontal"){
    obj3.style.left=(parseInt(obj3.style.left) <= maxLeft3)?0:parseInt(obj3.style.left)-1
  }else{
    if(obj3.style.top==""){obj3.style.top=0;}
   // alert(obj3.style.top)
    if (parseInt(obj3.style.top)<(0-(width3/2)+6)){
      obj3.style.top = 0
    }else{
      obj3.style.top = parseInt(obj3.style.top)-1
    }
  }
  timer3 = setTimeout ("moveLayer3(obj3, "+width3+");", 25); 
}

// Get width and height of layer
function getOffset3(obj3, dim3) 
{
  if(dim3=="width")
  {
    oWidth3 = obj3.offsetWidth
    return oWidth3
  }  
  else if(dim3=="height")
  {
    oHeight3 = obj3.offsetHeight
    return oHeight3
  }    
}

function stopScroller3()
{
  clearTimeout(timer3)  
}

function runScroller3(){
  if(!isNS4){setWidth3()}
}


//-->
