// -------------------------------------------------------------
// News and images:
//var img1 = "<a  href='AGC_Pro_2.html'><img src='images/scrolling/h1.gif' width='40' height='40' border='0' align='left' hspace='5' vspace='5'></a><br>"
var text1 = "&#8220;To keep the business from disintegrating, the concept of information systems architecture is becoming less of an option and more of a necessity.&#8221; <br> -- John Zachman, author of the Zachman Framework for Enterprise Architecture"

//var img2 = "<a  href='AGC_Pro_2.html'><img src='images/scrolling/h2.gif' width='40' height='40' border='0' align='right' hspace='5' vspace='5'></a><br>"
var text2 = "&#8220;I find that the harder I work, the more luck I seem to have.&#8221; <br> -- Thomas Jefferson"

var img3 = "<img src='images/scrolling/yoda.jpg' width='60' height='60' border='0' align='left' hspace='5' vspace='5'><br>"
var text3 = "&#8220;Do, or do not. There is no 'try'.&#8221; <br><br><br><br> -- Yoda (The Empire Strikes Back)"

//var img4 = "<a  href='AGC_Pro_2.html'><img src='images/scrolling/h4.gif' width='40' height='40' border='0' align='right' hspace='5' vspace='5'></a><br>"
var text4 = "&#8220;Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.&#8221; <br> -- Antoine de Saint Exupery"

var text5 = "&#8220;There are two ways of constructing a software design; one way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.&#8221; <br> -- C. A. R. Hoare"

//var text3 = "&#8220; .&#8221; <br><br> -- "
//    
// -------------------------------------------------------------
// Location of news box from top of page
topedge = 15;  
// Location of news box from left edge
leftedge = 600;  
// Height of news box
boxheight = 260;
// Width of news box  
boxwidth = 155;  
// Total height of all data to be scrolled 
scrollheight =900; 
// -------------------------------------------------------------
// Table:
var table = "<table border='0' cellpadding='2' cellspacing='0'  width='155'>"
var end_table = "</table>"
var spacer = "<tr><td><img src='images/spacer.gif' width='1' height='260'></td></tr>"

var format_bef = "<tr><td width='155'><p align='justify'><font face='Arial' size='1'>"
var format_aft = "</font></p> <br><br><br><br><br><br></td></tr>"

// -------------------------------------------------------------
// Assembling news:
//var news1 =  format_bef + img1 + text1+ format_aft +
//                     format_bef + img2 + text2 + format_aft +
//                     format_bef + img3 + text3 + format_aft +
//                     format_bef + img4 + text4 + format_aft;

var news1 = format_bef + text1 + format_aft + 
			format_bef + text2 + format_aft + 
			format_bef + img3  + text3 + format_aft + 
			format_bef + text4 + format_aft + 
			format_bef + text5 + format_aft; 
// -------------------------------------------------------------
// Assembling scrolling:
var news_scroll = table + spacer + news1 + end_table;



// -------------------------------------------------------------
var i_height=0
var step=1
var pause=65
var standstillflex=0


function scrollnews(cliptop) {
  if (document.layers) {
    newsDiv = document.news;
    newsDiv.clip.top = cliptop;
    newsDiv.clip.bottom = cliptop + boxheight;
    newsDiv.clip.left = 0;
    newsDiv.clip.right = boxwidth + leftedge;
    newsDiv.left = leftedge;
    newsDiv.top = topedge - cliptop;
  }
  else {
    newsDiv = news.style;
    newsDiv.clip = "rect(" + cliptop + "px " + (boxwidth + leftedge) + "px " + (cliptop + boxheight) + "px 0px)";
    newsDiv.pixelLeft = leftedge;
    newsDiv.pixelTop = topedge - cliptop;
  }
  cliptop = (cliptop + 1) % (scrollheight + boxheight);
  newsDiv.visibility='visible';
  setTimeout("scrollnews(" + cliptop + ")", pause);
}