

function get_link(fo,id,sh_lim) 
{
  var notationS = document.getElementById(fo +'_id_' + id);
  if (notationS.style.display == 'none'){
    var url = "get_link.php?fo=" + escape(fo) + "&id=" + escape(id) + "&sh_lim=" + escape(sh_lim);
	notationS.innerHTML = '<img src="decor/small_preloader.gif" width="16" height="16" border="0" alt="..." />';
    notationS.style.display = '';	
	http.open("GET", url, true);
	http.onreadystatechange =  function() {
	if (http.readyState == 4) {
	    var results = http.responseText;
		var notationS = document.getElementById(fo +'_id_' + id);
		notationS.innerHTML = results;
	   }
     }
	http.send(null);
	}else {notationS.style.display = 'none';}
}

function select_link(fo,id) 
  {
    var fo_arr = new Array();
    fo_arr[0] =  "vipfile";
    fo_arr[1] =  "letitbit";
    fo_arr[2] =  "filepost";
    fo_arr[3] =  "sms4file";
    fo_arr[4] =  "oron";
    fo_arr[5] =  "extabit";
    fo_arr[6] =  "filesonic"; 
    fo_arr[7] =  "shareflare";
	
    for (var i=0;i<=fo_arr.length;i++) 
      {
        if (fo_arr[i] == fo) 
		  {
		     get_link(fo,id,48);
			 $("a#"+fo_arr[i]+"_"+id).css({'font-weight' : 'bold'});
		  }
		  else
		  {
		    $("a#"+fo_arr[i]+"_"+id).css({'font-weight' : 'normal'});
		    $("#"+fo_arr[i]+"_id_" + id).html("");
		    $("#"+fo_arr[i]+"_id_" + id).hide();
		  }
      }
  }

/*---------------------------*/

function getHTTPObject() { 
	var xmlhttp;
	/*@cc_on
	@if (@_jscript_version >= 5)
		try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (E) {
					xmlhttp = false;
				}
		}
	@else xmlhttp = false;
	@end @*/
	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp = false;
		}
	}
	return xmlhttp;
}
var http = getHTTPObject(); // We create the HTTP Object 
//#############################################################
