/* //The Original Parameters
var scObj1 = new scrollObject("scObj1", "sMain", 180, 120, "transparent", "up", 1.35, 2.7, 30, 3500, "scrollClass"); //End of Original Parameters*/
var scObj1 = new scrollObject("scObj1", "sMain", 178, 120, "#ddeeff", "up", 2, .5, 100, 3900, "scrollClass");
scObj1.block[0] = "<strong><a href=\"\pdf/NABExhibitorPass_2010.pdf\" target=\"_blank\"\>Free NAB Pass!</a></strong><br>April 10-15th, Las Vegas";
scObj1.block[1] = "<strong><a href=\"\pdf/RhodeSchwarzPressRelease_10-22-2009.pdf\" target=\"_blank\"\>Moseley Collaborates<br/> with Rhode &amp; Schwarz/CRC</a><br> </strong>On New SFN";
scObj1.block[2] = "<strong><a href=\"\pdf/RadioMag_MoseleyEvent_1-09.pdf\" target=\"_blank\"\>Event 5800<br>Field Report</a></strong><br>Reprinted from Radio Magazine";
scObj1.block[3] = "<strong><a href=\"\pdf/Moseley_event_release_9_08.pdf\" target=\"_blank\"\>Moseley's Event 5800 Carries More Payload</a></strong><br>Gap West Broadcasting Replaces 6 Units with 1 Event 5800";
/*scObj1.block[2] = "<strong><a href=\"\pdf/Moseley_Dayton_Hamfest_08_wrap.pdf\" target=\"_blank\"\>Moseley CQs Radio Amateurs</a></strong>";
scObj1.block[3] = "<strong><a href=\"\pdf/Moseley_Roanoke_wrap.pdf\" target=\"_blank\"\>Moseley Supports Roanoke Expo";
scObj1.block[2] = "<strong><a href=\"\pdf/MoseleyLABS09release.pdf\" target=\"_blank\"\>Moseley to Demonstrate Digital STL at Latin American Broadcast Show '09";
*/
scObj1.block[4] = "<strong><a href=\"\pdf/EntercomPicksMoseleyForHDRollout.pdf\" target=\"_blank\"\>Entercom Picks Moseley for HD Rollout</a></strong><br>Reprinted from Radio World Magazine";





   
/* Old News
scObj1.block[4] = "<strong><a href=\"\service_bulletin/starlink_9003q_service_bulletin_061107.pdf\"\ target=\"\_blank\"\>Field Service Bulletin - OCXO issue</a></strong><br>Field Service Bulletin issued June 11, 2007<br>";
scObj1.block[3] = "<strong><a href=\"\starlink_t1_faq.html\"\>Starlink SL9003T1 FAQ's updated</a></strong><br>New information added August 23, 2006.";
scObj1.block[4] = "<strong><a href=\"\starlink_q_faq.html\"\>Starlink SL9003Q FAQ's updated</a></strong><br>Updated August 23, 2006.";

scObj1.block[4] = "<strong><a href=\"\narticles_main.html\"\>In the News</a></strong><br>Moseley in the news. - Latest Articles";

scObj1.block[2] = "<strong><a href=\"\http://nabshow.com/exhibitfloor.php\"\>January 8, 2007</a></strong><br>Moseley Associates to participate in the 2007 NAB Show April 14-19 2007 Booth #N7711.";
scObj1.block[0] = "<strong><a href=\"\nnews_070506.html\"\>July 5, 2006</a></strong><br>Moseley Associates to participate in the 2006 C4 Sports Convention. <strong><a href=\"\nnews_070506.html\"\>Get a complimentary VIP Pass</a></strong>";
scObj1.block[3] = "<strong><a href=\"\nnews_081905.html\"\>August 19, 2005</a></strong><br>Moseley Adds East Coast Video Sales Office.";
scObj1.block[3] = "<strong><a href=\"\nnews_071405.html\"\>July 14, 2005</a></strong><br>Moseley STL Goes International.";
*/
/*
scObj1.block[5] = "Extra for scalability";
scObj1.block[6] = "Extra2 for scalability";
*/
function scrollObject(objName, main, width, height, bkgcol, direct, deccel, begin, speed, pause, classname) {
  this.objName = objName;
  this.main = main;
  this.one = main + "Block1";
  this.two = main + "Block2";
  this.block = new Array();
  this.blockup = 1;
  this.divup = 1;
  this.height = height;
  this.width = width;
  this.bkgcol = bkgcol;
  this.direct = direct;
  this.deccel = Math.max(deccel, 1);
  this.begin = Math.max(Math.min(begin, (direct == "up" || direct == "down") ? height : width), 1);
  this.speed = speed;
  this.pause = pause;
  this.slide = ((direct == "up" || direct == "down") ? height : width) / this.begin;
  this.table = "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td class=\"" + classname + "\" style=\"width:" + width + "px;height:" + height + "px;\">";
  this.scroll = scroll;
  this.scrollLoop = scrollLoop;
}

