function legenda(qual) {
	window.status=qual;
}
function vaiPara(aonde) {
	window.location.href=aonde
}
function abre(oque) {
	window.open(oque)
}
// Barra de rolagem
	var dir
	function sPag() {
		texto.scrollBy(0,dir)
		st = setTimeout("sPag()", 10)
	}
	function dPag(d) {
		if( d == "up" ) {
			dir = "-3" ;
		} else if( d == "down" ) {
			dir = "3" ;
		} else {
			dir = null ;
		}
	}
	function stopPag() {
		clearTimeout(st)
	}
// Fim 

function jan_fw(artista,imagem,largura,altura) {
		var altura = altura -(-66)
		var largura = largura -(-20)
		janela = window.open("", "janela_freeware"+altura, "width="+largura+", height="+altura+", top=100, left=100, scrollbars=no, resizable=no");
		corpo = "<html>\n<head>\n<title>Freeware - " + artista + "</title>\n"
		corpo = corpo + "</head>\n<body bgcolor=#68D038 leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>\n"
		corpo = corpo + "<table cellpadding=0 cellspacing=0 width=100% border=0 align=center>\n<tr>\n<td bgcolor=#AFE88F><img src=imagem/titulo_freeware.gif></td>\n</tr>"
		corpo = corpo + "<tr>\n<td bgcolor=#68D038 align=center><font color=#000000 size=2 face='Geneva, Arial, Helvetica, sans-serif'><b>Seja ético, divulgue o nome do artista.</b></font></td>\n</tr>"
		corpo = corpo + "<tr>\n<td height=5></td>\n</tr>\n<tr>\n<td align=center><font size=2 face='Geneva, Arial, Helvetica, sans-serif'>"
		corpo = corpo + "Artista: " + artista + "</font></td>\n</tr>\n"
		corpo = corpo + "<tr>\n<td height=200 align=center><img src=imagem/grandes/"+imagem+"></td>\n</tr>\n</table>\n</body>\n</html>"
		janela.document.write(corpo)
		janela.focus();
}
function linkOver(iNum, iHREF) {
		var myIMG = "img_" + iNum;
		this.img_link.src = iHREF ;
		this.imgLayer.style.visibility = "visible" ;
		this.imgLayer.style.top = this.Link.elements[myIMG].offsetTop - 65 ;
		this.imgLayer.style.left = this.Link.elements[myIMG].offsetLeft ;
}
function linkOut() {
		this.imgLayer.style.visibility = "hidden"
		this.img_link.src = "../imagem/img.gif"
}

// filhotes

