var p = document.getElementsByTagName("p").length;

function setItOff()
{
	var wHeight; var wWidth; var galleryDiv = document.getElementById("post-248");
	var para = document.getElementsByTagName("p").item(0); var hOne = document.getElementsByTagName("h1").item(0);
	var logo = document.images[0];
	if (window.event && document.documentElement.clientHeight != 0) 
	{
		wWidth = document.documentElement.clientWidth; 
		wHeight = document.documentElement.clientHeight;
	}
	else 
	{
		if (window.event && document.documentElement.clientHeight == 0) {wWidth = document.body.clientWidth; wHeight = document.body.clientHeight;}
		else {wWidth = window.innerWidth; wHeight = window.innerHeight;}
	}
	wWidth = parseInt(wWidth);
	if (wWidth > 880) 
	{
		for (i = 0; i < p; i++) {document.getElementsByTagName("p").item(i).style.fontSize = "14px";}
		for (i=2; i<6; i++) {document.getElementById("rightCol_" + i).style.marginBottom = "18px"}
		document.getElementById("rightCol_1s").style.marginBottom = "18px";
		logo.style.marginTop = "2.5%"; logo.style.marginLeft = "2.5%";
		hOne.style.fontSize = "34px"; hOne.style.marginTop = "18px";
	} 
	else 
	{
		for (i = 0; i < p; i++) {document.getElementsByTagName("p").item(i).style.fontSize = "13px";}
		for (i=2; i<6; i++) {document.getElementById("rightCol_" + i).style.marginBottom = "8px"} 
		document.getElementById("rightCol_1s").style.marginBottom = "8px";
		logo.style.marginTop = "5%"; logo.style.marginLeft = "5%";
		hOne.style.fontSize = "30px"; hOne.style.marginTop = "20px";
	}
	document.body.style.minHeight = wHeight + "px";
	var docHeight = (document.height !== undefined) ? document.height : document.body.offsetHeight;
	if (wHeight < docHeight) {
		//document.getElementById("copyright").id = "copy2";
	}
	else {}
}

window.onresize = setItOff;