typesize="reg";

function popUpContact() {
testwindow= window.open ("/popup_contactus.asp", "mywindow","location=0,status=0,scrollbars=0,toolbar=0,width=375,height=175");
}

function popUpContest() {
testwindow= window.open ("/launchcontest/index.asp", "mywindow","location=0,status=0,scrollbars=0,toolbar=0,width=981,height=792");
}

function setLinkedStyleSheet(title) {
var oLink = document.createElement("link") 
oLink.href = "/css/lgfont.css"; 
oLink.rel = "stylesheet"; 
oLink.type = "text/css"; 
document.body.appendChild(oLink);
}

function popUp(x,y,z,g) {
varURL="/popup_"+x+".asp?link="+g+"&x=1"
testwindow= window.open (varURL, "mywindow","location=0,status=0,scrollbars=0,toolbar=0,width="+y+",height="+z+"");
}

function popUpShare(x,y,z,g) {
varURL="/popup_share.asp?link="+g+""
testwindow= window.open (varURL, "mywindow","location=0,status=0,scrollbars=0,toolbar=0,width="+y+",height="+z+"");
}

function toggleType() {
	var oLink = document.createElement("link")
	oLink.href = "/css/lgfont.css"; 
	oLink.rel = "stylesheet"; 
	oLink.type = "text/css";
	oLink.id = "lgtext";
	
	if (document.getElementById('typetoggle').className=="lgtext"){
		document.body.appendChild(oLink);
		document.getElementById('typetoggle').className="regtext";
		document.getElementById('typetoggle').innerHTML="Small text";
	} else {
		document.styleSheets('lgtext').disabled = true
		document.getElementById('typetoggle').className="lgtext";
		document.getElementById('typetoggle').innerHTML="Large text";
	}
}


$(document).ready(function(){
	//hide the all of the element with class msg_body
	$(".toggleBody").hide();
	
	$(".toggleLink").click(function(){
		var $this = $(this);
		var triggerID = $(this).attr("id");
		$("#"+triggerID).slideToggle();
		$("#alt_"+triggerID).removeClass('hidden');
		t = setTimeout(function() {$("#alt_"+triggerID).slideToggle()}, 100); 
		return false;
	});
	
});

