//variables
var logInLocation = "https://www.globalcare.aviva.co.uk/AVIVAiPMI/login.jsp";
var quoteLocation = "https://www.globalcare.aviva.co.uk/AVIVAiPMI/prepareOptions.do";
var htmlLocation = "http://www.globalcare.aviva.co.uk/";

//var logInLocation = "https://10.225.20.100/AVIVAiPMI/login.jsp";
//var quoteLocation = "https://10.225.20.100/AVIVAiPMI/prepareOptions.do";
//var htmlLocation = "http://10.225.20.100/";

//Preload images
if(document.images) {

	image1 = new Image();
	image1.src = "images/menuitem_on_bg.gif";

	image2 = new Image();
	image2.src = "images/arrow_button_on.gif";

	image3 = new Image();
	image3.src = "images/homepage_menuitem_on.gif";

	image4 = new Image();
	image4.src = "images/link_arrow_down.gif";
}

//Set arrays of day and month for dynamic display
dayName = new Array ("Sun", "Mon", "Tues", "Wed", "Thur", "Fri", "Sat");
monName = new Array ("Jan.", "Feb.", "Mar.", "Apr.", "May", "June", "July", "Aug.", "Sept.", "Oct.", "Nov.", "Dec.");
now = new Date;

//Set the year for dynamic date display with y2k correction
thisYr = now.getYear();

if (thisYr < 1900) {
	thisYr = thisYr + 1900;
}

function showDate(){
	document.write(dayName[now.getDay()] + ", " + now.getDate() + " " + monName[now.getMonth()] + " " + thisYr);
	}
	
function openCountryProfileWin(filename){
	urlIS = htmlLocation + "PDFs/countries/" + filename;
	MM_openBrWindow(urlIS,'country_profiles','width=550,height=700,resizable=1,location=1,top=20,left=20,scrollbars=1');
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}
