function topnavInFunction(no){
    document.getElementById('dupdt'+no).style.display='block';
}
function topnavOutFunction(no){
    document.getElementById('dupdt'+no).style.display='none';
}

/**
 * 
 * Home page current events scroll script start
 *
 */
var temp=0,end_value=0;
var links_value=new Array();
function scroll(val){
   var ol_top=document.getElementById('inner').style.marginLeft;
   ol_top=ol_top.split('p');
   var new_ol_top=ol_top[0];
   var multiplier=1;
   switch(val){
    case '0':
       if(new_ol_top < 0)
       {
       multiplier=-new_ol_top/300;
       val='up';
       }
       break;
    case '-300':
        if(new_ol_top < -300)
        {
        multiplier=-(Number(new_ol_top)+300)/300;
        val='up';
        }
        if(new_ol_top > -300)
        {
        multiplier=(300+Number(new_ol_top))/300;
        val='down';
        }
        break;
    case '-600':
      
        if(new_ol_top < -600)
        {
        multiplier=-(Number(new_ol_top)+600)/300;
        val='up';
        }
        if(new_ol_top > -600)
        {
        multiplier=(600+Number(new_ol_top))/300;
        val='down';
        }
       
        break;
    case '-900':
        if(new_ol_top < -900)
        {
        multiplier=-(Number(new_ol_top)+900)/300;
        val='up';
        }
        if(new_ol_top > -900)
        {
        multiplier=(900+Number(new_ol_top))/300;
        val='down';
        }
      
        break;
    case '-1200':
       if(new_ol_top > -1200)
       {
       multiplier=(1200+Number(new_ol_top))/300;
       val='down';
       }
     break;
   }
 
   if(val=='up'){
        if(new_ol_top!=0){
            temp=new_ol_top;
            new_ol_top=Number(new_ol_top)+ 300*multiplier;
            end_value=new_ol_top;
            disable_all_links();
            increment();
        }
            
   }
  
   if(val=='down'){
        if(new_ol_top > -1200){
            
            temp=new_ol_top;
            new_ol_top=Number(new_ol_top) - 300*multiplier;
            end_value=new_ol_top;
            disable_all_links();
            decrement();
        }
    }
}

function increment()
{
   
    temp=Number(temp)+10;
    document.getElementById('inner').style.marginLeft=temp+'px';
    if(temp==end_value)
    {
    temp=0;
    end_value=0;
    enable_all_links();
    return;
    }
    setTimeout("increment()",10);
}


function decrement()
{
    
    temp=Number(temp)-10;
    document.getElementById('inner').style.marginLeft=temp+'px';
    if(temp==end_value)
    {
        temp=0;
        end_value=0;
        enable_all_links();
        return;
    }
    setTimeout("decrement()",10);
}



function disable_all_links(){
   
   var all_link=document.getElementById("outermost").getElementsByTagName("a");
   for(var i=0;i<all_link.length;i++){
        links_value[i]=all_link[i].onclick;
        all_link[i].onclick='';
        }     
}

function enable_all_links(){
   var all_link=document.getElementById("outermost").getElementsByTagName("a");
   for(var i=0;i<all_link.length;i++){
        all_link[i].onclick=links_value[i];
    }      
}

//Home page current events scroll script ends here.