
/***********************************************
* Fading Scroller- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var delay01 = 4000; //set delay01 between message change (in miliseconds)
var maxsteps01=30; // number of steps to take to change from start color to endcolor01
var stepdelay01=40; // time in miliseconds of a single step
//**Note: maxsteps01*stepdelay01 will be total time in miliseconds of fading effect
var startcolor01= new Array(255,255,255); // start color (red, green, blue)
var endcolor01=new Array(102,153,51); // end color (red, green, blue)

var fcontent01=new Array();
begintag01='<div>'; //set opening tag, such as font declarations


fcontent01[0]="<a href='mediaroom/pressreleases/Concession.pdf' target='_blank' class=message02>Concession Agreement signed for JAIPUR-BHILWARA BOT ROAD PROJECT with Rajasthan Government in the presence of Hon'ble PWD Minister, Mr. Pramod Jain 'Bhaya'</a>";


fcontent01[1]="<a href='mediaroom/pressreleases/PressReleaseProjectInaugurationRamgarh14May_2010.doc' class=message02>Shri. Ashok Gehlot, Hon'ble Chief Minister of Rajasthan. inaugurates the Balance of Plant (BOP Pkg) for 160 MW Combined Cycle Power Project, Stage - III, Ramgarh, Jaisalmer, Rajasthan.</a>";


fcontent01[2]="<a href='mediaroom/pressreleases/PressReleaase_KalisindhCivilorkJhalawar_4May2010.doc' class=message02>SPML wins Rs. 457.2 crore order for the construction works of Kalisindh Gravity Dam in Jhalawar Dist., Rajasthan</a>";


fcontent01[3]="<a href='mediaroom/pressreleases/SubhashProjectsAndMarketingisnowSPMLInfraLimited_15April2010.doc' class=message02>Subhash Projects And Marketing is now SPML Infra Limited</a>";


fcontent01[4]="<a href='mediaroom/pressreleases/SPMLwinsorderworthRs6319crore_Orissa.doc' class=message02>SPML wins order worth Rs. 63.19 crore for ex-works services to Orissa Power Transmission Corporation Limited [OPTCL]</a>";


fcontent01[5]="<a href='mediaroom/pressreleases/SSPMLwinsorderworthRs220crore_PHEDGovtofBihar.doc' class=message02>SPML wins order worth Rs. 220 crore  - awarded by Public Health Engineering Dept., Government of Bihar</a>";

fcontent01[6]="<a href='mediaroom/pressreleases/SPMLwinprestigiousBOPorderworth_Rs210crore_RamgarhDis_Rajasthan31March2010.doc' class=message02>SPML wins a prestigious BOP order worth Rs. 210 crore at Ramgarh Dist, Rajasthan</a>";


fcontent01[7]="<a href='mediaroom/pressreleases/SPMLwinsordeRs250crore_23March2010.doc' class=message02>SPML wins a prestigious road infrastructure order of Rs. 250 crore  from Govt. of Rajasthan</a>";

fcontent01[8]="<a href='mediaroom/pressreleases/SPMLwinsorderworthRs440crore_JVforWaterSupplyProject.doc' class=message02>SPML wins order worth Rs 440 crore, in JV, for a Prestigious Water Supply Project</a>";

fcontent01[9]="<a href='mediaroom/pressreleases/SPMCalcuttaNGOs_Kolkata_3March2010_FinalVersion.doc' class=message02>SPML, in association with Calcutta NGOs hosts 'The Clean Connect',  for a clean and green Kolkata</a>";


fcontent01[10]="<a href='mediaroom/pressreleases/anilsethiaward_pacific2009.doc' class=message02>Mr. Anil Sethi, Chairman, SPML conferred Outstanding Entrepreneur Award - Asia Pacific - 2009, by Enterprise Asia</a>";


fcontent01[11]="<a href='mediaroom/pressreleases/SPML wins consolidated orders worth Rs 278 crore for water and sewage projects-Nov09.doc' class=message02>SPML wins consolidated orders worth Rs 278 crore for water & sewage projects</a>";

fcontent01[12]="<a href='mediaroom/pressreleases/spml_2009_cwaward.doc' class=message02> SPML conferred as the fastest emerging Infrastructure company (Large Category) for the year-2008-09, at the 7th Construction World Annual Awards 2009 presented by the chief guest Shri Kamal Nath, Hon'ble Union Minister for Road Transport and Highways.</a>";


fcontent01[13]="<a href='mediaroom/pressreleases/SPML_Newtwn_supaul.doc' class=message02> SPML wins consolidated orders worth Rs 151.79 crore from Bihar State Electricity Board and PHED, Govt. of West Bengal</a>";

fcontent01[14]="<a href='#' class=message02 onclick=window.open('http://www.spml.co.in/mediaroom/news46.htm','news','top=0,left=0,width=269,height=551,scrollbars=yes,toolbars=no')>SPML wins at ENERTIA AWARDS 2008 - India's Awards For Sustainable Energy & Power</a>";

fcontent01[15]="<a href='mediaroom/pressreleases/SPML secures Rs 526 crore order.pdf' target=_blank class=message02>SPML secures Rs.526 crore worth underground sewerage project for Mira Bhayandar, Maharashtra</a>";

fcontent01[16]="<a href='mediaroom/pressreleases/SPML wins consolidated order worthrs105.doc' class=message02>SPML wins consolidated order worth Rs. 105 crore from NTPC for Simhadri Super Thermal Power Project</a>";


fcontent01[17]="<a href='mediaroom/pressreleases/siww.pdf' target=_blank class=message02>SPML participated at the Singapore International Water Week; 23-25 June 2009.</a>";

fcontent01[18]="<a href='mediaroom/pressreleases/DWMintensive_awareness.doc' class=message02>DWM's intensive awareness programmes to accomplish MCD's door-to-door collection mandate for Commonwealth Games</a>";



closetag01='</div>';

var fwidth01='150px'; //set scroller width
var fheight=''; //set scroller height

var fadelinks01=1;  //should links inside scroller content also fade like text? 0 for no, 1 for yes.

///No need to edit below this line/////////////////


var ie401=document.all&&!document.getElementById;
var DOM201=document.getElementById;
var faderdelay01=0;
var index01=0;


/*Rafael Raposo edited function*/
//function to change content
function changecontent01(){
  if (index01>=fcontent01.length)
    index01=0
  if (DOM201){
    document.getElementById("fscroller01").style.color="rgb("+startcolor01[0]+", "+startcolor01[1]+", "+startcolor01[2]+")"
    document.getElementById("fscroller01").innerHTML=begintag01+fcontent01[index01]+closetag01
    if (fadelinks01)
      linkcolorchange01(1);
    colorfade01(1, 15);
  }
  else if (ie401)
    document.all.fscroller01.innerHTML=begintag01+fcontent01[index01]+closetag01;
  index01++
}

