// no framing ======= 
if (top.frames.length!=0)
	top.location=self.document.location;

// donor list =======
txt4 = "Robert - Paul - Reginald - Chuck - Samuel - Robert - Alain - Jřrgen - Gordon - Jack";

// location =========
copyright = false;
special1 = false;
special2 = false;
disclaimer = true;
sti = "";
short_sti = "";

if (location.href.indexOf("jososoft.dk") != -1)
	short_sti = "http://www.jososoft.dk/";
else
	short_sti = "file:///D:/dokumenter/website/";

sti = short_sti + "yamaha/";

// mail =============
var a1 = "js";
var a2 = "@";
var a3 = "jososoft.dk";

// news =============
news1 = new Array(
//	"<a href=" + sti + "fora.htm>1 new Discussion Forum</a>",
//	"<a href=" + sti + "resource.htm>1 new Resources Site</a>",
//	"<a href=" + sti + "articles.htm>1 new Article</a>",
//	"<a href=" + sti + "stylesites.htm>1 new Style Site</a>",
	"<a href=" + sti + "software.htm>2 new Software Programs</a>"
//	"<a href=" + sti + "yamaha.htm>2 new Yamaha Sites</a>",
//	"<a href=" + sti + "index.htm>7 updated Software Programs</a>"
	);

news2 = new Array(
//	"<a href=" + sti + "keyboard.htm>1 new Other Brands Site</a>",
	"<a href=" + sti + "programming.htm>1 new Music Programming Site</a>",
	"<a href=" + sti + "music_4.htm>1 new Music Software Site</a>"
//	"<a href=" + sti + "songmaking.htm>1 new Songwriting-Chords-Patterns Site</a>",
//	"<a href=" + sti + "music_1.htm>2 new Lyrics-Fakebooks-Sheets-Tabs Sites</a>",
//	"<a href=" + sti + "music.htm>2 new Music Sites</a>"
//	"<a href=" + sti + "music_3.htm>55 new MIDI Files Sites</a>"
	);

n_txt1 = news1[Math.floor(Math.random()*news1.length)];
n_txt2 = news2[Math.floor(Math.random()*news2.length)];

// billeder =========
pics1 = new Array("pic2.jpg","pic4.jpg","pic5.jpg","pic6.jpg","pic10.jpg","pic12.jpg","pic14.jpg","pic16.jpg","pic19.jpg","pic21.jpg","pic22.jpg","pic24.jpg","pic26.jpg","pic30.jpg","pic32.jpg","pic40.jpg","pic41.jpg","pic42.jpg","pic43.jpg","pic44.jpg","pic45.jpg","pic46.jpg","pic49.jpg","pic50.jpg");
pics2 = new Array("pic1.jpg","pic3.jpg","pic7.jpg","pic8.jpg", "pic9.jpg","pic11.jpg","pic13.jpg","pic15.jpg","pic17.jpg","pic18.jpg","pic20.jpg","pic23.jpg","pic25.jpg","pic27.jpg","pic29.jpg","pic31.jpg","pic33.jpg","pic35.jpg","pic36.jpg","pic37.jpg","pic38.jpg","pic39.jpg","pic47.jpg","pic48.jpg");
pics3 = new Array("test1.jpg","test3.jpg","test5.jpg","test7.jpg", "test9.jpg","test12.jpg","test13.jpg","test15.jpg","test17.jpg","test19.jpg","test22.jpg","test24.jpg","test26.jpg","test28.jpg","test29.jpg","test30.jpg","test31.jpg","test32.jpg","test34.jpg","test40.jpg","test41.jpg","test43.jpg");
pics4 = new Array("test2.jpg","test4.jpg","test6.jpg","test8.jpg","test10.jpg","test11.jpg","test14.jpg","test16.jpg","test18.jpg","test20.jpg","test21.jpg","test23.jpg","test25.jpg","test27.jpg","test33.jpg","test35.jpg","test36.jpg","test37.jpg","test38.jpg","test39.jpg","test42.jpg","test44.jpg");

