

<!-- Begin
//slider's width
var swidth=165

//slider's height
var sheight=115

//slider's speed
var sspeed=1



function start(){
	if (document.all) 
		return
	if (document.getElementById){
		document.getElementById("slider").style.visibility="show"
		ns6marquee(document.getElementById('slider'))
	}
	else if(document.layers){
		document.slider1.visibility="show"
		ns4marquee(document.slider1.document.slider2)
	}
}

function ns4marquee(whichlayer){
	ns4layer=eval(whichlayer)
	ns4layer.document.write(wholemessage)
	ns4layer.document.close()
	sizeup=ns4layer.document.height
	ns4layer.top-=sizeup
	ns4slide()
}

function ns4slide(){
	if (ns4layer.top>=sizeup*(-1)){
		ns4layer.top-=sspeed
		setTimeout("ns4slide()",100)
	}
	else{
		ns4layer.top=sheight
		ns4slide()
	}
}

function ns6marquee(whichdiv){
	ns6div=eval(whichdiv)
	ns6div.innerHTML=wholemessage
	ns6div.style.top=sheight
	sizeup=sheight
	ns6slide()
}

function ns6slide(){
	if (parseInt(ns6div.style.top)>=sizeup*(-1)){
		ns6div.style.top=parseInt(ns6div.style.top)-sspeed
		setTimeout("ns6slide()",100)
	}
	else{
		ns6div.style.top=sheight
		ns6slide()
	}
}
//  End -->


function artContent(pId, pVis){
	try{ 
		if (pVis=='1'){
			document.getElementById(pId).style.position = 'relative';
			document.getElementById(pId).style.visibility = 'visible';
		}
		else{
			document.getElementById(pId).style.position = 'absolute';
			document.getElementById(pId).style.visibility = 'hidden';
		}
		
		var artid_substring = "";
		if (pId!=null)
			artid_substring = pId.substring(4);
			window.location.hash = artid_substring;
	}
	catch (e){
		alert(e);
	}
}

function popup( page, name, width, height, clean, properties )
{
  if( !properties )
    properties = ',location=no, scrollbars=no,top=100,left=100'
  window.open(page,name,'width='+width+',height='+ height +properties)
}


var ic = 6;     // Number of alternative images
var xoxo = new Array(ic);  // Array to hold filenames
        
xoxo[0] = "images/aseo3.gif";
xoxo[1] = "images/aseo3.gif";
xoxo[2] = "images/aseo3.gif";
xoxo[3] = "images/aseo3.gif";
xoxo[4] = "images/aseo3.gif";
xoxo[5] = "images/aseo3.gif";

function pickRandom(range) {
	if (Math.random)
		return Math.round(Math.random() * (range-1));
	else {
		var now = new Date();
		return (now.getTime() / 1000) % range;
	}
}

var choice = pickRandom(ic);
function topImageLoader()
{
   document.getElementById('mainImage').src=xoxo[choice]
}


function openChat()
{
	var win = popup('http://www.cra.gov.co/gc/www/chat/index.jsp','chatCRA',640,400,'',',location=no,scrollbars=no');
	
}
