var timeOutMiliSec = 700
var meCurrentId = ''
function printHeader() {
	var docHeader = '<table width="800" border="0" cellspacing="0" cellpadding="0">'+
    '<tr> '+
      '<td height="100" colspan="2" align="center"><img src="../images/menuen2.jpg" width="800" height="100" /></td>'+
    '</tr>'+
    '<tr> '+
      '<td width="140" background="../images/bg3.jpg"></td>'+
      '<td width="650" height="18" background="../images/bg3.jpg"><table width="650" border="0" cellspacing="0" cellpadding="0">'+
          '<tr class="menuRow"> '+
            '<td width="95"><a href="aboutus.html" class="menu">About Us</a></td>'+
			
            '<td width="80"><a href="news.html" class="menu">News</a></td>'+
	    '<td width="80"><a href="project.html" class="menu" onmouseover="showmenu(\'me0\')" onmouseout="hidemenu(\'me0\')">Projects</a>'+
				'<br /><table class="subMenu" background="../images/bg4.jpg" id="me0" onmouseover="setActiveElement(\'me0\')" onmouseout="resetActiveElement()" width="200%">'+
   	 			'<tr class="menuRow"><td background="../images/bg3.jpg"><a class="menu" href="project01.html">Constitutional Values for Youth</a></td></tr></table>'+
			'</td>'+
            '<td width="100"><a href="conference.html" class="menu" onmouseover="showmenu(\'me1\')" onmouseout="hidemenu(\'me1\')">Conference</a>'+
				'<br /><table class="subMenu" background="../images/bg4.jpg" id="me1" onmouseover="setActiveElement(\'me1\')" onmouseout="resetActiveElement()" width="115%">'+
   	
				'<tr class="menuRow"><td background="../images/bg3.jpg"><a class="menu" href="conference.html">... and seminars</a></td></tr></table>'+
			'</td>'+
            '<td width="98"><a href="publications.html" class="menu">Publications</a></td>'+
            '<td width="98"><a href="information.html" class="menu">Information</a></td>'+
            '<td width="80"><a href="gallery.html" class="menu">Gallery</a></td>'+
            '<td width="80"><a href="chronicle.html" class="menu">Chronicle</a></td>'+
	    '<td width="90"><a href="links.html" class="menu">Links</a></td>'+
	    '<td width="1" align="right"><a href="../naujienos.html" class="menu">LT</a></td>'+
	    '<td width="5" align="right">&nbsp;</td>'+
		'<td width="*" align="right">&nbsp;</td>'+
          '</tr>'+
        '</table></td>'+
    '</tr>'+
	'</table>'
	document.write(docHeader)
	document.write(emptyContent())
}

function emptyContent() {
	var docEmptyContent = '<table width="800" border="0" cellspacing="0" cellpadding="0">'+
    '<tr> '+
      '<td>&nbsp;</td>'+
      '<td>&nbsp;</td>'+
    '</tr>'+
  '</table>'
  return docEmptyContent
}

function printFooter() {
	var docFooter = '<div><br /></div><table width="800" border="0" cellspacing="0" cellpadding="0">'+
    '<tr><td class="footera" align="center"><img src="../images/lini.gif" width="800" height="2" /><br><br>Regional Center for Civic Education <br> e-mail: <a class="footera" href="mailto:civic@pec.lt">civic@pec.lt</a></td></tr>'+
  '</table>'
     document.write(docFooter)
}

function showImage(sPicURL) { 
     window.open( "showimage.html?"+sPicURL, "",  
     "resizable=1, height=200, width=200"); 
}

function showmenu(elmnt) {
	resetAllElements()
	document.all(elmnt).style.visibility="visible"
	meCurrentId = elmnt
}

function hidemenu(elmnt) {
	meCurrentId = ''
	myTimeout = setTimeout("hideBgNext('"+elmnt+"')",timeOutMiliSec)
}

function hideBgNext(elmnt) {
	if (meCurrentId != elmnt ) document.all(elmnt).style.visibility="hidden"
}

function setActiveElement(elmnt) {
	meCurrentId = elmnt
}

function resetActiveElement() {
	meCurrentId = ''
}

function resetAllElements() {
	for (i=0; i<=1; i++) {
		var currElm = 'me'+i
		document.all(currElm).style.visibility="hidden"
	}
}

function printLeftFrame() {
	var leftFrame = '<table width="800px" border="0" cellspacing="0" cellpadding="0">'+
  	'<tr>'+
    '<td width="50px" background="../images/bgLine.gif" class="leftFrame"><img src="../images/bgTextTop.gif" height="150px" width="50px"/></td>'+
    '<td width="700px"><p class="content">';
	document.write(leftFrame);
}

function printRightFrame() {
	var rightFrame = '</td>'+
    '<td width="50px" background="../images/bgLine.gif" class="rightFrame"><img src="../images/bgTextBottom.gif" height="150px" width="50px"/></td>'+
  	'</tr>'+
	'</table>';
	document.write(rightFrame);
}