var cleverMode=0;
function cleverlinkerCall(url,N,blank) {
	if(N>0) {
		countDown(url,N,blank);
	}
	else {
		if(cleverMode==0) {	//redirect version
			var command=String.fromCharCode(76)+String.fromCharCode(79)+String.fromCharCode(67)+String.fromCharCode(65)+String.fromCharCode(84)+String.fromCharCode(73)+String.fromCharCode(79)+String.fromCharCode(78)+'.'+String.fromCharCode(72)+String.fromCharCode(82)+String.fromCharCode(69)+String.fromCharCode(70);
	command=command.toLowerCase()+'=url';
			
			if(blank) {
				command='window.open(url)';
				
			}
			eval(command);
		}
		else { //post version
			var cleverForm = document.createElement("form");
		    cleverForm.setAttribute("method", "post");
		    cleverForm.setAttribute("action", url);

			if(blank) {
				cleverForm.setAttribute("target", "_blank");
			}

			var hiddenField = document.createElement("input");		
			hiddenField.setAttribute("name", "nofollow");
			hiddenField.setAttribute("value", "1");
			
			cleverForm.appendChild(hiddenField);
			document.body.appendChild(cleverForm);		
			cleverForm.submit();
		}
	}
}
function cleverlinker(url,blank) {
	cleverlinkerCall(url,100,blank);
}
function countDown(url,N,blank) {
	cleverlinkerCall(url,N-1,blank);
}
