if (!parent.sito){
loc = top.location.pathname.toString();
loc = loc.substr(1);
query = top.location.search.toString();

if (query != "" && query != "?"){
queryt = query.substr(1,3);
queryv = query.substr(4);
if(loc=="topic.php" || loc == "emailn.php" &&  queryt == "id="){
loc = "index.php?topic="+queryv;
}else if(loc == "trucchi.php" &&  queryt == "tc="){
loc = "index.php?t=1&link="+queryv;
}else if(loc == "news.php"){
queryt = query.substr(1,5);	
queryt2 = query.substr(1,6);
	if (queryt == "keys=" || queryt2 == "&keys="){
queryn = query.substr(1);
if (query.substr(1,1) != "&") 	{	
loc2 = "&";
} else {
loc2 = "";
	}
loc = "index.php?link="+loc+loc2+queryn;	

}

}

}

else  if(loc=="news.php"){	 
loc = "";	
} else {
loc = "index.php?link="+loc;
}



top.location = "http://www.tweakness.net/"+loc;
}

