//JS FILE
function getPageSizeWithScroll()
{
	if (window.innerHeight && window.scrollMaxY) 
	{// Firefox
	yWithScroll = window.innerHeight + window.scrollMaxY;            
	} 
	else if (document.body.scrollHeight > document.body.offsetHeight)
	{ // all but Explorer Mac
	yWithScroll = document.body.scrollHeight;
	} 
	else 
	{ // works in Explorer 6 Strict, Mozilla (not FF) and Safari
	yWithScroll = document.body.offsetHeight;
	} 
PSWS=yWithScroll;

return PSWS; 
}


var xmlHttp
var xmlHttp1

function grabit(side,state,vtype)
{

xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
var prot=location.protocol;
var loc=location.hostname;

var hhh=getPageSizeWithScroll();
var url=prot+"//"+loc+"/sidebar/left";
url=url+"?hhh="+hhh+"&s="+side+"&st="+state+"&vtp="+vtype
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);


} 

function grabit2(side,state,vtype)
{

xmlHttp1=GetXmlHttpObject1()
if (xmlHttp1==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
var prot=location.protocol;
var loc=location.hostname;
var hhh=getPageSizeWithScroll();
var url=prot+"//"+loc+"/sidebar/right";
url=url+"?hhh="+hhh+"&s="+side+"&st="+state+"&vtp="+vtype
xmlHttp1.onreadystatechange=stateChanged1;
xmlHttp1.open("GET",url,true);
xmlHttp1.send(null);


} 

function stateChanged() 
{ 
	if (xmlHttp.readyState==4)
	{ 
		
		document.getElementById("lower_left").innerHTML=xmlHttp.responseText;
		
	}
}
function stateChanged1() 
{ 
	if (xmlHttp1.readyState==4)
	{ 
		
		document.getElementById("lower_right").innerHTML=xmlHttp1.responseText;
		
	}
}
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;
}

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