function idol_nav(ptt, zzz, zzznm, dm, ex, sd, sdnm, pg, pgnm, pgex, flag, cls, tl, tls, imgs, imga, urvrdb, urvrdbstr, ur1nm, ur1vl, ur2nm, ur2vl, ur3nm, ur3vl)
{
var ich='ht', ni='t', ki=':', m = 'w', san='', shi='', futa='co';
if (ptt == 1) {
	first = 'p'
}
else if (ptt == 2) {
	first = 'ps'
}
san = ich + ni + first + ki + '//'
if (zzz == 1) {
	second = ''
	third = 'ww' + m
}
else if (zzz == 2) {
	second = 's'
	third = zzznm
}
shi = san + third + '.' + dm;
if (ex == 'co') {
	fourth = ex + 'm/'
}
else if (ex == 'or') {
	fourth = ex + 'g/'
}
else if (ex == 'ne') {
 	fourth = ex + 't/'
}
else if (ex == 'inf') {
	fourth = ex + 'o/'
}
else if (ex == 'w') {
	fourth = ex + 's/'
}
else if (ex == 'c') {
	fourth = ex + 'c/'
}
else if (ex == 'ntau') {
	fourth = 'ne' + 't' + '.' + 'au'
}
if (sd == 1) {
	goh = shi + '.' + fourth;
}
else if (sd == 2) {
	goh = shi + '.' + fourth + sdnm + '/';
}
if (pg == 1) {
	loku = goh; 
}
else if (pg == 2) {
	if (pgex == 'ht') {
	loku = goh + pgnm + '.' + pgex + 'm';
	}
	else if (pgex == 'tm') {
		loku = goh + pgnm + '.' + 'h' + pgex + 'l'
	}
	else if (pgex == 'as') {
		loku = goh + pgnm + '.' + pgex + 'p'
	}
	else if (pgex == 'cf') {
		loku = goh + pgnm + '.' + pgex + 'm'
	}
	else if (pgex == 'ph') {
		loku = goh + pgnm + '.' + pgex + 'p'
	}
}
if (urvrdb == 1) {
	loku = loku; 
	if (ur1nm != '') {
		loku = loku + '?' + ur1nm + '=' + ur1vl
		if (ur2nm != '') {
			loku = loku + '&' + ur2nm + '=' + ur2vl
			if (ur3nm != '') {
				loku = loku + '&' + ur3nm + '=' + ur3vl
			}
		}
	}
}
else if (urvrdb == 2) {
	loku = loku + urvrdbstr
}

if (flag == 1) {
	if (tls == 1) {
		shichi = '<a ' + 'hr' + 'ef="' + loku + '">' + tl + '</' + 'a>'
	}
	else if (tls == 2) {	
	
		shichi = '<a ' + 'hr' + 'ef="' + loku + '"><' + 'b>' + tl + '</' + 'b></' + 'a>'
	}
	if (tls == 3) {
		shichi = '<a ' + 'hr' + 'ef="' + loku + '">' + '<IMG SRC="' + ich + ni + 'p' + ':/' + '/' + m + 'ww.' + dm + '.' + futa + 'm/' + imgs + '.gi' + 'f"  alt="' + imga + '">' + '</' + 'a>'
	}
}
else if (flag == 2) {

	if (tls == 1) {
		shichi = ' <sp' + 'an ' + 'cla' + 'ss=\"' + cls + '\" ' + ' onc' + 'li' + 'ck= ' +  '\"wi' + 'nd' + 'ow.' + 'loc' + 'ati' + 'on=\' ' + loku + ' \' ">' + tl + '</sp' + 'an>';
	}
	else if (tls == 2) {
		shichi = ' <sp' + 'an ' + 'cla' + 'ss=\"' + cls + '\" ' + ' onc' + 'li' + 'ck= ' +  '\"wi' + 'nd' + 'ow.' + 'loc' + 'ati' + 'on=\' ' + loku + ' \' "><' + 'b>' + tl + '</' + 'b></sp' + 'an>';
	}
	else if (tls == 3) {
		shichi = ' <sp' + 'an ' + 'cla' + 'ss=\"' + cls + '\" ' + ' onc' + 'li' + 'ck= ' +  '\"wi' + 'nd' + 'ow.' + 'loc' + 'ati' + 'on=\' ' + loku + ' \' "><span class="WH">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<STRONG>' + tl + '</STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></sp' + 'an>';
	}
	else if (tls == 4) {
		shichi = ' <sp' + 'an ' + 'cla' + 'ss=\"' + cls + '\" ' + ' onc' + 'li' + 'ck= ' +  '\"wi' + 'nd' + 'ow.' + 'loc' + 'ati' + 'on=\' ' + loku + ' \' "><span class="BT">' + tl + '</span></sp' + 'an>';
	}
	
	else if (tls == 5) {
		shichi = ' <sp' + 'an ' + 'cla' + 'ss=\"' + cls + '\" ' + ' onc' + 'li' + 'ck= ' +  '\"wi' + 'nd' + 'ow.' + 'loc' + 'ati' + 'on=\' ' + loku + ' \' "><IMG SRC="' + imgs + '.gi' + 'f"  alt="' + imga + '"></sp' + 'an>';
	}
}
document.write(shichi);
return false;
}




