// ******************************************************************

//troca a cor das guias
function ApplyXPOverStyle(obj,color,color2,addborder) { 
	 obj.style.backgroundColor = color;
	 obj.style.borderColor = color2;
    if (addborder=='true') {obj.style.borderStyle='solid';obj.style.borderWidth='1px'}
}

function ApplyXPOutStyle(obj) {
	obj.style.backgroundColor = '';
	if (navigator.appName == 'Netscape') { obj.style.borderColor = 'F1EDEC'; } else { 
	obj.style.borderColor = ''; }
	obj.style.borderStyle = '';
}

//troca a cor dos botões de coleções
function ApplyXPOverStyle2(obj,color,color2,addborder) { 
	obj.style.backgroundColor = color;
	obj.style.borderColor = color2;
    if (addborder=='true') {obj.style.borderStyle='solid';obj.style.borderWidth='4px'}
}

function ApplyXPOutStyle2(obj,color,color2,addborder) { 
	obj.style.backgroundColor = color;
	obj.style.borderColor = color2;
    if (addborder=='true') {obj.style.borderStyle='solid';obj.style.borderWidth='4px'}
}

function popup(){
	w = 600
	h = 440
	centerX = (screen.height/2)-h/2;
	centerY = (screen.width/2)-w/2;
	window.open('pop.html', 'pop', 'width='+w+', height='+h+',top='+centerX+', left='+centerY+',scrollbars=no');
}

function ampliar(url){
	w = 200
	h = 200
	centerX = (screen.height/2)-h/2;
	centerY = (screen.width/2)-w/2;
	window.open('ampliar.asp?'+url, 'zoom', 'width='+w+', height='+h+',top='+centerX+', left='+centerY+'');
}

function ampliarNews(url){
	w = 200
	h = 200
	centerX = (screen.height/2)-h/2;
	centerY = (screen.width/2)-w/2;
	window.open('../ampliar.asp?'+url, 'zoom', 'width='+w+', height='+h+',top='+centerX+', left='+centerY+'');
}

function como_chegar(){
	w = 440;
 	h = 370;
	centerX = (screen.height/2)-h/1;
	centerY = (screen.width/2)-w/2;
	window.open('como_chegar.asp', 'como_chegar', 'width='+w+', height='+h+',top='+centerX+', left='+centerY+'');
}

function resultado(x){
	w = 250
	h = 260
	centerX = (screen.height/2)-h/2;
	centerY = (screen.width/2)-w/2;
	window.open('enquete_resultado.asp?x='+ x, 'enquete', 'width='+w+', height='+h+',top='+centerX+', left='+centerY+'');
}

function confirma(msg) { alert(msg) }

function videos_comentarios(x){
	w = 400
	h = 400
	centerX = (screen.height/2)-h/2;
	centerY = (screen.width/2)-w/2;
	window.open('videos_comentarios.asp?codigo='+x, 'enquete', 'width='+w+', height='+h+',top='+centerX+', left='+centerY+',scrollbars=yes');
}

function videos_indique(x,y){
	w = 400
	h = 300
	centerX = (screen.height/2)-h/2;
	centerY = (screen.width/2)-w/2;
	window.open('videos_indique.asp?codigoX='+x+'&codigoY='+y, 'enquete', 'width='+w+', height='+h+',top='+centerX+', left='+centerY+',scrollbars=yes');
}

function chk_comentario(oForm) {

	if (oForm.comentario.value == ""){
	  alert("Preencher o campo corretamente!");
	  return false;
	}

return true;
}

function zoom_ampliar1() {
    document.getElementById('zoom').style.visibility = "visible";
}

function zoom_fechar1() {
    document.getElementById('zoom').style.visibility = "hidden";
}

function zoom_ampliar2() {
    document.getElementById('zoom1').style.visibility = "visible";
}

function zoom_fechar2() {
    document.getElementById('zoom1').style.visibility = "hidden";
}

function zoom_jeans() {
    document.getElementById('zoom_jeans').style.visibility = "visible";
}

function zoom_fechar() {
    document.getElementById('zoom_jeans').style.visibility = "hidden";
}

//***********************SLIDE DAS FOTOS DOS PRODUTOS***************************

var slideCache = new Array();
function RunSlideShow(pictureName,imageFiles,displaySecs)
{
var imageSeparator = imageFiles.indexOf(";");
var nextImage = imageFiles.substring(0,imageSeparator);
if (document.all)
{
document.getElementById(pictureName).style.filter="blendTrans(duration=2)";
document.getElementById(pictureName).filters.blendTrans.Apply();
}
document.getElementById(pictureName).src = nextImage;
if (document.all)
{
document.getElementById(pictureName).filters.blendTrans.Play();
}
var futureImages= imageFiles.substring(imageSeparator+1,imageFiles.length)
+ ';' + nextImage;
setTimeout("RunSlideShow('"+pictureName+"','"+futureImages+"',"+displaySecs+")",
displaySecs*2000);
// Cache the next image to improve performance.
imageSeparator = futureImages.indexOf(";");
nextImage = futureImages.substring(0,imageSeparator);
if (slideCache[nextImage] == null) {
slideCache[nextImage] = new Image;
slideCache[nextImage].src = nextImage;
}
}