function CheckIt9(path)
{

        var xmlhttp;
        if (window.XMLHttpRequest)
           xmlhttp = new XMLHttpRequest();
        else if (window.ActiveXObject)
             xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        else
            document.write("Your browser not support it.");      //xmlhttp = null;
            
        xmlhttp.onreadystatechange = function()
		{

			if (xmlhttp.readyState == 4)
	
    		{

				
				g = xmlhttp.responseText;
				//alert(g);
				
				if (g != '')
				{
						document.getElementById('folders').innerHTML = g;
						
										

				}
				else
				{
					//alert('Student Fee Plan not decided yet..');
				}
				
				

    	}

        

		}

        xmlhttp.open("GET", "getfolders.php?value="+ new Date().getTime()+"&path="+path, true);
        xmlhttp.send(null);
}
function CheckIt10(path)
{

        var xmlhttp;
        if (window.XMLHttpRequest)
           xmlhttp = new XMLHttpRequest();
        else if (window.ActiveXObject)
             xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        else
            document.write("Your browser not support it.");      //xmlhttp = null;
            
        xmlhttp.onreadystatechange = function()
		{

			if (xmlhttp.readyState == 4)
	
    		{

				
				g = xmlhttp.responseText;
				//alert(g);
				
				if (g != '')
				{
						document.getElementById('files').innerHTML = g;
						
										

				}
				else
				{
					//alert('Student Fee Plan not decided yet..');
				}
				
				

    	}

        

		}

        xmlhttp.open("GET", "getfiles.php?value="+ new Date().getTime()+"&path="+path, true);
        xmlhttp.send(null);
}

function CheckIt7(newsid)
{

        var xmlhttp;
        if (window.XMLHttpRequest)
           xmlhttp = new XMLHttpRequest();
        else if (window.ActiveXObject)
             xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        else
            document.write("Your browser not support it.");      //xmlhttp = null;
            
        xmlhttp.onreadystatechange = function()
		{

			if (xmlhttp.readyState == 4)
	
    		{

				
				g = xmlhttp.responseText;
				//alert(g);
				
				if (g != '')
				{
						document.getElementById('morenewscontent').innerHTML = g;
						
										

				}
				else
				{
					//alert('Student Fee Plan not decided yet..');
				}
				
				

    	}

        

		}

        
        xmlhttp.open("GET", "getnews.php?value="+ new Date().getTime()+"&newsid="+newsid, true);
        xmlhttp.send(null);
}

function CheckIt2(channel)
{

        var xmlhttp;
        if (window.XMLHttpRequest)
           xmlhttp = new XMLHttpRequest();
        else if (window.ActiveXObject)
             xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        else
            document.write("Your browser not support it.");      //xmlhttp = null;
            
        xmlhttp.onreadystatechange = function()
		{

			if (xmlhttp.readyState == 4)
	
    		{

				
				g = xmlhttp.responseText;
				//alert(g);
				
				if (g != '')
				{
						//document.getElementById('mediaPlayer').src = g;
						//document.getElementById('mediaPlayer').autostart = "1";
						
						document.getElementById('emdply').innerHTML = "<embed TYPE='application/x-mplayer2' PLUGINSPAGE='http://microsoft.com/windows/mediaplayer/en/download' ID='mediaPlayer' Name='mediaPlayer' AUTOSIZE='-1' SHOWCONTROLS='1' SHOWTRACKER='0' SHOWDISPLAY='0' SHOWSTATUSBAR='1' SHOWPOSITIONCONTROLS='0' SHOWCAPTIONING='0' height='50' width='777' SRC='"+ g +"' AUTOSTART='1' ></embed>"
						
										

				}
				else
				{
					//alert('Student Fee Plan not decided yet..');
				}
				
				

    	}

        

		}

        
        xmlhttp.open("GET", "changechannel.php?value="+ new Date().getTime()+"&channel="+channel, true);
        xmlhttp.send(null);
}

