var IsIEPlus = false
if (navigator.userAgent.indexOf("MSIE")    != -1 && 
	navigator.userAgent.indexOf("Windows") != -1 && 
	navigator.appVersion.substring(0,1) > 3)
{
	IsIEPlus = true;
}

if (IsIEPlus)
{

	var newLineChar = String.fromCharCode(10);
	var char34 = String.fromCharCode(34);
	var FirstCRMsg = true;
	var hpStr;
	var hpLinkCnt = 0;
	var hpLinkWidth = 0;

	hpStr =
		"<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width='100%'>" +
		"<TR><td width='9'><IMG SRC='lptrans.gif' WIDTH='9' BORDER='0' height='5'></td>" +
		"<TD VALIGN=TOP><BR><font face='verdana,arial,helvetica' size=1>" +
		"	<!--CATEGORY_LINKS--><BR>" +
		"</TD></TR>" +
		"<TR><TD COLSPAN=2>" +
		"<BR>" +
		"<CENTER><IMG SRC='best800.gif' BORDER=0 alt='Best Viewed 800x600'></CENTER>" +
		"<BR>" +
		"</TD>" +
		"</TR>" +
		"</TABLE>";
		
}
else
{
	var newLineChar = String.fromCharCode(10);
	var char34 = String.fromCharCode(34);
	var FirstCRMsg = true;
	var hpStr;
	var hpLinkCnt = 0;
	var hpLinkWidth = 0;

	hpStr =
		"<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width='100%'>" +
		"<TR><td width='9' bgcolor='#FFCC99'><IMG SRC='lptrans.gif' WIDTH='9' BORDER='0' height='5'></td>" +
		"<TD VALIGN=TOP bgcolor='#FFCC99'><BR><font face='verdana,arial,helvetica' size=1>" +
		"<B>Home</B><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=index.htm>Bahasa Indonesia</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=english.htm>English</A><BR>" +

		"<B>Program & Registrasi</B><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indodownload.htm>Download</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoregistrasi.htm>Registrasi</A><BR>" +

		"<B>Belajar Komputer</B><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indopc.htm>Apa itu PC ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indosoftware.htm>Apa itu Software ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indosoftware.htm#shareware>Apa itu Shareware ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoagp.htm>Apa itu AGP ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoflashmemory.htm>Apa itu Flash Memory ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoerp.htm>Apa itu ERP ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoerp.htm#milis>Apa itu Mailing List ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoeide.htm>Apa itu EIDE ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoeide.htm#twain>Apa itu Twain ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoeide.htm#storex>Apa itu StoreX ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoeide.htm#router>Apa itu Router ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoensiklopedi.htm>Ensiklopedia</A><BR>" +

		"<B>Belajar Internet</B><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indointernet.htm>Apa itu Internet ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoekstra.htm>Apa itu Intranet ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoekstra.htm>Apa itu Ekstranet ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indosoft.htm>Apa itu Softmodem ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoftp.htm>Apa itu FTP ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indovpn.htm>Apa itu VPN ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indocookie.htm>Apa itu Cookie ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indounicode.htm>Apa itu Unicode ?</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoensiklopedi.htm>Ensiklopedia</A><BR>" +

		"<B>Test Hardware</B><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indotes3.htm#processor>Processor</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indotes3.htm#motherboard>Motherboard</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indotes3.htm#vga>VGA Card</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indotes2.htm#printer>Printer</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indotes2.htm#scanner>Scanner</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indotes.htm#dvd>DVD-ROM Drive</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indotes.htm#cdrw>CD-Rewritable Drive</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indotes.htm#zip>Zip Drive</A><BR>" +

		"<B>Test Software</B><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indotes1.htm#virus>Anti Virus</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indotes1.htm#web>Web Editor</A><BR>" +

		"<B>Tip & Trick</B><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indowinxp.htm>Microsoft Windows XP</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indowin2000.htm>Microsoft Windows 2000</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indowint.htm>Microsoft Windows NT</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indowinme.htm>Microsoft Windows Me</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indowin98.htm>Microsoft Windows 98</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indowin95.htm>Microsoft Windows 95</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indowin3.htm>Microsoft Windows 3.x</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indodos.htm>MS-DOS</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indolinux.htm>Linux</A><BR>" +

		"<B>Service</B><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoemail.htm>E-mail</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indocybersite.htm>CYBERSITE</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=irc://irc.dal.net:7000/stevencom>Ruang Chat</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoklinik.htm>Klinik Komputer</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indomail.htm>Anonymous E-mail</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoradio.htm>Radio Online Indonesia</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoisp.htm>Internet Service Provider</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=mailto:steven.webmaster@telkom.net>Contact Webmaster</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indocari.htm>Cari</A><BR>" +

		"<B>Bursa Komputer</B><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoharga.htm>Info Harga Hardware</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indoiklan.htm>Pasang Iklan</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indobursa.htm>Bursa Komputer</A><BR>" +

		"<B>Partner</B><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=http://www.depot-madiun.com>Depot Madiun</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=http://www.santoyoseph.com>SantoYoseph.com</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=http://www.nikisae.co-ltd.com>Niki Sae</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=#>Lifan</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=http://www.baliprima.f2s.com>BALiPRIMA</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=#>Istana Mobil</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=http://www.geocities.com/devitransports>Devi Transport</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=http://www.geocities.com/tehcno2000>Nietiadi's Homepage</A><BR>" +

		"<B>Web Links</B><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indolinx.htm#berita>Berita</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indolinx.htm#bisnis>Bisnis & Keuangan</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indolinx.htm#hiburan>Hiburan</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indolinx.htm#computer>Computer & Internet</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indotambah.htm>Tambah / Rubah Link</A><BR>" +

		"<B>Buku Tamu</B><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=guest.htm>Isi Buku Tamu</A><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=geobook.htm>Lihat Buku tamu</A><BR>" +

		"<B>Tentang Kami</B><BR>" +
		"&nbsp;&nbsp;&nbsp;<A HREF=indotentang.htm>Tentang StevenCom</A><BR>" +
		"<br>"+
		"<br>"+
		"<CENTER><IMG SRC='best800.gif' BORDER=0 alt='Best Viewed 800x600'></CENTER>" +
		"<BR>" +
		"</TD>" +
		"</TR>" +
		"</TABLE>";
}

