function bahasaBrowser() {
if (navigator.appName == "Netscape")
var langCode=navigator.language;
else 
var langCode=navigator.browserLanguage;

if (langCode.substr(0,2) == "af")
  document.write('Afrikaans')
else if (langCode.substr(0,2) == "ar")
{
 if (langCode.substr(3,2) == "ae")
  document.write('Arabic / United Arab Emirates')
 else if (langCode.substr(3,2) == "bh")
  document.write('Arabic / Bahrain')
 else if (langCode.substr(3,2) == "eg")
  document.write('Arabic / Egypt')
 else if (langCode.substr(3,2) == "dz")
  document.write('Arabic / Algeria')
 else if (langCode.substr(3,2) == "iq")
  document.write('Arabic / Iraq')
 else if (langCode.substr(3,2) == "jo")
  document.write('Arabic / Jordan')
 else if (langCode.substr(3,2) == "kw")
  document.write('Arabic / Kuwait')
 else if (langCode.substr(3,2) == "lb")
  document.write('Arabic / Lebanon')
 else if (langCode.substr(3,2) == "ly")
  document.write('Arabic / Libya')
 else if (langCode.substr(3,2) == "ma")
  document.write('Arabic / Morocco')
 else if (langCode.substr(3,2) == "om")
  document.write('Arabic / Oman')
 else if (langCode.substr(3,2) == "qa")
  document.write('Arabic / Qatar')
 else if (langCode.substr(3,2) == "sa")
  document.write('Arabic / Saudi Arabia')
 else if (langCode.substr(3,2) == "sy")
  document.write('Arabic / Syria')
 else if (langCode.substr(3,2) == "tn")
  document.write('Arabic / Tunisia')
 else if (langCode.substr(3,2) == "ye")
  document.write('Arabic / Yemen')
 else document.write('Arabic')
}
else if (langCode.substr(0,2) == "be")
  document.write('Belarusian')
else if (langCode.substr(0,2) == "bg")
  document.write('Bulgarian')
else if (langCode.substr(0,2) == "ca")
  document.write('Catalan')
else if (langCode.substr(0,2) == "cs")
  document.write('Czech')
else if (langCode.substr(0,2) == "da")
  document.write('Danish')
else if (langCode.substr(0,2) == "de")
{
 if (langCode.substr(3,2) == "at")
  document.write('German / Austria')
 else if (langCode.substr(3,2) == "ch")
  document.write('German / Switzerland')
 else if (langCode.substr(3,2) == "li")
  document.write('German / Liechtenstein')
 else if (langCode.substr(3,2) == "lu")
  document.write('German / Luxembourg')
else document.write('German / Germany')
}
else if (langCode.substr(0,2) == "el")
  document.write('Greek / Greece')
else if (langCode.substr(0,2) == "en")
{
 if (langCode.substr(3,2) == "us")
  document.write('English / United States')
 else if (langCode.substr(3,2) == "au")
  document.write('English / Austrailia')
 else if (langCode.substr(3,2) == "bz")
  document.write('English / Belize')
 else if (langCode.substr(3,2) == "ca")
  document.write('English / Canada')
 else if (langCode.substr(3,2) == "gb")
  document.write('English / Great Britain')
 else if (langCode.substr(3,2) == "ie")
  document.write('English / Ireland')
 else if (langCode.substr(3,2) == "jm")
  document.write('English / Jamaica')
 else if (langCode.substr(3,2) == "nz")
  document.write('English / New Zealand')
 else if (langCode.substr(3,2) == "tt")
  document.write('English / Trinidad')
 else if (langCode.substr(3,2) == "za")
  document.write('English / South Africa')
 else document.write('English')
}
else if (langCode.substr(0,2) == "es")
{
 if (langCode.substr(3,2) == "ar")
  document.write('Spanish / Argentina')
 else if (langCode.substr(3,2) == "bo")
  document.write('Spanish / Bolivia')
 else if (langCode.substr(3,2) == "cl")
  document.write('Spanish / Chile')
 else if (langCode.substr(3,2) == "co")
  document.write('Spanish / Colombia')
 else if (langCode.substr(3,2) == "cr")
  document.write('Spanish / Costa Rica')
 else if (langCode.substr(3,2) == "do")
  document.write('Spanish / Dominican Republic')
 else if (langCode.substr(3,2) == "ec")
  document.write('Spanish / Ecuador')
 else if (langCode.substr(3,2) == "gt")
  document.write('Spanish / Guatemala')
 else if (langCode.substr(3,2) == "hn")
  document.write('Spanish / Honduras')
 else if (langCode.substr(3,2) == "mx")
  document.write('Spanish / Mexico')
 else if (langCode.substr(3,2) == "ni")
  document.write('Spanish / Nicaragua')
 else if (langCode.substr(3,2) == "pa")
  document.write('Spanish / Panama')
 else if (langCode.substr(3,2) == "pe")
  document.write('Spanish / Peru')
 else if (langCode.substr(3,2) == "pr")
  document.write('Spanish / Puerto Rico')
 else if (langCode.substr(3,2) == "py")
  document.write('Spanish / Paraguay')
 else if (langCode.substr(3,2) == "sv")
  document.write('Spanish / El Salvador')
 else if (langCode.substr(3,2) == "uy")
  document.write('Spanish / Uruguay')
 else if (langCode.substr(3,2) == "ve")
  document.write('Spanish / Venezuela')
 else document.write('Spanish / Spain')
}
else if (langCode.substr(0,2) == "et")
  document.write('Estonian')
else if (langCode.substr(0,2) == "eu")
  document.write('Basque')
else if (langCode.substr(0,2) == "fa")
  document.write('Farsi')
else if (langCode.substr(0,2) == "fi")
  document.write('Finnish')
else if (langCode.substr(0,2) == "fo")
  document.write('Faeroese')
else if (langCode.substr(0,2) == "fr")
{
 if (langCode.substr(3,2) == "be")
  document.write('French / Belgium')
 else if (langCode.substr(3,2) == "ca")
  document.write('French / Canada')
 else if (langCode.substr(3,2) == "ch")
  document.write('French / Switzerland')
 else if (langCode.substr(3,2) == "ca")
  document.write('French / Luxembourg')
 else document.write('French / France')
}
else if (langCode.substr(0,2) == "gd")
{
 if (langCode.substr(3,2) == "ie")
  document.write('Gaelic / Ireland')
 else document.write('Gaelic / Scotland')
}
else if (langCode.substr(0,2) == "he")
  document.write('Hebrew')
else if (langCode.substr(0,2) == "hi")
  document.write('Hindi')
else if (langCode.substr(0,2) == "hr")
  document.write('Croatian')
else if (langCode.substr(0,2) == "hu")
  document.write('Hungarian')
else if (langCode.substr(0,2) == "id")
  document.write('Indonesian')
else if (langCode.substr(0,2) == "is")
  document.write('Icelandic')
else if (langCode.substr(0,2) == "he")
  document.write('Hebrew')
else if (langCode.substr(0,2) == "it")
{
 if (langCode.substr(3,2) == "ch")
  document.write('Italian / Switzerland')
 else document.write('Italian / Italy')
}
else if (langCode.substr(0,2) == "ja")
  document.write('Japanese / Japan')
else if (langCode.substr(0,2) == "ji")
  document.write('Yiddish')
else if (langCode.substr(0,2) == "ko")
  document.write('Korean / Korea')
else if (langCode.substr(0,2) == "lt")
  document.write('Lithuanian / Lithuania')
else if (langCode.substr(0,2) == "lv")
  document.write('Latvian')
else if (langCode.substr(0,2) == "mk")
  document.write('Macedonian / Macedonia')
else if (langCode.substr(0,2) == "ms")
  document.write('Malaysian / Malaysia')
else if (langCode.substr(0,2) == "mt")
  document.write('Maltese / Malta')
else if (langCode.substr(0,2) == "nl")
{
 if (langCode.substr(3,2) == "be")
  document.write('Dutch / Belgium')
 else document.write('Dutch / Netherlands')
}
else if (langCode.substr(0,2) == "pl")
  document.write('Polish / Poland')
else if (langCode.substr(0,2) == "pt")
{
 if (langCode.substr(3,2) == "br")
  document.write('Portuguese / Brazil')
 else document.write('Portuguese / Portugal')
}
else if (langCode.substr(0,2) == "rm")
  document.write('Rhaeto-Romanic / Romania')
else if (langCode.substr(0,2) == "ro")
  document.write('Romanian / Romania')
else if (langCode.substr(0,2) == "ru")
  document.write('Russian / Russia')
else if (langCode.substr(0,2) == "sb")
  document.write('Sorbian')
else if (langCode.substr(0,2) == "sk")
  document.write('Slovak')
else if (langCode.substr(0,2) == "sl")
  document.write('Slovenian')
else if (langCode.substr(0,2) == "sq")
  document.write('Albanian / Albania')
else if (langCode.substr(0,2) == "sr")
  document.write('Serbian / Serbia')
else if (langCode.substr(0,2) == "sv")
{
 if (langCode.substr(3,2) == "fi")
  document.write('Swedish / Finland')
 else document.write('Swedish / Sweden')
}
else if (langCode.substr(0,2) == "sx")
  document.write('Sutu')
else if (langCode.substr(0,2) == "sz")
  document.write('Sami')
else if (langCode.substr(0,2) == "th")
  document.write('Thai / Thailand')
else if (langCode.substr(0,2) == "tn")
  document.write('Tswana')
else if (langCode.substr(0,2) == "tr")
  document.write('Turkish / Turkey')
else if (langCode.substr(0,2) == "ts")
  document.write('Tsonga')
else if (langCode.substr(0,2) == "uk")
  document.write('Ukrainian')
else if (langCode.substr(0,2) == "th")
  document.write('Thai / Thailand')
else if (langCode.substr(0,2) == "ur")
  document.write('Urdu')
else if (langCode.substr(0,2) == "ve")
  document.write('Venda')
else if (langCode.substr(0,2) == "vi")
  document.write('Vietnamese / Vietnam')
else if (langCode.substr(0,2) == "xh")
  document.write('Xhosa')
else if (langCode.substr(0,2) == "zh")
{
 if (langCode.substr(3,2) == "cn")
  document.write('Chinese / China')
 else if (langCode.substr(3,2) == "hk")
  document.write('Chinese / Hong Kong')
 else if (langCode.substr(3,2) == "sg")
  document.write('Chinese / Singapore')
 else if (langCode.substr(3,2) == "tw")
  document.write('Chinese / Taiwan')
 else document.write('Chinese / China')
}
else if (langCode.substr(0,2) == "zu")
  document.write('Zulu')
else
  document.write('Unknown')
}

