
var marqueewidth="630px"
var marqueeheight="125px"
var marqueespeed=2
var marqueebgcolor=""
var pauseit=1
var marqueecontent='<nobr></nobr>'
marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById

var actualwidth=''
var cross_marquee, ns_marquee
if (iedom)document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>')



function populate()
{
var marqueecontent=html;
	if (iedom)
	{
		cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
		cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
		cross_marquee.innerHTML=marqueecontent
		var length=len+6;
		
		actualwidth=100*length;
	}
	else if (document.layers)
	{
		ns_marquee=document.ns_marquee.document.ns_marquee2
		ns_marquee.left=parseInt(marqueewidth)+8
		ns_marquee.document.write(marqueecontent)
		ns_marquee.document.close()
		actualwidth=ns_marquee.document.width
	}
	lefttime=setInterval("scrollmarquee()",20)
}


function scrollmarquee()
{
	if (iedom)
	{
	if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8))cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"
	else cross_marquee.style.left=parseInt(marqueewidth)+8+"px"

	}
	else if (document.layers)
	{
		if (ns_marquee.left>(actualwidth*(-1)+8))
			ns_marquee.left-=copyspeed
		else
			ns_marquee.left=parseInt(marqueewidth)+8
	}
}




//some code for scroller

function changeswf(abs, rel)
{

var flash = document.getElementById("flashTd");

currentSwf=rel;

replaceText(flash , currentSwf,finallodervalue, absloadervalue);


adjustPreviousNext(abs);

}



function adjustPreviousNext(abs)
{
currentFilename=abs;
var finalloader="";
var absloader="";
var swfpath ="";
flageMatch= false;
 previousval= new Array();
 nextval= new Array();
 
 

  
  	var response = xmlhttp.responseXML.documentElement;
  	x=response.getElementsByTagName("swf")
  	
  	 	
  	
  	finalloader=x[0].getElementsByTagName("finalloader");
	absloader=x[0].getElementsByTagName("absloader");
	
	 finallodervalue =finalloader[0].firstChild.data;
 	 absloadervalue=absloader[0].firstChild.data;
 	

  	for (i=0;i<x.length;i++)
  	{
  		

       	xx=x[i].getElementsByTagName("relativePath");
       	currentAbsPath=x[i].getElementsByTagName("absolutePath");
      
      {
      try
        {
 						
 			swfpath =currentAbsPath[0].firstChild.data;
 			curSwfPath=xx[0].firstChild.data;
      		
      		if(flageMatch== true){nextval.push(curSwfPath);}
			if(swfpath == currentFilename){flageMatch= true; currentSwf=curSwfPath; }
  			if(flageMatch== false){previousval.push(curSwfPath);}
  	   
        }
      catch (er)
        {
       
        }
    }
   }//for loop ending
  	  
  	  
  	 


  	 
     if(nextval.length > 0){shownext('block');}
	 if(previousval.length > 0){showprevious('block');}    
     if(nextval.length==0){shownext('none');}
     previoustLen=previousval.length;
     if(previoustLen==0){showprevious('none');}

 


	
 
}


