Is this obfuscated javascript above board? Site has pop-up adware to avoid.

See: http://www.domxssscanner.com/scan?url=http%3A%2F%2Fwww.namani.net%2Fastuce.js
Here it was found secure? → https://www.virustotal.com/en/file/6e05eb3e1447e9d6f3b4a9e0bade09dba77edc677a87d3c78fdd67abd573e46d/analysis/1391922909/
This is what the obfuscated code there translates to

 document.write(unescape("<SCRIPT language=JavaScript1.1>
<!-- 
if (parent.frames.length > 0)
{
window.top.location.href = 'htxp://www.namani.net/index.html';
}
var message="";
function namaniie() {if (document.all) {(message);return false;}}
function namanins(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=namanins;}
else{document.onmouseup=namanins;document.oncontextmenu=namaniie;}
document.oncontextmenu=new Function("return false")
function namanipas(e){
return false
}
function namanioui(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=namanipas
document.onclick=namanioui
}
function cachenamani(){
window.status=''
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=cachenamani
document.onmouseout=cachenamani
function fennamaniCentre() {
if (document.all)
var xMax = screen.width, yMax = screen.height;
else
if (document.layers)
var xMax = window.outerWidth, yMax = window.outerHeight;
else
var xMax = 800, yMax=600;
var xOffset = (xMax - 800)/2, yOffset = (yMax - 600)/2;
window.open('site1.htm','windowbis',
'width=790,height=570,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
}
// hxtp://www.namani.net -->
</SCRIPT>"));	

So it might indeed be harmless.
But going to the site give you pop-ups to block. url/site1.htm
Unigue IDs tracking for 25% of the website is insecure.

polonus (volunteer website security analyst and website error-hunter)