<!--//

// Reproductor Vimeo
function vimeoPlayer(id) {
	document.write('<div class="vimeo">');
	document.write('<object width="560" height="312">');
	document.write('<param name="allowfullscreen" value="true" />');
	document.write('<param name="allowscriptaccess" value="always" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id='+id+'&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;colorfb8720=&amp;fullscreen=1" />');
	document.write('<embed src="http://vimeo.com/moogaloop.swf?clip_id='+id+'&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=fb8720&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" wmode="transparent" width="560" height="312"></embed>');
	document.write('</object>');
	document.write('</div>');
}

// Thumb.small Video
function vimeoThumb(id) {
	
	var videoUrl = 'http://www.vimeo.com/api/v2/' + id + '.php';
	
	function initThumb() {
		var head = document.getElementsByTagName('head').item(0);
		
		var videosJs = document.createElement('script');
		videoJs.setAttribute('type', 'text/javascript');
		videoJs.setAttribute('src', videoUrl);
		head.appendChild(videoJs);
	}
	
	initThumb;
	document.write('<img scr="'+ video.thumbnail_small +'" alt="'+video.title+'" />')

}
		

// Antispam
function antiSpam(email,dominio) {
	document.write('<a href="mailto:' + email + '@' + dominio + '" title="Contactarse con Viva Magazine"><span>' + email + '@' + dominio + '</span></a>')
}


$(document).ready(function() {
						   
	// JQuery.Carousel
    jQuery("#listJC").jcarousel();
    jQuery("#flickrJC").jcarousel();
	
	$("a.fancybox").fancybox();
	
	// RollOver Thumbs
	$("#listado img").hover( function () { $(this).fadeTo('fast', 0.5); }, function () { $(this).fadeTo('fast', 1.0); } );
	$("#galeria img").hover( function () { $(this).fadeTo('fast', 0.5); }, function () { $(this).fadeTo('fast', 1.0); } );
	
});


//-->
