var selected_id = null;

var imgloc = '/img/button/misc/'

function change_class(id)
{
	if (navigator.appName.indexOf("Microsoft")!=-1)
	{
		if (selected_id!=null)
		{
			var lnkpresent1 = document.getElementById('feature'+selected_id+'');
			if (lnkpresent1)
			{
				document.getElementById('feature'+selected_id+'').style.fontWeight='normal';
				document.getElementById('feature'+selected_id+'').style.color='#29639E';
			}
			var imgobj1 = document.getElementById('bullet'+selected_id+'');
			if (imgobj1)
			{
				imgobj1.src=imgloc+'bullet.gif';
			}			
		}
		selected_id=id;
		
		var lnkpresent2 = document.getElementById('feature'+id+'');
		if (lnkpresent2)
		{
			document.getElementById('feature'+id+'').style.fontWeight='bold';
			document.getElementById('feature'+id+'').style.color='#FF0000';
		}
		var imgobj2 = document.getElementById('bullet'+id+'');
		if (imgobj2)
		{
			imgobj2.src=imgloc+'bullet2.gif';
		}
		var tabobj = document.getElementById('introtable')
		if (tabobj)
		{
			tabobj.style.display='none';
		}
	}
}

function change_class2(id,frameheight)
{
	if (navigator.appName.indexOf("Microsoft")!=-1)
	{
		if (selected_id!=null)
		{
			var lnkpresent1 = document.getElementById('feature'+selected_id+'');
			if (lnkpresent1)
			{
				document.getElementById('feature'+selected_id+'').style.fontWeight='normal';
				document.getElementById('feature'+selected_id+'').style.color='#29639E';
			}
			var imgobj1 = document.getElementById('bullet'+selected_id+'');
			if (imgobj1)
			{
				imgobj1.src=imgloc+'bullet.gif';
			}			
			document.getElementById('content').style.height='500px';
		}
		selected_id=id;
		
		var lnkpresent2 = document.getElementById('feature'+id+'');
		if (lnkpresent2)
		{
			document.getElementById('feature'+id+'').style.fontWeight='bold';
			document.getElementById('feature'+id+'').style.color='#FF0000';
		}
		var imgobj2 = document.getElementById('bullet'+id+'');
		if (imgobj2)
		{
			imgobj2.src=imgloc+'bullet2.gif';
		}		
		document.getElementById('content').style.height=frameheight+'px';
	}
}

var parentloc = null;

function hightlight(id)
{
	if (navigator.appName.indexOf("Microsoft")!=-1)
	{
		var elem = document.getElementById('contenttr');
		var height= elem.clientHeight + 30;
		
		if (self != top)
		{
	    		top.change_class2(id,height);
	    	}
		else
		{
	    		top.window.location=parentloc;
	    	}
	}
}

function jumpScroll() 
{
   	window.scroll(0,400); 
}
