function saveIndx(ind)
{
    ftx = prectiCookie("OptFull");
	if (ftx == false) {
	    zapisCookie("OptFull", "ETXDCSYNU", 2678400000);
	}

    rel = prectiCookie("OptRels");
	if (rel == false) {
	    zapisCookie("OptRels", "STUMCON", 2678400000);
	}

    fnd = prectiCookie("OptFind");
	if (fnd == false) {
	    zapisCookie("OptFind", "BMPF", 2678400000);
	}
	
	hist_prev = prectiCookie("iLex51_hist_prev");
	if (hist_prev) {
		var temp = new Array();
		temp = hist_prev.split(';');
		if (ind != temp[0]) {
			hist_prev = ind + ";" + hist_prev;
			zapisCookie("iLex51_hist_prev",hist_prev,2678400000);
			zapisCookie("iLex51_hist_next","",2678400000);			
		}
	}
	else {
		hist_prev = ind;		
		zapisCookie("iLex51_hist_prev",hist_prev,2678400000);
		zapisCookie("iLex51_hist_next","",2678400000);
	}
}
function cut_last(str,len) {
	return str.substr(0,str.length-len);
}

function hist_prev ()
{
	hist = prectiCookie("iLex5_hist_prev");
	if (hist) {
		var temp = new Array();
		temp = hist.split(';');
		if (temp[1]) {
			hist = "";
			for (i=temp.length-1;i>1;i--) {
				if (temp[i]) hist = temp[i] + ";" + hist;
			}
			zapisCookie("iLex5_hist_prev",hist,2678400000);			
			saveIndx("iLex5_hist_next",temp[0]);
			top.location.href='';
		}		
	}		
}

function hist_next ()
{
	hist = prectiCookie("iLex5_hist_next");
	if (hist) {
		var temp = new Array();
		temp = hist.split(';');
		if (temp[0]) {
			hist = "";
			for (i=temp.length-1;i>0;i--) {
				if (temp[i]) hist = temp[i] + ";" + hist;
			}
			zapisCookie("iLex5_hist_next",hist,2678400000);
			top.location.href='';
		}		
	}
}

function onSelectedIndexChanged()
{
  var select = document.getElementById("SetList");
  var sub = document.getElementById("set");  
  sub.value = select.options[select.selectedIndex].value;  
  document.getElementById("word").value = "";
  document.getElementById("type").value = "";
  document.getElementById("data").value = "";
  document.forms[0].submit();
}

function go(typ, dat, send) {  
  document.getElementById("type").value = typ;
  document.getElementById("data").value = dat;
  if (send == 1) document.forms[0].submit();  
}

var show;

show = (prectiCookie("full_prev") == "full_text_prev_hide") ? 1 : 0;

function change_full() {
document.getElementById("word").focus();
    var e_view = document.getElementById("Entry_update");
    var e_view1 = document.getElementById("full_text_prev");    
	if (show) {
	    if (e_view) {
	        e_view.setAttribute("class", "Entry_block");
	        e_view.setAttribute("className", "Entry_block");
		}
	    if (e_view1) {
	        e_view1.setAttribute("class", "full_text_prev_hide");
	        e_view1.setAttribute("className", "full_text_prev_hide");
	    }	    
	    zapisCookie("full_prev", "full_text_prev_hide", 2678400000);
	    zapisCookie("entry_block", "Entry_block", 2678400000);	    
	    show = 0;
		
	}
	else {
	    if (e_view) {
	        e_view.setAttribute("class", "Entry_block_full");
	        e_view.setAttribute("className", "Entry_block_full");
		}
	    if (e_view1) {
	        e_view1.setAttribute("class", "full_text_prev");
	        e_view1.setAttribute("className", "full_text_prev");
		}
	    zapisCookie("full_prev", "full_text_prev", 2678400000);
	    zapisCookie("entry_block", "Entry_block_full", 2678400000);
	    show = 1;

	} 
}

function clear() {
	var e_view = document.getElementById("Entry_update");  
	var e_view1= document.getElementById("full_text_prev");
	e_view.setAttribute("class", "Entry_block"); 
	e_view.setAttribute("className", "Entry_block"); 
	e_view1.setAttribute("class", "full_text_prev_hide"); 
		e_view1.setAttribute("className", "full_text_prev_hide"); 
}

	var el=new Array();
	el[11]="easylex-angliesko-polski.html|EasyLexENPL100.jpg|EasyLex angielsko - polski|Słownik zawiera ponad 40 000 haseł, nagraną wymowę, oraz posiada funkcję błyskawicznego tłumaczenia słów."
	el[12]="easylex-niemiecko-polski.html|EasyLexGEPL100.jpg|EasyLex niemiecko - polski|Słownik zawiera ponad 40 000 haseł, nagraną wymowę, oraz posiada funkcję błyskawicznego tłumaczenia słów."
	el[13]="easylex-francusko-polski.html|EasyLexFRPL100.jpg|EasyLex francusko - polski|Słownik zawiera ponad 40 000 haseł, nagraną wymowę, oraz posiada funkcję błyskawicznego tłumaczenia słów."
	
			
	function my_print() {		
		var ind=11;
		if(ind=="" || !ind) ind=11;
		
		if(el[ind] && el[ind].length) {
			var t=el[ind].split("|");
			var o="<div align=\"center\" style=\"padding-bottom:5px;\"><img src=\"http://www.lingea.pl/images/"+t[1]+"\" border=0 style=\"padding-right:5px;\"/></div><span class=\"adv_link\"><a class=\"adv_link\" href=\"http://www.lingea.pl/"+t[0]+"\" target=_blank><b>"+t[2]+"</b></a></span><br><span class=\"adv_text\">"+t[3]+"</span>";
		}
		if(ind==0) {
			var t1=el[11].split("|");
			var t2=el[12].split("|");			
			var t3=el[13].split("|");			
			var o1="<div align=\"center\" style=\"padding-bottom:5px;\"><img src=\"http://www.lingea.pl/images/"+t1[1]+"\" border=0 style=\"padding-right:5px;\"/></div><span class=\"adv_link\"><a class=\"adv_link\" href=\"http://www.lingea.pl/"+t1[0]+"\" target=_blank><b>"+t1[2]+"</b></a></span><br><span class=\"adv_text\">"+t1[3]+"</span>";
			var o2="<div align=\"center\" style=\"padding-bottom:5px;\"><img src=\"http://www.lingea.pl/images/"+t2[1]+"\" border=0 style=\"padding-right:5px;\"/></div><span class=\"adv_link\"><a class=\"adv_link\" href=\"http://www.lingea.pl/"+t2[0]+"\" target=_blank><b>"+t2[2]+"</b></a></span><br><span class=\"adv_text\">"+t2[3]+"</span>";
			var o3="<div align=\"center\" style=\"padding-bottom:5px;\"><img src=\"http://www.lingea.pl/images/"+t3[1]+"\" border=0 style=\"padding-right:5px;\"/></div><span class=\"adv_link\"><a class=\"adv_link\" href=\"http://www.lingea.pl/"+t3[0]+"\" target=_blank><b>"+t3[2]+"</b></a></span><br><span class=\"adv_text\">"+t3[3]+"</span>";						
			var o=o1+"<br>"+o2+"<br>"+o3
		}
		document.getElementById('adv').innerHTML=o+"<br>";
		//setTimeout("my_print()",15000);
	}

