function contentloader(url,id) {
  if (document.getElementById) {
    var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
  }
  if (x) {
    x.onreadystatechange = function() {
	el = document.getElementById(id);
        el.innerHTML = "<img src='/images/loaders/long.gif' style='margin:0px; border:none; padding:0px'>";

      if (x.readyState == 4 && x.status == 200) {
        el = document.getElementById(id);
        el.innerHTML = x.responseText;
      }
    }
    x.open("GET", url, true);
    x.send(null);
  }
}

function miniloader(url,id) {
  if (document.getElementById) {
    var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
  }
  if (x) {
    x.onreadystatechange = function() {
	el = document.getElementById(id);
        el.innerHTML = "<img src='/images/loaders/mini.gif' style='margin:0px; border:none; padding:0px'>";

      if (x.readyState == 4 && x.status == 200) {
        el = document.getElementById(id);
        el.innerHTML = x.responseText;
      }
    }
    x.open("GET", url, true);
    x.send(null);
  }
}

function youtubeloader(id,val) {
  if (document.getElementById) {
    var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
  }
  if (x) {
    x.onreadystatechange = function() {
	el = document.getElementById(id);
        el.innerHTML = "<img src='/images/loaders/long.gif' style='margin:0px; border:none; padding:0px'>";

      if (x.readyState == 4 && x.status == 200) {
        el = document.getElementById(id);
        el.innerHTML = x.responseText;
      }
    }
	var url2 = '/account/profile/videos/youtube/preview/?val='+val;
    x.open("GET", url2, true);
    x.send(null);
  }
}

function minisideloader(url,id) {
  if (document.getElementById) {
    var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
  }
  if (x) {
    x.onreadystatechange = function() {
	el = document.getElementById(id);
        el.innerHTML = "<img src='/images/loaders/mini.gif' style='margin:0px; border:none; padding:0px; padding-left:10px; padding-top:6px'>";

      if (x.readyState == 4 && x.status == 200) {
        el = document.getElementById(id);
        el.innerHTML = x.responseText;
      }
    }
    x.open("GET", url, true);
    x.send(null);
  }
}

function likeloader(url) {
  if (document.getElementById) {
    var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
  }
  if (x) {
    x.onreadystatechange = function() {
	el = document.getElementById("like");
        el.innerHTML = "<div style='float:left; width:74px; margin-left:30px'><img src='/images/loaders/mini.gif' style='margin:0px; border:none; padding:0px; padding-left:10px; padding-top:6px'></div>";

      if (x.readyState == 4 && x.status == 200) {
        el = document.getElementById("like");
        el.innerHTML = x.responseText;
      }
    }
    x.open("GET", url, true);
    x.send(null);
  }
}

function mlikeloader(url,id) {
  if (document.getElementById) {
    var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
  }
  if (x) {
    x.onreadystatechange = function() {
	el = document.getElementById(id);
        el.innerHTML = "<div style='float:left; width:74px; margin-left:30px'><img src='/images/loaders/mini.gif' style='margin:0px; border:none; padding:0px; padding-left:10px; padding-top:6px'></div>";

      if (x.readyState == 4 && x.status == 200) {
        el = document.getElementById(id);
        el.innerHTML = x.responseText;
      }
    }
    x.open("GET", url, true);
    x.send(null);
  }
}
