// JavaScript Document

(function($){
	rightPanelsClick = function() {
	
		if (blockTrigger == 0)
		{
			blockTrigger = 1;
						
			$j('.slideBG-L').css('background', 'no-repeat url("' + localURL + otherImages[6] + '")');
			$j('.slideBG-R').css('background', 'no-repeat url("' + localURL + otherImages[24] + '")');
			$j('.conceptTitle').fadeTo(10,0);
			$j('.conceptSubtext').fadeTo(10,0);		
			var clickID = $j('div', this).attr('class');
			activeSlide = clickID.substring(7,8);		
			
			$j(this).css('background', 'no-repeat url("' + localURL + otherImages[23] + '")');
			$j('#leftPanels > div').unbind('onmouseover').unbind('onmouseout');
			$j('#rightPanels > div').unbind('onmouseover').unbind('onmouseout');
			isSliding = 0;
			
			if (slidePage == 1)
			{
				if ((blockTrigger == 1) && (activeSlide != alreadyActive))
				{
					
					theQueue.queue('myq', function(next) {
						$j('body').css('cursor', 'wait');
						$j('#sketchArt').fadeTo(300,0,function(){
							next();
						});
					}).delay(100,'myq').queue('myq', function(next) {				
						$j('#sketchArt').css('background', 'no-repeat url("' + localURL +  sketchArt1[activeSlide] + '")');					
						$j('#sketchArt').delay(500).fadeTo(700,1, function(){
							next();
						});
					}).delay(300, 'myq').queue('myq', function(next) {
						blockTrigger = 0;
						$j('body').css('cursor','default', function(){
							
							next();
						});
					}).dequeue('myq');					
				}
			
				if ((activeSlide == 4) && (activeSlide != alreadyActive))
				{
					$j('#conceptInfoText1').fadeTo(700,0);
					$j('#conceptInfoText2').fadeTo(700,0);
					$j('#conceptInfoText3').fadeTo(700,0, function(){
						$j('#conceptInfoText1').html('Alien I - "The Mid-City Series, # 01"');
						$j('#conceptInfoText2').html('WIP, paint stage as of: Feb 20th, 2011');
						$j('#conceptInfoText3').html('Line, digital paint, texturing');
					});
					$j('#conceptInfoText1').fadeTo(700,1);				
					$j('#conceptInfoText2').fadeTo(700,0.9);
					$j('#conceptInfoText3').fadeTo(700,0.8);
				
					$j('.fancy-img').attr("href", conceptFull1[0]);
					$j('html').css('cursor', 'default');
					//blockTrigger = 0;
					alreadyActive = 4;
				}
				if ((activeSlide == 5) && (activeSlide != alreadyActive))
				{
					$j('#conceptInfoText1').fadeTo(700,0);
					$j('#conceptInfoText2').fadeTo(700,0);
					$j('#conceptInfoText3').fadeTo(700,0, function(){
						$j('#conceptInfoText1').html('Alien I - "The Mid-City Series, # 02"');
						$j('#conceptInfoText2').html('WIP, Feb 20th, 2001');
						$j('#conceptInfoText3').html('Digital painting in CS5');
					});
					$j('#conceptInfoText1').fadeTo(700,1);				
					$j('#conceptInfoText2').fadeTo(700,0.9);
					$j('#conceptInfoText3').fadeTo(700,0.8);
				
					$j('.fancy-img').attr("href", localURL + conceptFull1[1]);
					$j('html').css('cursor', 'default');
					//blockTrigger = 0;
					alreadyActive = 5;
				}	
			
				if ((activeSlide == 6) && (activeSlide != alreadyActive))
				{
					$j('#conceptInfoText1').fadeTo(700,0);
					$j('#conceptInfoText2').fadeTo(700,0);
					$j('#conceptInfoText3').fadeTo(700,0, function(){
						$j('#conceptInfoText1').html('Alien I - "The Mid-City Series, # 03"');
						$j('#conceptInfoText2').html('WIP, Feb 20th, 2001');
						$j('#conceptInfoText3').html('Digital painting in CS5');
					});
					$j('#conceptInfoText1').fadeTo(700,1);				
					$j('#conceptInfoText2').fadeTo(700,0.9);
					$j('#conceptInfoText3').fadeTo(700,0.8);
				
					$j('.fancy-img').attr("href", localURL + conceptFull1[1]);
					$j('html').css('cursor', 'default');
					//blockTrigger = 0;
					alreadyActive = 6;
				}

				if ((activeSlide == 7) && (activeSlide != alreadyActive))
				{
					$j('#conceptInfoText1').fadeTo(700,0);
					$j('#conceptInfoText2').fadeTo(700,0);
					$j('#conceptInfoText3').fadeTo(700,0, function(){
						$j('#conceptInfoText1').html('Alien I - "The Mid-City Series, # 04"');
						$j('#conceptInfoText2').html('WIP, Feb 20th, 2001');
						$j('#conceptInfoText3').html('Digital painting in CS5');
					});
					$j('#conceptInfoText1').fadeTo(700,1);				
					$j('#conceptInfoText2').fadeTo(700,0.9);
					$j('#conceptInfoText3').fadeTo(700,0.8);
					
					$j('.fancy-img').attr("href", localURL + conceptFull1[1]);
					$j('html').css('cursor', 'default');
					//blockTrigger = 0;
					alreadyActive = 7;
				}	
			}
			if (slidePage == 2)
			{
				$j('#sketchArt').css('background', 'no-repeat url("' + localURL +  sketchArt2[activeSlide] + '")');
			}
			
			else 
			{
				blockTrigger = 0;
			}
			
		}
		else {}
	}
})(jQuery);
