   $(function(){
	 $("#mid_bar>li").click(function(){
		var p=$("#mid_bar>li").index(this)+1;	
		var flashMovie=getFlashMovieObject("mymovie");
		var u=$(this).children().attr("href");
		flashMovie.movePage(p,u);
		return false;								
		});
	 
	$("#searchBox").click(function(){
			if ($(this).attr("value")=="Search") 	$(this).attr("value","");						   
	 }); 
		$("#searchBtn").click(function(){
			var vl=$("#searchBox").attr("value");
			if(vl!==""&&vl!="Search"&&vl.length>2){
				$("#searchForm").submit();
			}else{	
			alert("Please enter valid search term");			
			}
	}).css("cursor","pointer");
	 });
   
   
   
    function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else 
  {
    return document.getElementById(movieName);
  }
}

function showLogin(t){
	
	
tb_show('','/supportLogin.asp?t='+t+'&KeepThis=true&TB_iframe=true&height=150&width=220','Please log-in');	
	
}
function logOut(){
	
$.get('/logOut.asp','',function(){
								alert("You are now disconnected from the system");
								window.location.reload();
								});
}
function viewD(idd){
	
   $("#"+idd).toggle();	
	
	
}