pic1 = sti + "pics/" + pics1[Math.floor(Math.random()*pics1.length)];
pic2 = sti + "pics/" + pics2[Math.floor(Math.random()*pics2.length)];
left  = sti + "pics/" + pics3[Math.floor(Math.random()*pics3.length)];
right = sti + "pics/" + pics4[Math.floor(Math.random()*pics4.length)];

// thanks billeder ==
thanks = new Array("thanks1.jpg","thanks2.jpg","thanks3.jpg","thanks4.jpg","thanks5.jpg","thanks6.jpg","thanks7.jpg","thanks8.jpg","thanks9.jpg","thanks10.jpg");
tak = sti + "pics2/" + thanks[Math.floor(Math.random()*thanks.length)];

// paypal ===========
paypal1 =	"<form action='https://www.paypal.com/cgi-bin/webscr' target='pp' method='post'>" +
		"<select name='currency_code'>" +
		"<option value='EUR' selected>Euro </option>" +
		"<option value='USD'>US $</option>" +
		"<option value='GBP'>GB Ł</option>" +
		"</select>" +
		"<input type='hidden' size='3' SELECT_NAME='currency_code'>"
		
paypal2 =	"<input type='hidden' name='cmd' value='_xclick'>" +
		"<input type='hidden' name='business' value='yamaha-donate@jososoft.dk'>" +
		"<input type='hidden' name='item_name' value='donation'>" +
		"<input type='hidden' name='item_number' value='donation'>" +
		"<input type='hidden' name='no_shipping' value='0'>" +
		"<input type='hidden' name='no_note' value='1'>" +
		"<input type='hidden' name='tax' value='0'>" +
		"<input type='hidden' name='lc' value='US'>" +
		"<input type='hidden' name='bn' value='PP-DonationsBF'>" +
		"<input type='image' src='https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif' border='0' name='submit' alt='Make payments with PayPal - fast, free and secure!'>" +
		"</form>"

// help =============
function help()
{
	var nyt = null;
	nyt = window.open('', 'Nytvindue', 'width=600,height=200,resize=no, scrollbars=yes');
	if (nyt != null)
	{
		if (nyt.opener== null)
			nyt.opener = self;
	}
	nyt.location.href = sti + "help.htm";
}

