function stretch(n){
	document.getElementById(n).style.width='600px';
	document.getElementById(n).style.height='400px';
}

function opacity(id, opacStart, opacEnd, millisec) { 
    var speed = Math.round(millisec / 100); 
    var timer = 0; 

    if(opacStart > opacEnd) { 
        for(i = opacStart; i >= opacEnd; i--) { 
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
    }else if(opacStart < opacEnd) { 
        for(i = opacStart; i <= opacEnd; i++) { 
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
    } 
} 
function changeOpac(opacity, id) { 
    var object = document.getElementById(id).style; 
    object.opacity = (opacity / 100); 
    object.MozOpacity = (opacity / 100); 
    object.KhtmlOpacity = (opacity / 100); 
    object.filter = "alpha(opacity=" + opacity + ")"; 
} 
//setTimeout('opacity("googlediv", 100, 25, 500)',5000);
//opacity("sgooglediv", 100, 25, 500);

col = new Array()
col[0]="000000"
col[1]="111111"
col[2]="222222"
col[3]="333333"
col[4]="444444"
col[5]="555555"
col[6]="666666"
col[7]="777777"
col[8]="888888"
col[9]="999999"
col[10]="AAAAAA"
col[11]="BBBBBB"
col[12]="CCCCCC"
col[13]="DDDDDD"
col[14]="EEEEEE"
col[15]="FFFFFF"
col[16]="FFFFFF"
col[17]="DDDDDD"
col[18]="CCCCCC"
col[19]="BBBBBB"
col[20]="AAAAAA"
col[21]="999999"
col[22]="888888"
col[23]="777777"
col[24]="666666"
col[25]="555555"
col[26]="444444"
col[27]="333333"
col[28]="222222"
col[29]="111111"
col[30]="000000"
i_col=0
var timer
var c
var thislink
function animatelink() {
	if (document.all) {
		if (i_col<=col.length-1) {
			thislink.color=col[i_col]
			i_col++
			timer=setTimeout("animatelink()",1)
		}else {
			i_col=0
		}
	}
}
function stopanimation() {
	clearTimeout(timer)
	thislink.color = c
}
function startanimation(mylink) {
	clearTimeout(timer)
	thislink=eval("document.all."+mylink+".style")
	c = thislink.color
	animatelink()
}

