<!--

//--------------------------------------------------

function openWindow(addr){
window.open(addr,"_blank");
}

//--------------------------------------------------

/*function writeDIV(writ){
	
	document.getElementById("div_content_relatedLinks").innerHTML ="<!--#include file="+writ+"-->";
	//document.getElementById("iframe_content").src ="about_us.aspx";
	
}*/

//--------------------------------------------------

function openWindowOnSelf(addr){
window.open(addr,"_self");
}

//--------------------------------------------------
function displayPage(page){
parent.frames.iframe_content.location.href =page;

var  num = 0;
var  str="";
for(var i = 0; i < page.length; i++){
	
var chr = page.charAt(i);
//Check for characters _ and .
if((chr =="_" ) || (chr==".")){
loadOtherContent(str);
break;
}else{
str+=chr;	
}//else

}//end for


}
//--------------------------------------------------
function loadOtherContent(name){
	//var str ="";
	var page="";
	
	switch(name){
		
	case "main":
	//str = "home.jpg";
	page="about_relatedlinks.htm";
	break;
	
	case "about":
	//str = "about.jpg";
	page="about_relatedlinks.htm";
	break;
	
	case "accreditation":
	//str = "services.jpg";
	page="accreditation_relatedlinks.htm";
	break;
	
	case "assessment":
	//str = "staff.jpg";
	page="assessment_relatedlinks.htm";
	break;
	
	case "assessor":
	//str = "qms.jpg";
	page="assessor_relatedlinks.htm";
	break;
	
	case "ato":
	//str = "council.jpg";
	page="ato_relatedlinks.htm";
	break;
	
	case "contact":
	//str = "contact.jpg";
	page="contact_relatedlinks.htm";
	break;
	
	case "news":
	//str = "news.jpg";
	page="home_relatedlinks.htm";
	break;
	
	case "certification":
	//str = "events.jpg";
	page="certification_relatedlinks.htm";
	break;
	
	case "qualification":
	//str = "events.jpg";
	page="qualification_relatedlinks.htm";
	break;
	
	case "links":
	//str = "events.jpg";
	page="links_relatedlinks.htm";
	break;
	
	case "downloads":
	//str = "events.jpg";
	page="downloads_relatedlinks.htm";
	break;
	
	deafult:
	//str = "undefineImage.jpg";
	page="home_relatedlinks.htm";
	break;
	}
	//document.getElementById("div_pageTitle").innerHTML ="<img src='images/pageTitle/" + str + "' width='349' height='40' />";
	parent.frames.iframe_buffer.location.href = page;
	
}

//--------------------------------------------------

function loadPage(page){
parent.frames.iframe_buffer.location.href=page;	


}

//--------------------------------------------------

function hideMenu(){
clearTimeout(menuTimer)
if(openedDiv!="error"){
document.getElementById(openedDiv).style.visibility ='hidden';
openedDiv="error";
}

}

function showMenu(obj){
clearTimeout(menuTimer)
if(openedDiv!="error"){
document.getElementById(openedDiv).style.visibility ='hidden';
}		
document.getElementById(obj).style.visibility ='visible';
openedDiv = obj;
//captureMousePosition();

}

function startMenuTimer(){
menuTimer = setTimeout("hideMenu()",500);
//document.onmousemove="";
}


function highlight(obj){
clearTimeout(menuTimer)
document.getElementById(obj).style.background ='#0099FF';
document.getElementById(obj).style.color ='#FFFFFF';
}

function resetDiv(obj){
startMenuTimer()
document.getElementById(obj).style.background ='#FFFFFF';
document.getElementById(obj).style.color ='#666666';
}


function getURL(addr){
window.open(addr,"_self");
}

function killTimer(){
clearTimeout(menuTimer)
}

//-----------------------------------------------------------
-->
