﻿var isNav = (parent != this);
function framesAdditional() {
   var bgLeftDoc = '<html><head><title></title></head><body background="images/bg_visas.gif" style="border-right: 1px solid #660032;"></body></html>';
   var bgRightDoc = '<html><head><title></title></head><body background="images/bg_visas.gif" style="border-left: 1px solid #660032;"></body></html>';
   window.parent.leftstripes.document.writeln(bgLeftDoc);
   window.parent.rightstripes.document.writeln(bgRightDoc);
}
function printNavBar(destFrameName, navFrameName, bBack, bPrev, bNext, bGoals, bContent, bHome) {
	if (!isNav) return;
 //  framesAdditional();
	var destFrame = eval(destFrameName);
	destFrame.document.open();destFrame.document.writeln('<html>');
   destFrame.document.writeln('    <head>');
   destFrame.document.writeln('        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">');
   destFrame.document.writeln('        <link href=\"styles/info.css\" rel=\"stylesheet\" type=\"text/css\">');
   destFrame.document.writeln('	<link href=\"styles/common.css\" rel=\"stylesheet\" type=\"text/css\">');
   destFrame.document.writeln('	<link href=\"styles/content.css\" rel=\"stylesheet\" type=\"text/css\">');
   destFrame.document.writeln('        <title>down-frame</title>');
   destFrame.document.writeln('        <base target=\"contents\">');
   destFrame.document.writeln('');
   destFrame.document.writeln('     </head>');
   destFrame.document.writeln('<body bgcolor=\"#FFFFFF\" leftmargin=\"0\" topmargin=\"0\" rightmargin=\"0\" bottommargin=\"0\" marginwidth=\"0\" marginheight=\"0\">');
   destFrame.document.writeln('<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-repeat:no-repeat;\" background=\"images/bottom2.jpg\" style=\"border-collapse: collapse;\" bordercolor=\"#111111\">');
   
   destFrame.document.writeln('<tr height="56">');
   destFrame.document.writeln('<td width="40" nowrap></td>');
   if (bHome != null && bHome != "") {
		destFrame.document.writeln('<td width="70" align="center" nowrap><a href="../indexx.html" target="'+navFrameName+'">');
		destFrame.document.writeln('<img src="images/button-home.gif" alt="Turinys" title="Turinys" border="0"></a></td>');
	}
	else destFrame.document.writeln('<td width="70" align="center" nowrap></td>');

	if (bBack != null && bBack != "") {
		destFrame.document.writeln('<td width="70" align="center" nowrap><a href="JavaScript: window.history.go(-'+bBack+')">');
		destFrame.document.writeln('<img src="images/button-back.gif" alt="Gr&#303;&#382;ti" title="Gr&#303;&#382;ti" border="0"></a></td>');
	}
	else if (bPrev != null && bPrev != "") {
		destFrame.document.writeln('<td width="70" align="center" nowrap><a href="'+bPrev+'" target="'+navFrameName+'">');
		destFrame.document.writeln('<img src="images/button-prev.gif" alt="Atgal" title="Atgal" border="0"></a></td>');
	}
	else destFrame.document.writeln('<td width="70" align="center" nowrap></td>');

	if (bContent != null && bContent != "") {
		destFrame.document.writeln('<td width="70" align="center" nowrap><a href="'+bContent+'" target="'+navFrameName+'">');
		destFrame.document.writeln('<img src="images/button-content.gif" alt="Turinys" title="Turinys" border="0"></a></td>');
	}
	else destFrame.document.writeln('<td width="70" align="center" nowrap></td>');

	if (bNext != null && bNext != "") {
		destFrame.document.writeln('<td width="70" align="center" nowrap><a href="'+bNext+'" target="'+navFrameName+'">');
		destFrame.document.writeln('<img src="images/button-next.gif" alt="Pirmyn" title="Pirmyn" border="0"></a></td>');
	}
	else destFrame.document.writeln('<td width="70" align="center" nowrap></td>');
	
	if (bGoals != null && bGoals != "") {
		destFrame.document.writeln('<td width="70" align="center" nowrap><a href="'+bGoals+'" target="'+navFrameName+'">');
		destFrame.document.writeln('<img src="images/button-goals.gif" alt="Tikslai" title="Tikslai" border="0"></a></td>');
	}

	else destFrame.document.writeln('<td width="231" align="center" nowrap></td>');

   destFrame.document.writeln('<td width="50%" align="center" nowrap></td>');
   destFrame.document.writeln('</tr>');


// Tekstas ----------------------------------------------------- 
destFrame.document.writeln('<tr height="56">');
destFrame.document.writeln('<td width="40" nowrap></td>');
destFrame.document.writeln('<td width="70" align="center" nowrap>');
destFrame.document.writeln('<img border="0" src="images/euro.gif" width="39" height="28"></td>');
destFrame.document.writeln('<td width="70" align="center" nowrap>');
destFrame.document.writeln('<img border="0" src="images/lt.gif" width="44" height="27"></td>');
destFrame.document.writeln('<td width="371" align="center" nowrap colspan="3"><font size="1">Asmens duomenų ir informacinių technologijų bei jomis perduodamų duomenų saugumo, stiprinant administracinius ir techninius gebėjimus, užtikrinimas</font></td>');
destFrame.document.writeln('<td width="50%" align="center" nowrap>');
destFrame.document.writeln('<blockquote>');
destFrame.document.writeln('<p align="left"><font size="1" face="Arial"><br>© 2005 Vidaus reikalų ministerija.<br>Visos teisės saugomos.</font></p></blockquote></td></tr>');

   
	destFrame.document.writeln('</table>');
   destFrame.document.writeln('');
   destFrame.document.writeln('</body>');
   destFrame.document.writeln('</html>');
	destFrame.document.close();
}


