var pasta_base="";
var emcelu=false;
var emipad=false;
var emprojeto = false;


var retrato = 480;
var paisagem = 804;

function hideURLbar() {
	window.scrollTo(0,1);
}

function ajustar_cabecalho () {
	var orodape = $('.rodapec');
	larRod = orodape.width();
	altRod = orodape.height();
	
	var omenu = $('.menu');
	larMen = omenu.width();
	altMen = omenu.height();
	
	var ocabecalho = $('.cabecalho');
	larCab = ocabecalho.width();
	altCab = ocabecalho.height();
	
	if (larMen+larRod+30>larCab) {
	 	altura_ideal = altRod+altMen+43;
		ocabecalho.css( {
			'height' :  altura_ideal+'px' 
		});
		orodape.css( {
			'right' :  'auto',
			'left' :  '14px',
			'top' :  '6px',
			'bottom' :  'auto',
			'text-align' :  'left'
		});
	} else {
		altura_ideal = 70;
		if (altRod>48) {
			altura_ideal = altRod+25;
		}
		ocabecalho.css( {
			'height' :  altura_ideal+'px' 
		});
		orodape.css( {
			'right' :  '10px',
			'left' :  'auto',
			'top' :  'auto',
			'bottom' :  '13px',
			'text-align' :  'right'
		});
	}
	if (emprojeto) {
		ajustar_projeto();
	}
}

$(document).ready(function () { 
	ajustar_cabecalho();
	$(window).resize(ajustar_cabecalho);

	if (emcelu) {
		
		function avalia_fundo() {
			
			var viewport = $('meta[name="viewport"]');

			var orientation = window.orientation;

			if (orientation==90 || orientation==-90) {
				$('#base').width(paisagem);
			} else {
				$('#base').width(retrato);
			}
			ajustar_cabecalho();
		}
		
		function avalia_fundo2() {
			var viewport = $('meta[name="viewport"]');
			
			view_atual = String(viewport.attr('content'));
			
			$('#log').html('mudou');
			
			if ($(window).height() < $(window).width() ) {
				if ($('#base').width()!=paisagem) {
					$('#base').width(paisagem);
				}
			} else {
				if ($('#base').width()!=retrato) {
					$('#base').width(retrato);
				}
			}
			ajustar_cabecalho();
		}
		
		avalia_fundo();
		$(window).resize(avalia_fundo2);
		$(window).bind('orientationchange', avalia_fundo2);
		//$(window).bind('orientationchange', avalia_fundo);
		setTimeout(hideURLbar, 1000);
	}
});