var todayDate=new Date();
var thisday=todayDate.getDay();
var thismonth=todayDate.getMonth();
var thisdate=todayDate.getDate();
var thisyear=todayDate.getYear();
var monthnamesarray = new Array("January","February","March","April","May","June","July",
"August","September","October","November","December");

function fourdigits(number)	{
return (number < 1000) ? number + 1900 : number;
}

function tanggalpasaran(yr,m,d) {
thisyear=fourdigits(thisyear);
var months = new Array("Januari", "Pebruari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "Nopember", "Desember");
var name_of_days = new Array("Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jum"+"'"+"at", "Sabtu");
var day_name = name_of_days[thisday];
var monthname = months[thismonth];
var todaystring=monthnamesarray[thismonth]+" "+thisdate+", "+thisyear;
var paststring=monthnamesarray[m-1]+" "+d+", "+yr;
var pasar=new Array("Pon","Wage","Kliwon","Legi","Pahing");
var psr=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1)%5;
if (psr<=1)
psr=psr+3
else
psr=psr-2;
var pasaran=pasar[psr];
document.write(day_name+" "+pasaran+ "," + " " +thisdate+ " " + monthname+ " " + thisyear);
}

function tanggalan() {
var linkcount=0;
function addlink(month, day, href) {
var entry = new Array(3);
entry[0] = month;
entry[1] = day;
entry[2] = href;
this[linkcount++] = entry;
}
Array.prototype.addlink = addlink;
linkdays = new Array();
monthdays = new Array(12);
monthdays[0]=31;
monthdays[1]=28;
monthdays[2]=31;
monthdays[3]=30;
monthdays[4]=31;
monthdays[5]=30;
monthdays[6]=31;
monthdays[7]=31;
monthdays[8]=30;
monthdays[9]=31;
monthdays[10]=30;
monthdays[11]=31;

thisyear = thisyear % 100;
thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear));
if (((thisyear % 4 == 0) && !(thisyear % 100 == 0)) || (thisyear % 400 == 0)) monthdays[1]++;
startspaces=thisdate;
while (startspaces > 7) startspaces-=7;
startspaces = thisday - startspaces + 1;
if (startspaces < 0) startspaces+=7;
document.write("<center>");
document.write("<table cellspacing=1>");
document.write('<tr><td align=center colspan=7><span style="font-family:Arial; font-size:70%; font-weight:bold">' 
+ monthnamesarray[thismonth] + " " + thisyear + "</span></td></tr>");
document.write("<tr>");
document.write("</tr>");
document.write("<tr>");
document.write('<td style="text-align:center; width:21px; font-family:Arial; font-size:60%; color:red; font-weight:bold">Sun</td>');
document.write('<td style="text-align:center; width:21px; font-family:Arial; font-size:60%; color:black; font-weight:bold">Mon</td>');
document.write('<td style="text-align:center; width:21px; font-family:Arial; font-size:60%; color:black; font-weight:bold">Tue</td>');
document.write('<td style="text-align:center; width:21px; font-family:Arial; font-size:60%; color:black; font-weight:bold">Wed</td>');
document.write('<td style="text-align:center; width:21px; font-family:Arial; font-size:60%; color:black; font-weight:bold">Thu</td>');
document.write('<td style="text-align:center; width:21px; font-family:Arial; font-size:60%; color:green; font-weight:bold">Fri</td>');
document.write('<td style="text-align:center; width:21px; font-family:Arial; font-size:60%; color:black; font-weight:bold">Sat</td>'); 
document.write("</tr>");
document.write("<tr>");
for (s=0;s<startspaces;s++) {
document.write("<td> </td>");
}
count=1;
while (count <= monthdays[thismonth]) {
	for (b = startspaces; b<7; b++) {
		linktrue=false;
		
		if (count==thisdate) 
			document.write('<td style="background:url(bgkal.gif) center top no-repeat; font-family:Arial; font-size:70%; font-weight:normal; text-align:center">')
		else
			document.write('<td style="font-family:Arial; font-size:70%; text-align:center">');
		for (c=0;c<linkdays.length;c++) {
			if (linkdays[c] != null) {
				if ((linkdays[c][0]==thismonth + 1) && (linkdays[c][1]==count)) {
					document.write("<a href=\"" + linkdays[c][2] + "\">");
					linktrue=true;
    				}
   				}
			}
		if (count <= monthdays[thismonth]) {
			if (b==5) {
				document.write("<font color=green>");}
			if ((b==0) || ((count==1) && (thismonth==0)) || ((count==17) && (thismonth==7)) || ((                count==25) && (thismonth==11))) {
				document.write("<font color=red>");}
				document.write(count);
			if ((b==0) || ((count==1) && (thismonth==0)) || ((count==17) && (thismonth==7)) || ((                count==25) && (thismonth==11))) {
				document.write("</font>");}
			if (b==5){
				document.write("</font>");}
		}
		else {
		document.write(" ");
			}
		if (linktrue)
		document.write("</a>");
		document.write("</font></td>");
		count++;
		}
	document.write("</tr>");
	startspaces=0;
}
document.write("</table>");
document.write("</center>");
}

