/*---------------------------*/

/*---------------------------*/
function get_link_section_by_page(page,product_id) 
{
  var TDnotationS = $('#td_' + product_id);
  var TRnotationS = $('#tr_' + product_id); 
  var url = "get_links_by_page.php?page=" + escape(page) + "&id=" + escape(product_id);
  if (TRnotationS.is(':hidden')){ 
	TDnotationS.html('<img src="decor/small_preloader.gif" width="16" height="16" border="0" alt="..." />');
	$('img#bl_' + product_id).attr('src','decor/bul_2.png'); TDnotationS.show(); TRnotationS.show();    
	http.open("GET", url, true);
	http.onreadystatechange =  function() {
	if (http.readyState == 4) {
	    var results = http.responseText;
		TDnotationS.empty();
		TDnotationS.html(results);
	   }
     }
	http.send(null);
	}else{
	   $('img#bl_' + product_id).attr('src','decor/bul.png'); TDnotationS.empty(); TDnotationS.hide(); TRnotationS.hide();
	}
}
/*---------------------------*/

/*---------------------------*/
function get_link_section_by_artist_letter_page(letter,page,product_id) 
{
  var TDnotationS = $('#td_' + product_id);
  var TRnotationS = $('#tr_' + product_id); 
  var url = "get_links_by_artist_letter_page.php?letter=" + escape(letter) + "&page=" + escape(page) + "&id=" + escape(product_id);
  if (TRnotationS.is(':hidden')){ 
	TDnotationS.html('<img src="decor/small_preloader.gif" width="16" height="16" border="0" alt="..." />');
	$('img#bl_' + product_id).attr('src','decor/bul_2.png'); TDnotationS.show();  TRnotationS.show();
	http.open("GET", url, true);
	http.onreadystatechange =  function() {
	if (http.readyState == 4) {
	    var results = http.responseText;
	    TDnotationS.empty();
		TDnotationS.html(results);
	   }
     }
	http.send(null);
	}else{
	   $('img#bl_' + product_id).attr('src','decor/bul.png'); TDnotationS.empty(); TDnotationS.hide(); TRnotationS.hide();
	}
}

/*---------------------------*/

/*---------------------------*/

function get_link_section_by_clip_letter_page(letter,page,product_id) 
{
  var TDnotationS = $('#td_' + product_id);
  var TRnotationS = $('#tr_' + product_id); 
  var url = "get_links_by_clip_letter_page.php?letter=" + escape(letter) + "&page=" + escape(page) + "&id=" + escape(product_id);
  if (TRnotationS.is(':hidden')){ 
	TDnotationS.html('<img src="decor/small_preloader.gif" width="16" height="16" border="0" alt="..." />');
	$('img#bl_' + product_id).attr('src','decor/bul_2.png'); TDnotationS.show();  TRnotationS.show();
	http.open("GET", url, true);
	http.onreadystatechange =  function() {
	if (http.readyState == 4) {
	    var results = http.responseText;
	    TDnotationS.empty();
		TDnotationS.html(results);
	   }
     }
	http.send(null);
	}else{
	   $('img#bl_' + product_id).attr('src','decor/bul.png'); TDnotationS.empty(); TDnotationS.hide(); TRnotationS.hide();
	}
}

/*---------------------------*/

/*---------------------------*/
function get_link_section_by_release_page(release,page,product_id) 
{
  var TDnotationS = $('#td_' + product_id);
  var TRnotationS = $('#tr_' + product_id); 
  var url = "get_links_by_release_page.php?release=" + escape(release) + "&page=" + escape(page) + "&id=" + escape(product_id);
  if (TRnotationS.is(':hidden')){ 
	TDnotationS.html('<img src="decor/small_preloader.gif" width="16" height="16" border="0" alt="..." />');
	$('img#bl_' + product_id).attr('src','decor/bul_2.png'); TDnotationS.show();  TRnotationS.show();
	http.open("GET", url, true);
	http.onreadystatechange =  function() {
	if (http.readyState == 4) {
	    var results = http.responseText;
	    TDnotationS.empty();
		TDnotationS.html(results);
	   }
     }
	http.send(null);
	}else{
	   $('img#bl_' + product_id).attr('src','decor/bul.png'); TDnotationS.empty(); TDnotationS.hide(); TRnotationS.hide();
	}	
}

/*---------------------------*/

/*---------------------------*/

function get_link_section_by_dvd_page(base_name,product_id) 
{

  var TDnotationS = $('#td_' + product_id);
  var TRnotationS = $('#tr_' + product_id); 
  var url = "get_links_by_dvd_page.php?base_name=" + escape(base_name) + "&id=" + escape(product_id);
  if (TRnotationS.is(':hidden')){ 
	TDnotationS.html('<img src="decor/small_preloader.gif" width="16" height="16" border="0" alt="..." />');
	$('img#bl_' + product_id).attr('src','decor/bul_2.png'); TDnotationS.show();  TRnotationS.show();
	http.open("GET", url, true);
	http.onreadystatechange =  function() {
	if (http.readyState == 4) {
	    var results = http.responseText;
	    TDnotationS.empty();
		TDnotationS.html(results);
	   }
     }
	http.send(null);
	}else{
	   $('img#bl_' + product_id).attr('src','decor/bul.png'); TDnotationS.empty(); TDnotationS.hide(); TRnotationS.hide();
	}
}

