data=new Array()
 
data[0]="<div class='inset_bold' style='margin-left: 10px; margin-top: 10px; color:white;'>Custom Cable Industries Expands Capabilities;<br />Progresses Toward FOC Certification<br />" +
		"<br /><img src='images/testingFiber.jpg' border='1'></div>" +
		"<div style='margin-left: 10px; margin-right: 10px; font-size:10pt; color:white; font-weight: normal; font-style: normal;'>" +
		"<p>In response to continued demand for high bandwidth devices and growing market requirements, including 4G/LTE network build outs and upgrades, wireless backhaul " +
		"build outs, cloud service centers, power utility projects, county/state projects and independent telephone fiber builds that were awarded stimulus funding, we are expanding " +
		"our fiber optic and copper assembly capabilities to meet growing client demands.</p><p>We are also moving forward with FOC certification and project a mid-year 2012 completion " +
		"for gaining this stringent certification. This will further enhance our fiber optic product offerings and capabilities.</p></div>"
data[1]="<div class='inset_bold' style='margin-left: 10px; margin-top: 10px; color:white;'>Custom Cable Industries Wins Jabil 2011 Supplier Excellence Award</div>" +
		"<div style='margin-left: 10px; margin-right: 10px; font-size:10pt; color:white; font-weight: normal; font-style: normal;'><p>" +
		"We are extremely gratified to be one of only three suppliers recognized by Jabil for having four consecutive quarters with a 'world class' rating of greater " +
		"than 4.5 based on their Jabil Defense and Aerospace Supplier Score Card Program.</p><p>Jabil rates its suppliers on customer service, cost/quoting, delivery, " +
		"lot acceptance rate, overall quality and number of Supplier Corrective Action.</p><p>Among other accomplishments, Custom Cable shipped 14,755 pieces with no defects " +
		"and provided extensive engineering collaboration on a critical program and we are pleased to have achieved this level of exceptional performance.</p>" +
		"<br /><br /><img src='images/JabalAward.jpg' border='1'></div>" 
data[2]="<div class='inset_bold' style='margin-left: 10px; margin-top: 10px; color:white;'>Custom Cable Industries Receives	GR-326-CORE Certification from Telcordia</div>" +
		"<div style='margin-left: 10px; margin-right: 10px; font-size:10pt; color:white; font-weight: normal; font-style: normal;'><p>Custom Cable has successfully completed " +
		"GR-326 issue - 4 certification for SC ultra physical contact (UPC) singlemode fiber optic connector assemblies.</p><p>The current GR-326 CORE standards update is aimed " +
		"at increasing the overall reliability of products for the demands of today\'s bandwidth-intensive network infrastructure. Most significantly, optical performance is " +
		"measured at additional wavelengths in order to certify performance at the limits of current fiber networks. As network capacity and density increase, it is essential to " +
		"comply with the latest certification requirements to ensure long term reliability.</p><p>&quot;Not many manufacturers can claim their product will perform as well in 20 " +
		"years as it did the day it was assembled. The GR-326 CORE requirements have been designed to certify fiber optic connectivity suppliers in this regard,&quot; says Gregg " +
		"Stewart, Custom Cable general manager. &quot;We are extremely pleased to receive this significant certification.&quot;</p></div>"

speed=5 // speed of scroll
pause=15000 // default pause
pause_steps=2000 // user pause increments
dir=0 // 0 = left, 1 = right
auto_reverse=0 // 0 = no, 1 = yes
spacer=1 // space between displays
 
ani_left=""
ani_right=""
next_left=""
next_right=""
rev=""
running=0
div_num=1
 
moz=document.getElementById&&!document.all
 
function init(){ //42
el_cont=document.getElementById("cont_div")
el_one=document.getElementById("div_one")
el_two=document.getElementById("div_two")
 
el_one.style.height=el_cont.offsetHeight
el_two.style.height=el_cont.offsetHeight
//document.getElementById("pause_time").innerHTML=pause/1000
ani_speed=50
fade_step=100/(parseInt(el_cont.style.width)/speed)
 
if(dir==0){
data_num=0
el_one.innerHTML=data[data_num]
init_to_left()} // start on load
else{
data_num=data.length-1
el_one.innerHTML=data[data_num]
init_to_right()}
 
}
 
function init_to_left(){
if(running==1){return}
running=1
 
if(dir==1){
data_num+=1
if(div_num==1){el_one.innerHTML=data[data_num]}
if(div_num==2){el_two.innerHTML=data[data_num]}
 
}
 
if(data_num>=data.length){data_num=0}
 
dir=0
move_left()
}
 
