/**************************************link ajax************************/


function AJAX_All_Link_show_index(Actione_hash,Actione)
{ 
 var home_R = $('<div id="Page_Home_Res_Ajax_All_Line_Mask"><img src="images/loading-icon.gif" /></div>');
 $("div#Page_Home_Res_Ajax_All_Line").append(home_R).css({position:'relative'});
 $('#Page_Home_Res_Ajax_All_Line_Mask').css({
border:'#FF0000 solid 0px',	
background:'#FFFFFF',
position:'absolute',
top:'0px',	
left:'0px',	
zIndex:'10000',
width:($("div#Page_Home_Res_Ajax_All_Line").innerWidth())+'px',
height:($("div#Page_Home_Res_Ajax_All_Line").innerHeight())+'px',
opacity: 0.8
});
//return false;  
$.ajax({
  type: "GET",
  url: Actione,
  data: '',
  success: function(msg){  
   // alert(msg);  
$("div#Page_Home_Res_Ajax_All_Line").html(msg);
BodymiddleStyle_div_middle_news();
location.hash = Actione_hash;
Link_Ajax_Fun();	
  }// success: function(msg){
});	//$.ajax({
 
}//function AJAX_All_Link_show_index(Actione_hash,Actione)





function AJAX_All_Link_show_depts(Actione_hash,Actione)
{ 

 var home_R = $('<div id="Page_Home_Res_Ajax_All_Line_Mask"><img src="images/loading-icon.gif" /></div>');
 $("div#Page_Home_Res_Ajax_All_Line").append(home_R).css({position:'relative'});
 $('#Page_Home_Res_Ajax_All_Line_Mask').css({
border:'#FF0000 solid 0px',	
background:'#FFFFFF',
position:'absolute',
top:'0px',	
left:'0px',	
zIndex:'10000',
width:($("div#Page_Home_Res_Ajax_All_Line").innerWidth())+'px',
height:($("div#Page_Home_Res_Ajax_All_Line").innerHeight())+'px',
opacity: 0.8
});
  
//return false;
$.ajax({
  type: "GET",
  url: Actione,
  data: '',
  success: function(msg){  
$("div#Page_Home_Res_Ajax_All_Line").html(msg);
textarea_create_H(); 
location.hash = Actione_hash;
Link_Ajax_Fun();
  }// success: function(msg){
});	//$.ajax({
 

}//function AJAX_All_Link_show_depts(Actione_hash,Actione)









// $("#MOVE_JQ_Home_DIV").mouseover();



function Link_Ajax_Fun()
{	
//$("a").unbind( "click" )
//$("a").click( function() { 
$("a[href!=javascript:void(0);]").unbind( "click" );
$("a[href=javascript:void(0);]").click( function() { 						 
$('div#Tag_containing_FORMS_Home_All').hide(); 
});
$("a[href!=javascript:void(0);]").click( function() { 						 
					   //alert($(this).text());
$('div#Tag_containing_FORMS_Home_All').hide(); 				   
					    var String_Href = $(this).attr("href");				    				  
 var String_File_Name = unescape(String_Href.substring(0,(String_Href.lastIndexOf(".")) + 1));

  if(String_File_Name == 'index.')
 {
	 $('#BodymiddleStyle_div_middle_news_1').unbind();
	// $("#MOVE_JQ_Home_DIV").mouseover();
	 var String_File_FILE = String_Href.replace("index.php?", "index_ajax.php?Actions=index_ajax&"); 
	 
	// alert(String_File_FILE);
                       Actione_hash = String_Href;
					   Actione = String_File_FILE;
					   location.hash = Actione_hash;
					 AJAX_All_Link_show_index(Actione_hash,Actione);   
				//	return Link_Ajax_Fun();	 
	 
	 
 }
else 
 if(String_File_Name == 'depts.')
 {
	 $('#BodymiddleStyle_div_middle_news_1').unbind();
	// $("#MOVE_JQ_Home_DIV").mouseover();
	  var String_File_FILE = String_Href.replace("depts.php?", "depts_ajax.php?Actions=depts_ajax&"); 
	                       Actione_hash = String_Href;
					   Actione = String_File_FILE;
					    location.hash = Actione_hash;
					AJAX_All_Link_show_depts(Actione_hash,Actione);
					Dept_Show_itemSAJAX_cont_show();
				//	return Link_Ajax_Fun(); 
	 
 }

return false;
});//$("a").click( function() { 

/*
//[href!=javascript:void(0);]
//$("div#Page_Home_Res_Ajax_All_Line")
$("div#Page_Home_Res_Ajax_All_Line img").click( function() { 	

// window.clearInterval(autoRotate);																										

src_M = $(this).attr("src");
alt_M = $(this).attr("alt");
title_M = $(this).attr("title");
//alert($(this).parent().attr("class"))
																																																			
if($(this).parent().attr("class")!='Dept_Show_itemSAJAX_div_table_td_IMG_DIV')
{
	alert($(this).parent().attr("class"))
$('div#Home_All_FORMS_ID').html('<img src="'+src_M+'"  alt="'+alt_M+'"  title="'+title_M+'" />');
$('div#Tag_containing_FORMS_Home_All').eq(0).fadeIn("slow");
Tag_containing_FORMS_Home_AllWidth();	
}

}).css("cursor","pointer");//$("img").click( function() { 													 */ 

}//function Link_Ajax_Fun()





