// JavaScript Document


var nav = Class.create();
nav.prototype = {
	initialize: function() {
		//this.play();
	},

	click: function(id) {
		var div = document.getElementById(id);
		if ( div.style.display != 'none' ) {
			new Effect.SlideUp(div);
		}else {
			new Effect.SlideDown(div);
		}
	}
};

var nav = new nav;

	
	/*function nav(id) {

	}*/

	function write(text,id)
	{
		if (document.getElementById)
		{
			x = document.getElementById(id);
			x.innerHTML = '';
			x.innerHTML = text;
		}
		else if (document.all)
		{
			x = document.all[id];
			x.innerHTML = text;
		}
		else if (document.layers)
		{
			x = document.layers[id];
			text2 = '<P CLASS="testclass">' + text + '</P>;';
			x.document.open();
			x.document.write(text2);
			x.document.close();
		}
	}

	function read(id)
	{
		if (document.getElementById)
		{
			x = document.getElementById(id);
			text = x.innerHTML;
		}
		else if (document.all)
		{
			x = document.all[id];
			text = x.innerHTML;
		}
		else if (document.layers)
		{
			x = document.layers[id];
			x.document.open();
			text = x.document.innerHTML;
			x.document.close();
		}
		return text;
	}
	
	function copy(from,to){
		write(read(from),to);
	}