function move_left(){
enable_change=1 // button
clearTimeout(ani_left)
 
if(div_num==1){el_pos=parseInt(el_one.style.left)}
else{el_pos=parseInt(el_two.style.left)}
 
el_pos-=speed
ani_left=setTimeout("move_left()",ani_speed)
 
if(div_num==1){
el_one.style.left=el_pos
el_two.style.left=el_pos-el_cont.offsetWidth-spacer
if(!moz){
el_one.filters.alpha.Opacity+=fade_step
el_two.filters.alpha.Opacity-=fade_step}
 
if(el_pos<0){
enable_change=0
el_one.style.left=0
el_two.style.left=el_cont.offsetWidth+spacer
 
if(!moz){
el_one.filters.alpha.Opacity=100
el_two.filters.alpha.Opacity=0}
 
data_num++
if(data_num>=data.length){
 
if(auto_reverse==1&&running==1){
running=0
rev=setTimeout("init_to_right()",500)}
else{data_num=0}
 
}
 
el_two.innerHTML=data[data_num]
clearTimeout(ani_left)
 
if(running==1){next_left=setTimeout("move_left()",pause)}
 
div_num=2
}
 
}
else{ // if div_num = 2
 
el_two.style.left=el_pos
el_one.style.left=el_pos-el_cont.offsetWidth-spacer
 
if(!moz){
el_one.filters.alpha.Opacity-=fade_step
el_two.filters.alpha.Opacity+=fade_step}
 
if(el_pos<0){
enable_change=0
el_two.style.left=0
el_two.style.zIndex=""
el_one.style.left=el_cont.offsetWidth+spacer
 
if(!moz){
el_two.filters.alpha.Opacity=100
el_one.filters.alpha.Opacity=0}
 
data_num++
 
if(data_num>=data.length){
 
if(auto_reverse==1&&running==1){
running=0
rev=setTimeout("init_to_right()",500)}
else{data_num=0}
 
}
el_one.innerHTML=data[data_num]
clearTimeout(ani_left)
if(running==1){
next_left=setTimeout("move_left()",pause)}
 
div_num=1
}
 
}
 
}
 
 
function init_to_right(){
if(running==1){return}
running=1
 
if(dir==0){
data_num-=1
/* if moving left and stopped on last image then right dir chosen, data_num has passed data.length and is reset to 0 
additional step back is require to show correct data */
if(data_num== -2){data_num=data.length-2} // additional step back
if(data_num<0){data_num=data.length-1}
if(div_num==1){el_one.innerHTML=data[data_num]}
if(div_num==2){el_two.innerHTML=data[data_num]}
 
}
 
dir=1
move_right()
}
 
function move_right(){
enable_change=1
clearTimeout(ani_right)
if(div_num==1){el_pos=parseInt(el_one.style.left)}
else{el_pos=parseInt(el_two.style.left)}
 
el_pos+=speed
ani_right=setTimeout("move_right()",ani_speed)
 
if(div_num==1){
el_one.style.left=el_pos
el_two.style.left=el_pos+el_cont.offsetWidth
 
if(!moz){
el_one.filters.alpha.Opacity+=fade_step
el_two.filters.alpha.Opacity-=fade_step}
 
if(el_pos>0){
enable_change=0
el_one.style.left=0
el_one.style.zIndex=""
el_two.style.left= -el_cont.offsetWidth
 
if(!moz){
el_one.filters.alpha.Opacity=100
el_two.filters.alpha.Opacity=0}
 
data_num--
if(data_num<0){
 
if(auto_reverse==1&&running==1){
running=0
rev=setTimeout("init_to_left()",500)
}
else{data_num=data.length-1}
 
}
el_two.innerHTML=data[data_num]
clearTimeout(ani_right)
if(running==1){next_right=setTimeout("move_right()",pause)}
 
div_num=2
}
 
}
else{
el_two.style.left=el_pos
el_one.style.left=el_pos+el_cont.offsetWidth
if(!moz){
el_one.filters.alpha.Opacity-=fade_step
el_two.filters.alpha.Opacity+=fade_step}
 
if(el_pos>0){
enable_change=0
el_two.style.left=0
el_two.style.zIndex=""
el_one.style.left= -el_cont.offsetWidth
 
if(!moz){
el_two.filters.alpha.Opacity=100
el_one.filters.alpha.Opacity=0}
 
data_num--
if(data_num<0){
if(auto_reverse==1&&running==1){
running=0
rev=setTimeout("init_to_left()",500)
}
else{data_num=data.length-1}
 
}
el_one.innerHTML=data[data_num]
clearTimeout(ani_right)
if(running==1){next_right=setTimeout("move_right()",pause)}
 
div_num=1
}
 
}
 
}
 
function pause_up(){
pause+=pause_steps
document.getElementById("pause_time").innerHTML=pause/1000
//clearTimeout(rev)
//clearTimeout(next_right)
//clearTimeout(next_left)
//if(dir==0){
//move_left()
//}
//else{
//move_right()
//}
}
 
function pause_down(){
pause-=pause_steps
if(pause<2000){pause=2000}
document.getElementById("pause_time").innerHTML=pause/1000
//clearTimeout(rev)
//clearTimeout(next_right)
//clearTimeout(next_left)
//if(dir==0){
//move_left()
//}
//else{
//move_right()
//}
 
}
 
function stopme(){
running=0
clearTimeout(rev)
clearTimeout(next_right)
clearTimeout(next_left)
}
 
// add onload="init()" to the opening BODY tag