// page top =========
function starttop()
{

// heading ==========
document.write("<table border='0' cellspacing='0' cellpadding='0' width='100%'>");
document.write("<tr><td class='light' colspan='5' rowspan='4'><h1><img src='" + short_sti + "jososoft.gif' alt='jososoft logo'> The Unofficial YAMAHA Keyboard Resource Site</h1></td>");

// flags ============
document.write("<td class='light' colspan='3' align='right'>");

if (top.location.href.indexOf("translate") == -1)
{ 
	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=de&u="+location.href+"'><img src='"+ short_sti +"flag/de.gif' border='0' alt='Übersetzen Sie diese Seite in Deutsch'></a> ");
	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=nl&u="+location.href+"'><img src='"+ short_sti +"flag/nl.gif' border='0' alt='Vertaal deze pagina naar Nederlands'></a> ");
	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=pt&u="+location.href+"'><img src='"+ short_sti +"flag/pt.gif' border='0' alt='Traduzir esta página para o Portuguęs'></a> ");
	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=it&u="+location.href+"'><img src='"+ short_sti +"flag/it.gif' border='0' alt='Traduci questa pagina a Italiano'></a> ");
	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=fr&u="+location.href+"'><img src='"+ short_sti +"flag/fr.gif' border='0' alt='Traduire cette page en français'></a> ");
	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=es&u="+location.href+"'><img src='"+ short_sti +"flag/es.gif' border='0' alt='Traducir esta página al espańol'></a> ");

	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=da&u="+location.href+"'><img src='"+ short_sti +"flag/da.gif' border='0' alt='Oversćt siden til dansk'></a> ");
	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=no&u="+location.href+"'><img src='"+ short_sti +"flag/no.gif' border='0' alt='Oversette siden til norsk'></a> ");
	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=sv&u="+location.href+"'><img src='"+ short_sti +"flag/sv.gif' border='0' alt='Översätta sidan till svenska'></a> ");
	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=fi&u="+location.href+"'><img src='"+ short_sti +"flag/fi.gif' border='0' alt='Käännä sivu suomi'></a> ");

	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=pl&u="+location.href+"'><img src='"+ short_sti +"flag/pl.gif' border='0' alt='Przetlumaczyc te strone Polski'></a> ");
	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=cs&u="+location.href+"'><img src='"+ short_sti +"flag/cs.gif' border='0' alt='Preloit tuto stránku do cetiny'></a> ");
	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=ru&u="+location.href+"'><img src='"+ short_sti +"flag/ru.gif' border='0' alt='Translate this page to Russian'></a> ");
	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=hu&u="+location.href+"'><img src='"+ short_sti +"flag/hu.gif' border='0' alt='Fordítás magyarra'></a> ");
	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=sk&u="+location.href+"'><img src='"+ short_sti +"flag/sk.gif' border='0' alt='Preloit túto stránku do slovenciny'></a> ");
	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=el&u="+location.href+"'><img src='"+ short_sti +"flag/el.jpg' border='0' alt='Translate this page to Greek'></a> ");

	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=tr&u="+location.href+"'><img src='"+ short_sti +"flag/tr.gif' border='0' alt='Translate this page to Turkish'></a> ");
	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=hi&u="+location.href+"'><img src='"+ short_sti +"flag/hi.gif' border='0' alt='Translate this page to Hindi'></a> ");
	document.write("<a href='http://www.google.com/translate_c?hl=en&tl=id&u="+location.href+"'><img src='"+ short_sti +"flag/id.gif' border='0' alt='Terjemahkan halaman ini ke Indonesia'></a> ");
}
else
{
	start = top.location.href.lastIndexOf("http");
	slut = top.location.href.lastIndexOf("htm");
	slut2 = top.location.href.lastIndexOf("/");
	if (slut > 0)
		document.write("<a href=" + top.location.href.substring(start,slut+3) + "><img src='"+ short_sti +"flag/uk.gif' border='0'> Original Page</a>");
	else
		document.write("<a href=" + top.location.href.substring(start,slut2+1) + "index.htm><img src='"+ short_sti +"flag/uk.gif' border='0'> Original Page</a>");
}
document.write("</td></tr>");		

// site info ========
document.write("<tr><td class='light' colspan='3' height='4'></td></tr>");
document.write("<tr><td class='dark'><a href='" + sti + "sitemap.htm'>Site Map</a></td>");
document.write("<td class='dark'><a href='javascript:help();'>Find It !</a></td>");
document.write("<td class='dark'><a href='" + sti + "brev.htm'>Mail me !</a></td></tr>");
document.write("<tr><td class='light' colspan='3' height='4'></td></tr>");

// menus ============
document.write("<tr><td class='light' width='12%'><a href='" + sti + "index.htm'>Home</a></td>");
document.write("<td class='light' width='13%'><a href='" + sti + "fora.htm'>Discussion Fora</a></td>");
document.write("<td class='light' width='12%'><a href='" + sti + "resource.htm'>Resources</a></td>");
document.write("<td class='light' width='13%'><a href='" + sti + "articles.htm'>My Articles</a></td>");
document.write("<td class='light' width='12%'><a href='" + sti + "stylesites.htm'>Styles</a></td>");
document.write("<td class='light' width='12%'><a href='" + sti + "styles/styles.htm'>My Styles</a></td>");
document.write("<td class='light' width='13%'><a href='" + sti + "software.htm'>Software 1</a></td>");
document.write("<td class='light' width='12%'><a href='" + sti + "more_software.htm'>Software 2</a></td></tr>");

document.write("<tr><td class='darkest' colspan='8' height='1'></td></tr>");

document.write("<tr><td class='light'><a href='" + sti + "yamaha.htm'>Yamaha</a></td>");
document.write("<td class='light'><a href='" + sti + "740corner.htm'>PSR&nbsp;740&nbsp;Corner</a></td>");
document.write("<td class='light'><a href='" + sti + "keyboard.htm'>Other&nbsp;Brands</a></td>");
document.write("<td class='light'><a href='" + sti + "programming.htm'>Programming</a></td>");
document.write("<td class='light'><a href='" + sti + "docs_specs.htm'>Docs&minus;Specs</a></td>");
document.write("<td class='light'><a href='" + sti + "ins_files.htm'>Ins&nbsp;Files</a></td>");
document.write("<td class='light'><a href='" + sti + "music_2.htm'>Music&nbsp;Softw.&nbsp;1</a></td>");
document.write("<td class='light'><a href='" + sti + "music_4.htm'>Music&nbsp;Softw.&nbsp;2</a></td></tr>");

document.write("<tr><td class='darkest' colspan='8' height='1'></td></tr>");

document.write("<tr><td class='light'><a href='" + sti + "yam_news.htm'>Music News</a></td>");
document.write("<td class='light' colspan='2'><a href='" + sti + "songmaking.htm'>Songwriting&minus;Chords&minus;Patterns</a></td>");
document.write("<td class='light' colspan='2'><a href='" + sti + "music_1.htm'>Lyrics&minus;Fakebooks&minus;Sheets&minus;Tabs</a></td>");
document.write("<td class='light'><a href='" + sti + "music.htm'>Music</a></td>");
document.write("<td class='light'><a href='" + sti + "danish.htm'>Danish Music</a></td>");
document.write("<td class='light'><a href='" + sti + "music_3.htm'>MIDI&nbsp;Files</a></td></tr>");

document.write("<tr><td class='light' colspan='8' height='4'></td></tr>");

// news line ========
document.write("<tr><td class='dark'><b>Site&nbsp;News</b>&nbsp;<img src='" + sti + "../frem.gif' border='0' alt='Arrow'></td>");
document.write("<td class='dark' colspan='2'><script type='text/javascript'>document.write(n_txt1);</script></td>");
document.write("<td class='dark' colspan='2'><script type='text/javascript'>document.write(n_txt2);</script></td>");
document.write("<td class='dark'><a href='" + sti + "whats_up.htm'>What's Up ?</a></td>");
document.write("<td class='dark'><a href='" + sti + "nyhedsbrev.htm'>Newsletter</a></td>");
document.write("<td class='dark'><a href='" + sti + "about.htm'>About this Site</a></td></tr>");

document.write("<tr><td class='light' colspan='8' height='4'></td></tr>");

// body heading =====

if (special1)
	document.write("<tr><td colspan='5' rowspan='3' style='background-image:url(" + sti + "10aar.gif);'><h2>" + document.title.substring(18) + "</h2></td>");
else
	document.write("<tr><td colspan='5' rowspan='3'><h1>" + document.title.substring(18) + "</h1></td>");
document.write("<td class='darker' align='center' style='background-image:url(" + sti + "arrow.gif); background-repeat: no-repeat'><b>Support<br>this site<br></b><a href=" + sti + "support.htm>About</a></td>");
document.write("<td class='darker' align='center' style='background-image:url(" + sti + "arrow.gif); background-repeat: no-repeat'><b>Select<br>currency</b><br>");
document.write(paypal1 + "</td>");
document.write("<td class='darker' align='center' style='background-image:url(" + sti + "arrow.gif); background-repeat: no-repeat'>");
document.write(paypal2 + "</td></tr>");
document.write("</td></tr><tr><td class='dark' colspan='4' height='1'></td></tr>");
document.write("<tr><td class='darker' colspan='4' align='center'><b>Latest Donors: " + txt4 + "</b></td></tr>");

document.write("<tr><td class='light' colspan='8' height='4'></td></tr></table>");

// images ===========
document.write("<table cellpadding='0' cellspacing='0' width='100%' border='0'>");
document.write("<tr><td rowspan='3' width='30%'><table cellpadding='0' cellspacing='0' width='100%' height='135' style='border-width:1px; border-style:solid; border-color:black;'><tr>");
document.write("<td style='background-image:url(" + left + ");'></td></tr></table></td>");
document.write("<td rowspan='3' width='4'>&nbsp;</td><td width='40%'><img src='" + pic1 + "' border='1'><img src='" + sti + "spacer.gif'><img src='" + pic2 + "' border='1'></td><td rowspan='3' width='4'>&nbsp;</td>");
document.write("<td rowspan='3' width='30%'><table cellpadding='0' cellspacing='0' width='100%' height='135' style='border-width:1px; border-style:solid; border-color:black;'><tr>");
document.write("<td style='background-image:url(" + right + ");'></td></tr></table></td></tr>");
document.write("<tr><td height='3'></td></tr>");

// google ad ========
document.write("<tr><td align='center'>");
}

