// JavaScript Document
$(function(){
	try{
		$('#cycle_a').cycle({
			fx: 'fade',
			pause: 0,
			timeout: 3000
		});
		$('#cycle_c').cycle({
			fx: 'fade',
			pause: 0,
			timeout: 2500
		});
		$('#aside ul li').css('list-style', 'none')
	}catch(e){}
	
	try{
		$("#mapa").fancybox({
			width: '90%', 
			height: '90%', 
			autoDimensions: false
		});
	}catch(e){}
	
	try{
		$('.ver_cv').live('click', function(){
			url = 'mini.php?who='+$(this).attr('id')
			$.fancybox({
				'type':'ajax',
				'href':url,
				'autoDimensions':false,
				'width': 500,
				'height': 'auto'
			})
			return false
		})
	}catch(e){}
	
	$("#ver_pagamentos").live('click', function(){
		$('#pagamentos').toggle('fast')
	})
	
	//$('#agenda').fancybox();
	
	//console.log(getUrlVars())
	
});
//
//function getUrlVars() //Retorna um array com as variáveis GET
//{
//	var vars = [], hash;
//	var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
//
//	for(var i = 0; i < hashes.length; i++)
//	{
//		hash = hashes[i].split('=');
//		hash[1] = unescape(hash[1]);
//		vars.push(hash[0]);
//		vars[hash[0]] = hash[1];
//	}
//	return vars;
//}