function controla_destaques() {

	var os_fundos = $('.fundo');
	var as_imagens = $('.fundo img');
	var as_chamadas = $('.chamada');
	var os_links = $('.botao_mais');
	var a_carregada = new Array ();
	var a_altura = new Array ();
	var a_largura = new Array ();
	var a_ratio = new Array ();
	var d_atual=0;
	var d_aberto=0;
	
	rootElement = ("onorientationchange" in window) ? $(document) : $(window);
	
	var bgWidth = rootElement.width();
	var bgHeight = rootElement.height();
	
	for (i=0;i<as_imagens.length;i++) {
		monitora_imagens(i);
	}
	
	function monitora_imagens(i) {
		a_carregada[i]="nao";
		
		$(as_imagens[i]).load(function(e) {                                    
			
			var self = $(this);
			
			$(os_fundos[i]).show();
			
			self.css({width: "auto", height: "auto"});
					
			a_largura[i] = this.width || $(e.target).width();
			a_altura[i] = this.height || $(e.target).height();
			a_ratio[i] = a_largura[i] / a_altura[i];
			
			a_carregada[i]="sim";
			
			if (i!=d_atual) {
				$(os_fundos[i]).hide();
			}
			
			ajusta_fundo();
		});
	}
	
	function ajusta_fundo() {
		try {
			for (i=0;i<as_imagens.length;i++) {
				alvo = $(as_imagens[i]);
				if (a_carregada[i]=="sim") {
					bgCSS = {left: 0, top: 0}
					bgWidth = rootElement.width();
					bgHeight = bgWidth / a_ratio[i];
					if (bgHeight < rootElement.height()) {
						bgHeight = rootElement.height();
						bgWidth = bgHeight * a_ratio[i];
					}
					if (a_altura[i]>=rootElement.height() && a_largura[i]>=rootElement.width()) {
						bgHeight = rootElement.height();
						bgWidth = rootElement.width();
						bgOffset = (a_largura[i] - bgWidth) / 2;
						if(bgWidth<960) {
							bgOffset = (a_largura[i] - 960) / 2;
						}
						$.extend(bgCSS, {left: "-" + bgOffset + "px"});
						$(".fundo").width( bgWidth ).height( bgHeight );
						alvo.width( a_largura[i] ).height( a_altura[i] ).css(bgCSS);
					} else {
						bgOffset = (bgWidth - rootElement.width()) / 2;
						$.extend(bgCSS, {left: "-" + bgOffset + "px"});
						$(".fundo").width( bgWidth ).height( bgHeight );
						alvo.width( bgWidth ).height( bgHeight ).css(bgCSS);
					}
				}
			}
		} catch(err) {
				// IE7 seems to trigger _adjustBG before the image is loaded.
				// This try/catch block is a hack to let it fail gracefully.
		}
	}
	$(window).resize(ajusta_fundo);
	
	$(".botao_anterior a").click(function() {
		if (d_atual>0) {
			d_atual--;
		} else {
			d_atual = as_imagens.length-1;
		}
		atualiza_destaque("voltar");
		return false;
	});
	$(".botao_proximo a").click(function() {
		if (d_atual<as_imagens.length-1) {
			d_atual++;
		} else {
			d_atual = 0;
		}
		atualiza_destaque("ir");
		return false;
	});
	
	function atualiza_destaque(direcao) {
		
		$(as_chamadas[d_atual]).show();
		$(os_links[d_atual]).show();
		
		$(as_chamadas[d_aberto]).hide();
		$(os_links[d_aberto]).hide();
		
		$(os_fundos[d_atual]).show();
		
		bgWidth = rootElement.width();
		
		if (direcao=="ir") {
			
			$(os_fundos[d_atual]).css('left',bgWidth+'px');
			
			var antigo = $(os_fundos[d_aberto]);
			
			$(os_fundos[d_atual]).stop().animate({
				left: 0
			},{
				step:function(now, fx) {
					if (fx.prop == "left") {
						antigo.css('left',(now-bgWidth));
					}
				},
				complete: function() {
					antigo.hide().css('left','auto');
					$(this).show().css('left','auto');
					ajusta_fundo();
				}
			});
		} else {
			
			$(os_fundos[d_atual]).css('left',-(bgWidth)+'px');
			
			var antigo = $(os_fundos[d_aberto]);
			
			$(os_fundos[d_atual]).stop().animate({
					left: 0
			},{
				step:function(now, fx) {
					if (fx.prop == "left") {
						antigo.css('left',(bgWidth+now));
					}
				},
				complete: function() {
					antigo.hide().css('left','auto');
					$(this).show().css('left','auto');
					ajusta_fundo();
				}
			});
		}
		d_aberto=d_atual;
	}
}

