

var xmlHttp
function update(id, column, value)
{
	doc_h = (window.innerHeight!=null)? window.innerHeight:(document.documentElement && document.documentElement.clientHeight)? document.documentElement.clientHeight:(document.body!=null)? document.body.clientHeight:0;
	doc_w = (window.innerWidth!=null)? window.innerWidth:(document.documentElement && document.documentElement.clientWidth)? document.documentElement.clientWidth:(document.body!=null)? document.body.clientWidth:0;

	var innerHeight = (doc_h < 900) ? doc_h : 900;
	// var innerWidth = (doc_h < 750) ? doc_h : 750;
	var imgOuterHeight = innerHeight - 185;// 21(.img_title height) + 75/35(.img_outer top/bottom) = 161
		
xmlHttp=GetXmlHttpObject()
tagName = id;
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="items.php"
url=url+"?tagname="+tagName+"&column="+column+"&value="+value+"&imgOuterHeight="+imgOuterHeight+"&windowwidth="+doc_w;
// alert(url)
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function stateChanged()
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("second-load").innerHTML=xmlHttp.responseText;
	smoothScroll.init();
	centerImages();
	initInstruction();
	fadeInstructionFocus();
	$('.shdw').nf_shadow({
			blur: 2,
			topoffset: 1,
			leftoffset:1
	})
 } 
}

// function updateTitles(id, column, value)
// {
// xmlHttp=GetXmlHttpObject()
// if (xmlHttp==null)
//  {
//  alert ("Browser does not support HTTP Request")
//  return
//  }
// // var url="getitems.php"
// var url="itemtitles.php"
// url=url+"?id="+tagNr
// // alert(url)
// url=url+"&sid="+Math.random()
// xmlHttp.onreadystatechange=stateTitlesChanged 
// xmlHttp.open("GET",url,true)
// xmlHttp.send(null)
// }
// function stateTitlesChanged() 
// { 
// if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
//  { 
//  document.getElementById("navigation-titles").innerHTML=xmlHttp.responseText;
// 	smoothScroll.init();
//  } 
// }


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