$(document).ready(function(){
    		// transparencia png
    		if($.browser.msie && $.browser.version < 7)$(document).pngFix();
    		elemento.preview('#valor_pesquisa');

    		$('ul#rotpanel').cycle({
        		fx: 'fade',
        		timeout: 4000,
        		next:   '#next_panel', 
        	    prev:   '#prev_panel'
        	});

    		$('#pause_panel').click(function(){
        		painel.init('ul#rotpanel',$(this));
            });

        	var painel = {
				pause: false,
				init : function(obj,bt){
					if (this.pause == true){
						$(obj).cycle('resume');
						bt.attr({src: BASEIMAGE+'painel-pausa.gif', alt: 'pausar', title: 'pausar'});
						this.pause = false;
					}
					else if(this.pause == false){
						$(obj).cycle('pause');
						bt.attr({src: BASEIMAGE+'painel-pausa-off.gif', alt: 'iniciar', title: 'iniciar'});
						this.pause = true;
					}
				}
            };

            $('#rotpanel').ready(function(){
				$('#painel-setas').show();	
            });

            var inputopt = [];
			inputopt['cx'] = '015124342540017622661:syvzrwylm8w';
			inputopt['cof'] = 'FORID:11';
			inputopt['ie'] = 'UTF-8';
			$('select#select_local').change(function(){
				// se opcao for web inclui elementos
				if ($(this).val() == 'web'){
					var f = new Formulario();
					for (var pos in inputopt){
						f.insertInput('#form-search','hidden',pos,inputopt[pos],pos);
					}
					delete f;
				}
				// senao remove os elementos
				else{
					for (var pos in inputopt){
						$('#'+pos).remove();
					}
				}
			});
	});

		function fechar(){
		document.getElementById('bannerf').style.display = 'none';
		}
		/*banners*/
		function link_banner(i){
		var i;
			if(i==1){
			location.href='http://www.clickfozdoiguacu.com.br/foz-iguacu-noticias/cinema-com-o-clickfoz';
			}
		}
