var theImages = new Array()
theImages[0] = 'image/1.jpg'
theImages[1] = 'image/2.jpg'
theImages[2] = 'image/3.jpg'
theImages[3] = 'image/4.jpg'
theImages[4] = 'image/5.jpg'
theImages[5] = 'image/6.jpg'
theImages[6] = 'image/7.jpg'
theImages[7] = 'image/8.jpg'
theImages[8] = 'image/9.jpg'
theImages[9] = 'image/10.jpg'
theImages[10] = 'image/11.jpg'
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}


var theLogoImages = new Array()
theLogoImages[0] = 'image/logo1.jpg'
theLogoImages[1] = 'image/logo2.jpg'
theLogoImages[2] = 'image/logo3.jpg'
theLogoImages[3] = 'image/logo4.jpg'
theLogoImages[4] = 'image/logo5.jpg'
theLogoImages[5] = 'image/logo6.jpg'
theLogoImages[6] = 'image/logo7.jpg'
var j = 0
var p = theLogoImages.length;
var preLogoBuffer = new Array()
for (i = 0; i < p; i++)
{
   preLogoBuffer[i] = new Image()
   preLogoBuffer[i].src = theLogoImages[i]
}



var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'" align="left" border="5" style="border-color:#EAF5FF"  alt="Sadikhov.com - IT Certification Portal">');
}

function showLogo(){
document.write('<img src="http://www.sadikhov.com/'+theLogoImages[whichImage]+'" align="left" width="120" height="80" border="0" alt="United IT Power">');
}


function openwindow()
{
 window.open("status.php","","toolbar=no, width=300, height=300, resizable=yes") ;
}
function openwindow1()
{
 window.open("tellfriend.php","","toolbar=no, width=300, height=300, resizable=yes") ;
}
function openwindow2()
{
 window.open("legal.php","","toolbar=no, width=500, height=400, resizable=yes") ;
}


function write_img_src(IMG_SRC,HREF_LOC,TARGET,DEST_HEIGHT,DEST_WIDTH,HEIGHT,WIDTH,ALIGN)
{
    random = (Math.round(Math.random() * 100000000));
    document.write("<A HREF=\"" + HREF_LOC + random + "\"");
    if (TARGET != null) {
      document.write(" TARGET=\"" + TARGET + "\"");
      if ((DEST_HEIGHT != null) && (DEST_WIDTH != null)) {
        document.write(" onClick=\"javascript:window.open('" + HREF_LOC + "','" + TARGET + "','height=" + DEST_HEIGHT + ",width=" + DEST_WIDTH + "');return(false);\"");
      }
    }
    document.write("><IMG SRC=\"" + IMG_SRC + random + "\" BORDER=\"0\"");
    if (HEIGHT != null) {
      document.write(" HEIGHT=\"" + HEIGHT + "\"");
    }
    if (WIDTH != null) {
      document.write(" WIDTH=\"" + WIDTH + "\"");
    }
    if (ALIGN != null) {
      document.write(" ALIGN=\"" + ALIGN + "\"");
    }
    document.write("></A>");
}