function ajustar_projetos () {
	var osprojetos = $('.projetos');
	
	var ocabecalho = $('#cabecalho');
	larCab = ocabecalho.width();
	
	marProj = (larCab-150)%162;

	osprojetos.css( {
		'padding-left' :  marProj+"px"
	});
	if (emcelu || emipad) {
			$('.navtag').hide();
		
	} else {
		var posicao_c = $('#coluna2').position();
		$('.sombra').css({
			'width':(larCab-150-marProj-12)+"px",
			'top':posicao_c.top
		});
		
		$('#coluna2 #lista_tags').css({
			'overflow':"visible",
			'height':"auto"
		});
		var altura1 = $('#coluna2').height();
		var altura2 = $('#coluna2 .lista_tags').height();
		var altura_minima = altura1-altura2;
		$('#coluna2 .lista_tags').css({
			'overflow':"hidden",
			'height':($(window).height()-altura_minima-63-posicao_c.top)+"px"
		});
		$('ul.projetos').css({
			'min-height': ($('#coluna2').height()-16)+"px"
		});
		
		if ($('#coluna2 .lista_tags').height()<$('#coluna2 .lista_tags ul.tags').height()) {
			scrolling = false; 
			$('.navtag').show();
			checa_posicao();
			var step = Math.floor($('#coluna2 .lista_tags').height()/19)*18; 
			
			
			$("#coluna2 .tags_tit .seta_tag:first").bind("click", function(event) {
				var step2=step;
				if ($("#coluna2 .lista_tags").scrollTop()-step2<0) {
					step2=$("#coluna2 .lista_tags").scrollTop();
				}
				$("#coluna2 .lista_tags").stop().animate({ 
					scrollTop: "-=" + step2 + "px"},
					{	complete: function() {
						checa_posicao();
					}
				});
			})
			$("#coluna2 .tags_tit .seta_down").bind("click", function(event) {
				var step2=step;
				if ($("#coluna2 .lista_tags").scrollTop()+step2>$('#coluna2 .lista_tags ul.tags').height()-$("#coluna2 .lista_tags").height()) {
					step2=$('#coluna2 .lista_tags ul.tags').height()-$("#coluna2 .lista_tags").height()-$("#coluna2 .lista_tags").scrollTop();
				} 
				$("#coluna2 .lista_tags").stop().animate({ 
						scrollTop: "+=" + step2 + "px"},
						{	complete: function() {
							checa_posicao();
						} 
				}); 
			})
			
		} else {
			$('.navtag').hide();
		}
	}
	function checa_posicao() {
		if ($("#coluna2 .lista_tags").scrollTop()==0) {
			$("#coluna2 .tags_tit .seta_tag:first").addClass("seta_inativa");
		} else {
			$("#coluna2 .tags_tit .seta_tag:first").removeClass("seta_inativa");
		}
		if ($("#coluna2 .lista_tags").scrollTop()>=$('#coluna2 .lista_tags ul.tags').height()-$('#coluna2 .lista_tags').height()) {
			$("#coluna2 .tags_tit .seta_down").addClass("seta_inativa");
		} else {
			$("#coluna2 .tags_tit .seta_down").removeClass("seta_inativa");
		}
	}
}

