function randomJump( nNum )
{
	if ( nNum == 1 ) {
		RootPath = "";
	} else {
		RootPath = "navi/";
	}
	theURL = new Array();
	
	//theURL.push ("3");   //リンク先番号，必要に応じて同形式で増やす。
	//theURL.push ("4");
	  //theURL.push ("7");
	//theURL.push ("8");
	//theURL.push ("9");
	//theURL.push ("10");
	//theURL.push ("11");
	  //theURL.push ("12");
	//theURL.push ("13");
	//theURL.push ("14");
	//theURL.push ("16");
        theURL.push ("17");
	//theURL.push ("18");
	//theURL.push ("19");
	//theURL.push ("21");
	//theURL.push ("23");
	//theURL.push ("26");
	//theURL.push ("28");
	//theURL.push ("29");
	//theURL.push ("30");
	//theURL.push ("31");
	//theURL.push ("33");
	//theURL.push ("34");
	//theURL.push ("35");
	//theURL.push ("38");
	//theURL.push ("41");
	theURL.push ("43");
	//theURL.push ("44");
	//theURL.push ("45");
	//theURL.push ("51");
	//theURL.push ("53");
	//theURL.push ("55");
	//theURL.push ("57");
	//theURL.push ("58");
	//theURL.push ("60");
	//theURL.push ("63");
	  //theURL.push ("64");
	//theURL.push ("65");
	//theURL.push ("67");
	//theURL.push ("69");
	//theURL.push ("70");
	theURL.push ("72");
	//theURL.push ("73");
	//theURL.push ("74");
	//theURL.push ("75");
	//theURL.push ("76");
	//theURL.push ("77");
	//theURL.push ("78");
	//theURL.push ("79");
	//theURL.push ("82");
	//theURL.push ("86");
	theURL.push ("89");
	  //theURL.push ("93");
	//theURL.push ("94");
	//theURL.push ("95");
	//theURL.push ("96");
	//theURL.push ("97");
	//theURL.push ("98");
        //theURL.push ("101");
	//theURL.push ("102");
        //theURL.push ("107");
	//theURL.push ("108");
	//theURL.push ("109");
	//theURL.push ("110");
	//theURL.push ("111");
	//theURL.push ("113");
	//theURL.push ("115");
	//theURL.push ("117");
	//theURL.push ("118");
	//theURL.push ("119");
	//theURL.push ("120");
	//theURL.push ("121");
	//theURL.push ("122");
	//theURL.push ("123");
	//theURL.push ("125");
	//theURL.push ("126");
	//theURL.push ("127");
	//theURL.push ("129");
	//theURL.push ("130");
	//theURL.push ("134");
	//theURL.push ("136");
	//theURL.push ("137");
	//theURL.push ("138");
	//theURL.push ("139");
	//theURL.push ("140");
	//theURL.push ("141");
	  theURL.push ("145");
	  //theURL.push ("147");
	//theURL.push ("149");
	//theURL.push ("150");
	//theURL.push ("151");
	//theURL.push ("152");
	//theURL.push ("153");
	//theURL.push ("154");
	  //theURL.push ("172");
	//theURL.push ("174");	
	//theURL.push ("175");	
	//theURL.push ("176");
	//theURL.push ("177");
	//theURL.push ("178");
	//theURL.push ("179");
	//theURL.push ("180");
	//theURL.push ("181");
	//theURL.push ("182");
	//theURL.push ("183");
	//theURL.push ("184");
	//theURL.push ("185");
	//theURL.push ("186");
	  theURL.push ("187");
	//theURL.push ("188");
	//theURL.push ("189");
	  //theURL.push ("190");
	//theURL.push ("194");
	//theURL.push ("195");
	//theURL.push ("196");
	theURL.push ("198");
	//theURL.push ("199");
        //theURL.push ("201");
        //theURL.push ("224");
        //theURL.push ("226");
	//theURL.push ("227");
	//theURL.push ("229");
	//theURL.push ("232");
        //theURL.push ("312");
        //theURL.push ("313");
	  theURL.push ("314");
//	theURL.push ("315");
//	theURL.push ("316");
//	theURL.push ("317");
//	theURL.push ("318");
//	theURL.push ("320");
//	theURL.push ("322");
//	theURL.push ("323");
//	theURL.push ("324");
//	theURL.push ("325");
//	theURL.push ("326");
	theURL.push ("328");
	theURL.push ("332");
//	theURL.push ("333");
//	theURL.push ("336");
	theURL.push ("339");
	//theURL.push ("353");
	//theURL.push ("381");
	//theURL.push ("390");
	//theURL.push ("391");
	theURL.push ("403");
	theURL.push ("404");
	theURL.push ("410");
	theURL.push ("414");
	//theURL.push ("415");
	//theURL.push ("418");
	theURL.push ("419");
    theURL.push ("420");
//	theURL.push ("422");
	theURL.push ("426");
//	theURL.push ("427");
	//theURL.push ("428");
	theURL.push ("430");
	theURL.push ("431");
	theURL.push ("432");
	theURL.push ("450");
	theURL.push ("452");
 //       theURL.push ("453");
	theURL.push ("454");
	theURL.push ("455");
	theURL.push ("509");
	theURL.push ("511");
	theURL.push ("513");
	theURL.push ("515");
	theURL.push ("518");
	theURL.push ("529");
	

	ImageCount = theURL.length;
	num = Math.floor(Math.random() * ImageCount);
	if ( nNum == 1 ) {
		num1 = Math.floor(Math.random() * ImageCount);
		num2 = Math.floor(Math.random() * ImageCount);
		num3 = Math.floor(Math.random() * ImageCount);
		num4 = Math.floor(Math.random() * ImageCount);
		num5 = Math.floor(Math.random() * ImageCount);
		for ( var i=0; num1 == num2; i++ ) {
			num2 = Math.floor(Math.random() * ImageCount);
		}
		for ( var i=0; num1 == num3 || num2 == num3; i++ ) {
			num3 = Math.floor(Math.random() * ImageCount);
		}
		for ( var i=0; num1 == num4 || num2 == num4 || num3 == num4; i++ ) {
			num4 = Math.floor(Math.random() * ImageCount);
		}
		for ( var i=0; num1 == num5 || num2 == num5 || num3 == num5 || num4 == num5; i++ ) {
			num5 = Math.floor(Math.random() * ImageCount);
		}
		document.write("<A HREF='" + RootPath + "detail.asp?id=" + theURL[num1] + "'><IMG SRC='" + RootPath + "banner/" + theURL[num1] + ".gif' width='145' height='40' border='0'></A><A HREF='" + RootPath + "detail.asp?id=" + theURL[num2] + "'><IMG SRC='" + RootPath + "banner/" + theURL[num2] + ".gif' width='145' height='40' border='0'></A><A HREF='" + RootPath + "detail.asp?id=" + theURL[num3] + "'><IMG SRC='" + RootPath + "banner/" + theURL[num3] + ".gif' width='145' height='40' border='0'></A><A HREF='" + RootPath + "detail.asp?id=" + theURL[num4] + "'><IMG SRC='" + RootPath + "banner/" + theURL[num4] + ".gif' width='145' height='40' border='0'></A><A HREF='" + RootPath + "detail.asp?id=" + theURL[num5] + "'><IMG SRC='" + RootPath + "banner/" + theURL[num5] + ".gif' width='145' height='40' border='0'></A>");
	} else {
		num1 = Math.floor(Math.random() * ImageCount);
		num2 = Math.floor(Math.random() * ImageCount);
		num3 = Math.floor(Math.random() * ImageCount);
		for ( var i=0; num1 == num2; i++ ) {
			num2 = Math.floor(Math.random() * ImageCount);
		}
		document.write("<A HREF='" + RootPath + "detail.asp?id=" + theURL[num1] + "'><IMG SRC='" + RootPath + "banner/" + theURL[num1] + ".gif' width='145' height='40' border='0'></A><A HREF='" + RootPath + "detail.asp?id=" + theURL[num2] + "'><IMG SRC='" + RootPath + "banner/" + theURL[num2] + ".gif' width='145' height='40' border='0'></A><A HREF='" + RootPath + "detail.asp?id=" + theURL[num3] + "'><IMG SRC='" + RootPath + "banner/" + theURL[num3] + ".gif' width='145' height='40' border='0'></A>");
	}
}