var xmlHttpFanshop

function getAjaxFanshop(position) {
document.getElementById("divAjaxWebshop").style.opacity = 0.3;

xmlHttpFanshop=GetxmlHttpFanshopObject()
if (xmlHttpFanshop==null)
  {
  alert ("Browser does not support HTTP Request")
  return
  } 
var url
url="module/webshop/php/ajax_webshop.php"
url=url+"?position="+position
url=url+"&sid="+Math.random()
xmlHttpFanshop.onreadystatechange=stateChangedFanshopItem
xmlHttpFanshop.open("GET",url,true)
xmlHttpFanshop.send(null)
} 

function stateChangedFanshopItem() 
{ 
if (xmlHttpFanshop.readyState==4 || xmlHttpFanshop.readyState=="complete")
 { 
  document.getElementById("divAjaxWebshop").innerHTML=xmlHttpFanshop.responseText
  document.getElementById("divAjaxWebshop").style.opacity = 1.0;
 } 
}

function GetxmlHttpFanshopObject()
{
var xmlHttpFanshop=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpFanshop=new XMLHttpRequest();
 }
catch (e)
 {
 // Internet Explorer
 try
  {
  xmlHttpFanshop=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpFanshop=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpFanshop;
}
