// JavaScript Document
$(document).ready(function() {
			$('#NavMenu li#Home').addClass('Chosen');			
			$('#NavMenu li').click(function () {							  
				  // Assign value of the link target
				  var thisTarget = $(this).attr('id');  		  
				  var pgid = thisTarget.substr(3);				  
				  var pageurl = window.location.href
				  pageurl = pageurl.split('?');
				  
				  gourl =pageurl[0]+'?cntid='+pgid;
				  window.location.href = gourl;
				  return false;
			});   
		});

		function loadContent(id) {
			// Switch class="selected" for tabs
			$('#NavMenu li').removeClass('Chosen');
			$('#NavMenu li#'+id).addClass('Chosen');			
			//document.getElementById("ContentScroll").className = "WhiteBg";                            
			$("#ContentScroll").animate({width:'show',duration:4000});			

			//$("#ContentScroll").load("content.php?cntid="+pgid+"");			
		}


// JavaScript Document
function showContent(str){
	if (str==""){
	  document.getElementById("txtHint").innerHTML="";
	  return;
	} 
	
	if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	}else{// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	
	xmlhttp.onreadystatechange=function(){
		if(xmlhttp.readyState==4 && xmlhttp.status==200){
			document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
		}
	}
	
	xmlhttp.open("GET","content.php?cntid="+str,true);
	xmlhttp.send();
}