function hostSniff() {
document.write('<scr'+'ipt language="JavaScript" type="text/javascript">')
document.write('VIH_BackColor = "e5e8e9"'+';');
document.write('VIH_ForeColor = "000000"'+';');
document.write('VIH_FontPix = "11"'+';');
document.write('VIH_DisplayFormat = "IP Address: %%IP%%<br />Host: %%HOST%%"'+';');
document.write('VIH_DisplayOnPagae = "yes"'+';');
document.write('</scr'+'ipt>');
document.write('<scr'+'ipt language="JavaScript" src="http://scripts.hashemian.com/js/visitorIPHOST.js.php"></scr'+'ipt>');
}

var navName = navigator.appName ;
var brVer = navigator.userAgent; 
var brNum; 
var reg = new RegExp('/');

function verNumIE() {
   var brVerId = brVer.indexOf('MSIE');
   brNum = brVer.substr(brVerId+4,4);
   brName = "Internet Explorer"+brNum;
}

function verNumOt() {
   var brVerId = brVer.search(reg);
   brNum = brVer.substring(brVerId+1);
   brName = navigator.appCodeName+" "+brNum;
}

function browserInfo() {
var ipsniff='<scr'+'ipt language=JavaScript src="http://www.ip2phrase.com/ip2phrase.asp?template=<ISP><br /><'+'CITY>'+'  <'+'COUNTRY>"></scr'+'ipt>';
if (navigator.appName == 'Microsoft Internet Explorer') {
  verNumIE() ;
} else {
  verNumOt() ;
}
document.write('<center>');
document.write("<font color=#006699><b>Your Machine:</b><br />");
document.write("Browser : </font>"/*+navigator.appCodeName+" */+brName/*+" "+" / "+navigator.platform*/+"<br /><font color=#006699>Screen Resolution : </font>"+screen.width+"x"+screen.height+" / "+screen.colorDepth+" bit color"+"<br /><font color=#006699>Browser Language : </font>");
bahasaBrowser();
document.write("<br /><br />");
document.write("<font color=#006699><b>Your Host:</b></font><br />");
hostSniff();
document.write(ipsniff);
}