// colorfade01() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

function linkcolorchange01(step){
  var obj01=document.getElementById("fscroller01").getElementsByTagName("A");
  if (obj01.length>0){
    for (i=0;i<obj01.length;i++)
      obj01[i].style.color=getstepcolor01(step);
  }
}

/*Rafael Raposo edited function*/
var fadecounter01;
function colorfade01(step) {
  if(step<=maxsteps01) {	
    document.getElementById("fscroller01").style.color=getstepcolor01(step);
    if (fadelinks01)
      linkcolorchange01(step);
    step++;
    fadecounter01=setTimeout("colorfade01("+step+")",stepdelay01);
  }else{
    clearTimeout(fadecounter01);
    document.getElementById("fscroller01").style.color="rgb("+endcolor01[0]+", "+endcolor01[1]+", "+endcolor01[2]+")";
    setTimeout("changecontent01()", delay01);
	
  }   
}

/*Rafael Raposo's new function*/
function getstepcolor01(step) {
  var diff
  var newcolor=new Array(3);
  for(var i=0;i<3;i++) {
    diff = (startcolor01[i]-endcolor01[i]);
    if(diff > 0) {
      newcolor[i] = startcolor01[i]-(Math.round((diff/maxsteps01))*step);
    } else {
      newcolor[i] = startcolor01[i]+(Math.round((Math.abs(diff)/maxsteps01))*step);
    }
  }
  return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")");
}

if (ie401||DOM201)
  document.write('<div id="fscroller01" style="width:'+fwidth01+';height:'+fheight+'"></div>');

if (window.addEventListener)
window.addEventListener("load", changecontent01, false)
else if (window.attachEvent)
window.attachEvent("onload", changecontent01)
else if (document.getElementById)
window.onload=changecontent01