/*******************************************************************************************/
/*
var Character_Location_Change = '(&_)';

var Character_Location_replace = "?";


function Actione_hash_FUN(String_V,Character_replace,Character_Change)
{
	return String_V.replace(Character_replace, Character_Change); 	
}
*/


function Fun_Onload()
{
	
	var URL_P_slach_This ='';

var URL_P_This = document.URL;

//URL_P_This.lastIndexOf("/");
//alert(URL_P_This.lastIndexOf("/"));


  //alert(URL_P_slach_This)
  
 //var URL_P_slach_This = unescape(URL_P_This.substring(0,(URL_P_This.lastIndexOf("/")) + 1));
// var URL_P_slach_This = unescape(URL_P_This.substring(0,(URL_P_This.lastIndexOf("?")) + 1));
 // alert(URL_P_This.length)

var URL_P_This_hash = location.hash

if(URL_P_This_hash !='')
{
	
  URL_P_This_hash = URL_P_This_hash.replace("#", ""); 
 URL_P_slach_This = Actione_hash_FUN(URL_P_This_hash,Character_Location_Change,Character_Location_replace);
 //alert(URL_P_This_hash_M)
//var Top_Location =  URL_P_slach_This+URL_P_This_hash_M 
//alert(Top_Location)
 // top.location = Top_Location;
 }//if(URL_P_This_hash !='')
else
{
 URL_P_slach_This = unescape(URL_P_This.substring((URL_P_This.lastIndexOf("/")) + 1,(URL_P_This.length))); 	
	
}
 
//alert(URL_P_slach_This)

return URL_P_slach_This;
}//function Fun_Onload()


function Creat_A_Href_Click(A_Href)
{
	//alert(A_Href)
 var home_A_H = $('<A href="'+A_Href+'" id="FRS_INDEX2"></A>');
 $("div#Page_Home_Res_Ajax_All_Line").append(home_A_H); 
 Link_Ajax_Fun();
 $("A#FRS_INDEX2").click();			
}



 
 
 /*********************************************************************************/




$(document).ready(function(){

A_Href = Fun_Onload();
 var home_A_H = $('<A href="'+A_Href+'" id="FRS_INDEX"></A>');
 $("div#Page_Home_Res_Ajax_All_Line").append(home_A_H); 
Link_Ajax_Fun();
$("A#FRS_INDEX").click();	

});// $(document).ready(function(){
/**************************************link ajax************************/


/* 
  var String_File_Name = unescape(URL_P_slach_This.substring(0,(URL_P_slach_This.lastIndexOf(".")) + 1));
//alert(String_File_Name)
  if(String_File_Name == 'index.')
 {

	 var String_File_FILE = URL_P_slach_This.replace("index.php?", "index_ajax.php?Actions=index_ajax&"); 
	
	//alert(String_File_FILE)
                       Actione_hash = URL_P_slach_This;
					   Actione = String_File_FILE;
					   location.hash = Actione_hash;
					 // AJAX_All_Link_show_index(Actione_hash,Actione);   

			

	 
 }
else 
 if(String_File_Name == 'depts.')
 {
	  var String_File_FILE = URL_P_slach_This.replace("depts.php?", "depts_ajax.php?Actions=depts_ajax&"); 
	  
	                       Actione_hash = URL_P_slach_This;
					   Actione = String_File_FILE;
					    location.hash = Actione_hash;
					//AJAX_All_Link_show_depts(Actione_hash,Actione);
				//	Dept_Show_itemSAJAX_cont_show();
	 
 }
*/