function google_ads()
{
	google_ad_client = "pub-7339620459782348";
	google_alternate_ad_url = "http://www.jososoft.dk/yamaha/my_ad.htm";
	google_ad_width = 728;
	google_ad_height = 90;
	google_ad_format = "728x90_as";
	google_ad_type = "text_image";
	google_ad_channel ="";
	google_color_border = "E0E0E0";
	google_color_bg = "E0E0E0";
	google_color_link = "993333";
	google_color_url = "993333";
	google_color_text = "000000";

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}

function sluttop()
{
	document.write("</td></tr>");
	document.write("<tr><td colspan='5' height='8'></td></tr></table>");

	// donation reminder ==
	if ( location.href.indexOf("/software/") != -1 && location.href.indexOf("/index.htm") != -1 && location.href.indexOf("software/index.htm") == -1 )
	{
		document.write("<table border='0' cellspacing='0' cellpadding='0' width='100%'><tr>");
		document.write("<td width='24%' class='darker'>This software program is Donation Ware. To donate:</td><td width='1%' class='darker'></td>");
		document.write("<td width='24%' class='darker'><b>1.</b> Select your currency preference in the top right corner of this window.</td><td width='1%' class='darker'></td>");
		document.write("<td width='24%' class='darker'><b>2.</b> Now click the <i><b>PayPal Donate</b></i> image; and a new browser window will open.</td><td width='1%' class='darker'></td>");
		document.write("<td width='25%' class='darker'><b>3.</b> Follow the instructions at the page in this new window. More about <a href=" + sti + "support.htm>Support</a>.</td></tr>");
		document.write("<tr><td colspan='7'><hr></td></tr>");
		document.write("</table>");
	}	
}