function showHomePage()
{
	buildNavigation();

	//alert(hpStr);
	document.write(hpStr);
}

function setHomePageLinkTitle(TitleStr)
{
	SubStr = "<!--HOMEPAGE_LINKS-->";
	if (hpStr.indexOf(SubStr) >= 0)
	{
		hpLinkWidth = TitleStr.length;
		SrcStr = TitleStr + "<BR>" +
				 "<SELECT NAME='target' onChange='goHomePage(this);'>" +
				 "<!--HOMEPAGE_LINK-->" +
				 "</SELECT>";
		hpStr = hpStr.replace(SubStr, SrcStr);	
	}
}

function addHomePageLink(LinkStr, LinkUrl, defaultSelection)
{
	SubStr = "<!--HOMEPAGE_LINK-->";
	if (hpStr.indexOf(SubStr) >= 0)
	{
		hpLinkCnt += 1;
		SrcStr = "<OPTION VALUE='" + hpLinkCnt + "'";
		if (defaultSelection) SrcStr += " SELECTED";
		SrcStr += ">" + LinkStr;
		
		//Make the select box the same width as the link title.
		for (i = LinkStr.length+1; i < hpLinkWidth+2; i++)
			SrcStr += "&nbsp;";

		SrcStr += SubStr;
		hpStr = hpStr.replace(SubStr, SrcStr);
		
		hpStr += "<A ID=ID_HPLink" + hpLinkCnt + " STYLE='display:none' HREF='" + LinkUrl + "'>1</A>";
	}
}

function addCategory(CatIDStr, CatStr, defaultShow, Overlay)
{
		sImg   = defaultShow? "minus.gif" : "plus.gif";
		sStyle = defaultShow? "black"     : "none";
	
	SubStr = "<!--CATEGORY_LINKS-->";
	if (hpStr.indexOf(SubStr) >= 0)
	{
		SrcStr = "<DIV STYLE='cursor:hand;'" +
				 "     ID=C_" + CatIDStr +
				 "     onClick=clickCategory(" + char34 + CatIDStr + char34 + ") NOWRAP>" +
				 "<IMG SRC='" + sImg + "' ALT='Click Here!'" +
				 "     ID=I_" + CatIDStr +
				 "     onClick=clickCategory(" + char34 + CatIDStr + char34 + ") ALIGN=middle BORDER=0>&nbsp;" +
				 "<A STYLE='color:black;text-decoration:none;'" +
				 "   HREF='noop' " +
				 " Title=" + Overlay +
				 "   onfocus=" + char34 + "window.status='';" + char34 + 
				 "   onmouseover=" + char34 + "window.status='';" + char34 + 
				 "   onclick=" + char34 + "window.event.returnValue = false;" + char34 + ">" +
				 "<B>" + CatStr + "</B></A><BR>" +
				 "<DIV STYLE='display:" + sStyle + ";'" +
				 "     ID=T_" + CatIDStr + 
				 "     onClick=" + char34 + "window.event.cancelBubble=true;" + char34 + ">" +
				 "<DIV STYLE='margin-left:12;'><FONT SIZE=1><!--" + CatIDStr + "-->" + "</DIV>" +
				 "</DIV></DIV>" + SubStr;
		hpStr = hpStr.replace(SubStr, SrcStr);	
	}
}