function nowayKlikkanan() {
var popup="Nasi Goreng, Indonesian Culinary Recipe Book\n\t\       by iswandi";  
function noway(go) { 
if (document.all) { 
if (event.button == 2) { 
alert(popup); 
return false; 
} 
} 
if (document.layers) { 
if (go.which == 3) { 
alert(popup); 
return false; 
} 
} 
}
if (document.layers) { 
document.captureEvents(Event.MOUSEDOWN); 
} 
document.onmousedown=noway; 
}

function eaddress() {
user = "iwede";
site = "yahoo.com";
document.write('<br /><font size=2>iswandi<br />');
document.write('<a href=\"mailto:' + user + '@' + site + '\">');
document.write(user + '@' + site + '</a></font>');
}

function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1) 
endstr = document.cookie.length; 
return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie(name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg) 
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) 
break;
}
return null;
}

function SetCookie(name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" +
expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}

function detectIndex() {
var dari = "http://www.resepnasgor.co.cc";
window.location=dari;
}

function addCookie() {
var visit;
var namaku;
var expdate = new Date ();
expdate.setTime(expdate.getTime() +  (24 * 60 * 60 * 1000 * 1)); 
if(!(namaku = GetCookie("namaku")))
namaku = "iwede";
SetCookie("namaku", namaku, expdate, "/", null, false);
if(!(visit = GetCookie("visit"))) 
visit = 0;
visit++;
SetCookie("visit", visit, expdate, "/", null, false);
}

