/*
 * Proyecto 83 - http://proyecto83.com
 * Copyright (C) 2008 Emilio Mariscal
 * 
 * == BEGIN LICENSE ==
 * 
 * Licensed under the terms of any of the following licenses at your
 * choice:
 * 
 *  - GNU General Public License Version 2 or later (the "GPL")
 *    http://www.gnu.org/licenses/gpl.html
 * 
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 *    http://www.gnu.org/licenses/lgpl.html
 * 
 * == END LICENSE ==
 * 
 * 	File Name  :
 *
 * 	efectosvisuales.js
 *
 * File Authors :
 * 		Emilio Mariscal ( emi420@gmail.com )
 */
 
var Interval = 3000 ;
var currentSlide = 0 ;
var slidesCount = 4 ;	

window.onload = function() {
	cargarEfectosVisuales() ;
}

function cargarEfectosVisuales() {

	try { 
		document.getElementById('link-sig').onclick = function() { 
			var dist = -220 
			if(currentSlide < (slidesCount - 1) ) {
				currentSlide++ ; 
				Effect.MoveBy( 'banner', dist, 0 , {duration: .6,  transition: Effect.Transitions.sinoidal}); 
			}
		} ;
		document.getElementById('link-ant').onclick = function() { 
			var dist = 220 ;
			if(currentSlide > 0) {
				currentSlide-- ; 
				Effect.MoveBy( 'banner', dist, 0 , {duration: .6,  transition: Effect.Transitions.sinoidal}); 
			}
		} ;
		startSlideshow(1, slidesCount, Interval);
		   		
	} catch(e) {
			null ;
	}
}
						
