
var debug = 0;
var win = null;
function Splashed(mypage,myname,w,h)
{
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resize=no,resizable=no,toolbar=no,status=no,location=no'
	var childwin = window.open(mypage,myname,settings)
	childwin.focus()
}

window.onload=skater;
function skater(id)
{
	var d = document.getElementById(id);
	for (var i = 1; i<=10; i++)
	{
		if (document.getElementById('smenu'+i))
		{
			document.getElementById('smenu'+i).style.display='none';
		}
	}
	if (d)
	{
		d.style.display='block';
	}
}

function fontresize()
{
	document.write('<div style=\"position: absolute; left:503px; top:190px;\">');
		document.write('<a href=\"#\" onclick=\"fontSizer(1,\'px\')\" title=\"Increase font-size\">[&nbsp;++ Font Size&nbsp;]</a>&nbsp;');
		document.write('<a href=\"#\" onclick=\"fontSizer(-1,\'px\')\" title=\"Decrease font-size\">[&nbsp;-- Font Size&nbsp;]</a>');
	document.write('</div>');
}

function topmenu()
{
	document.write('<div id=\"topmenu\">');

		document.write('<br><br>');

  	document.write('<dl>');
    	document.write('<dt onmouseover=\"javascript:skater(\'topsmenu0\');\"><ul><li><a href=\"index.html\"title=\"\">Home</a></li></ul></dt>');
  	document.write('</dl>');

  	document.write('<dl>');
			document.write('<dt onmouseover=\"javascript:skater(\'topsmenu1\');\"><ul><li><a href=\"news.html\"title=\"\">News/Events</a></li></ul></dt>');
	 	document.write('</dl>');

  	document.write('<dl>');
			document.write('<dt onmouseover=\"javascript:skater(\'topsmenu2\');\"><ul><li><a href=\"rates.html\"title=\"\">Program Rates</a></li></ul></dt>');
	 	document.write('</dl>');

  	document.write('<dl>');
			document.write('<dt onmouseover=\"javascript:skater(\'topsmenu3\');\"><ul><li><a href=\"coaches.html\"title=\"\">Coaches</a></li></ul></dt>');
	 	document.write('</dl>');

  	document.write('<dl>');
			document.write('<dt onmouseover=\"javascript:skater(\'topsmenu3\');\"><ul><li><a href=\"gallery.php\"title=\"\">Gallery</a></li></ul></dt>');
	 	document.write('</dl>');

  	document.write('<dl>');
			document.write('<dt onmouseover=\"javascript:skater(\'topsmenu5\');\"><ul><li><a href=\"contact.html\"title=\"\">Admin/Contact</a></li></ul></dt>');
	 	document.write('</dl>');

	document.write('</div>');
}

function updated()
{
	document.write('<table align=center border=0 width=100%>');
		document.write('<tr>');
			document.write('<td align=center>');
				document.write('<hr color=#EA3E62>');
				document.write('<font color=\"#333399\" size=\"1\" face=\"Arial\">All contents &copy; 2007/2008 Cold Lake Figure Skating Club');
				document.write('<br>');
				document.write('Site originally created by: <a href=\"http://www.kentmedia.ca/\" target=\"new\">www.kentmedia.ca</a>');
				document.write('<br>');
				document.write('Last Updated: 15 June 2007</font>');
			document.write('</td>');
		document.write('</tr>');
	document.write('</table>');
}

defaultStatus="Cold Lake Figure Skating Club || 2007/2008"


// Copyright 2003 Eddie Traversa
// http://www.dhtmlnirvana.com/
var tags = new Array( 'div','td','tr','p','b','table','strong','emphasis','a','h1','h2','h3','pre','sub','sup','i','th','cp','ul','ol','li','dt','dd');
var pixelArray =  new Array('10','11','12','13','14');
var emArray =  new Array('0.7','0.9','1.0','1.5','2.0','2.5','3');
var initSize = 1;

function fontSizer(inc,unit) {
	if (!document.getElementById)
		return;
	var size = initSize;
	size += inc;
	if (size < 0 )
		size = 0;
	if (size > 4 )
		size = 4;

	initSize = size;
	//alert(size);
	getBody = document.getElementsByTagName('body')[0];
	for (i = 0 ; i < tags.length ; i++ )
	{
		getallTags = getBody.getElementsByTagName(tags[i]);
		for (k = 0 ; k < getallTags.length ; k++)
			getallTags[k].style.fontSize = (unit=='px') ? pixelArray[size]+unit: emArray[size]+unit;
	}
}