// JavaScript Document

/*function getClientWidth() {
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
}

function getClientHeight() {
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
}*/

  /* var width = document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
   var height = document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
   */
   /*var width = document.documentElement.clientWidth;
  	var height = document.documentElement.clientHeight;*/
//document.body.onresize='location.reload(true)' ;

function resizeContainer(){
var height = document.documentElement.clientHeight;
var width = document.documentElement.clientWidth;
var boxHeight = document.getElementById("container").scrollHeight;
var boxHeight2 = document.getElementById("container2").scrollHeight;
var footerHeight = document.getElementById("footer").scrollHeight;

if(boxHeight<height){
newHeight = height-footerHeight; // add -1 here if there's scrollbar issues in IEv
document.getElementById('container').style.height= newHeight+'px';

}else if(boxHeight>height){

document.getElementById('container').style.height= boxHeight2+'px';
}//end if



if(width>1120){
	document.getElementById('basket').style.display = 'block';
	}
	
if(height<700){
	document.getElementById('footergraphic').style.display = 'none';
	
	}



document.getElementById('footergraphic').style.width = width+'px';



}//end function resizeContainer




function reloadIt() {
document.location = document.location;

}



/*
window.onresize = function(){
reloadIt(); resizeContainer();
}*/

