//global object
var ixf = { 'clock' : null, 'count' : 1 }


ixf.count=0.0;


function fadeIn() {
        if (ixf.count<1) {
		ixf.count+=0.05;
		if (ixf.count>1) ixf.count=1.0;
		switch(ixf.type)
		{
			case 'ie' :
				topContObj.filters.alpha.opacity = ixf.count * 100;
				// also works - topContObj.style.filter = "alpha(opacity='" + (ixf.count * 100).toFixed() + "')";
				break;
		
			case 'khtml' :
				topContObj.style.KhtmlOpacity = ixf.count;
				break;
		
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				topContObj.style.MozOpacity = (ixf.count == 1 ? 0.9999999 : ixf.count);
				break;
		
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				topContObj.style.opacity = (ixf.count == 1 ? 0.9999999 : ixf.count);
		}
	} else {
		//topContObj.style.display='none';
		homeHwrapObj.className='HOME-HEADER-WRAP2';
		clearInterval(fading);
	}
}



function startFade() {
	fading=window.setInterval('fadeIn()', 100);
}



if (document.getElementById('topCont')) {
	topContObj=document.getElementById('topCont');
	if(typeof topContObj.style.opacity != 'undefined')
	{
		ixf.type = 'w3c';
	}
	else if(typeof topContObj.style.MozOpacity != 'undefined')
	{
		ixf.type = 'moz';
	}
	else if(typeof topContObj.style.KhtmlOpacity != 'undefined')
	{
		ixf.type = 'khtml';
	}
	else if(typeof topContObj.filters == 'object')
	{
		ixf.type = (topContObj.filters.length > 0 && typeof topContObj.filters.alpha == 'object' && typeof topContObj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
	}
	else
	{
		ixf.type = 'none';
	}
	homeHwrapObj=document.getElementById('homeHwrap');
	window.setTimeout('startFade()', 2000);
}