// menu in articles ==
function menu(topic)
{
	var no = 0;
	if (topic == "Style")
		no = 12;

	if (topic == "MIDI")
		no = 11;

	if (topic == "style2")
		no = 13;

	if (topic == "software")
		no = 6;

	var1 = location.href.lastIndexOf("_") + 1;
	var2 = location.href.lastIndexOf(".");
	var3 = parseInt(location.href.substring(var1, var2));

	document.write("<table><tr>");

	if (var3 != 1)
	{
		document.write("<td> <a href = " + location.href.substring(0, var1) + (var3 - 1) + location.href.substring(var2, var2 + 4) + ">&lt;</a> </td>");
	}

	for (i=1; i < no+1; i++)
	{
		if (location.href.indexOf("_" + i +".htm") == -1)
			document.write("<td><table cellspacing='0' cellpadding='0'><tr><td align='center' style='border-style:outset;border-width:thin'><a href='" + topic + "_" + i + ".htm'>Part " + i +"</a></td></tr></table></td>");
		else
			document.write("<td><table cellspacing='0' cellpadding='0'><tr><td align='center' class='darkest' style='border-style:inset;border-width:thin'>Part " + i +"</td></tr></table></td>");
	}

	if (var3 != no)
	{
		document.write("<td> <a href = " + location.href.substring(0, var1) + (var3 + 1) + location.href.substring(var2, var2 + 4) + ">&gt;</a></td>");
	}

	document.write("</tr></table>");
}

// bund =============

