var openFaq = false;

function enlarge() {
	if (arguments.length == 1) {
		url = arguments[0].replace("thumb","large").replace("small","large").replace("normal","large").replace("page","large");
		window.open("enlarge.asp?img="+url,'taxizeevangenlarge','width=300,height=200,top=100,left=200');
	}
}

function faqOpen(id) {
	if (openFaq) {
		faqClose(openFaq);
	}
	document.getElementById("faq" + id + "_open").style.display="block";
	document.getElementById("faq" + id + "_closed").style.display="none";
	openFaq = id;
	window.location = "#f" + id;
}

function faqClose(id) {
	document.getElementById("faq" + id + "_open").style.display="none";
	document.getElementById("faq" + id + "_closed").style.display="block";
	openFaq = false;
}

function fix() {

	var x,y;
	if (self.innerHeight) {
		x = self.innerWidth;
		y = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) {
		x = document.documentElement.clientWidth;
		y = document.documentElement.clientHeight;
	} else if (document.body) {
		x = document.body.clientWidth;
		y = document.body.clientHeight;
	}

	if (y <= 600) {
	
		var aDivs = document.getElementsByTagName("div");
		var inner;
		
		for (i=0;i<aDivs.length;i++) {
			if (aDivs[i].style.position == "absolute") {
				inner = aDivs[i].innerHTML;
				if (inner.indexOf("Home") == -1 && inner.indexOf("stats.asp") == -1) {
					aDivs[i].style.position = "";
					aDivs[i].style.marginTop = "30px"
				}
			}
		}
		
	}
	
}