// this function for select sub menu inthe content list
var flag = false
function testing(){
	alert(flag)
}
// This function makes TPC web content can drop down list 
function conMenuSel(gImg, gId)
{
	//for set selection
	var newImg
	if (document.getElementById(gId).style.display == "none")
	{
		//newImg=document.getElementById(gImg).src
		//newImg=newImg.substr(0, newImg.indexOf("arrow_rt.jpg")) + "arrow_dn.jpg"
		//document.getElementById(gImg).src=newImg
		//document.getElementById(gId).style.display = ""
		// Change follow source code depond on the above source code can not support by Firefox 
		// date changed on 1 March 2009
		newImg=document.images[gImg].src
		newImg=newImg.substr(0, newImg.indexOf("arrow_rt.jpg")) + "arrow_dn.jpg"
		document.images[gImg].src=newImg
		document.getElementById(gId).style.display = ""
		
	}
	else
	{
		//newImg=document.getElementById(gImg).src
		//newImg=newImg.substr(0, newImg.indexOf("arrow_dn.jpg")) + "arrow_rt.jpg"
		//document.getElementById(gImg).src=newImg
		//document.getElementById(gId).style.display = "none"
		newImg=document.images[gImg].src
		newImg=newImg.substr(0, newImg.indexOf("arrow_dn.jpg")) + "arrow_rt.jpg"
		document.images[gImg].src=newImg
		document.getElementById(gId).style.display = "none"
		
	}
	
}

function setFontColor(gId)
{
	var newId=document.getElementById(gId)
	if (gId == 'home')
	{
		//alert(gId)
		newId.style.color="#336600"
	}
// This function gets an e-mal form
// Date Created on 27 Feb 2009	
}
function getemail(domain,name){
	document.write("<a href='mail"+"to:"+name.replace(/%23/g,"@")+domain.replace(/%23/g,".")+"'>"+name.replace(/%23/g,"@")+domain.replace(/%23/g,".")+"</a>");
	//document.write("Rada@tpc.com.kh")
}
