﻿var marqueewidth = "270px"
var marqueeheight = "378px"
var marqueespeed = 1
var initPause = 1000
var full = 1
var pauseit = 1
var iebreak = '<p style="text-align:center; font-size:12pt;">-------</p>'
var marqueecontent = '<ul id="newsList"><li><b>8/1/2008 - </b>Alaritas announces plans to embark on the creation of a SaaS solution for America\'s small & medium sized manufacturers.  <b>John Lurtz (CEO of Alaritas)</b> comments, "...Alaritas will develop a solution based on industry best practices from the Fortune 100...we will offer this software at a cost everyone can afford...we will work very hard to ensure the success of every Alaritas Customer."</li><p><br />' +
'</p><li><b>9/1/2009 - </b>Alaritas announces plans to release version 1.0 of the Alaritas SaaS software by the end of 2009.</li><p><br />' +
'</p><li><b>12/15/2009 - </b>Alaritas is proud to announce the official release of Alaritas SaaS version 1.0 <a href="http://www.alaritas.com/Demo.aspx" style="color: SteelBlue;">Request a Demo</a>.    <b>John Lurtz (CEO of Alaritas)</b> comments, "We are very excited...Alaritas SaaS is the software solution small & medium sized manufacturers have been looking for." </li><p><br />' +
'</p><li><b>12/25/2009 - </b>Alaritas launches <a href="http://www.alaritas.com" style="color: SteelBlue;">www.alaritas.com</a> in support of Alaritas SaaS v 1.0.  <b>Frank Griffith (Chairman of GHI)</b> comments, "I am proud to be a part of the Alaritas team and look forward to transforming the way manufacturers leverage software to improve their businesses."</li><p><br />' +
'</p><li><b>1/14/2010 - </b>Alaritas will expand marketing efforts through independent sales professionals.  <b>John Lurtz (CEO of Alaritas)</b> comments, “We feel the best way to introduce our SaaS solution to the market is through independent sales reps <a href="http://www.alaritas.com/Product.aspx" style="color: SteelBlue;">Solution Overview</a>.  It will be a natural move for them to present Alaritas software to manufacturing business owners.”</li></ul>';
var copyspeed = marqueespeed
var pausespeed = (pauseit == 0) ? copyspeed : 0
var iedom = document.all || document.getElementById
var actualheight = ''
var cross_marquee, cross_marquee2, ns_marquee

function populate() {
    if (iedom) {
        var lb = document.getElementById && !document.all ? '' : iebreak
        cross_marquee = document.getElementById ? document.getElementById("iemarquee") : document.all.iemarquee
        cross_marquee2 = document.getElementById ? document.getElementById("iemarquee2") : document.all.iemarquee2
        cross_marquee.style.top = (full == 1) ? '8px' : parseInt(marqueeheight) + 8 + "px"
        cross_marquee2.innerHTML = cross_marquee.innerHTML = marqueecontent + lb
        actualheight = cross_marquee.offsetHeight
        cross_marquee2.style.top = (parseInt(cross_marquee.style.top) + actualheight + 8) + "px" //indicates following #1
    }
    else if (document.layers) {
        ns_marquee = document.ns_marquee.document.ns_marquee2
        ns_marquee.top = parseInt(marqueeheight) + 8
        ns_marquee.document.write(marqueecontent)
        ns_marquee.document.close()
        actualheight = ns_marquee.document.height
    }
    setTimeout('lefttime=setInterval("scrollmarquee()",80)', initPause)
}
window.onload = populate

function scrollmarquee() {

    if (iedom) {
        if (parseInt(cross_marquee.style.top) < (actualheight * (-1) + 8))
            cross_marquee.style.top = (parseInt(cross_marquee2.style.top) + actualheight + 8) + "px"
        if (parseInt(cross_marquee2.style.top) < (actualheight * (-1) + 8))
            cross_marquee2.style.top = (parseInt(cross_marquee.style.top) + actualheight + 8) + "px"
        cross_marquee2.style.top = parseInt(cross_marquee2.style.top) - copyspeed + "px"
        cross_marquee.style.top = parseInt(cross_marquee.style.top) - copyspeed + "px"
    }

    else if (document.layers) {
        if (ns_marquee.top > (actualheight * (-1) + 8))
            ns_marquee.top -= copyspeed
        else
            ns_marquee.top = parseInt(marqueeheight) + 8
    }
}