function addCategory2(CatIDStr, CatStr, defaultShow)
{
		sImg   = defaultShow? "none.gif" : "none.gif";
		sStyle = defaultShow? "black"     : "none";
	
	SubStr = "<!--CATEGORY_LINKS-->";
	if (hpStr.indexOf(SubStr) >= 0)
	{
		SrcStr = "<DIV STYLE='cursor:hand;'" +
				 "     ID=C_" + CatIDStr +
				 "     onClick=clickCategory2(" + char34 + CatIDStr + char34 + ") NOWRAP>" +
				 "<IMG SRC='" + sImg + "' ALT='*'" +
				 "     ID=I_" + CatIDStr +
				 "     onClick=clickCategory2(" + char34 + CatIDStr + char34 + ") ALIGN=middle BORDER=0>&nbsp;" +
				 "<A STYLE='color:black;text-decoration:none;'" + 
				 "   HREF='noop' " + 
				 "   onfocus=" + char34 + "window.status='';" + char34 + 
				 "   onmouseover=" + char34 + "window.status='';" + char34 + 
				 "   onclick=" + char34 + "window.event.returnValue = false;" + char34 + ">" +
				 "<B>" + CatStr + "</B></A><BR>" +
				 "<DIV STYLE='display:" + sStyle + ";'" +
				 "     ID=T_" + CatIDStr + 
				 "     onClick=" + char34 + "window.event.cancelBubble=true;" + char34 + ">" +
				 "<DIV STYLE='margin-left:12;'><FONT SIZE=1><!--" + CatIDStr + "-->" + "</DIV>" +
				 "</DIV></DIV>" + SubStr;
		hpStr = hpStr.replace(SubStr, SrcStr);	
	}
}


function addCategoryLink(CatIDStr, CatStr, LinkUrl)
{
	SubStr  = "<!--" + CatIDStr + "-->";
	if (hpStr.indexOf(SubStr) >= 0)
	{
		SrcStr = "<A HREF='" + LinkUrl + "'>" + CatStr + "</A><BR>" + SubStr;
		hpStr = hpStr.replace(SubStr, SrcStr);	
	}
}


function setTopLinkTitle(TitleStr)
{
	SubStr = "<!--TOP_LINKS-->";
	if (hpStr.indexOf(SubStr) >= 0)
	{
		SrcStr = "<B>" + TitleStr + "</B><BR><DIV STYLE='margin-left:12;'><!--TOP_LINK--></DIV>";
		hpStr = hpStr.replace(SubStr, SrcStr);	
	}
}

function addTopLink(LinkStr, LinkUrl)
{
	SubStr  = "<!--TOP_LINK-->";
	if (hpStr.indexOf(SubStr) >= 0)
	{
		SrcStr = "<A HREF='" + LinkUrl + "'>" + LinkStr + "</A><BR>" + SubStr;
		hpStr = hpStr.replace(SubStr, SrcStr);	
	}
}

function addStandardLink(TextStr, LinkStr, LinkUrl)
{
	SubStr = "<!--STANDARD_LINK-->";
	if (hpStr.indexOf(SubStr) >= 0)
	{
		SrcStr = TextStr;
		if (LinkStr != "")
		{
			x = TextStr.indexOf(LinkStr);
			if (x >= 0)
			{
				SrcStr = TextStr.substring(0, x);
				SrcStr += "<A HREF='" + LinkUrl + "'>" + LinkStr + "</A>";
			
				x += LinkStr.length;
				SrcStr += TextStr.substring(x);
			}
		}
		SrcStr += "<BR><BR>" + SubStr;
		hpStr = hpStr.replace(SubStr, SrcStr);	
	}
}