function scroll() {if (!document.getElementById) return false;
  document.getElementById(this.main).innerHTML = "<div id=\"" + this.one + "\"></div><div id=\"" + this.two + "\"></div>";
  var divList = [document.getElementById(this.main), document.getElementById(this.one), document.getElementById(this.two)];
  for (var i = 0; i <= 2; i++) {
    if (i > 0) {
      divList[i].style.position = "absolute";
      if (this.direct == "up" || this.direct == "down") {
        divList[i].style.left = "0px";
        divList[i].style.top = (i == 1) ? "0px" : ((this.direct == "up") ? "" : "-") + this.height + "px";
      } else {
        divList[i].style.left = (i == 1) ? "0px" : ((this.direct == "left") ? "" : "-") + this.width + "px";
        divList[i].style.top = "0px";
      } divList[i].innerHTML = this.table + this.block[i - 1] + "</td></tr></table>";
    } else {
      divList[i].style.position = "relative";
      divList[i].style.background = this.bkgcol;
    }
    divList[i].style.width = this.width + "px";
    divList[i].style.height = this.height + "px";
    divList[i].style.overflow = "hidden";
  } setTimeout(this.objName + ".scrollLoop();", this.pause);
}

function scrollLoop() {
  var divList = [document.getElementById(this.main), document.getElementById(this.one), document.getElementById(this.two)];
  this.slide = Math.max(this.slide / this.deccel, 1);
  var slideInc = (this.direct == "up" || this.direct == "left") ? -parseInt(this.slide) : parseInt(this.slide);
  if ((this.direct == "up" && Math.max(parseInt(divList[1].style.top) + slideInc, parseInt(divList[2].style.top) + slideInc) <= 0) ||
      (this.direct == "down" && Math.min(parseInt(divList[1].style.top) + slideInc, parseInt(divList[2].style.top) + slideInc) >= 0) ||
      (this.direct == "left" && Math.max(parseInt(divList[1].style.left) + slideInc, parseInt(divList[2].style.left) + slideInc) <= 0) ||
      (this.direct == "right" && Math.min(parseInt(divList[1].style.left) + slideInc, parseInt(divList[2].style.left) + slideInc) >= 0)) {
    this.slide = ((this.direct == "up" || this.direct == "down") ? this.height : this.width) / this.begin;
    if (++this.blockup >= this.block.length) this.blockup = 0;
    this.divup = (this.divup == 1) ? 2 : 1;
    if (this.direct == "up" || this.direct == "down") {
      divList[3 - this.divup].style.top = ((this.direct == "down") ? "-" : "") + this.height + "px";
      divList[this.divup].style.top = "0px";
    } else {
      divList[3 - this.divup].style.left = ((this.direct == "right") ? "-" : "") + this.width + "px";
      divList[this.divup].style.left = "0px";
    } divList[3 - this.divup].innerHTML = this.table + this.block[this.blockup] + "</td></tr></table>";
    setTimeout(this.objName + ".scrollLoop();", this.pause);
  } else {
    for (var j = 1; j <= 2; j++) {
      if (this.direct == "up" || this.direct == "down") {
        divList[j].style.top = (parseInt(divList[j].style.top) + slideInc) + "px";
      } else divList[j].style.left = (parseInt(divList[j].style.left) + slideInc) + "px";
    } setTimeout(this.objName + ".scrollLoop();", this.speed);
  }
}