function alertSize(){
	var myWidth=0,myHeight=0;
	if(typeof(window.innerWidth)=='number'){
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	}else if(document.documentElement && (document.documentElement.clientWidth||document.documentElement.clientHeight)){
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	return myWidth;
}
/*
window.onload=function(){

	var fixed = document.getElementById("fixed");
	var fixed2 = document.getElementById("fixed2");
	
	var width = alertSize();
	if(width<1100){
		fixed.style.display='none';
		fixed2.style.display='none';
	}else{
		fixed.style.display='block';
		fixed2.style.display='block';
	}
	
	var top = (0-fixed.offsetHeight+(document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight)+(ignoreMe=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)-240);
	fixed.style.top = (top>15)?top+'px':'15px';	
	fixed2.style.top = (top>15)?top+'px':'15px';	
	
	window.onscroll=function(){
		top = (0-fixed.offsetHeight+(document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight)+(ignoreMe=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)-240);
		fixed.style.top = (top>15)?top+'px':'15px';
		fixed2.style.top = (top>15)?top+'px':'15px';
	}
	
	window.onresize=function(){
		var width = alertSize();
		if(width<1100){
			fixed.style.display='none';
		}else{
			fixed.style.display='block';
		}
		
	}
}
*/
