var gopage = "index.html"

function sb(n,y)
	{
		{
    	 if (document.getElementById)
          {
         var button = document.getElementById("b"+n);
          button.style.backgroundPosition="0px "+y+"px";
       
          }
     	}
	}



function doBlur(n)
     {
      if (navigator.userAgent.indexOf("MSIE")!=-1)
           {
           n.blur();
           }
     }
     
     
     
function rotate(k,d)
    {
    
    {
    if (document.getElementById)
          {
         y=108-(k*108);
         var knob = document.getElementById("rotary");
          knob.style.backgroundPosition="0px "+y+"px";
          yy=0-(d*108);
          var dot = document.getElementById("rotarydots");
          dot.style.backgroundPosition="0px "+yy+"px";
          
       	doLines(d);
		}
         
     	}
    }
    
    
    
function  writeLinks()
	{
	var d=thepage;
	var thelinks='<a href="'+links[eval(d-1)]+'"><img src="images/clear.gif" alt="" width="150" height="12" /></a><br><a href="'+links[eval(d)]+'"><img src="images/clear.gif" alt="" width="150" height="12" /></a><br><a href="'+links[eval(d+1)]+'"><img src="images/clear.gif" alt="" width="150" height="12" /></a>';
	return thelinks;
	}
   
    
    
function doLines(d)
		{
		
		var l=lcd.length;
		
		
    	if(d<l-1  && d>0)
			{
		gopage=links[d];
		
		
		var hasInnerText = (document.getElementsByTagName("body")[0].innerText != undefined) ? true : false;
		var elem1 = document.getElementById('line1');
		var elem2 = document.getElementById ('line2');
		var elem3 = document.getElementById ('line3');
	

		if(!hasInnerText)
			{
		   	elem1.textContent = lcd[eval(d-1)];
		   	elem2.textContent = lcd[d];
		   	elem3.textContent = lcd[eval(d+1)];
			} 
		else
			{
		   	elem1.innerText = lcd[eval(d-1)];
		   	elem2.innerText = lcd[d];
		   	elem3.innerText = lcd[eval(d+1)];
			}
		}
	}

    
    
function docursor(y)
	{
		{
    	 if (document.getElementById)
          {
         var curs = document.getElementById("thecursor");
          curs.style.backgroundPosition="0px "+y+"px";
          if(y==-72)
          {
          //alert("Go to page "+gopage);//
          document.location=gopage;
          }
       	}
     	}
	}

function nothing()
	{
	}
    
    

