jQuery().ready(function(){
   $('a[@rel*=lightbox]').lightBox({
	overlayBgColor: '#000',
	overlayOpacity: 0.6,
	imageLoading: 'http://www.cataratasjlshopping.com.br/wp-content/themes/default/images/lightbox-ico-loading.gif',
	imageBtnClose: 'http://www.cataratasjlshopping.com.br/wp-content/themes/default/images/lightbox-btn-close.gif',
	imageBtnPrev: 'http://www.cataratasjlshopping.com.br/wp-content/themes/default/images/lightbox-btn-prev.gif',
	imageBtnNext: 'http://www.cataratasjlshopping.com.br/wp-content/themes/default/images/lightbox-btn-next.gif',
	imageBlank: 'http://www.cataratasjlshopping.com.br/wp-content/themes/default/images/lightbox-blank.gif',
	containerResizeSpeed: 350,
	txtImage: 'Imagem',
	txtOf: 'de'
   });
});


$(document).ready(function() {
    $('#slideshowIndex').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
});



function openPopup(url, w, h) {
	window.open(url, 'popup', 'height=' + h + ', width=' + w + ', toolbar=no');
}

function openPopupSiteMaes() {
	window.open('http://www.cataratasjlshopping.com.br/hot-site-maes','pageMaes','toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=981,height=700');  
}
$(document).ready(function(){
	$("a[@rel=external]").attr('target','_blank');
});





var theTarget = "_top";
function goThereSegmento(){
	if(!document.segmento.segmentoSelect.selectedIndex=="") {
		window.open(document.segmento.segmentoSelect.options[document.segmento.segmentoSelect.selectedIndex].value,theTarget,"");
	}
}
function goThereLoja(){
	if(!document.loja.lojaSelect.selectedIndex=="") {
/*		window.open(document.loja.lojaSelect.options[document.loja.lojaSelect.selectedIndex].value,theTarget,"");*/
		document.getElementById("containerConteudo").focus();
		tb_show('Cataratas JL Shopping', document.loja.lojaSelect.options[document.loja.lojaSelect.selectedIndex].value, false);
	}
}




function CheckMultiple24(frm, name) {
				for (var i=0; i < frm.length; i++)
				{
					fldObj = frm.elements[i];
					fldId = fldObj.id;
					if (fldId) {
						var fieldnamecheck=fldObj.id.indexOf(name);
						if (fieldnamecheck != -1) {
							if (fldObj.checked) {
								return true;
							}
						}
					}
				}
				return false;
			}
		function CheckForm24(f) {
			if (f.email.value == "") {
				alert("Por favor informe seu endereço de email.");
				f.email.focus();
				return false;
			}
		
			var fname = "CustomFields_21_24";
			var fld = document.getElementById(fname);
		
			CheckNum = parseInt(fld.value);
			if(fld.value != "" && isNaN(CheckNum)) {
				alert("Por favor digite um valor numérico para o campo 05.01.01 - DDD Telefone Residencial");
				fld.select();
				fld.focus();
				return false;
			}
		
				return true;
			};