function controla_projetos() {	
	
	var myScroll;	
	
	if (emcelu || emipad) {
		//document.addEventListener('DOMContentLoaded', setTimeout(function () { loaded(); }, 200), false);
		document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
		$(document).ready(function () {
			setTimeout(function () {
				hideURLbar();
				setTimeout(monta_scroll, 100);
			}, 500);
		});
		function monta_scroll() {
			var posicao_pp = $("#conteudo_geral").offset();
			var alturapp = window.innerHeight;
			$("#conteudo_geral").appendTo('body').css({
				"position":"absolute",
				"overflow":"auto",
				top:posicao_pp.top,
				height:alturapp - posicao_pp.top-6,
				"z-index":100,
				"padding-left":"4px",
				width:(window.innerWidth-3)+"px",
				"margin-left":"6px"
			});
			myScroll = new iScroll('conteudo_geral', {
				hScroll: false,
				vScrollbar:false,
				onScrollEnd: function () {
					carregar_projetos();
				},
				onBeforeScrollStart: function (e) {
					hideURLbar();
				}
			});
		}
	} else {
		var posicao_c = $('#base').offset();
		$('<div />').addClass("cover_base").attr('id','covert').appendTo('body');
		$('<div />').addClass("cover_cabecalho").attr('id','coverc').appendTo('#covert');
		$('#cabecalho').css({"visibility":"hidden"}).clone().appendTo('#coverc').attr('id','cabecalho2').css({"visibility":"visible"});
		$('#titulo_projetos').css({"visibility":"hidden"}).clone().appendTo('#coverc').attr('id','titulo_projetos2').css({"visibility":"visible"});
		$('.coluna_e').clone().appendTo('#coverc').attr('id','coluna2');
		$('.coluna_e').css({"visibility":"hidden"});
		$('#coluna2').css({"visibility":"visible"});
		$('.navtag').hide();
		$('#coluna2').css({
				"position":"absolute",
				"width":"150px",
				"background-color":"#FFF"
		});
		$('<div />').addClass("sombra").attr('id','sombra').appendTo('#coverc').hide();
		if (ids_projetos.length>ppagina) {
			checa_load();
			$(window).scroll(function(){
				checa_load();
			});
		}
		$(window).scroll(function(){
			if ($(window).scrollTop()>15) {
				$('.sombra').show();
			} else {
				$('.sombra').hide();
			}
		});
		if ($('#barra_admin')) {
			$('#covert').css({"top":$('#barra_admin').height()+"px"});
			$('#barra_admin').css({
				"position":"fixed",
				"top":0,
				"width":"100%",
				"z-index":25
			});
			$('#base').css({
				"padding-top":$('#barra_admin').height()+"px"
			});
		}
	}
	
	ajustar_projetos();
	
	$(window).resize(ajustar_projetos);
	
	function aplica_hoverp () {
		$('.projetos li a').hover(function(){
			$(this).find("span.detalhes").stop().show().addClass("ta_over").animate({
				left: 0
			},"fast");
		}, function(){
			$(this).find("span.detalhes").stop().animate({
				left: "-150px"
			},"fast",function(){
				$(this).hide();
				$(this).css({left: "-150px"});
				$(this).removeClass("ta_over");
			});
		});
		if (emcelu || emipad) {
			$('.projetos li a').click(function(){
				if (!$(this).find("span.detalhes").hasClass("ta_over")) {
					$('.projetos li a').hover();
					return false;
				}
			})
		}
	}
	aplica_hoverp();
	$(".busca").submit(function() {
		window.location = pasta_base+"projetos/?"+$(this).find('#s').serialize();
		return false;
	});
	
	function checa_load() {
		if  ($(window).scrollTop() == $(document).height() - $(window).height()){
			carregar_projetos();
		}
	}
	function carregar_projetos() {
		if (itens_atual < ids_projetos.length) {
			listagem = "";
			limite = itens_atual+ppagina;
			if (limite>ids_projetos.length) {
				limite = ids_projetos.length;
			}
			for (i=itens_atual;i<limite;i++) {
				listagem += ids_projetos[i]+",";
			}
			listagem = listagem.substring(0, listagem.length-1);
	
			itens_atual = limite;
			
			$(".rodape .carregando").removeClass("oculto");
			
			$.post(pasta_base+'carrega_projeto.php', {listagem: listagem}, function(resposta, textStatus) {
				novos_itens="";
				for (i=0;i<resposta.length;i++) {
					novos_itens+='<li>'+resposta[i]['logado']+'<a href="'+pasta_base+'projetos/'+categoria+resposta[i]['slug']+'/'+comp_busca+'"><span class="detalhes" style="display:none;">'+resposta[i]['titulo']+'<span class="data">'+resposta[i]['mes']+'.'+resposta[i]['ano']+'</span></span><img src="'+pasta_base+'imagens/imagens_site/'+resposta[i]['imagem']+'" width="150" height="150" /></a></li>\n';
				}
				$('.projetos').append(novos_itens);
				aplica_hoverp();
				$(".rodape .carregando").addClass("oculto");
				if (emcelu || emipad) {
					myScroll.refresh();
				} else {
					checa_load();
				}
			},"json");
		}
	}
};

function ajustar_projeto () {
	var oprojeto = $('.imagens_projeto');
	var ositens = $('.item');
	var osinativos = $('.item_inativo');
	var odetalhe = $('.projeto_descricao');
	
	var ocabecalho = $('#cabecalho');
	larCab = ocabecalho.width();
	
	marPro = (larCab-324);
	
	if (marPro<474) {
		marPro=474;
		oprojeto.css( {
			'width' :  larCab+"px",
			'clear' :  "both",
			'float' :  "left"
		});
		ositens.css( {
			'text-align' :  "left"
		});
		osinativos.css( {
			'right' :  "auto",
			'left' :  "4px"
		});
		odetalhe.css( {
			'width' :  "474px"
		});
		$(".imagens_projeto").append($("#tags_projeto"));
	} else {
		oprojeto.css( {
			'width' :  marPro+"px",
			'clear' :  "none",
			'float' :  "right"
		});
		ositens.css( {
			'text-align' :  "right"
		});
		osinativos.css( {
			'right' :  "4px",
			'left' :  "auto"
		});
		odetalhe.css( {
			'width' :  "312px"
		});
		$(".projeto_descricao").append($("#tags_projeto"));
	}
}
function controla_projeto() {
	emprojeto=true;
	ajustar_projeto();
	$(window).resize(ajustar_projeto);
};


