// JavaScript Document
function changeBG() {
var whichPage = document.title;
var contentJS = document.getElementById('content');
switch (whichPage)
	{
	case 'Home':
	  contentJS.style.backgroundImage = "url(images/bg_home.jpg)";
	  break;
	case 'About Us':
	  contentJS.style.backgroundImage = "url(images/bg_about.jpg)";
	  break;
	case 'People':
	  contentJS.style.backgroundImage = "url(images/bg_people.jpg)";
	  break;
	case 'Services':
	  contentJS.style.backgroundImage = "url(images/bg_services.jpg)";
	  break;
	case 'Clients':
	  contentJS.style.backgroundImage = "url(images/bg_clients.jpg)";
	  break;
	case 'Australian Research Network':
	  contentJS.style.backgroundImage = "url(images/bg_arn.jpg)";
	  break;
	  
	  
	  
	  
	default:
	  contentJS.style.backgroundImage = "url(images/bg_home.jpg)";
	}
}

function detectRes(){
var textJS = document.getElementById('text');
var widthScreen = screen.width;
switch (widthScreen)
	{
	case 1024:
	  textJS.style.width = "73%";
	  break;
	case 1280:
	  textJS.style.width = "78%";
	  break;
	case 800:
	  textJS.style.width = "67%";
	  break;
	default:
	  textJS.style.width = "73%";
	}
}
