

function openW(url,janela,larg,alt,scroll,pos1,pos2){ 
	window.open(url,janela,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scroll+",resizable=no,copyhistory=no,top="+pos1+",left="+pos2+",screenY="+pos1+",screenX="+pos2+",width="+larg+",height="+alt);
}

function goLink(){
	box = document.forms[0].series_go;
	destination = box.options[box.selectedIndex].value;
	if (destination) {
		location.href = destination;
	}
}

function enquete(jan) {
	//abre('',jan,290,420);
	openW('',jan,290,420);
}

function adBreadCumb(){
	var url = window.location.toString();
	var last = url.split("/");
	var leng = last.length;
	var d = last[leng - 1];
	d = d.split(".")[0];
	d = d.replace("TESTE_","");
	d = d.replace("serie_","");
	d = d.replace("sinopse_","");
	d = d.replace("quem_quem","");
	d = d.replace("1","");
	d = d.replace("2","");
	d = d.replace("3","");
	d = d.replace("fotos_listagem","fotos");
	
	switch(d){
		case "alias":
			d = "Alias";
			break;
		case "comander":
			d = "Commander in Chief";
			break;
		case "criminal":
			d = "Criminal Minds";
			break;
		case "desperate":
			d = "Desperate Housewives";
			break;
		case "ghost":
			d = "Ghost Whisperer";
			break;
		case "lost":
			d = "Lost";
			break;
		case "fotos":
			d = "Fotos";
			break;
		case "downloads":
			d = "Downloads";
			break;
		default:
			d = "";
	}
	
	/* if(d != ""){
		var UL = document.getElementById("topo");
		var newLI = document.createElement("li");
		newLI.innerHTML = "<li><span class='path'>&gt;</span>&nbsp;<a href='" + url + "' class='path3'>" + d + "</a></li>";
		UL.appendChild(newLI);
	} */
	
	var UL = document.getElementById("topo");
	var ULN = UL.innerHTML;
	UL.innerHTML = ULN + "<li><span class='path'>&gt;</span>&nbsp;<a href='" + url + "' class='path3'>" + d + "</a></li>";
	
}