function controla_info() { 
	var osinfos = $('.foto');	
	var i_atual=0;
	var i_aberto=0;
	
	$(".navegador").show().clone().appendTo('.rodape');
	
	function ajusta_botoes() {
		if (i_atual<=0) {
			$(".navegador .extremop").addClass("inativo");
			$(".navegador .anterior").addClass("inativo");
			$(".navegador .extremou").removeClass("inativod");
			$(".navegador .proximo").removeClass("inativod");
		} else if (i_atual>=(osinfos.length-1)){
			$(".navegador .extremop").removeClass("inativo");
			$(".navegador .anterior").removeClass("inativo");
			$(".navegador .extremou").addClass("inativod");
			$(".navegador .proximo").addClass("inativod");
		} else {
			$(".navegador .extremop").removeClass("inativo");
			$(".navegador .anterior").removeClass("inativo");
			$(".navegador .extremou").removeClass("inativod");
			$(".navegador .proximo").removeClass("inativod");
		}
		if (i_atual<=2) {
			for (i=1;i<=osinfos.length;i++) {
				if (i<=3) {
					$(".navegador span.pagina"+i).show();
				} else {
					$(".navegador span.pagina"+i).hide();
				}
				if (i-1==i_atual) {
					$(".navegador span.pagina"+i).addClass("ativo");
				} else {
					$(".navegador span.pagina"+i).removeClass("ativo");
				}
			}
			$(".navegador span.traco1").hide();
			$(".navegador span.traco2").show();
			$(".navegador span.pagina"+(osinfos.length)).show();
		} else if (i_atual>=osinfos.length-4) {
			for (i=1;i<=osinfos.length;i++) {
				if (i>=osinfos.length-3) {
					$(".navegador span.pagina"+i).show();
				} else {
					$(".navegador span.pagina"+i).hide();
				}
				if (i-1==i_atual) {
					$(".navegador span.pagina"+i).addClass("ativo");
				} else {
					$(".navegador span.pagina"+i).removeClass("ativo");
				}
			}
			$(".navegador span.traco1").show();
			$(".navegador span.traco2").hide();
		} else {
			for (i=1;i<osinfos.length;i++) {
				if (i <= i_atual+2 && i>=i_atual) {
					$(".navegador span.pagina"+i).show();
				} else {
					$(".navegador span.pagina"+i).hide();
				}
				if (i-1==i_atual) {
					$(".navegador span.pagina"+i).addClass("ativo");
				} else {
					$(".navegador span.pagina"+i).removeClass("ativo");
				}
			}
			$(".navegador span.traco1").show();
			$(".navegador span.traco2").show();
			$(".navegador span.pagina"+osinfos.length).show();
		}
	}
	
	function atualiza_info(direcao) {
		
		if (i_atual != i_aberto) {
			
			ajusta_botoes();
			
			var largura_info = $(".info").width();
			var altura_info = $(".info").height();
			
			$(".info").css({
				'height' :  altura_info+"px"
			});
			
			var antigo = $(osinfos[i_aberto]);
			
			if (direcao=="ir") {
				$(osinfos[i_atual]).show().css({
					'width' :  largura_info+"px",
					'height' :  altura_info+"px",
					'position' :  "absolute",
					'left' : (largura_info-24)+'px'
				});
				antigo.css( {
					'width' :  largura_info+"px",
					'height' :  altura_info+"px",
					'position' :  "absolute"
				});
				
				$(osinfos[i_atual]).stop().animate({
						left: 12
				},{
					step:function(now, fx) {
						if (fx.prop == "left") {
							antigo.css('left',(now-largura_info));
						}
					},
					complete: function() {
						antigo.hide().css({
							'position' :  "static",
							'width' : "100%",
							'height' :  "auto",
							'left' : 'auto'
						});
						$(this).css( {
							'position' :  "static",
							'width' : "100%",
							'height' :  "auto",
							'left' : 'auto'
						});
						$(".info").css( {
							'height' :  "auto"
						});
					}
				});
				
			} else {
				$(osinfos[i_atual]).show().css({
					'width' :  largura_info+"px",
					'height' :  altura_info+"px",
					'position' :  "absolute",
					'left' : (12-largura_info)+'px'
				});
				antigo.css( {
					'width' :  largura_info+"px",
					'height' :  altura_info+"px",
					'position' :  "absolute"
				});
				
				$(osinfos[i_atual]).stop().animate({
						left: 12
				},{
					step:function(now, fx) {
						if (fx.prop == "left") {
							antigo.css('left',(largura_info+now));
						}
					},
					complete: function() {
						antigo.hide().css({
							'position' :  "static",
							'width' : "100%",
							'height' :  "auto",
							'left' : 'auto'
						});
						$(this).css( {
							'position' :  "static",
							'width' : "100%",
							'height' :  "auto",
							'left' : 'auto'
						});
						$(".info").css( {
							'height' :  "auto"
						});
					}
				});
			}
		}
		i_aberto=i_atual;
	}
	$(".navegador .anterior").click(function() {
		if (i_atual>0) {
			i_atual--;
		} else {
			i_atual = 0;
		}
		atualiza_info("voltar");
		return false;
	});
	$(".navegador .proximo").click(function() {
		if (i_atual<osinfos.length-1) {
			i_atual++;
		} else {
			i_atual = osinfos.length-1;
		}
		atualiza_info("ir");
		return false;
	});
	$(".navegador .extremop").click(function() {
		i_atual = 0;
		atualiza_info("voltar");
		return false;
	});
	$(".navegador .extremou").click(function() {
		i_atual = osinfos.length-1;
		atualiza_info("ir");
		return false;
	});
	
	for (i=1;i<=osinfos.length;i++) {
		gera_action(i);
	}
	
	function gera_action(numero) {
		$(".navegador span.pagina"+numero+" a").click(function() {
			novo_valor = numero-1;
			if (novo_valor>i_atual) {
				i_atual = novo_valor;
				atualiza_info("ir");
			} else {
				i_atual = novo_valor;
				atualiza_info("voltar");
			}
			return false;
		});
	}
	ajusta_botoes();
};

