var url = document.location // capture the contents of the browser location
var temp = new String(url) // convert the browser location to a string
var lcurl = temp.toLowerCase() // convert the browser location to lower case
var lcurl = temp
var lead_slashes = lcurl.indexOf("//"); 
var domain_start = lead_slashes + 2; 
var without_resource = lcurl.substring(domain_start, lcurl.length); 
var next_slash = without_resource.indexOf("/");
var urlfile = without_resource.substring(next_slash+1, without_resource.length); 
var urlgo = "http://www.arkae.net/p_show.php3?file=" + urlfile
document.location.href = urlgo


