// JavaScript Document

/*	Custom Javascript for Double-S
	Copyright (c) 2009 by Marc Wolfgram and MacCetera LLC
	http://www.maccetera.com/
	
	uses jquery v1.3.2 javascript framework
	-----------------------------------------------
	jCycler($running)
	landing page intro display function - 12/20/2009
	
	var indx - mod 3 counter, seed: 0
	var img1/img2 - 2nd & 3rd jQuery images in triad
*/
function jCyclerInit(duration) {
	indx = 0;
	img1=$('img#ss_img1');
	if (img1) {
		img1.css({opacity:0.0});
		img2=$('img#ss_img2')
		if (img2) {
			img2.css({opacity:0.0});
			setInterval( "jCycler()", duration );
		}
	}
}
function jCycler() {
	switch (++indx % 3)
	{
	case 0:
		img1.css({opacity:0.0});
		img2.animate({opacity:0.0},2000);
		break;
	case 1:
		img1.animate({opacity:1.0},2000);
		break;
	case 2:
		img2.animate({opacity:1.0},2000);
		break;
	}
}
