function utilSelect(linkName) {
	if (document.getElementById) {
		document.getElementById(linkName).style.color = '#ffffff';
	}
}

function navOn(navName) {
	if (document.getElementById) {
		if (document.getElementById(navName).className != 'nav-select') {
			document.getElementById(navName).className = 'nav-on';
		}
	}
}

function navOff(navName) {
	if (document.getElementById) {
		if (document.getElementById(navName).className != 'nav-select') {
			document.getElementById(navName).className = 'nav';
		}
	}
}

function navSelect(navName) {
	if (document.getElementById) {
		document.getElementById(navName).className = 'nav-select';
	}
}

function lnavSelect(navName) {
	if (document.getElementById) {
		document.getElementById(navName).className = 'lnav-select';
	}
}

function footerSelect(linkName) {
	if (document.getElementById) {
		document.getElementById(linkName).style.color = '#333333';
	}
}

function homeMainSelect(linkName) {
	if (document.getElementById) {
		document.getElementById(linkName).style.color = '#ffffff';
	}
}

function tabOn(tabName) {
	if (document.getElementById) {
		document.getElementById(tabName).className = 'tab-on';
	}
}

{
	topic10=new Image();
	topic10.src="/images/topic1-off.gif";
	topic11=new Image();
	topic11.src="/images/topic1-on.gif";
	topic12=new Image();
	topic12.src="/images/topic1-select.gif";   
	
	topic20=new Image();
	topic20.src="/images/topic2-off.gif";
	topic21=new Image();
	topic21.src="/images/topic2-on.gif";
	topic22=new Image();
	topic22.src="/images/topic2-select.gif";  
	
	topic30=new Image();
	topic30.src="/images/topic3-off.gif";
	topic31=new Image();
	topic31.src="/images/topic3-on.gif";
	topic32=new Image();
	topic32.src="/images/topic3-select.gif";  
	
	topic40=new Image();
	topic40.src="/images/topic4-off.gif";
	topic41=new Image();
	topic41.src="/images/topic4-on.gif";
	topic42=new Image();
	topic42.src="/images/topic4-select.gif";  
	
	topic50=new Image();
	topic50.src="/images/topic5-off.gif";
	topic51=new Image();
	topic51.src="/images/topic5-on.gif";
	topic52=new Image();
	topic52.src="/images/topic5-select.gif";  
	
}

function topicOn(imgName) {
	if (document.images) {
		if (document.images['topic' + imgName].src != eval('topic' + imgName + '2.src')) {
			document.images['topic' + imgName].src = eval('topic' + imgName + '1.src');
		}
	}
}

function topicOff(imgName) {
	if (document.images) {
		if (document.images['topic' + imgName].src != eval('topic' + imgName + '2.src')) {
			document.images['topic' + imgName].src = eval('topic' + imgName + '0.src');
		}
	}
}

function topicSelect(imgName) {
	if (document.images) {
		document.images['topic' + imgName].src = eval('topic' + imgName + '2.src');
	}
}

function showMost(divName) {
	if (document.getElementById) {
		for (i = 1; i <= 2; i++) {
			if ('home-most' + divName == 'home-most' + i) {
				document.getElementById('home-most' + i).style.display = 'block';
			}
			else {
				document.getElementById('home-most' + i).style.display = 'none';
			}
		}
	}
}

function pressOption(divName) {
	if (document.getElementById) {
		for (i = 1; i <= 2; i++) {
			if ('press-option' + divName == 'press-option' + i) {
				document.getElementById('press-option' + i).style.display = 'block';
			}
			else {
				document.getElementById('press-option' + i).style.display = 'none';
			}
		}
	}
}

function openShare() {
	if (document.getElementById) {
		document.getElementById('share').style.display = 'block';
	}
}

function closeShare() {
	if (document.getElementById) {
		document.getElementById('share').style.display = 'none';
	}
}

function showFullDescription() {
	if (document.getElementById) {
		document.getElementById('short-desc').style.display = 'none';
		document.getElementById('full-desc').style.display = 'block';
	}
}

function showShortDescription() {
	if (document.getElementById) {
		document.getElementById('short-desc').style.display = 'block';
		document.getElementById('full-desc').style.display = 'none';
	}
}

function expertsSel(Url) {
	Url=document.experts.expname[document.experts.expname.selectedIndex].value;
	document.location = Url;
}
//Srikanth 
function emailPopup(url) {
//	if (document.getElementById) {
//		document.getElementById('overlayer').style.display = 'block';
//alert(url);
		window.open(url,'EmailThis','width=375,height=535,screenX=200,screenY=200,top=200,left=200,resizable=yes,toolbar=no,scrollbars=yes')
//	}
}

//Srikanth 
function printInfo(url)
 {
// alert(url);
window.open(url,'EmailThis','width=595,height=735,screenX=200,screenY=200,top=200,left=200,resizable=yes,toolbar=no,scrollbars=yes')
 }

	
	
function closeEmailPopup() {
	self.close();
	window.opener.document.getElementById('overlayer').style.display = 'none';
}

function keepOverlayer() {
	window.opener.document.getElementById('overlayer').style.display = 'block';
}

// This function is to be called by the onfocus() handler in the body tag of any page containing the 'Email this' popup link
function removeOverlayer() {
	document.getElementById('overlayer').style.display = 'none';
}







	
