//<!--
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Préchargement d'images
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
im1 = new Image;
im1.src = "/all/images/livreo.gif";

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Variables globales
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// taille du navigateur
var xMax = 0;
var yMax = 0;
var xMenu = 0;
var killTimeout;
var goURL = '';

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Taille du navigateur
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
function taille_nav()
{
	if (navigator.appName == 'Microsoft Internet Explorer')
	{
		xMax = document.body.clientWidth;
		yMax = document.body.clientHeight + document.body.scrollTop;
	}
	else
	{
		xMax = window.innerWidth;
		yMax = window.innerHeight;
	}
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Connexion à l'espace membre
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
function closeConnectWindow()
{
	document.getElementById ('connectWindow').style.display = 'none';
	return false;
}

function connect()
{
	// Build the connection window
	div = document.getElementById ('connectWindow');

	if (div.style.display == 'none')
	{
		// Content
		div.innerHTML = '<form method="post" action="/membre/connecte.php"><p><label for="username">Pseudo : </label><input type="text" name="username" id="username" size="20" class="textbox" /></p><p><label for="pssw">Mot de passe : </label><input type="password" name="pssw" id="pssw" size="20" class="textbox" /></p><p><input type="submit" value="Se connecter" name="envoyer" class="button" /><input type="hidden" name="envoi" value="OK" /><input type="hidden" name="go" value="' + goURL + '" /></p></form><p style="text-align: right;"><a href="#" onclick="return closeConnectWindow();">[Fermer]</a></p>';

		// Style
		div.style.top = '123px';
		div.style.fontSize = '12px';
		div.style.textAlign = 'left';
		div.style.position = 'absolute';
		div.style.border = '1px dashed #000';
		div.style.background = '#ffc';
		div.style.padding = '10px';
		div.style.display = 'block';

		return false;
	}
	return closeConnectWindow();
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Pour gérer les onglets Windows / Linux
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
function initTabs (name)
{
	document.getElementById (name + '_title_windows').style.display = 'none';
	if (document.getElementById (name + '_title_vista')) document.getElementById (name + '_title_vista').style.display = 'none';
	document.getElementById (name + '_title_linux').style.display = 'none';
	document.getElementById (name + '_title_macosx').style.display = 'none';
	showWindows (name);
}
function showWindows (name)
{
	document.getElementById (name + '_windows').style.display = 'inline';
	if (document.getElementById (name + '_vista')) document.getElementById (name + '_vista').style.display = 'none';
	document.getElementById (name + '_linux').style.display = 'none';
	document.getElementById (name + '_macosx').style.display = 'none';
	document.getElementById (name + '_tab_windows').className = 'current';
	if (document.getElementById (name + '_vista')) document.getElementById (name + '_tab_vista').className = '';
	document.getElementById (name + '_tab_linux').className = '';
	document.getElementById (name + '_tab_macosx').className = '';
	return false;
}
function showVista (name)
{
	document.getElementById (name + '_windows').style.display = 'none';
	document.getElementById (name + '_vista').style.display = 'inline';
	document.getElementById (name + '_linux').style.display = 'none';
	document.getElementById (name + '_macosx').style.display = 'none';
	document.getElementById (name + '_tab_windows').className = '';
	document.getElementById (name + '_tab_vista').className = 'current';
	document.getElementById (name + '_tab_linux').className = '';
	document.getElementById (name + '_tab_macosx').className = '';
	return false;
}
function showLinux (name)
{
	document.getElementById (name + '_windows').style.display = 'none';
	if (document.getElementById (name + '_vista')) document.getElementById (name + '_vista').style.display = 'none';
	document.getElementById (name + '_linux').style.display = 'inline';
	document.getElementById (name + '_macosx').style.display = 'none';
	document.getElementById (name + '_tab_windows').className = '';
	if (document.getElementById (name + '_vista')) document.getElementById (name + '_tab_vista').className = '';
	document.getElementById (name + '_tab_linux').className = 'current';
	document.getElementById (name + '_tab_macosx').className = '';
	return false;
}
function showMacOSX (name)
{
	document.getElementById (name + '_windows').style.display = 'none';
	if (document.getElementById (name + '_vista')) document.getElementById (name + '_vista').style.display = 'none';
	document.getElementById (name + '_linux').style.display = 'none';
	document.getElementById (name + '_macosx').style.display = 'inline';
	document.getElementById (name + '_tab_windows').className = '';
	if (document.getElementById (name + '_vista')) document.getElementById (name + '_tab_vista').className = '';
	document.getElementById (name + '_tab_linux').className = '';
	document.getElementById (name + '_tab_macosx').className = 'current';
	return false;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Pour gérer les onglets LearningCenter
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
function resetTabs()
{
	document.getElementById('infos_title').style.display = 'none';
	document.getElementById('resources_title').style.display = 'none';
	document.getElementById('results_title').style.display = 'none';
	document.getElementById('comments_title').style.display = 'none';

	document.getElementById('resources').style.display = 'none';
	document.getElementById('results').style.display = 'none';
	document.getElementById('comments').style.display = 'none';
}

function showTab (name)
{
	document.getElementById('infos').style.display = (name == 'infos' ? 'inline' : 'none');
	document.getElementById('resources').style.display = (name == 'resources' ? 'inline' : 'none');
	document.getElementById('results').style.display = (name == 'results' ? 'inline' : 'none');
	document.getElementById('comments').style.display = (name == 'comments' ? 'inline' : 'none');

	document.getElementById('infos_tab').className = (name == 'infos' ? 'current' : '');
	document.getElementById('resources_tab').className = (name == 'resources' ? 'current' : '');
	document.getElementById('results_tab').className = (name == 'results' ? 'current' : '');
	document.getElementById('comments_tab').className = (name == 'comments' ? 'current' : '');

	return false;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Pour gérer les onglets exercices
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
var currentExTab = 1;
function resetExTabs (n)
{
	document.getElementById ('exq1').style.display = 'block';
	for (i = 2; i <= n; i++)
	{
		document.getElementById ('exq' + i).style.display = 'none';
	}
}

var topExScroll = 240;
function switchQ (n)
{
	document.getElementById ('exq' + currentExTab).style.display = 'none';
	document.getElementById ('exqa' + currentExTab).className = '';

	document.getElementById ('exq' + n).style.display = 'block';
	document.getElementById ('exqa' + n).className = 'current';
	currentExTab = n;
	scroll (0, topExScroll);

	return false;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Affiche un popup
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
function ouvrirPopUp (url)
{
	window.open (url, 'PopUp');
}

function popLatexCmd (cmd)
{
	window.open ('http://www.ukonline.be/programmation/latex/ressources/commandes/detail.php?cmd=' + cmd, 'PopUp');
}

function extLink (id)
{
	window.open ('http://www.ukonline.be/extern.php?id=' + id, 'Lien externe', 'toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=' + screen.availWidth + ',height=' + screen.availHeight + ',left=0,right=0');
}

function gotoURL (url)
{
	window.location = url;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Pour les menus rapides
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
function window_resize()
{
	taille_nav();

	if (xMax <= 845)
	{
		document.getElementById('connectWindow').style.left = 475 + xMenu + 'px';
		document.getElementById('quickMenu1').style.left = xMenu + 'px';
		document.getElementById('quickMenu2').style.left = xMenu + 150 + 'px';
		document.getElementById('quickMenu3').style.left = xMenu + 300 + 'px';
		document.getElementById('quickMenu4').style.left = xMenu + 450 + 'px';
		document.getElementById('quickMenu5').style.left = xMenu + 600 + 'px';
	}
	else
	{
		document.getElementById('connectWindow').style.left = 475 + xMenu + ((xMax - 845) / 2) + 'px';
		document.getElementById('quickMenu1').style.left = xMenu + ((xMax - 845) / 2) + 'px';
		document.getElementById('quickMenu2').style.left = xMenu + 150 + ((xMax - 845) / 2) + 'px';
		document.getElementById('quickMenu3').style.left = xMenu + 300 + ((xMax - 845) / 2) + 'px';
		document.getElementById('quickMenu4').style.left = xMenu + 450 + ((xMax - 845) / 2) + 'px';
		document.getElementById('quickMenu5').style.left = xMenu + 600 + ((xMax - 845) / 2) + 'px';
	}
}

window.onresize = window_resize;

var menus = new Array (
	/*0*/
	new Array (
		'Programmation', 1, '/programmation/',
		'Internet', 9, '/internet/',
		'Cours', 2, '/cours/',
		'Programmes', 11, '/prog/',
		'Magazine', -1, '/magazine/',
		'Learning center', 19, '/learningcenter/',
		'Forums', 21, '/forum/'
	),
	/*1*/
	new Array (
		'Java', 3, '/programmation/java/',
		'HTML', 24, '/programmation/html/',
		'LaTeX', 30, '/programmation/latex/',
		'Gnuplot', 13, '/programmation/gnuplot/'
	),
	/*2*/
	new Array (
		'Mathématique', -1, '/cours/math/',
		'Informatique', 16, '/cours/informatique/',
		'Langue', 31, '/cours/langue/'
	),
	/*3*/
	new Array (
		'Environnement', 15, '/programmation/java/environnement.php',
		'Tutoriel', 4, '/programmation/java/tutoriel/',
		'Pratique', 7, '/programmation/java/pratique/',
		'Exercices', 8, '/programmation/java/exercices/',
		'Livres', -1, '/programmation/java/livres.php',
		'Ressources', 10, '/programmation/java/ressources/'
	),
	/*4*/
	new Array (
		'Principal', 5, '/programmation/java/tutoriel/principal.php',
		'Chaines de caractères', 6, '/programmation/java/tutoriel/strings/',
		'Concurrence', 32, '/programmation/java/tutoriel/concurrence/'
	),
	/*5*/
	new Array (
		'Chapitre 1', -1, '/programmation/java/tutoriel/chapitre1/',
		'Chapitre 2', -1, '/programmation/java/tutoriel/chapitre2/',
		'Chapitre 3', -1, '/programmation/java/tutoriel/chapitre3/',
		'Chapitre 4', -1, '/programmation/java/tutoriel/chapitre4/',
		'Chapitre 5', -1, '/programmation/java/tutoriel/chapitre5/',
		'Chapitre 6', -1, '/programmation/java/tutoriel/chapitre6/',
		'Chapitre 7', -1, '/programmation/java/tutoriel/chapitre7/',
		'Chapitre 8', -1, '/programmation/java/tutoriel/chapitre8/',
		'Chapitre 9', -1, '/programmation/java/tutoriel/chapitre9/',
		'Chapitre 10', -1, '/programmation/java/tutoriel/chapitre10/',
		'Chapitre 11', -1, '/programmation/java/tutoriel/chapitre11/',
		'Chapitre 12', -1, '/programmation/java/tutoriel/chapitre12/',
		'Chapitre 14', -1, '/programmation/java/tutoriel/chapitre14/'
	),
	/*6*/
	new Array (
		'Chapitre 1', -1, '/programmation/java/tutoriel/strings/chapitre1/',
		'Chapitre 2', -1, '/programmation/java/tutoriel/strings/chapitre2/'
	),
	/*7*/
	new Array (
		'Projet 1', -1, '/programmation/java/pratique/projet1.php',
		'Projet 2', -1, '/programmation/java/pratique/projet2.php',
		'Projet 3', -1, '/programmation/java/pratique/projet3.php',
		'Projet 4', -1, '/programmation/java/pratique/projet4.php',
		'Projet 5', -1, '/programmation/java/pratique/projet5.php',
		'Projet 6', -1, '/programmation/java/pratique/projet6.php',
		'Projet 7', -1, '/programmation/java/pratique/projet7.php'
	),
	/*8*/
	new Array (
		'Tutoriel', 20, '/programmation/java/exercices/tutoriel.php',
		'Programmation', -1, '/programmation/java/exercices/programmation.php',
		'Mini-projets', -1, '/programmation/java/exercices/miniprojet.php'
	),
	/*9*/
	new Array (
		'Gagner argent', 27, '/internet/gagner_argent/',
		'Site du mois', -1, '/internet/sitedumois/',
		'Utiliser', -1, '/internet/utiliser/'
	),
	/*10*/
	new Array (
		'Exemples', -1, '/programmation/java/ressources/codesample.php',
		'Langage', -1, '/programmation/java/ressources/langage/',
		'Outils', -1, '/programmation/java/ressources/outils.php',
		'Librairies', -1, '/programmation/java/ressources/librairies/',
		'Liens', -1, '/programmation/java/ressources/liens.php'
	),
	/*11*/
	new Array (
		'Liste des programmes', -1, '/prog/',
		'RSS News Reader', -1, '/prog/RSSNewsReader/'
	),
	/*12*/
	new Array (),
	/*13*/
	new Array (
		'Environnement', -1, '/programmation/gnuplot/environnement.php',
		'Tutoriel', 14, '/programmation/gnuplot/tutoriel/',
		'Ressources', -1, '/programmation/gnuplot/ressources/',
		'Livres', -1, '/programmation/gnuplot/livres.php'
	),
	/*14*/
	new Array (
		'Chapitre 1', -1, '/programmation/gnuplot/tutoriel/chapitre1/',
		'Chapitre 2', -1, '/programmation/gnuplot/tutoriel/chapitre2/',
		'Chapitre 3', -1, '/programmation/gnuplot/tutoriel/chapitre3/',
		'Chapitre 4', -1, '/programmation/gnuplot/tutoriel/chapitre4/'
	),
	/*15*/
	new Array (
		'JDK', -1, '/programmation/java/jdk.php',
		'IDE', -1, '/programmation/java/ide.php'
	),
	/*16*/
	new Array (
		'Intro. Informatique', 17, '/cours/informatique/introinfo/',
		'Structure de données', -1, '/cours/informatique/datastructure/',
		'Prog. par contraintes', -1, '/cours/informatique/cp/'
	),
	/*17*/
	new Array (
		'Théorie', 18, '/cours/informatique/introinfo/theorie/'
	),
	/*18*/
	new Array (
		'Chapitre 1', -1, '/cours/informatique/introinfo/theorie/chapitre1/'
	),
	/*19*/
	new Array (
		'Liste des cours', -1, '/learningcenter/courselist.php',
		'Liste des examens', -1, '/learningcenter/examlist.php'
	),
	/*20*/
	new Array (
		'Chapitre 1', -1, '/programmation/java/exercices/tutoriel.php?id=1',
		'Chapitre 2', -1, '/programmation/java/exercices/tutoriel.php?id=2',
		'Chapitre 3', -1, '/programmation/java/exercices/tutoriel.php?id=3',
		'Chapitre 4', -1, '/programmation/java/exercices/tutoriel.php?id=4'
	),
	/*21*/
	new Array (
		'Général', -1, '/forum/index.php?id=31',
		'Java', -1, '/forum/index.php?id=32',
		'LaTeX', -1, '/forum/index.php?id=33',
		'Magazine', -1, '/forum/index.php?id=34',
		'HTML', -1, '/forum/index.php?id=35',
		'Langue', -1, '/forum/index.php?id=36',
		'Libre', -1, '/forum/index.php?id=38'
	),
	/*22*/
	new Array (
		'Vie privée', -1, 'policy.php',
		'Opt-out', -1, 'optout.php'
	),
	/*23*/
	new Array (
		'Année 2010', -1, './',
		'Année 2009', -1, 'annee2009.php',
		'Année 2008', -1, 'annee2008.php',
		'Année 2007', -1, 'annee2007.php',
		'Année 2006', -1, 'annee2006.php'
	),
	/*24*/
	new Array (
		'Tutoriel', 26, '/programmation/html/tutoriel/',
		'Pratique', 28, '/programmation/html/pratique/',
		'Ressources', 25, '/programmation/html/ressources/',
		'Livres', -1, '/programmation/html/livres.php'
	),
	/*25*/
	new Array (
		'Exemples', -1, '/programmation/html/ressources/exemples.php',
		'Langage', -1, '/programmation/html/ressources/langage/',
		'Outils', -1, '/programmation/html/ressources/outils.php',
		'Liens', -1, '/programmation/html/ressources/liens.php'
	),
	/*26*/
	new Array (
		'Chapitre 1', -1, '/programmation/html/tutoriel/chapitre1/',
		'Chapitre 2', -1, '/programmation/html/tutoriel/chapitre2/',
		'Chapitre 3', -1, '/programmation/html/tutoriel/chapitre3/',
		'Chapitre 4', -1, '/programmation/html/tutoriel/chapitre4/',
		'Chapitre 5', -1, '/programmation/html/tutoriel/chapitre5/',
		'Chapitre 6', -1, '/programmation/html/tutoriel/chapitre6/'
	),
	/*27*/
	new Array (
		'En jouant', -1, '/internet/gagner_argent/jouant/',
		'En surfant', -1, '/internet/gagner_argent/cashbarres/',
		'En lisant des mails', -1, '/internet/gagner_argent/mails/',
		'En visitant des sites', -1, '/internet/gagner_argent/visite/',
		'Autrement', -1, '/internet/gagner_argent/autres/'
	),
	/*28*/
	new Array (
		'Projet 1', -1, '/programmation/html/pratique/projet1.php',
		'Projet 2', -1, '/programmation/html/pratique/projet2.php'
	),
	/*29*/
	new Array (
		'Kredi\'s', -1, '/membre/kredis/'
	),
	/*30*/
	new Array (
		'Environnement', 33, '/programmation/latex/environnement.php',
		'Tutoriel', -1, '/programmation/latex/tutoriel/',
		'Pratique', -1, '/programmation/latex/pratique/',
		'Exercices', -1, '/programmation/latex/exercices/',
		'Livres', -1, '/programmation/latex/livres.php',
		'Ressources', -1, '/programmation/latex/ressources/'
	),
	/*31*/
	new Array (
		'Chinois', -1, '/cours/langue/chinois/',
		'Dites-le en ...', -1, '/cours/langue/sayit/'
	),
	/*32*/
	new Array (
		'Chapitre 1', -1, '/programmation/java/tutoriel/concurrence/chapitre1/',
		'Chapitre 2', -1, '/programmation/java/tutoriel/concurrence/chapitre2/',
		'Chapitre 3', -1, '/programmation/java/tutoriel/concurrence/chapitre3/'
	),
	/*33*/
	new Array (
		'Distribution', -1, '/programmation/latex/distribution.php',
		'Éditeur', -1, '/programmation/latex/editeurs.php'
	)
);

function quickMenu (prevlev, lev, nb, mid, delta)
{
	quitQuickMenu (mid);
	xMenu = delta;
	window_resize();
	level = 0;
	content = '<ul>';
	for (i = 0; i < menus[nb].length; i += 3)
	{
		content += '<li><a href="' + menus[nb][i + 2] + '"';
		if (menus[nb][i + 1] != -1)
		{
			content += ' onmouseover="quickMenu(' + (prevlev + lev * 21) + ', ' + level + ', ' + menus[nb][i + 1] + ', ' + (mid + 1) + ', ' + delta + ');"';
		}
		else
		{
			content += ' onmouseover="quitQuickMenu(' + mid + ');"';
		}
		content += '>' + menus[nb][i] + '</a></li>';
		level++;
	}
	content += '</ul>'

	menu = document.getElementById ('quickMenu' + mid);
	menu.innerHTML = content;
	menu.style.top = 150 + prevlev + (lev * 21) + 'px';
	menu.style.display = '';
}

function quitQuickMenu (mid)
{
	for (i = 5; i > mid ; i--)
	{
		document.getElementById('quickMenu' + i).style.display = 'none';
	}
}

function delayQuickMenuKill()
{
	clearTimeout (killTimeout);
	killTimeout = setTimeout ("quitQuickMenu(0)", 1000);
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Pour les popups
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
function initPopup()
{
	if (!document.getElementsByTagName)
	{
		return;
	}
	var anchors = document.getElementsByTagName ('a');

	// loop through all anchor tags
	for (var i = 0; i < anchors.length; i++)
	{
		var anchor = anchors[i];
		var relAttribute = String (anchor.getAttribute ('rel'));

		// use the string.match() method to catch 'lightbox' references in the rel attribute
		if (anchor.getAttribute ('href') && (relAttribute.toLowerCase().match ('popup')))
		{
			anchor.onclick = function()
			{
				window.open (this.href, this.title);
				return false;
			}
		}
	}
}
function scrolling()
{
	if (navigator.appName == 'Microsoft Internet Explorer')
	{
		var scrolltop = document.documentElement.scrollTop;
	}
	else
	{
		var scrolltop = window.pageYOffset;
	}

	var invisible = document.getElementById ('slidingMenu').style.display == 'none';

	// Zone où il doit être affiché
	if (scrolltop > 1600)
	{
		if (invisible)
		{
			document.getElementById ('slidingMenu').style.display = '';
		}
	}
	// Il ne doit pas être affiché
	else if (! invisible)
	{
		document.getElementById ('slidingMenu').style.display = 'none';
	}
}
function initTableUnderline()
{
	if (!document.getElementsByTagName)
	{
		return;
	}
	var tables = document.getElementsByTagName ('table');

	// loop through all table tags
	for (var i = 0; i < tables.length; i++)
	{
		var table = tables[i];
		var classAttribute = String (table.getAttribute ('class'));

		// use the string.match() method to catch 'underline' references in the rel attribute
		if (classAttribute.toLowerCase().match ('underline'))
		{
			// for each row of the table, that is not an header row
			var tablerows = tables[i].getElementsByTagName ('tr');
			for (var j = 0; j < tablerows.length; j++)
			{
				var header = (tablerows[j].getElementsByTagName ('td') == 0);
				if (! header)
				{
					tablerows[j].onmouseover = function()
					{
						this.style.backgroundColor = '#d5d5d5';
						return false;
					}
					tablerows[j].onmouseout = function()
					{
						this.style.backgroundColor = '#f0f0f0';
						return false;
					}
				}
			}
		}
	}
}
Event.observe (window, 'load', initPopup, false);
Event.observe (window, 'load', initTableUnderline, false);
Event.observe (window, 'scroll', scrolling, false);

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Pour les zones de texte
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
function inputFocus (input, text)
{
	if (input.value == text)
	{
		input.value = '';
	}
}
function inputBlur (input, text)
{
	if (input.value == '')
	{
		input.value = text;
	}
}

function hideDiv (id)
{
	document.getElementById (id).style.display = 'none';
	return false;
}
//-->
