// JavaScript Document 

function closePopup(){
	self.close();
}
function openPopup(contentURL, windowName, windowWidth, windowHeight){ 
	window.open (contentURL,windowName,"location=0,status=0,scrollbars=0,width=" + windowWidth + ",height=" +windowHeight );
}
function openScrollingPopup(contentURL, windowName, windowWidth, windowHeight){ 
	window.open (contentURL,windowName,"location=0,status=0,scrollbars=1,width=" + windowWidth + ",height=" +windowHeight );
}
function showPage(pagenum){
	var objPage='null';
	objPage = document.getElementById('page1');
	objPage.style.display = 'none';
	objPage = document.getElementById('page2');
	objPage.style.display = 'none';
	objPage = document.getElementById('page3');
	objPage.style.display = 'none';
	objPage = document.getElementById(pagenum);
	objPage.style.display = 'block';
	document.getElementById('pageTab1').style.background = "url(images/Tab.jpg) no-repeat";
	document.getElementById('pageTab2').style.background = "url(images/Tab.jpg) no-repeat";
	document.getElementById('pageTab3').style.background = "url(images/Tab.jpg) no-repeat";
	switch(pagenum) {
		case 'page1':
		  document.getElementById('pageTab1').style.background = "url(images/TabOn.jpg) no-repeat";
		  document.getElementById('inner1').style.color = "#ffffff";
		  document.getElementById('inner2').style.color = "#d4001a";
		  document.getElementById('inner3').style.color = "#d4001a";
		  break;
		case 'page2':
		  document.getElementById('pageTab2').style.background = "url(images/TabOn.jpg) no-repeat";
		  document.getElementById('inner1').style.color = "#d4001a";
		  document.getElementById('inner2').style.color = "#ffffff";
		  document.getElementById('inner3').style.color = "#d4001a";
		  break;
		case 'page3':
		  document.getElementById('pageTab3').style.background = "url(images/TabOn.jpg) no-repeat";
		  document.getElementById('inner1').style.color = "#d4001a";
		  document.getElementById('inner2').style.color = "#d4001a";
		  document.getElementById('inner3').style.color = "#ffffff";
		  break;
	}
}
