// <ResourceSettings>
//      <Resource Name="AI360Resources" IsLocalize="True"/>
// </ResourceSettings>



var theImages = new Array()
theImages[0] = 'images/login/favorites.png'
theImages[1] = 'images/login/business.png'
theImages[2] = 'images/login/Voice-Support.png'
theImages[3] = 'images/login/ktip.png'
theImages[4] = 'images/login/sms.png'
//theImages[5] = 'images/icons/important.png'

//Commented and Added by Samay, For Localization implementation
//START
//var theMessages = new Array()
//theMessages[0] = 'Aristotle maintains a nationwide voter registration file of over 175 million registered voters. We obtain and catalogue the original files from more than 4,000 election boards, county clerks and Boards of Registrar. Learn More about Aristotle voter lists at <a href=\"http://data.aristotle.com/\" target=\"_blank\">data.aristotle.com</a>.'
//theMessages[1] = 'Aristotle offers attractive options for outsourcing, saving time for your staff and budget resources. Learn more about Aristotle PAC Outsourcing at <a href=\"http://pacs.aristotle.com/\" target=\"_blank\">pacs.aristotle.com</a>.'
//theMessages[2] = 'Your organization works around the clock, and so do we. Aristotle customers have access to our technical support department 24 hours a day, 7 days a week. Learn more about Aristotle\'s Customer Support at <a href=\"http://support.aristotle.com/\" target=\"_blank\">support.aristotle.com</a>.'
//theMessages[3] = 'Aristotle\'s <a href=\"http://www.campaigncontribution.com/\" target=\"_blank\">CampaignContribution.com</a> can work independently or be accessed through Aristotle\'s campaign software where donations can be accepted and processed without ever leaving the software.'
//theMessages[4] = 'Need to access your data on the go? Connect to your Aristotle 360 database with your mobile phone. Be sure that your <a href="http://www.aristotle.com/content/view/384/186/" target="_blank">account is enabled for access</a>, then point your mobile phone web browser to <a href=\"http://ai360.aristotle.com/m/\" target=\"_blank\">ai360.aristotle.com/m</a>.'
////theMessages[5] = 'Aristotle 360 will be offline for three hours beginning at <strong>Midnight (EST) Monday, February 2, 2009</strong> while Technicians perform routine scheduled maintenance. The system will return as soon as maintenance is complete. We appreciate your understanding, please plan accordingly.'


var theMessages = new Array()
theMessages[0] = 'Aristotle maintains a nationwide voter registration file of over 175 million registered voters. We obtain and catalogue the original files from more than 4,000 election boards, county clerks and Boards of Registrar. Learn More about Aristotle voter lists at <a href=\"http://data.aristotle.com/\" target=\"_blank\">data.aristotle.com</a>.'
theMessages[1] = 'Aristotle offers attractive options for outsourcing, saving time for your staff and budget resources. Learn more about Aristotle PAC Outsourcing at <a href=\"http://pacs.aristotle.com/\" target=\"_blank\">pacs.aristotle.com</a>.'
theMessages[2] = 'Your organization works around the clock, and so do we. Aristotle customers have access to our technical support department 24 hours a day, 7 days a week. Learn more about Aristotle\'s Customer Support at <a href=\"http://support.aristotle.com/\" target=\"_blank\">support.aristotle.com</a>.'
theMessages[3] = 'Aristotle\'s <a href=\"http://www.campaigncontribution.com/\" target=\"_blank\">CampaignContribution.com</a> can work independently or be accessed through Aristotle\'s campaign software where donations can be accepted and processed without ever leaving the software.'
theMessages[4] = 'Need to access your data on the go? Connect to your Aristotle 360 database with your mobile phone. Be sure that your <a href="http://www.aristotle.com/content/view/384/186/" target="_blank">account is enabled for access</a>, then point your mobile phone web browser to <a href=\"http://ai360.aristotle.com/m/\" target=\"_blank\">ai360.aristotle.com/m</a>.'
//theMessages[5] = 'Aristotle 360 will be offline for three hours beginning at <strong>Midnight (EST) Monday, February 2, 2009</strong> while Technicians perform routine scheduled maintenance. The system will return as soon as maintenance is complete. We appreciate your understanding, please plan accordingly.'
//END 

var theTitles = new Array()
theTitles[0] = 'Did you know ...'
theTitles[1] = 'Did you know ...'
theTitles[2] = 'Did you know ...'
theTitles[3] = 'Did you know ...'
theTitles[4] = 'Did you know ...'
//theTitles[5] = 'Upcoming Service Update...'

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++) {
    preBuffer[i] = new Image()
    preBuffer[i].src = theImages[i]
}
var whichMessage = Math.round(Math.random() * (p - 1));

// ROTATING MESSAGES //////////////////////
function showImage() {
    document.write('<img src="' + theImages[whichMessage] + '" alt="Update" width="64" height="64" />');
}
function showMessage() {
    document.write('<p>' + theMessages[whichMessage] + '</p>');
}
function showTitle() {
    document.write(theTitles[whichMessage]);
}
////////////////////////////////////////////

// STATIC (Alert) MESSAGE /////////////////////////
//function showImage(){
//document.write('<img src="'+theImages[5]+'" alt="Update" width="64" height="64" />');
//}
//function showMessage() {
//document.write('<p>'+theMessages[5]+'</p>');
//}
//function showTitle() {
//document.write(theTitles[5]);
//}
////////////////////////////////////////////
