﻿function changePage(url){
	document.location.href=url;
}

function fillMainNav(l){
	var menutext;
	menutext="<li><a href=\"http://www.sportlo.hu/hungarian/main/bulvar.html\" title=\"Szerelmes lett, megdöglött, felgyulladt, elsüllyedt\">Lovas Bulvár</a></li>";
	//menutext+="<li><a href=\"../job/index.html\" title=\"Aktuális állásajánlataink\">Munka</a></li>";
	menutext+="<li><a href=\"http://jatek.sportlo.hu\" title=\"Játékok\">Játékok</a></li>";
	menutext+="<li><a href=\"http://lexikon.sportlo.hu\" title=\"Lófajták, lovaglás\">Lexikon</a></li>";
	menutext+="<li><a href=\"http://egeszseg.sportlo.hu\" title=\"Technológia, betegségek, megelőzés, tartás\">Egészség</a></li>";
        menutext+="<li><a href=\"http://ajanlo.sportlo.hu\" title=\"Programajánló, lovas képzések, lovastáborok\">Ajánló</a></li>";
	menutext+="<li><a href=\"http://www.sportlo.hu/hungarian/main/hirarchivum.html\" title=\"Hírek\">Hírek</a></li>";

	if (l==undefined) document.write(menutext);
	else return menutext;
}

function isPPC() {
	if (navigator.appVersion.indexOf("PPC") != -1) return true;
	else return false;
}
function sendPage(linkcolor){
	if(isPPC()) {
		document.write(	"<center><img border=\"0\" hspace=\"5\" align=\"middle\" src=\"../../images/mail_generic.png\"><A style=\"font-size: 10px;\" HREF=\"mailto:\?subject= " +
				document.title +
				"?body=Úgy gondoltam, hogy ez a cikk/hír érdekelheti Önt:<br><br>" +
				document.title +
				"<br>" +
				document.location.href +
				"\" TITLE=\"Küldje el ezt a cikket barátjának, ismerősének!\">" +
				"Küldje el ezt a cikket barátjának, ismerősének!<\/A></center>");
	}else{
		if (!linkcolor){
			linkcolor="#000000";
		}
		document.write(	"<center><a style=\"font-size: 10px; color:"+linkcolor+";\" HREF=\"mailto:\?body=Úgy gondoltam, hogy ez a cikk/hír érdekelheti Önt:<br><br>" +
				document.title +
				"<br>" +
				document.location.href +
				"\" TITLE=\"Cikk küldése\">" +
				"<img border=\"0\" hspace=\"5\" align=\"middle\" src=\"../../images/mail_generic.png\"><\/a>" +
				"<img border=\"0\" hspace=\"5\" align=\"middle\" src=\"../../images/separator.jpg\">" +
				"<img title=\"Cikk nyomtatása\" border=\"0\" style=\"cursor: pointer;\" hspace=\"5\" align=\"middle\" src=\"../../images/frameprint.png\" onclick=\"print();\">" +
				"<img border=\"0\" hspace=\"5\" align=\"middle\" src=\"../../images/separator.jpg\">" +
				"<img title=\"Add a Startlaphoz\" border=\"0\" style=\"cursor: pointer;\" hspace=\"5\" align=\"middle\" src=\"../../images/bookmark_small.gif\" onclick=\"window.open('http://www.startlap.hu/sajat_linkek/addlink.php?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"');return false;\"></center>");
		/*document.write(	"<center><img border=\"0\" hspace=\"5\" align=\"middle\" src=\"../../images/mail_generic.png\"><A style=\"font-size: 10px; color:"+linkcolor+";\" HREF=\"mailto:\?body=Úgy gondoltam, hogy ez a cikk/hír érdekelheti Önt:<br><br>" +
				document.title +
				"<br>" +
				document.location.href +
				"\" TITLE=\"Küldje el ezt a cikket barátjának, ismerősének!\">" +
				"Küldje el ezt a cikket barátjának, ismerősének!<\/A></center>");*/
		//document.write("<b>Send <A CLASS=\"contact\" HREF=\"mailto:\?body\=Take a look at this page I found, ' + document.title + '. You can see this page at: ' + window.location + '\" onMouseOver="window.status=\'Send your friends e-mail about this page\'; return true" TITLE="Send your friends e-mail about this page">this page<\/A> to a friend</b>');
	}
}
