/* show sub menu */
function showSubMenu(id){
	hideSubMenu();
	
	var SubMenu_Item = _("SubMenu_"+id);
	
	if(SubMenu_Item){
		SubMenu_Item.style.display = "inline";
	}
}

/* hide submenu */
function hideSubMenu(){
	var SubMenu_Items = _("SubMenu_HTML","SubMenu_CSS","SubMenu_JavaScript","SubMenu_PHP","SubMenu_MySQL");
	
	for(var i=0;SubMenu_Items && i<SubMenu_Items.length;i++){
		var element = SubMenu_Items[i];
		element.style.display = "none";
	}
}

/* show about information in a dialog */
function about(){
	var html = "";
	
	html += "<div id='About_Container'>";
	html += "<h1>About</h1>";
	html += "<p>WB - Webdesign for beginners is maintained by plohni.<br />Feel free to send me an email to mueszli at gmail dot com.</p>";
	html += "<p>2008 &copy; plohni</p>";
	html += "<p style='text-align:right;'><a href='javascript:void(0);' onclick='dialog.hide();'>Close</a> (or hit Esc)</p>";
	html += "</div>";
	
	dialog.show(html,750,220);
}

/* show privacy policy in a dialog */
function privacyPolicy(){
	var html = "";
	
	html += "<div id='PrivacyPolicy_Container'>";
	html += "<h1>Privacy policy</h1>";
	html += "<p>By using this website you agree to this privacy policy. We do not collect any personal data (e.g. name, address or email address) or give it to third parties. The comments you post to the articles and the threads you post in the forum are not used in any statistical manner. This website stores session-based information in a cookie on your computer.</p>";
	html += "<p><b>Third-party advertising</b><br/>We use third-party advertising companies to serve ads (including interest-based advertising) when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you.</p>";
	html += "<p style='text-align:right;'><a href='javascript:void(0);' onclick='dialog.hide();'>Close</a> (or hit Esc)</p>";
	html += "</div>";
	
	dialog.show(html,750,350);
}