var body = "";
var headlines = new Array();
var page = 1;
var pages = 1;
var pagesize = 20;
var total = 20;
page = 1;
pages = 1;
total = 13;
headlines.push({"dateTime":"Feb 09, 2010 06:03 EST",
"headline":"ALBANY INTERNATIONAL CORP /DE/ 8-K", "article":"urn:newsml:reuters.com:20100209:nEOLkgot5f:2"});
headlines.push({"dateTime":"Feb 08, 2010 17:34 EST",
"headline":"BRIEF-Albany International Q4 results", "article":"urn:newsml:reuters.com:20100208:nWNAB4599:8"});
headlines.push({"dateTime":"Feb 08, 2010 17:30 EST",
"headline":"Albany International Reports Fourth-Quarter Results AIN.N - Part 2", "article":"urn:newsml:reuters.com:20100208:nBw086897b:2"});
headlines.push({"dateTime":"Feb 08, 2010 17:30 EST",
"headline":"Albany International Reports Fourth-Quarter Results AIN.N - Part 1", "article":"urn:newsml:reuters.com:20100208:nBw086897a:8"});
headlines.push({"dateTime":"Jan 22, 2010 13:11 EST",
"headline":"Albany International Announces Earnings Release Date AIN.N ", "article":"urn:newsml:reuters.com:20100122:nBw225722a:2"});
headlines.push({"dateTime":"Jan 15, 2010 12:28 EST",
"headline":"ALBANY INTERNATIONAL CORP /DE/ 8-K", "article":"urn:newsml:reuters.com:20100115:nEOL3sj3kk:2"});
headlines.push({"dateTime":"Dec 24, 2009 00:58 EST",
"headline":"ALBANY INTERNATIONAL CORP /DE/ 8-K", "article":"urn:newsml:reuters.com:20091223:nEOL3n7j3k:2"});
headlines.push({"dateTime":"Dec 22, 2009 17:30 EST",
"headline":"Albany International Comments on COMAC's Selection of LEAP-X Engine AIN.N ", "article":"urn:newsml:reuters.com:20091222:nBw225860a:2"});
headlines.push({"dateTime":"Dec 18, 2009 16:42 EST",
"headline":"Albany International Declares Dividend AIN.N ", "article":"urn:newsml:reuters.com:20091218:nBw185792a:1"});
headlines.push({"dateTime":"Nov 03, 2009 06:04 EST",
"headline":"ALBANY INTERNATIONAL CORP /DE/ 8-K", "article":"urn:newsml:reuters.com:20091103:nEOL5tzot5:1"});
headlines.push({"dateTime":"Nov 02, 2009 17:31 EST",
"headline":"BRIEF-Albany International Q3 results", "article":"urn:newsml:reuters.com:20091102:nWNAB8643:9"});
headlines.push({"dateTime":"Nov 02, 2009 17:28 EST",
"headline":"Albany International Reports Improved Profitability and Cash Flow as Restructuring Winds Down AIN.N - Part 1", "article":"urn:newsml:reuters.com:20091102:nBw026500a:8"});
headlines.push({"dateTime":"Nov 02, 2009 17:28 EST",
"headline":"Albany International Reports Improved Profitability and Cash Flow as Restructuring Winds Down AIN.N - Part 2", "article":"urn:newsml:reuters.com:20091102:nBw026500b:2"});
$(document).ready(function(){
var out = "";
if(body != null && body.length > 0){
out += body;
}
var white = true;
if(headlines.length > 0){
if(white) color = "ffffff";
else color = "eeeeee";
white = !white;
out += getPagination() + ""+
"
"+
""+
"";
out += ""+
"| Time | "+
" | "+
"News Story | ";
for(var i = 0; i < headlines.length; i++){
out += " | "+
" | "+
"";
var headline = headlines[i];
out += "| "+headlines[i].dateTime+" | "+
" | "+
""+
""+headlines[i].headline+"";
out += " | ";
}
out += " |
";
}
$('div#news').html(out);
});
function getPagination(){
var ret = "";
for(var i = 1; i < (pages + 1); i++){
var left = (i - 1) * pagesize;
var right = left + pagesize;
if(right > total) right = total;
var label = "["+left+"-"+right+"]";
if(i == page){
ret += "
"+label+"";
}else{
ret += "
"+label+"";
}
}
return ret + "
";
}