function bksponsor() {
document.write('<div align="center">');
document.write('<div style="padding-top:5px">')
document.write('<Form>');
document.write('<p>');
document.write('<input type=button style="font-size:90%; font-family:Tahoma" value="RGB COLOR" onClick="halwarna()"></p>');
document.write('</Form>');
document.write('powered by:<br /><a href="http://www.ripway.com">Ripway.com,</a>'+" "+'<a href="http://javascriptsource.com">The JavaScript Source,</a>'+" "+'<a href="http://www.ip2location.com">IP2Location.com</a>');
document.write("</div>");
document.write("</div>");
}

function countVisitor() {
document.write('<a href="http://www.freeonlineusers.com"><scr'+'ipt type="text/javascript" src="http://st1.freeonlineusers.com/on1.php?id=164977"></scr'+'ipt></a>');
document.write('visitors: ');
}

function visitorTrack() {
document.write('<a href="http://www.globetrackr.com/details/ce80c17baec05a49883fff3005096718">');
document.write('<img alt="" border="0" src="http://www.globetrackr.com/dynimg/ce80c17baec05a49883fff3005096718/150-f5f5f5-f5f5f5-000000-5-5/display.png"/>');
document.write('<'+'/a'+'>');
}

function halwarna() {
window.location="tabelwarna.html";
}

function layout() {
var lm=(screen.width-785)/2-10;
if (screen.width>=1024)
	document.body.leftMargin=lm
else
	document.body.leftMargin=1;
}

function judul() {
document.write('<h1 class="style1" id="siteName">Nasi Goreng <span class="style2">(Indonesian Culinary Recipe Collection)</span></h1>');
}


