function varsQstring(){
	var objQstring = new Object();
	var qString;
	qString = window.location.search.substr(1, window.location.search.length).split("=");
	objQstring = qString[1];
	return objQstring;
}

function linkIframe(endereco){
	if(endereco) {
		document.getElementById("conteudo").src = "content/" + endereco + ".htm";
		url_depoimento();
		//window.location = "http://www.maiscriativars.com.br/index.htm?endereco=" + endereco;
	} else {
		document.getElementById("conteudo").src = "content/home.htm";
		document.getElementById('depoimentos').src = "content/depoimentos/10.htm";
	}
	
	if(endereco == "galeria") {
		document.getElementById("conteudo").src = "http://www.maiscriativars.com.br/galeria/index.php?album=galeria";
	} 
}

function linkIframeGaleria(){
		document.getElementById("conteudo").src = "http://www.maiscriativars.com.br/galeria/index.php?album=galeria";
}

function linkIframeCurriculos(endereco2){
	document.getElementById("conteudo").src = "content/curriculos/" + endereco2 + ".htm";
	url_depoimento();
}

function linkIframeCursos(endereco3){
	parent.document.getElementById("conteudo").src = "content/cursos/" + endereco3 + ".htm";
	url_depoimento();
}

function resize(num) {
	parent.document.getElementById('conteudo').style.height = num + "px";
}

function resize2() {
	parent.document.getElementById('depoimentos').style.height = document.getElementById('divDepoimentos').scrollHeight + 20 + "px";
}

function resize3(num) {
	parent.document.getElementById('programacao').style.height = num + "px";
}

function showHideMenu(div, opt){
	if(opt == "1"){
		document.getElementById(div).style.display = "block";
	} else {
		document.getElementById(div).style.display = "none";
	}
}

function url_depoimento() {
	
			var num_depoimento = 9;
			ran = Math.round(Math.random() * (num_depoimento-1))+1;
			url_depoimento = "content/depoimentos/" + ran + ".htm";
			document.getElementById('depoimentos').src= url_depoimento;
}
