if(self.location.protocol=="http:") postfix = "/"; else postfix = "/index.html";

/* ROUTINES */

function slx(p) {
if(!p.flag && postfix.length>1) {
p.flag = true;
if((p.href).indexOf("#")+1) {
aph = (p.href).split("#");
p.href = aph[0] + postfix.substring(1) + "#" + aph[1];
}
else p.href += postfix.substring(1);
}
}

function exl(fn) {
res_v = res_x = lnx(fn);
if(!DTG) res_v = "local://" + res_x.substring(6);
document.write("<a href=\"" + res_x + "\">" + res_v + "</a>");
}