function fil(qual,n) {
	var abc 
	cp.style.cursor="hand"
	ic.style.cursor="hand"
	ed.style.cursor="hand"
	td_cp1.style.cursor="hand"
	td_cp2.style.cursor="hand"
	td_cp3.style.cursor="hand"
	td_cp4.style.cursor="hand"
	td_cp5.style.cursor="hand"
	
	td_ic1.style.cursor="hand"
	td_ic2.style.cursor="hand"
	td_ic3.style.cursor="hand"
	td_ic4.style.cursor="hand"
	td_ic5.style.cursor="hand"
	td_ic6.style.cursor="hand"
	td_ic7.style.cursor="hand"
	td_ic8.style.cursor="hand"
	td_ic9.style.cursor="hand"
	td_ic10.style.cursor="hand"
	td_ic11.style.cursor="hand"
	td_ic12.style.cursor="hand"
	td_ic13.style.cursor="hand"

	td_ed1.style.cursor="hand"
	td_ed2.style.cursor="hand"
	td_ed3.style.cursor="hand"
	td_ed4.style.cursor="hand"



//	Over 1	
	if( qual == "cp" && n == 1 ) {
		legenda('Criação de personagens');
		cp.style.background = "#000000" ;
		cp.style.color = "#D9EAFF" ;
	}
	if( qual == "ic" && n == 1 ) {
		legenda('Identidade Corporativa');
		ic.style.background = "#000000" ;
		ic.style.color = "#D9EAFF" ;
	}
	if( qual == "ed" && n == 1 ) {
		legenda('Editorial');
		ed.style.background = "#000000" ;
		ed.style.color = "#D9EAFF" ;
	}
// Click 3
	if( qual == "cp" && n == 3 ) {
		var abc = "cp"
		tb_cp.style.visibility = "visible";
		tb_ic.style.position = "absolute";
		tb_ic2.style.position = "absolute";
		tb_ic.style.visibility = "hidden";
		tb_ic2.style.visibility = "hidden";
		tb_ed.style.visibility = "hidden";
	}
	if( qual == "ic" && n == 3 ) {
		var abc = "ic"
		tb_cp.style.visibility = "hidden";
		tb_ic.style.position = "relative";
		tb_ic2.style.position = "relative";
		tb_ic.style.visibility = "visible";
		tb_ic2.style.visibility = "visible";
		tb_ed.style.visibility = "hidden";
	}
	if( qual == "ed" && n == 3 ) {
		var abc = "ed"
		tb_cp.style.visibility = "hidden";
		tb_ic.style.visibility = "hidden";
		tb_ic.style.position = "absolute";
		tb_ic2.style.position = "absolute";
		tb_ic2.style.visibility = "hidden";
		tb_ed.style.visibility = "visible";
	}

//	Out 2
	if( abc != "cp" && qual == "cp" && n == 2 ) {
		legenda('');
		cp.style.background = "#D9EAFF" ;
		cp.style.color = "#000000" ;
	}
	if( abc != "ic" && qual == "ic" && n == 2 ) {
		legenda('');
		ic.style.background = "#D9EAFF" ;
		ic.style.color = "#000000" ;
	}
	if( abc != "ed" && qual == "ed" && n == 2 ) {
		legenda('');
		ed.style.background = "#D9EAFF" ;
		ed.style.color = "#000000" ;
	}


	
	if( qual == "td_cp1" && n == 3 ) {
		imageX.src="imagem/filhotes/acaocrianca.jpg";
	}
	if( qual == "td_cp2" && n == 3 ) {
		imageX.src="imagem/filhotes/corinthians.jpg";
	}
	if( qual == "td_cp3" && n == 3 ) {
		imageX.src="imagem/filhotes/cruzeiro.jpg";
	}
	if( qual == "td_cp4" && n == 3 ) {
		imageX.src="imagem/filhotes/ean.jpg";
	}
	if( qual == "td_cp5" && n == 3 ) {
		imageX.src="imagem/filhotes/gendai.jpg";
	}


	if( qual == "td_ic1" && n == 3 ) {
		imageX.src="imagem/filhotes/acaocrianca.jpg";
	}
	if( qual == "td_ic2" && n == 3 ) {
		imageX.src="imagem/filhotes/corinthians.jpg";
	}
	if( qual == "td_ic3" && n == 3 ) {
		imageX.src="imagem/filhotes/cruzeiro.jpg";
	}
	if( qual == "td_ic4" && n == 3 ) {
		imageX.src="imagem/filhotes/mcdonalds.jpg";
	}
/*	if( qual == "td_ic5" && n == 3 ) {
		imageX.src="imagem/filhotes/miller.jpg";
	}*/
	if( qual == "td_ic6" && n == 3 ) {
		imageX.src="imagem/filhotes/nucleo.jpg";
	}
/*	if( qual == "td_ic7" && n == 3 ) {
		imageX.src="imagem/filhotes/nucleo.jpg";
	}*/
	if( qual == "td_ic8" && n == 3 ) {
		imageX.src="imagem/filhotes/secjundiai.jpg";
	}
	if( qual == "td_ic9" && n == 3 ) {
		imageX.src="imagem/filhotes/senai.jpg";
	}
	if( qual == "td_ic10" && n == 3 ) {
		imageX.src="imagem/filhotes/sentidos.jpg";
	}
/*	if( qual == "td_ic11" && n == 3 ) {
		imageX.src="imagem/filhotes/senai.jpg";
	}*/
	if( qual == "td_ic12" && n == 3 ) {
		imageX.src="imagem/filhotes/WorkPlaning.jpg";
	}
/*	if( qual == "td_ic13" && n == 3 ) {
		imageX.src="imagem/filhotes/sentidos.jpg";
	}*/


	if( qual == "td_ed1" && n == 3 ) {
		imageX.src="imagem/filhotes/ean.jpg";
	}
	if( qual == "td_ed2" && n == 3 ) {
		imageX.src="imagem/filhotes/nucleo.jpg";
	}
	if( qual == "td_ed3" && n == 3 ) {
		imageX.src="imagem/filhotes/secjundiai.jpg";
	}
	if( qual == "td_ed4" && n == 3 ) {
		imageX.src="imagem/filhotes/sentidos.jpg";
	}
}


