var curleft = 0;
var curtop = 0;

function getwindowsize() {
if (navigator.userAgent.indexOf("MSIE") > 0) {
var sSize = (document.body.clientWidth * document.body.clientHeight);
return sSize;
} else {                                                
var sSize = (window.outerWidth * window.outerHeight);
return sSize;
}
return;      
}

function getPosition(objpos){
	if (objpos.offsetParent) {
		curleft = objpos.offsetLeft;
		curtop = objpos.offsetTop;
		while (objpos = objpos.offsetParent) {
			curleft += objpos.offsetLeft;
			curtop += objpos.offsetTop;
		}
	}
}
var curwidth = 0;
var curheight = 0;
function pageWidth() {
	curwidth = window.innerWidth != null ? 
	window.innerWidth : document.documentElement && document.documentElement.clientWidth ? 
	document.documentElement.clientWidth : document.body != null ? 
	document.body.clientWidth : null;
}
function pageHeight() {
	curheight = window.innerHeight != null ? 
	window.innerHeight : document.documentElement && document.documentElement.clientHeight ?  
	document.documentElement.clientHeight : document.body != null ? 
	document.body.clientHeight : null;
}
var runtimeout = 0;


function positionImages(){ 
	pageWidth();
	pageHeight();
	getPosition(document.getElementById("Header-Position"));
	
	var Headercontainer = curleft - 5;
	var Logocontainer = curleft - 35;
	
	document.getElementById("Headercontainer").style.left = Headercontainer + 'px';
	document.getElementById("Logocontainer").style.left = Logocontainer + 'px';
	
	
}

function positionCalendar(){ 
	pageWidth();
	pageHeight();
	getPosition(document.getElementById("Calendar-Position"));
	
	var Calendarcontainer = curleft + 1;
	var Calendarcontainer = curtop - 5;
	var Datecontainer = curleft + 1;
	var Datecontainer = curtop + 5;
	
	document.getElementById("Calendarcontainer").style.left = Calendarcontainer + 'px';
	document.getElementById("Datecontainer").style.left = Datecontainer + 'px';
	
}

var edress = 'events_at_stellarlanes_dot_com';
function get_edress(){
var re= /_at_/gi;
edress = edress.replace(re,'@');
var re= /_dot_/gi;
edress = edress.replace(re,'.');
var the_link="mai" + "lto" +":"+edress+"?subject=Feedback%20from%20Stellar%20Lanes%20Website&body=Thank%20you%20for%20contacting%20us%21%20We%20look%20forward%20to%20helping%20you%20with%20your%20inquiry%21" ;
window.location=the_link;
}




