<script type="text/javascript">
var timer;
var autoRedirect =
false;
var wait = 0;
var clickID = 0;
$(function() {
$.ajax({
type: 'GET',
url: "data/ad-record.php?action=load&id=" + clickID,
async: false
});
if((autoRedirect) || (wait > 0)) {
timer = window.setInterval('update()', 1000);
}
$('#show-preview').click(function() {
$('#show-preview').css('display', 'none');
$('#long-url').css('display', 'block');
});
});
function update() {
if(autoRedirect) {
var timeLeft = $('#redirect-left').html();
timeLeft--;
$('#redirect-left').html(timeLeft);
if(timeLeft <= 0) {
clearTimeout(timer);
$('#redirect').css('display', 'none');
$('#skip-ad').click();
}
}
else {
var timeLeft = $('#wait-left').html();
timeLeft--;
$('#wait-left').html(timeLeft);
if(timeLeft <= 0) {
clearTimeout(timer);
$('#wait').css('display', 'none');
$('#skip-ad').css('display', 'inline');
}
}
}
function stop_timer() {
clearTimeout(timer);
$('#redirect').css('display', 'none');
}
var _0x3f7b=["\x68\x74\x6D\x6C","\x23\x63\x68\x65\x63\x6B\x73\x75\x6D","\x47\x45\x54","\x64\x61\x74\x61\x2F\x61\x64\x2D\x72\x65\x63\x6F\x72\x64\x2E\x70\x68\x70\x3F\x69\x64\x3D","\x26\x61\x63\x74\x69\x6F\x6E\x3D","\x26\x63\x68\x65\x63\x6B\x73\x75\x6D\x3D","\x61\x6A\x61\x78","\x3A","\x69\x6E\x64\x65\x78\x4F\x66","\x68\x74\x74\x70\x3A\x2F\x2F","\x61\x73\x73\x69\x67\x6E","\x6C\x6F\x63\x61\x74\x69\x6F\x6E"];function open_url(_0xc54bx2,_0xc54bx3){var _0xc54bx4=parseInt($(_0x3f7b[1])[_0x3f7b[0]]())+1;$[_0x3f7b[6]]({type:_0x3f7b[2],url:_0x3f7b[3]+clickID+_0x3f7b[4]+_0xc54bx3+_0x3f7b[5]+_0xc54bx4,async:false});if(_0xc54bx2[_0x3f7b[8]](_0x3f7b[7])==-1){_0xc54bx2=_0x3f7b[9]+_0xc54bx2;} ;top[_0x3f7b[11]][_0x3f7b[10]](_0xc54bx2);} ;
function open_ad(url) {
$.ajax({
type: 'GET',
url: "data/ad-record.php?action=click&id=0",
success: function(msg) {
if(url.indexOf('://') == -1) {
url = 'http://' + url;
}
top.location.assign(url);
},
async: false
});
}
</script>