function bundtabel()
{

	document.write("<table cellspacing='0' cellpadding='0' width='100%' border='0'>");
	document.write("<tr><td height='4' class='light'></td></tr>");
	document.write("<tr><td class='dark' width='29%'>&nbsp;<span class='valid'>&nbsp;<a href='" + sti + "about.htm'>&copy;1999-2010</a>&nbsp;<a href='" + short_sti + "js/index_uk.htm'>J&oslash;rgen S&oslash;rensen</a>&nbsp;</span></td>");
	document.write("<td class='dark' width='42%' align='center'><b>The Unofficial YAMAHA Keyboard Resource Site</b></td>");

	if (top.location.href.indexOf("translate") == -1)
	{ 
		document.write("<td class='dark' width='29%' align='right'><span class='valid'>&nbsp;<a href='http://jigsaw.w3.org/css-validator/validator?uri=" + location.href +"' target='ext'>CSS VALID</a>&nbsp;</span>");
		document.write("&nbsp;<span class='valid'>&nbsp;<a href='http://validator.w3.org/check?uri=referer' target='ext'>HTML VALID</a>&nbsp;</span>&nbsp;</td>");
	}
	else
	{
		document.write("<td class='dark' width='29%' align='right'>"); 
		document.write("&nbsp;<span class='valid'>&nbsp;Served by <a href='http://www.google.com/language_tools?hl=en' target='ext'>Google Translations</a>&nbsp;</span>&nbsp;</td>");
	}

	document.write("</tr></table>");

	if (copyright)
	{
		document.write("<table width='100%'><tr><td class='light' width='25%'>&nbsp;</td>");
		document.write("<td class='red' width='50%' style='text-align:center'><b>Watch out for Copies! Only use the Originals!</b><br>");
		document.write("Some pages at this website were lately stolen and published at another website.<br>");
		document.write("Read more at the <a href='" + sti + "copyright.htm'>About Copyright</a> page.</td>");
		document.write("<td class='light' width='25%'>&nbsp;</td></tr></table>");
	}

	if (special2)
	{
		document.write("<table width='100%'><tr><td class='light' width='25%'>&nbsp;</td>");
		document.write("<td class='red' width='50%' style='text-align:center'><b>Site Temporarily Closed</b><br>");
		document.write("Due to maintenance at the hosting provider this site will be closed from Sunday 7 March 18:00 (CET) to Monday 8 March 06:00 (CET).<br>");
		document.write("Sorry for the inconvenience.</td>");
		document.write("<td class='light' width='25%'>&nbsp;</td></tr></table>");
	}
	
	if (disclaimer)
	{	
		document.write("<table width='100%'><tr>");
		document.write("<td class='light' style='text-align: center'>All information is presented 'as-is'. No warranties whatsoever for correctness; completeness or usefulness.<br>");
		document.write("I hereby expressly disclaims any liability for the content in and legality of externally linked sites and pages.</td>");
		document.write("</tr></table>");
	}	


	// ie6 check ===========================
	notset = false;
	data = 	navigator.appVersion.split(";");
	for (i = 0; i < data.length; i++)
	{
		if (data[i].indexOf("MSIE") != -1 && notset == false)
		{
			dataInside = data[i].split(" ");
			if ( parseInt(dataInside[dataInside.length - 1]) < 7 )
			{	
				document.write("<p align='center'>Apparently you use the Internet Explorer version 6 browser. <br>Consider updating your browser to a faster, safer and more standard complying browser.");
				notset = true;
			}
		}
	} 

}

function getJava()
{
	var list = deployJava.getJREs();
	var result = "java=";
	for (var i = 0; i < list.length; ++i)
	{
    		result += list[i];
    		if (i < list.length - 1)
			result += ", ";
	}


	if (result.indexOf("1.6") != -1)	
		alert("JRE 1.6 (ver. 6)");		

	else if (result.indexOf("1.5") != -1)
		alert("JRE 1.5 (ver. 5)");

	else if (result.indexOf("1.4") != -1)
		alert("JRE 1.4");

	else if (result.indexOf("1.3") != -1)
		alert("JRE 1.3");

	else if (result.indexOf("1.2") != -1)
		alert("JRE 1.2");

	else if (result.indexOf("1.1") != -1)
		alert("JRE 1.1");

	else if (result.indexOf("1.0") != -1)
		alert("JRE 1.0");

	else
		alert("JRE not found");		

}

function version(verNu, down)
{
	if (location.href.indexOf('#') != -1)
	{
		ext = location.href.substring(location.href.indexOf('#') + 1);
		vers = ext.split(".");
		if (vers[0] + "." + vers[1] != verNu)
		{
			if (confirm("New version avaliable. Click OK to be redirected to the Download Page."))
			{	
				location.href='../software.htm#' + down;
			}
		}
		else
			alert("Your version is the current version.");
	}
}
