function showHideContent(scn,left_right) {
	// if we are clicking the left menu item
	if (left_right == 'left') {
		// see if we're changing sides, if not, then close the menu
		if (document.getElementById('left_scn_'+scn).style.display == 'none') {
			// show the left div and hide the right
			document.getElementById('left_scn_'+scn).style.display = 'block';
			document.getElementById('right_scn_'+scn).style.display = 'none';
			// check if we have to show the menu
			if ($('scn_'+scn).style.display == 'none') {
				new Effect.SlideDown($('scn_'+scn));
			}
		} else {
			// toggle the menu
			new Effect.toggle($('scn_'+scn), 'slide');
		}
	} else {
		// see if we're changing sides, if not, then close the menu
		if (document.getElementById('right_scn_'+scn).style.display == 'none') {
			// hide the left div and showthe right
			document.getElementById('left_scn_'+scn).style.display = 'none';
			document.getElementById('right_scn_'+scn).style.display = 'block';
			if ($('scn_'+scn).style.display == 'none') {
				new Effect.SlideDown($('scn_'+scn));
			}
		} else {
			// toggle the menu
			new Effect.toggle($('scn_'+scn), 'slide');
		}
	}	
}

function showContent(scn,left_right) {
	// if we are clicking the left menu item
	if (left_right == 'left') {
		// see if we're changing sides, if not, then close the menu
		if (document.getElementById('left_scn_'+scn).style.display == 'none') {
			// show the left div and hide the right
			document.getElementById('left_scn_'+scn).style.display = 'block';
			document.getElementById('right_scn_'+scn).style.display = 'none';
			// check if we have to show the menu
			if ($('scn_'+scn).style.display == 'none') {
				new Effect.SlideDown($('scn_'+scn));
			}
		} else {
			// toggle the menu
			new Effect.toggle($('scn_'+scn), 'slide');
		}
	} else {
		// see if we're changing sides, if not, then close the menu
		if (document.getElementById('right_scn_'+scn).style.display == 'none') {
			// hide the left div and showthe right
			document.getElementById('left_scn_'+scn).style.display = 'none';
			document.getElementById('right_scn_'+scn).style.display = 'block';
			if ($('scn_'+scn).style.display == 'none') {
				new Effect.SlideDown($('scn_'+scn));
			}
		} else {
			// toggle the menu
			new Effect.toggle($('scn_'+scn), 'slide');
		}
	}	
}

function hideContent(scn,left_right) {
	// if we are clicking the left menu item
	if (left_right == 'left') {
		// see if we're changing sides, if not, then close the menu
		if (document.getElementById('left_scn_'+scn).style.display == 'none') {
			// show the left div and hide the right
			document.getElementById('left_scn_'+scn).style.display = 'block';
			document.getElementById('right_scn_'+scn).style.display = 'none';
			// check if we have to show the menu
			if ($('scn_'+scn).style.display == 'none') {
				new Effect.SlideDown($('scn_'+scn));
			}
		} else {
			// toggle the menu
			new Effect.toggle($('scn_'+scn), 'slide');
		}
	} else {
		// see if we're changing sides, if not, then close the menu
		if (document.getElementById('right_scn_'+scn).style.display == 'none') {
			// hide the left div and showthe right
			document.getElementById('left_scn_'+scn).style.display = 'none';
			document.getElementById('right_scn_'+scn).style.display = 'block';
			if ($('scn_'+scn).style.display == 'none') {
				new Effect.SlideDown($('scn_'+scn));
			}
		} else {
			// toggle the menu
			new Effect.toggle($('scn_'+scn), 'slide');
		}
	}	
}

function open_win(theURL,winName,features) { // stolen from macromedia - thanks!
  window.open(theURL,winName,features);
}

function go_fullscreen() {
	self.moveTo(0,0);
	self.resizeTo(screen.availWidth,screen.availHeight);
}

function create_menu(menu_name, menu_list) {
	document.write ("Menu: ");
	for (x=0; x<menu_list.length; x++) {
		document.write ("|&nbsp;<a href=" + menu_list[x][0] + ">" + menu_list[x][1] + "</a>&nbsp;");
	}
	document.write("|");
}

function redirect(foo) {
	window.location = foo;
}

function change(id,newtext) {
	document.getElementById(id).innerHTML=newtext;
}

function create_menu(menu_name, menu_list) {
        document.write ("Menu: ");
        for (x=0; x<menu_list.length; x++) {
                document.write ("|&nbsp;<a href=" + menu_list[x][0] + ">" + menu_list[x][1] + "</a>&nbsp;");
        }
        document.write("|");
}

function create_menu2(menu_title, menu_name, menu_list) {
        document.write (menu_title + ': ');
        for (x=0; x<menu_list.length; x++) {
                document.write ("|&nbsp;<a href=" + menu_list[x][0] + ">" + menu_list[x][1] + "</a>&nbsp;");
        }
        document.write("|");
}

function redirect(foo) {
        window.location = foo;
}

