﻿// JavaScript Document

var captions = new Array();
captions['large_1'] = '<p>Louis (aka Hezz) &amp; Dom -Ready 2 Rock Crew</p>';
captions['large_2'] = '<p>Joel Asseraf</p>';
captions['large_3'] = '<p>Lil Lep Top Rockin</p>';
captions['large_4'] = '<p>Lil Lep Top Rockin some more</p>';
captions['large_5'] = '<p>Fabel, Jerome, Fever, &amp; Thierry</p>';
captions['large_6'] = '<p>Kid Kool Aid</p>';
captions['large_7'] = '<p>Josh Berman</p>';
captions['large_8'] = '<p>Joselle Yakogawa, Renegade, Christy Z., Mega, &amp; Kingston</p>';
captions['large_9'] = '<p>Gulli</p>';
captions['large_10'] = '<p>Gulli</p>';
captions['large_11'] = '<p>Granite Rock</p>';
captions['large_12'] = '<p>Grandmaster Caz</p>';
captions['large_13'] = '<p>Bom5 &amp; Kid Kool Aid, Rock Steady Crew</p>';
captions['large_14'] = '<p>Massive Monkees Crew with Bom5</p>';
captions['large_15'] = '<p>LilLep, Michael Holman &amp; Grand Master Caz</p>';
captions['large_16'] = '<p>Thierry Daher</p>';
captions['large_17'] = '<p>Thierry Daher</p>';
captions['large_18'] = '<p>Rackel, Sacha Jenkins, Thierry Daher</p>';
captions['large_19'] = '<p>Michael Holman, Christie Z Pabon</p>';
captions['large_20'] = '<p>Rip7, JC, Bom5</p>';
captions['large_22'] = '<p>Jeromeskee, Christie Z Pabon, Mega, Renegade, FeverOne, Joselle, Rip7 and little Kigston</p>';
captions['large_23'] = '<p>JC, Mr freeze &amp; Rip7</p>';
captions['large_24'] = '<p>Bgirl Renegade and Jeromeskee</p>';
captions['large_25'] = '<p>Rip7, Bgirl Renegade, LilLep, JC, Bgirl Mega</p>';
captions['large_26'] = '<p>JC, Bboy legend LilLep &amp; Pop Master Fabel</p>';
captions['large_27'] = '<p>Bboy legend LilLep &amp; Pop Master Fabel</p>';
captions['large_28'] = '<p>Bboy FeverOne</p>';
captions['large_30'] = '<p>Pop Master Fabel, Bboy Jeromeskee, Bboy FeverOne, Producer Thierry Daher</p>';
captions['large_31'] = '<p>Daniel Lara, Christy Z.(Tool of War), &amp; Freeze</p>';
captions['large_32'] = '<p>Chad Ross</p>';
captions['large_33'] = '<p>Secret Skwerl</p>';
captions['large_34'] = '<p>Sandro &amp; Celina</p>';
captions['large_35'] = '<p>Rodrigo, Tim, Gulli, &amp; Sunny</p>';
captions['large_36'] = '<p>Massive Monkees - Rip7, LilLep, &amp; Fever1</p>';

var moving = false;
var current = 'left';
var timeout;


function hideAll(){
	all_divs = $('large_img').select('div');
	all_divs.each(function(item) {
		$(item).hide();
	});
	return false;
}

function show_layer(num) {
	//alert(model)
	hideAll();
	$(num).show();
	$('pic_titles').innerHTML = captions[num];
	if (captions[num] == null ) {
		$('pic_titles').innerHTML = '';
	}
	
	return false
}

function moveLeft(){
	if(!moving){
		var left = $('banner').getStyle('left');	
		left.replace("px","");	
		left = parseInt(left);
		if(left < 0 ){
			slideLeft();
			if(left == -1175){
				clearTimeout(timeout);
			} else if(left == -600){
				clearTimeout(timeout);
			}
		} else {
			clearTimeout(timeout);
		}
	}
	return false;
}

function slideLeft(){
	var left_px = $('banner').getStyle('left');
	left_px.replace("px","");
	left_px = parseInt(left_px) + 25;
	$('banner').setStyle({ left:left_px+'px' });
	timeout = setTimeout ( "moveLeft()", 50 );
}


function moveRight(){
	if(!moving){
		var left = $('banner').getStyle('left');	
		left.replace("px","");	
		left = parseInt(left);
		if(left > -1725){
			slideRight();
			if (left == -550) {
				clearTimeout(timeout);
			}else if(left == -1125) {
				clearTimeout(timeout);
			}
		} else {
			clearTimeout(timeout);
		}
	}
	return false;
}



function slideRight(){
	var left_px = $('banner').getStyle('left');
	left_px.replace("px","");
	left_px = parseInt(left_px) - 25;
	$('banner').setStyle({ left:left_px+'px' });
	timeout = setTimeout ( "moveRight()", 50 );
}