function setContentSize(){
	if(document.getElementById('flash_container')){
		var winHeight=((window.innerHeight) ? window.innerHeight : document.documentElement.clientHeight);  //get window->height
		var cntHeight=parseInt(document.getElementById('masthead').offsetHeight + document.getElementById('footer').offsetHeight); //get other-content-height
		document.getElementById('flash_container').style.height=parseInt(winHeight-cntHeight) + 'px'; //set flash-container-output height
		document.getElementsByTagName('HTML')[0].style.overflow='hidden'; //set HTML-Tag overflow:hidden NO-SCROLLBARS
	}
}
window.onload=function(){
	setContentSize();
}

window.onresize=function(){
	setContentSize();
}

function findPosX(obj){
	var curleft = 0;
	if (obj.offsetParent){while (obj.offsetParent){curleft += obj.offsetLeft;obj = obj.offsetParent;};}else if (obj.x){curleft += obj.x;}
	return curleft;
}
function findPosY(obj){
	var curtop = 0;
	if (obj.offsetParent){while (obj.offsetParent){curtop += obj.offsetTop;obj = obj.offsetParent;};}else if (obj.y){curtop += obj.y;}
	return curtop;
}

var hTm=false;
function shareThis(obj){
	var tObj=document.getElementById('dvShareThis');
	tObj.style.left=(findPosX(obj) + obj.offsetWidth - 120) +  "px";
	tObj.style.display='block';
	tObj.style.top=findPosY(obj) - tObj.getElementsByTagName('DIV')[0].offsetHeight + "px";
}
function hideShareThis(){
	hTm=setTimeout("document.getElementById('dvShareThis').style.display='none'",750);
}
function clearShareThis(){
	if(hTm){
		clearTimeout(hTm);
		hTm=false;
	}
}