function CheckIt(file, sfile)
{

        var xmlhttp;
        if (window.XMLHttpRequest)
           xmlhttp = new XMLHttpRequest();
        else if (window.ActiveXObject)
             xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        else
            document.write("Your browser not support it.");      //xmlhttp = null;
            
        xmlhttp.onreadystatechange = function()
		{

			if (xmlhttp.readyState == 4)
	
    		{

				
				g = xmlhttp.responseText;
				//alert(g);
				
				if (g != '')
				{
						window.location.hash = file;
						document.getElementById('content').innerHTML = g;
					
						$(document).ready(function() { 
   	$(".openmorenews").click(function(){
		CheckIt7($(this).attr("rel"));
		
		$("#morenews").css("width",$(document).width()+"px");
		$("#morenews").css("height",$(document).height()+"px");
		
		if ($.browser.msie)
			{
				$("#morenews").css("position","absolute");
				$("#morenews").css("display","none");
				//$("#morenews").html("<div id='morewindow'>"+$("#morewindow").html()+"</div>");
				$("#morewindow").css("position","absolute");
				$("#morewindow").css("top",(parseInt($(document).scrollTop())+100).toString()+"px"); 
			}
			else
			{
				$("#morenews").css("position","fixed");
				$("#morewindow").css("position","fixed");

			}
		$("#morenews, #morewindow").fadeIn(300);
	});
$(".openmoreimage").click(function(){
		$("#morenewscontentimage").html("<img src='"+$(this).attr("rel")+"' />");
		$("#morenews, #morewindowimage").fadeIn(300);
	});
												   
						
	moveAlways();
	$(".bannerroll ul, .bannerroll ul li").mouseover(function(){
			if ($(".bannerroll").attr("id") == "1390")
				flag=1;
			else
				flag2=1;
	
	});
	$(".bannerroll").mouseout(function(){
			
			if ($(this).attr("id") == "1390")
				flag=0;
			else
				flag2=0;
	
	});
	$(".bannerroll").mouseover(function(){
	if ($(this).attr("id") == "1390")
	{
	if (timerHandler!=null)
	{
		clearTimeout(timerHandler);
		timerHandler=null;
		flag=1;
	}
	}
	else
	{
	if (timerHandler2!=null)
	{
		clearTimeout(timerHandler2);
		timerHandler2=null;
		flag2=1;
	}
	}
	});
	$(".rollx").mouseover(function(){
	if (timerHandler==null && flag==1)
	{
		moveAuto1();
		flag=0;
	}
	if (timerHandler2==null && flag2==1)
	{
		moveAuto2();
		flag2=0;
	}
	});
	

	$(".rolln").click(function(){
		if ($(this).attr("rel") == "1390")
		{
		if (timerHandler!=null)
		{
			clearTimeout(timerHandler);
			timerHandler=null;
		}
		}
		else
		{
		if (timerHandler2!=null)
		{
			clearTimeout(timerHandler2);
			timerHandler2=null;
		}
		
		}
		if (excl==0)
			moveNext("next", $(this).attr("rel"));	
		
});
$(".rolln").mouseout(function(){
		if ($(this).attr("rel") == "1390")
		{
		if (timerHandler==null)
		{
			moveAuto1();
		}
		}
		else
		{
		if (timerHandler2==null)
		{
			moveAuto2();
		}
		
		}
		
});
	$(".rollp").click(function(){
		if (timerHandler!=null)
		{
			clearTimeout(timerHandler);
			timerHandler=null;
		}
		if (excl==0)
			moveNext("prev", $(this).attr("rel"));	
		
});
$(".rollp").mouseout(function(){
		if ($(this).attr("rel") == "1390")
		{
		if (timerHandler==null)
		{
			moveAuto1();
		}
		}
		else
		{
		if (timerHandler2==null)
		{
			moveAuto2();
		}
		
		}
		
});

	
}); 

		
					
				}
				else
				{
					alert('File Loading Error..');
				}
				
				

    	}

        

		}
        if (file == null)
		{
			file = window.location.hash;
			file = file.substring(1, file.length);
			if (file=='')
				file="main";
		}
		     xmlhttp.open("GET", "content/"+file+".php?value="+ new Date().getTime()+"&sfile="+sfile, true);

		
        xmlhttp.send(null);
}