/*---------------------------*/

/*---------------------------*/
function get_link_section_by_last_page(page,product_id) 
{
  var TDnotationS = $('#td_' + product_id);
  var TRnotationS = $('#tr_' + product_id); 
  var url = "get_links_by_last_page.php?page=" + escape(page) + "&id=" + escape(product_id);
  if (TRnotationS.is(':hidden')){ 
	TDnotationS.html('<img src="decor/small_preloader.gif" width="16" height="16" border="0" alt="..." />');
	$('img#bl_' + product_id).attr('src','decor/bul_2.png'); TDnotationS.show();  TRnotationS.show();
	http.open("GET", url, true);
	http.onreadystatechange =  function() {
	if (http.readyState == 4) {
	    var results = http.responseText;
	    TDnotationS.empty();
		TDnotationS.html(results);
	   }
     }
	http.send(null);
	}else{
	   $('img#bl_' + product_id).attr('src','decor/bul.png'); TDnotationS.empty(); TDnotationS.hide(); TRnotationS.hide();
	}
}
/*---------------------------*/

/*---------------------------*/
function get_link_section_by_top_page(page,product_id) 
{
   var TDnotationS = $('#td_' + product_id);
   var TRnotationS = $('#tr_' + product_id);
   var url = "get_links_by_top_page.php?page=" + escape(page) + "&id=" + escape(product_id);
	if (TRnotationS.is(':hidden')){ 
	TDnotationS.html('<img src="decor/small_preloader.gif" width="16" height="16" border="0" alt="..." />');
	$('img#bl_' + product_id).attr('src','decor/bul_2.png'); TDnotationS.show();  TRnotationS.show();
	http.open("GET", url, true);
	http.onreadystatechange =  function() {
	if (http.readyState == 4) {
	    var results = http.responseText;
	    TDnotationS.empty();
		TDnotationS.html(results);
	   }
     }
	http.send(null);
	}else{
	   $('img#bl_' + product_id).attr('src','decor/bul.png'); TDnotationS.empty(); TDnotationS.hide(); TRnotationS.hide();
	}
}
/*---------------------------*/

/*---------------------------*/
/*---------------------------*/
function get_link_section_by_style_page(style,page,product_id) 
{
  var TDnotationS = $('#td_' + product_id);
  var TRnotationS = $('#tr_' + product_id); 
  var url = "get_links_by_style_page.php?style=" + escape(style) + "&page=" + escape(page) + "&id=" + escape(product_id);
  if (TRnotationS.is(':hidden')){ 
	TDnotationS.html('<img src="decor/small_preloader.gif" width="16" height="16" border="0" alt="..." />');
	$('img#bl_' + product_id).attr('src','decor/bul_2.png'); TDnotationS.show();  TRnotationS.show();
	http.open("GET", url, true);
	http.onreadystatechange =  function() {
	if (http.readyState == 4) {
	    var results = http.responseText;
	    TDnotationS.empty();
		TDnotationS.html(results);
	   }
     }
	http.send(null);
	}else{
	   $('img#bl_' + product_id).attr('src','decor/bul.png'); TDnotationS.empty(); TDnotationS.hide(); TRnotationS.hide();
	}	
}
/*---------------------------*/


/*---------------------------*/
function get_link_section_by_popular_page(base_name,product_id) 
{

  var TDnotationS = $('#td_' + product_id);
  var TRnotationS = $('#tr_' + product_id); 
  var url = "get_links_by_popular_page.php?base_name=" + escape(base_name) + "&id=" + escape(product_id);
  if (TRnotationS.is(':hidden')){ 
	TDnotationS.html('<img src="decor/small_preloader.gif" width="16" height="16" border="0" alt="..." />');
	$('img#bl_' + product_id).attr('src','decor/bul_2.png'); TDnotationS.show();  TRnotationS.show();
	http.open("GET", url, true);
	http.onreadystatechange =  function() {
	if (http.readyState == 4) {
	    var results = http.responseText;
	    TDnotationS.empty();
		TDnotationS.html(results);
	   }
     }
	http.send(null);
	}else{
	   $('img#bl_' + product_id).attr('src','decor/bul.png'); TDnotationS.empty(); TDnotationS.hide(); TRnotationS.hide();
	}
}

/*---------------------------*/


/*---------------------------*/




























function get_link_section_by_random_page(product_id) 
{
    rotate_bl(product_id); 
  var TDnotationS = document.getElementById('td_' + product_id);
  if (TDTDnotationS.style.display == 'none'){
    var url = "get_links_by_random_page.php?id=" + escape(product_id);
	TDTDnotationS.innerHTML = '<img src="decor/small_preloader.gif" width="16" height="16" border="0" alt="..." />';
    TDTDnotationS.style.display = '';	
	http.open("GET", url, true);
	http.onreadystatechange =  function() {
	if (http.readyState == 4) {
	    var results = http.responseText;
		var TDnotationS = document.getElementById('td_' + product_id);
		TDTDnotationS.innerHTML = results;
		TDTDnotationS.style.display = '';
	   }
     }
	http.send(null);
	}else {TDTDnotationS.style.display = 'none';}
}






/*---------------------------*/

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 
//#############################################################
