// -----------------------------------------------------------
// script for Rotating Customer quotes
// -----------------------------------------------------------

var NSC4 = (document.layers) ? 1 : 0;
var IEX4 = (document.all) ? 1 : 0;

var arr = new Array();
arr[0] = "<font face='Verdana' size='1px' color='000000'>&quot;...your product looks exceptional in comparision to the competition. Your documentation is way ahead of the others. Yours integration with IDEs and modeling tools is impressive...&quot; &nbsp; - <b>Steve Newport</b>, Wideframe </font><br>";
arr[1] = "<font face='Verdana' size='1px' color='000000'>&quot;...appreciate your help and all the effort you have extended to me. One thing is accomplished for sure in this exercise, your product has gained my confidence to go forward with JDO.&quot; - <b>Senior Architect</b></font><br>";
arr[2] = "<font face='Verdana' size='1px' color='000000'>&quot;...many thanks for all your efforts and solutions. Everything is working fine now in WebSphere 5.0. I would like to meet you when I reach India in June.&quot; &nbsp;&nbsp; - <b>Amit Jeevan</b>, Aptronics Microsoft Solutions Engineer</font><br>";
arr[3] = "<font face='Verdana' size='1px' color='000000'>&quot;...I am extremely grateful for the useful support you and your team have provided so far and it is by far, above and beyond the normal support I had expected.&quot; &nbsp;- <b>Yoshia Makino</b>, Value Commerce </font><br>";
arr[4] = "<font face='Verdana' size='1px' color='000000'>&quot;...highly impressed with your quality application development efforts and the professionalism which you have showed us during our continued business relationship...&quot; - <b>Matt Monteleone</b>, Director, CMD Group </font>";

var numb = 0;

function startCQuotes() {
  setInterval("update()", 6000); //rotation interval in milli seconds
}

function update() {
  display("banner", arr[numb]);
  numb++;
  if (numb == arr.length) numb = 0;
}

function display(id, str) {
  if (NSC4) {
    with (document[id].document) {
      open();
      write(str);
      close();
    }
  }
}
// End script for rotating customer quotes


// -----------------------------------------------------------
//-- Begin script for "In the News" Scroller's Parameters 
// -----------------------------------------------------------

//scroller width: change to your own;
var swidth=200

//scroller height: change to your own;
var sheight=84

//background color: change to your own; 
var sbcolor="#E6E6E6"

//scroller's speed: change to your own;
var sspeed=1

var wholemessage=''

// Text content to be displayed
wholemessage=
'<div align="left" class=tab>&nbsp;</div>'+
'<div align="left" class="news">comdotEBO, Albergs own ERP solution to be implemented at Srinivasa Hatcheries</div>'+
'<div align="left" class=tab>&nbsp;</div>'+
'<div align="left" class="news">Alberg Software Inc ties up with Dr. Bhim Rao Ambedkar Open University (BRAOU) to provide multimedia based educational material.</div>'+
'<div align="left" class=tab>&nbsp;</div>'+
'<div align="left" class="news">Rural Bank Automation project for Tungabhadra Grameen Bank at Guntur taken up by Alberg.</div>'+
'<div align="left" class=tab>&nbsp;</div>'+
'<div align="left" class="news">Alberg Software Inc develops "Customer Information System" solution for Hindustan Lever Limited, Bangalore.</div>'+
'<div align="left" class=tab>&nbsp;</div>'+
'<div align="left" class="news">Albergs CRM and Procurement products attain "IBM Server Proven" certification.</div>'+
'<div align="left" class=tab>&nbsp;</div>'
//-- begin: Scroller's Algorithm -->

var resumesspeed=sspeed

function startScroller() {
    if (document.all) {
        iemarquee(slider);
    } else if (document.getElementById) {
        ns6marquee(document.getElementById('slider'));
    } else if(document.layers) {
        ns4marquee(document.slider1.document.slider2);
    }
}

function iemarquee(whichdiv) {
    iediv=eval(whichdiv)
    iediv.innerHTML=wholemessage 
    iediv.style.pixelTop=sheight
    sizeup=iediv.offsetHeight
    ieslide()
}

function ieslide(){
    if (iediv.style.pixelTop>=sizeup*(-1)) {
        iediv.style.pixelTop-=sspeed
        setTimeout("ieslide()",100)
    } else {
        iediv.style.pixelTop=sheight
        ieslide()
    }
}

function ns4marquee(whichlayer){
    ns4layer=eval(whichlayer)
    ns4layer.document.write(wholemessage)
    ns4layer.document.close()
    sizeup=ns4layer.document.height
    ns4layer.top-=sizeup
    ns4slide()
}

function ns4slide(){
    if (ns4layer.top>=sizeup*(-1)) {
        ns4layer.top-=sspeed
        setTimeout("ns4slide()",100)
    } else {
        ns4layer.top=sheight
        ns4slide()
    }
}

function ns6marquee(whichdiv) {
    sspeed=2
    ns6div=eval(whichdiv)
    ns6div.innerHTML=wholemessage
    ns6div.style.top=sheight
    sizeup=ns6div.offsetHeight
    ns6slide()
}

function ns6slide(){
    sspeed=2
    if (parseInt(ns6div.style.top)>=sizeup*(-1)) {
        ns6div.style.top=parseInt(ns6div.style.top)-sspeed
        setTimeout("ns6slide()",100)
    } else {
        ns6div.style.top=sheight
        ns6slide()
    }
}
//-- end Scroller's Algorithm -->
