//function swapPic()
     //{  if(document.getElementById)
            //{ var thePicture=document.getElementById("header");
              //var picPath="images/img"+rnd(2)+".jpg";
              //thePicture.style.backgroundImage="url("+picPath+")";
            //}
    // } 
	 
	 //-- Begin Scroller's Parameters and messages -->
//scroller's width
var swidth=400;

//scroller's height
var sheight=70;


//scroller's speed 
var sspeed=2;
var restart=sspeed;
var rspeed=sspeed;

//scroller's pause 
var spause=2000;

//scroller's background
var sbcolor="#ffffff";

//messages: set your own; use as many as you'd like; set up Hyperlinks to
//URLs as you normally do: <a target=... href="... URL ...">..message..</a>;
var singletext=new Array();
singletext[0]='<div class="heading">New RFR Standards: OSHA Shipyard Standards</div><div class="text">OSHA believes this change is necessary to ensure that employees are protected from other serious hazards associated with operating and servicing radar and communication systems. For example, employees working aloft on a systems antenna could be injured or killed if the system activates and the antenna moves, striking an employee and causing the employee to fall. <a href="http://rfcomply.com/press/viewarticle.php?ID=346" target="_blank" class="text">Read Full Article</a></div>';
singletext[1]='<div class="heading">RFR Training Required by FCC</div><div class="text">Two FM Stations must Videotape their RFR Training for the FCC. In a case involving RF safety MPE levels at two FM stations in Hawaii, the FCC has decided to use short-term license renewals as an enforcement tool. <a href="http://rfcomply.com/press/viewarticle.php?ID=345" target="_blank" class="text">Read Full Article</a></div>';
singletext[2]='<div class="heading">The FCCs Technology and Education Agenda</div><div class="text">The FCC’s education agenda is focused on helping educators, students and parents transform learning opportunities through the use of technology at school, in the community, and at home. <a href="http://rfcomply.com/press/viewarticle.php?ID=344" target="_blank" class="text">Read Full Article</a></div>';
singletext[3]='<div class="heading">Land Mobile Radio Narrow Banding Deadline Looms</div><div class="text">The Public Safety and Homeland Security Bureau seeks comment on the following requests for waiver of the Commission’s January 1, 2013 VHF-UHF narrow banding deadline, codified at 47 C.F.R § 90.209(b), which requires private land mobile radio licensees in the 150-174 MHz and 450-512 MHz bands to operate using channel bandwidth of no more than 12.5 kHz or equivalent efficiency by January 1, 2013. <a href="http://rfcomply.com/press/viewarticle.php?ID=343" target="_blank" class="text">Read Full Article</a></div>';
//singletext[...]='...';
//-- end Parameters and message -->

//-- begin: Scroller's Algorithm -->
var ii=0;
function goup(){if(sspeed!=rspeed*16){sspeed=sspeed*2;restart=sspeed;}}

function start(){
if(document.getElementById){ns6div=document.getElementById("iens6div");ns6div.style.top=sheight+"px";ns6div.innerHTML=singletext[0];sizeup=ns6div.offsetHeight;ns6scroll();}
else 
if(document.layers){ns4layer=document.ns4div.document.ns4div1;ns4layer.top=sheight;ns4layer.document.write(singletext[0]);ns4layer.document.close();sizeup=ns4layer.document.height;ns4scroll();}
else 
if(document.all){iediv=iens6div;iediv.style.pixelTop=sheight+"px";iediv.innerHTML=singletext[0];sizeup=iediv.offsetHeight;iescroll();}}
function iescroll(){if(iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){iediv.style.pixelTop=0;setTimeout("iescroll()",spause);}else 
if(iediv.style.pixelTop>=sizeup*-1){iediv.style.pixelTop-=sspeed+"px";setTimeout("iescroll()",100);}else{if(ii==singletext.length-1)ii=0;else ii++;iediv.style.pixelTop=sheight+"px";iediv.innerHTML=singletext[ii];sizeup=iediv.offsetHeight;iescroll();}}
function ns4scroll(){if(ns4layer.top>0&&ns4layer.top<=sspeed){ns4layer.top=0;setTimeout("ns4scroll()",spause);}else 
if(ns4layer.top>=sizeup*-1){ns4layer.top-=sspeed;setTimeout("ns4scroll()",100);}else{if(ii==singletext.length-1)ii=0;else ii++;ns4layer.top=sheight;ns4layer.document.write(singletext[ii]);ns4layer.document.close();sizeup=ns4layer.document.height;ns4scroll();}}
function ns6scroll(){if(parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){ns6div.style.top=0;setTimeout("ns6scroll()",spause);}else 
if(parseInt(ns6div.style.top)>=sizeup*-1){ns6div.style.top=parseInt(ns6div.style.top)-sspeed+"px";setTimeout("ns6scroll()",100);}
else{if(ii==singletext.length-1)ii=0;else ii++;
ns6div.style.top=sheight+"px";ns6div.innerHTML=singletext[ii];sizeup=ns6div.offsetHeight;ns6scroll();}}
//-- end Algorithm -->


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
