
/*Update Code by AUTOSOFT - Used for 2tekco.com*/

var t_id = setInterval('animate(\'progress\')', 20);
var t_ib = setInterval('animate(\'progress-pic\')', 20);

var pos=0;
var dir=2;
var len=0;

function animate(idprogress)
{
    var elem = document.getElementById(idprogress);
    if(elem != null) 
	{
        if (pos == 0) len += dir;
        if (len > 32 || pos > 79) pos += dir;
        if (pos > 79) len -= dir;
        if (pos > 79 && len == 0) pos = 0;
        elem.style.left = pos + 'px';
        elem.style.width = len + 'px';
    }
}

function remove_loading(imgObj, idcontainer) 
{
	this.clearInterval(t_id);
	this.clearInterval(t_ib);
    if(imgObj != null && imgObj.width != 0 && imgObj.height != 0)
	{
        var targelem = document.getElementById(idcontainer);
        targelem.style.display = 'none';
        targelem.style.visibility = 'hidden';   
    }
	var t_id = setInterval('animate(\'progress\')', 60);
	var t_ib = setInterval('animate(\'progress-pic\')', 60);
}