
function cOn(td,sColor){
	if(document.getElementById||(document.all && !(document.getElementById))){
		td.style.backgroundColor=sColor;
	}
	td.style.cursor = "pointer";
}

function cOut(td,sColor){
	if(document.getElementById||(document.all && !(document.getElementById))){
		td.style.backgroundColor=sColor;
	}
}
function ShowMenu(MenuID){
		var ShowElement = document.getElementById(MenuID);
		HideDivs(MenuID);
		if(ShowElement.style.display == 'none'){
			ShowElement.style.display = 'block';
		}else{
			ShowElement.style.display = 'none';
		}
}
function HideDivs(MenuID){
	for(i=1;i<5;i++){
		document.getElementById("News").style.display = 'none';	
		document.getElementById("2007").style.display = 'none';
		document.getElementById("2006").style.display = 'none';
		document.getElementById("Profile").style.display = 'none';
			}
}
function getQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  } 
}
function FlashName ()
{
 	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="179" height="75">\n');
	document.write('<param name="movie" value="flash/Name.swf">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<param name="menu" value="false"><param name="BGCOLOR" value="#FFFFFF">\n');
	document.write('<embed src="flash/Name.swf" width="179" height="75" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#FFFFFF"></embed></object>\n');
}
function FlashGallery ()
{
	
 	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="680" height="530">\n');
	document.write('<param name="movie" value="flash/gallery2.swf?Cat=' +getQueryVariable("Cat") + '&Gallery='+getQueryVariable("Gallery")+' ">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<param name="menu" value="false"><param name="BGCOLOR" value="#FFFFFF">\n');
	document.write('<embed src="flash/gallery2.swf?Cat=' +getQueryVariable("Cat") + '&Gallery='+getQueryVariable("Gallery")+'" width="680" height="530" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#FFFFFF"></embed></object>\n');
}
function ChangeBG(sImage){
	document.body.background = "/images/"+sImage;
}

function GoTo(url,sPopUp){
	if(!sPopUp){
		window.location = url;	
	}else{
		Npop = window.open(url);
		oldWin = Npop.opener;
	}
}
function go(url,w,h,pagename) {
	//var dim = eval('"width=' + w + ',height=' + h );
	Npop = window.open(url,pagename);
	oldWin = Npop.opener;
}

