function closesidemenu(myvar) {
	//alert ("here");
	//window.document.right_menu.SetVariable("myvar", myvar);
	window.document.right_menu.TGotoFrame("menus",1); 
	}
	function openNews(id, type, url){
		
		switch(type)
			{
			// news page
			case 1:	url = "news.asp?id="+id;
					news = window.open(url,"news","width=530,height=600,scrollbars=1");
					news.focus();
					break;
			
			// inner page
			case 2:	location.href=url;
					break;
			
			// pdf file
			case 3: url = "showPDF.asp?id="+id;
					news = window.open(url,"news","width=500,height=400,resizable=1");
					news.focus();
					break;
							
			// text without link
			case 5: break;
			
			// thanks
			case 6: url = "thanks.html";
					thanks = window.open(url,"thanks","width=500,height=452,resizable=1");
					thanks.focus();
					break;
					
			// memorial page
			case 7: url = "memory.html";
					memory = window.open(url,"memory","width=720,height=500,resizable=1,scrollbars=1");
					memory.focus();
					break;		
			}	
					
	}
	function openFrontpage(id){
		url = "frontpage.asp?id="+id;
		frontpage = window.open(url,"frontpage","width=520,height=600,scrollbars=1");
		frontpage.focus();
	}
	function openPicOfTheWeek(id){
		url = "picOfTheWeek.asp?id="+id;
		frontpage = window.open(url,"picOfTheWeek","width=520,height=600,scrollbars=1");
		frontpage.focus();
	}	
