// JavaScript Document
/* ------------ optimise bg --------------- */

function optimiseBackground(){
	var screenSize = screen.width;
	el = document.getElementById('skyline');
	
	if (screenSize<=1024)
		{
			el.style.background = 'url(images/skyline1024.jpg) bottom center no-repeat';
		}
	else if (screenSize>1024 && screenSize<=1680)
		{
			el.style.background = 'url(images/skyline1680.jpg) bottom center no-repeat';
		}
	else
		{
			el.style.background = 'url(images/skyline1900.jpg) bottom center no-repeat';
		}
}

// note: Image paths are relative to the loction of the file calling the actionscript, not the CSS file.