$(document).ready(efeitos);

// CHAMA AS DEMAIS FUNÇÕES
function efeitos(){
	$(window).load(function() {
	if($.browser.msie){
		$(".title a:not(.verde), .titles").dropShadow({left: 2, top: 2, opacity: 10, blur: 0, color: "#f300ff", swap: false});
		$(".title a:not(.verde), .titles").dropShadow({left: -2, top: -2, opacity: 10, blur: 0, color: "#00ffff", swap: false});
	} else {
		$(".title a:not(.verde), .titles").dropShadow({left: 2, top: 4, opacity: 10, blur: 0, color: "#f300ff", swap: false});
		$(".title a:not(.verde), .titles").dropShadow({left: -2, top: 1, opacity: 10, blur: 0, color: "#00ffff", swap: false});
	}
	});
	//link_externo();
	menu_hover();
	add_cycle();
	add_img();
	poup_comment();
};

//LINK EXTERNO
function link_externo(){
	$("a:not([@href*=smokeisland.com])").not("[href^=#]").addClass("externo").attr({ target: "_blank" });
};

//EFEITO AMPLIAR IMG
function poup_comment(){
	$(".comments-link a").each(function(event){
		this.onclick = function(){
			wpopen(this.href);
			return false;
		}
		event.preventDefault;
	});
};

function menu_hover(){
	$("#bt_releases a").hover(function(){
		$("#bt_mp3 a").addClass('mp3_hover');
	},
	function(){
		$("#bt_mp3 a").removeClass('mp3_hover');
	});
	$("#bt_mp3 a").hover(function(){
		$("#bt_releases a").addClass('releases_hover');
	},
	function(){
		$("#bt_releases a").removeClass('releases_hover');
	});
};

//EFEITO AMPLIAR IMG
function add_img(){
	$("a[@href*=.jpg]:not(.externo),a[@href*=.gif]:not(.externo)").each(function(event){
		this.onclick = function(){
			return hs.expand(this, {align:'center'})
		}
		event.preventDefault;
	});
};

//EFEITOS WIDGETS GALERIA
function add_cycle(){
	$.fn.cycle.defaults.speed   = 1500;
	$.fn.cycle.defaults.timeout = 8000;
	$(function(){
		$('#dest1_top p').cycle({
			fx:    'fade',
			delay: -2000
			//fx: 'shuffle',
			//easing: 'backout',
			//delay: -4000
		});
	});
};
