
//Specify affected tags. Add or remove from list:
var tgs = new Array( 'div','td','tr','span','a','ul','li');

//Specify spectrum of different font sizes:
//var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );
var szs = new Array( '11','13','15');
//current font size
var currentSize=0;
function ts( trgt,inc ) {
    if(currentSize==inc)
        return;
    else
        currentSize=inc;
        
        
	if (!document.getElementById) return
	var d = document,cEl = null,i,j,cTags;
		
	if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

	cEl.style.fontSize = szs[ inc ];

	for ( i = 0 ; i < tgs.length ; i++ ) {
		cTags = cEl.getElementsByTagName( tgs[ i ] );
		for ( j = 0 ; j < cTags.length ; j++ )
		{
		    cTags[ j ].style.fontSize = szs[ inc ];
		}
	}
}


// Profiles
function makevisible(cur,which){
    strength=(which==0)? 1 : 0.2

    if (cur.style.MozOpacity)
    cur.style.MozOpacity=strength
    else if (cur.filters)
    cur.filters.alpha.opacity=strength*100
    }

var baseopacity=30
function slowhigh(which2){
imgobj=which2
browserdetect=which2.filters? "ie" : typeof which2.style.MozOpacity=="string"? "mozilla" : ""
instantset(baseopacity)
highlighting=setInterval("gradualfade(imgobj)",50)
}

function slowlow(which2){
cleartimer()
instantset(baseopacity)
}

function instantset(degree){
if (browserdetect=="mozilla")
imgobj.style.MozOpacity=degree/100
else if (browserdetect=="ie")
imgobj.filters.alpha.opacity=degree
}

function cleartimer(){
if (window.highlighting) clearInterval(highlighting)
}

function gradualfade(cur2){
if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.1, 0.99)
else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}



function mouseOverFun(obj,txt) 
	{
	
	var animElements = document.getElementById("ctl00_m_g_3fc3c64d_4e06_429a_a842_a1b7ad713570_tableImages").getElementsByTagName("img");
		for(var i=0; i<animElements.length; i++) {
		slowhigh(animElements[i]);
		slowlow(animElements[i]);
		}
		slowhigh(obj);
	    var xx=document.getElementById("ctl00_m_g_3fc3c64d_4e06_429a_a842_a1b7ad713570_profilesInput"+txt).value;	
	    //alert(xx);
		document.getElementById("ctl00_m_g_3fc3c64d_4e06_429a_a842_a1b7ad713570_cellProfile").innerHTML=xx;
		
	}
