// Footer Alignment
var d = document;
function footerAlign(){
var divs = d.getElementsByTagName("DIV");
	for(var i = 0; i < divs.length; i++) {
		if(divs[i].className == "globalContainer" && !window.mainH){
			window.mainH = divs[i].offsetHeight;
		}else if(divs[i].className == "footerContainer"){
			var footer = divs[i];
			footer.style.paddingTop = 0;
			var screenH = d.body.offsetHeight;
			if(screenH > window.mainH){
//			alert(screenH - window.mainH);
				footer.style.paddingTop = screenH - window.mainH - 5 + "px";
			}
		}
	}
}

// Mail AntiSmap
function mailUs(){
	location.href='mailto:help@spaceandpeople.com';
}

// BG img cache in IE
	if (d.uniqueID && document.compatMode && !window.XMLHttpRequest && d.execCommand)  
		d.execCommand('BackgroundImageCache', false, true); 
		
		
// Liquid columns
function reziseColumn(dl){
 if(typeof dl=="string")dl=document.getElementById(dl);
 var c,m,i,o,dt,d=document;
 for(i=0;i<dl.childNodes.length;){
  o=dl.childNodes[i++];
  if(o.tagName=="DT")dt=o;
  else if(o.tagName=="DD"&&dt){
   m=0;c=dt.currentStyle;
   if(d.defaultView&&d.defaultView.getComputedStyle){
    c=d.defaultView.getComputedStyle(dt,"");
    m=(parseInt(c.getPropertyValue("border-bottom-width"))||0)+(parseInt(c.getPropertyValue("border-top-width"))||0);
   }else if(c)m=(parseInt(c.borderBottomWidth)||0)+(parseInt(c.borderTopWidth)||0);
   if(o.offsetHeight<dt.offsetHeight)o.style.height=dt.offsetHeight-m+"px";
   else dt.style.height=o.offsetHeight-m+"px";
  }
 }
}