function controla_contato () {
	
	var base=1;
	var formulario = "#contato"+base;
	
	$("#enviar_bt").click(function() {
		$(formulario).submit();
		return false;
	});
	

	$(formulario).submit(function() {
		//var nome = $(formulario).find("#nome").val();
		$("#enviar_bt").hide();
		var email = $(formulario).find("#email").val();
		var mensagem = $(formulario).find("#mensagem").val();
		var assunto = $(formulario).find("#assunto").val();
		var MM_insert = $(formulario).find("#MM_insert").val();

		var alturaStatus = $(formulario).height();
		var botaook = '<p>&nbsp;</p><div class="botaoOk"><a href="#" class="botaoOk" onclick="$(\'#status'+base+'\').hide();$(\'#enviar_bt\').show();return false;">ok</a></div>'

		var cssObj = {
			'height' :  alturaStatus+'px', 
			'width' :  $(formulario).width()+'px'
		} 
		$("#status"+base).css(cssObj);
		$("#status"+base+"> div:first").html("<p align='center'><img src='"+pasta_base+"imagens/loading.gif' alt='Enviando'/></p>");
		$("#status"+base+"> div:first").css( {
			'width' :  ($(formulario).width()-150)+'px',
			'top' :  Math.round((alturaStatus-$("#status"+base+"> div").height()-30)/2)+'px' ,
			'left' :  '68px'
		});
		$("#status"+base).slideDown();
		// Fazemos a requisão ajax com o arquivo envia.php e enviamos os valores de cada campo através do método POST
		$.post(pasta_base+'contato.php', {email: email, mensagem: mensagem, assunto: assunto, MM_insert: MM_insert }, function(resposta) {
				var resposta_final=""
				if (resposta != "sim" && resposta != "nao") {
					resposta_final=resposta;
				} else if (resposta == "sim") {
					resposta_final="<h3 align='center'>Obrigado!</h3><p>&nbsp;</p><p align='center'>Sua mensagem <br />foi enviada com sucesso!</p>";
					$(formulario).find("#mensagem").val("");
				} else {
					resposta_final="<h3 align='center'>Erro!</h3><p>&nbsp;</p><p align='center'>Ocorreu um erro no envio da sua mensagem, por favor tente novamente mais tarde.</p>";
				}
				$("#status"+base+"> div:first").html(resposta_final+botaook);
				$("#status"+base+"> div:first").css( {
					'width' :  ($(formulario).width()-140)+'px',
					'top' :  Math.round((alturaStatus-$("#status"+base+"> div").height()-30)/2)+'px' ,
					'left' :  '63px'
				});
				
		});
		return false;
	});
}

