/* ### Ads Script v.1.0 ### */



var curElement=0;
var adstext = new Array();
adstext[0] ="&#1053;&#1077;&#1076;&#1086;&#1088;&#1086;&#1075;&#1086;&#1081; &#1093;&#1086;&#1089;&#1090;&#1080;&#1085;&#1075; &#1074; &#1059;&#1082;&#1088;&#1072;&#1080;&#1085;&#1077;: 500&#1052;&#1073; - 2 &#1089;&#1072;&#1081;&#1090;&#1072; - PHP, MySQL, FTP, SMTP, POP, ISPManager - &#1086;&#1090; 7 &#1075;&#1088;&#1085;.";

adstext[1] ="&#1041;&#1077;&#1089;&#1087;&#1083;&#1072;&#1090;&#1085;&#1099;&#1081; &#1093;&#1086;&#1089;&#1090;&#1080;&#1085;&#1075; &#1073;&#1077;&#1079; &#1088;&#1077;&#1082;&#1083;&#1072;&#1084;&#1099; &#1074; UA-IX: 50&#1052;&#1073;, PHP, MySQL, ISPManager.";
adstext[2] ="&#1055;&#1086;&#1083;&#1085;&#1099;&#1081; UNLIM &#1079;&#1072; $2.99 - PHP, MySQL, FTP, Mail, CPanel. 5 &#1076;&#1085;&#1077;&#1081; &#1090;&#1077;&#1089;&#1090;&#1072; &#1073;&#1077;&#1089;&#1087;&#1083;&#1072;&#1090;&#1085;&#1086;.";
adstext[3] ="&#1061;&#1086;&#1089;&#1090;&#1080;&#1085;&#1075; &#1076;&#1083;&#1103; &#1089;&#1072;&#1081;&#1090;&#1072; &#1087;&#1088;&#1077;&#1076;&#1086;&#1089;&#1090;&#1072;&#1074;&#1083;&#1077;&#1085; &#1086;&#1090; HostMonster. <small>www.hostmonster.org.ua</small></a>"; 


var url = new Array();
url[0]="http://sairus.com.ua/hosting/ukraine/";
url[1]="http://sairus.com.ua/domains/freehosting/";
url[2]="http://hostmonster.org.ua/unlimitedhosting.php";
url[3]="http://hostmonster.org.ua/";

function openlink() {
window.open(url[curElement-1]);
}

/*#####################################################################################*/
document.write("<div id='adsdiv' style='position:fixed; bottom:5px; background-color:brown; width: 98%; height: 30px; color: white; opacity: 0.9; right:1%; z-index:99999; -webkit-border-radius: 2px;  -moz-border-radius: 4px;  border-radius: 2px;'></div>");

document.write("<div id='txtdiv' onclick='openlink()' style='cursor:pointer; position:fixed; bottom:8px; color:white; z-index:99999; left:2%; font-size:13px; font-family: Verdana, Arial, Helvetica, sans-serif;'></div>");

document.write("<div id='closeit' style='position:fixed; bottom:35px; display:none; background-color:grey; -webkit-border-radius: 2px;  -moz-border-radius: 4px;  border-radius: 2px;'><a href='#' onclick='closead()'>close</a></div>");

var object =document.getElementById('adsdiv');
var body = document.getElementsByTagName('body')[0];
body.insertBefore(object, body.firstChild);


ChangeText();
var clock=setInterval("ChangeText()",8000);

 
function ChangeText() 
{
if (curElement < adstext.length) {
document.getElementById('txtdiv').innerHTML=adstext[curElement];
curElement++;
}
else {
curElement=0;
document.getElementById('closeit').style.display="block";
ChangeText();
}
}

function closead(){
clearInterval(clock);
document.getElementById('closeit').style.display="none";
document.getElementById('txtdiv').style.display="none";
document.getElementById('adsdiv').style.display="none";
}

