
var sup_id = new Array("11", "2", "12");
var sup_url = new Array("www.mikros.net", "http://www.coolingzone.com", "http://www.electronics-cooling.com");
var sup_img = new Array();

function GetObject(id)
{
    var obj;
    eval("obj = document.images.img_" + id);
    return obj;
}

function Rotate(prev_ind)
{
    var obj, prev_obj, ind, timeout;
    ind = prev_ind + 1;
    if (ind >= sup_id.length)
    {
        ind = 0;
    }
    prev_obj = GetObject(sup_id[prev_ind]);    
    prev_obj.style.display = "none";
    obj = GetObject(sup_id[ind]);    
    if (sup_img[ind].complete)
    {
        if (sup_img[ind].width > 100)
        {
            obj.width = 100; 
        }
        obj.style.display = "block";
        timeout = 1;
    }
    else
    {
        timeout = 0;
    }
    setTimeout("Rotate(" + ind + ")", 5000 * timeout);
}

function SetSrc()
{
    var src;
    for (i = 0; i < sup_id.length; i++)
    {
        src = "http://www.enewsdepot.com/support/show_logo.php?id=" + sup_id[i];
        sup_img[i] = new Image();
        sup_img[i].src = src;
        obj = GetObject(sup_id[i]);    
        obj.src = src;
    }
    Rotate(0);
}

act = "SetSrc()";
if (window.onload != null)
{
    load = new String(window.onload);
    load = load.substr(load.indexOf("{"));
    load += act; 
}
else
{
    load = act;
}
window.onload = new Function(load);

html = "<table width=\"100\" height=\"200\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"100\" height=\"200\" valign=\"top\" align=\"center\">";
for (i = 0; i < sup_id.length; i++)
{
    html += "<a hr" + "ef=\"" + sup_url[i] + "\" target=\"_blank\"><img name=\"img_" + sup_id[i] + "\" src=\"../image/spacer.gif\" border=\"0\" style=\"display: none\"></a>";
} 
html += "</td></tr></table>";
document.write(html);