function addCopyRightMsg(MsgStr, MsgUrl)
{
	SubStr = "<!--COPYRIGHT-->";
	SrcStr = "";
	if (FirstCRMsg)
	{
		SrcStr = "&#169;";
		FirstCRMsg = false;
	}
	if (MsgUrl == "")
		SrcStr += MsgStr;
	else
		SrcStr += "<A HREF='" + MsgUrl + "'>" + MsgStr + "</A>";
	SrcStr += SubStr;
	hpStr = hpStr.replace(SubStr, SrcStr);	
}

function setTopStory(HeadlineStr, StoreStr, LinkUrl, Gif, GifAltStr)
{
	SrcStr = "<A HREF='" + LinkUrl + "'><IMG SRC='" + Gif + "' ALIGN=LEFT WIDTH=117 HEIGHT=85 ALT=" + char34 + GifAltStr + char34 + " BORDER=0></A>";
	hpStr = hpStr.replace("<!--TOP_BANNER-->", SrcStr);	

	SrcStr = "<A HREF='" + LinkUrl + "'><B>" + HeadlineStr + "</B></A><BR>" + StoreStr;
	hpStr = hpStr.replace("<!--TOP_STORY-->", SrcStr);	
}

function setHeadlineTitle(TitleStr)
{
	SubStr = "<!--HEADLINE_TITLE-->";
	if (hpStr.indexOf(SubStr) >= 0)
	{
		SrcStr = "<B>" + TitleStr + "</B><BR><BR>";
		hpStr = hpStr.replace(SubStr, SrcStr);	
	}
}

function setHeadline(placementNo, HeadlineStr, LinkUrl)
{
	if (placementNo < 1 || placementNo > 6) return

	SubStr = "<!--BULLET_" + placementNo + "-->";
	SrcStr = "<IMG SRC='plus.gif' ALT='*' WIDTH=7 HEIGHT=10>";
	hpStr = hpStr.replace(SubStr, SrcStr);	

	SubStr = "<!--HEADLINE_" + placementNo + "-->";
	SrcStr = "<B><A HREF='" + LinkUrl + "'>" + HeadlineStr + "</B></A>";
	hpStr = hpStr.replace(SubStr, SrcStr);	
}

function setPromotion(placementNo, HeadlineStr, StoreStr, LinkUrl, Gif, GifAltStr)
{
	if (placementNo < 1 || placementNo > 2) return

	SubStr = "<!--PROMO_BANNER_" + placementNo + "-->";
	SrcStr = "<A HREF='" + LinkUrl + "'><IMG SRC='" + Gif + "' ALIGN=LEFT ALT=" + char34 + GifAltStr + char34 + " BORDER=0></A>";
	hpStr = hpStr.replace(SubStr, SrcStr);	
	
	SubStr = "<!--PROMO_MSG_" + placementNo + "-->";
	SrcStr = "";
	if (HeadlineStr != "") SrcStr += "<A HREF='" + LinkUrl + "'><B>" + HeadlineStr + "</B></A><BR>";
	if (StoreStr    != "") SrcStr += StoreStr;
	hpStr = hpStr.replace(SubStr, SrcStr);	
}

function setLastUpdate(TextStr)
{
	hpStr = hpStr.replace("<!--LASTUPDATE-->", TextStr);	
}

function goHomePage(s)
{	
	//window.location.href = s.options[s.selectedIndex].value;
	
	option = s.options[s.selectedIndex].value;
	elmID = "ID_HPLink" + option
	obj = document.all(elmID);
	if (obj != null)
		obj.click();
}

function clickCategory(CatIDStr) 
{
	var txtObj = document.all("T_" + CatIDStr);
	var imgObj = document.all("I_" + CatIDStr);

	if (txtObj.style.display == 'none') 
	{
		txtObj.style.display = '';
		imgObj.src = 'minus.gif';
	}
	else 
	{
		txtObj.style.display = 'none';
		imgObj.src = 'plus.gif';
	}
	window.event.cancelBubble=true;
}

function clickCategory2(CatIDStr) 
{
	var txtObj = document.all("T_" + CatIDStr);
	var imgObj = document.all("I_" + CatIDStr);

	if (txtObj.style.display == 'none') 
	{
		txtObj.style.display = '';
		imgObj.src = 'none.gif';
	}
	else 
	{
		txtObj.style.display = 'none';
		imgObj.src = 'none.gif';
	}
	window.event.cancelBubble=true;
}


function LineBreak()
{
	SubStr = "<!--CATEGORY_LINKS-->";
	SrcStr = "&nbsp;";
	hpStr = hpStr.replace(SubStr, SrcStr);	
}


function over1()
{
//var b = '';
b = '';
window.status = b;
}
