﻿/*script for jorbi-bikes.com, made by and copyright: Pedro Grave, 2010*/

jQuery(document).ready (function() {
 imgPath="images/bikes/"
 /*
 rcisp1=""  
 rcisp2=""  
 rcisp3=""  
 rcisp4=""
 rccarb=""     
 rccar1=""
 rccar2=""
 rccar3=""
 rccar4=""
 rccar5=""
 rccar6=""*/

			$("a[rel=toproad]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'outside',
                'overlayOpacity': 0.7,
                'overlayColor': '#000',
                'centerOnScroll': true,
				'padding'			:1
			});
			$("a[rel=mycolor]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'outside',
                'overlayOpacity': 0.7,
                'overlayColor': '#000',
                'centerOnScroll': true,
				'padding'			:1
			});
			$("#link2").fancybox({
			'width'				: '90%',
			'height'			: '75%',
	        'autoScale'     	: false,
	        'transitionIn'		: 'none',
			'transitionOut'		: 'none',
                'overlayOpacity': 0.7,
                'overlayColor': '#000',
                'centerOnScroll': true,
			'type'				: 'iframe',
			'padding'           :5
			});
			$("#link3").fancybox({
			'width'				: '90%',
			'height'			: '75%',
	        'autoScale'     	: false,
	        'transitionIn'		: 'none',
			'transitionOut'		: 'none',
                'overlayOpacity': 0.7,
                'overlayColor': '#000',
                'centerOnScroll': true,
			'type'				: 'iframe',
			'padding'           :5
			});
			$("#chrocar").fancybox({
			'width'				: '90%',
			'height'			: '75%',
	        'autoScale'     	: false,
	        'transitionIn'		: 'none',
			'transitionOut'		: 'none',
                'overlayOpacity': 0.7,
                'overlayColor': '#000',
                'centerOnScroll': true,
			'type'				: 'iframe'
			});

			$("#pesos").fancybox({
			'width'				: '90%',
			'height'			: '75%',
	        'autoScale'     	: false,
	        'transitionIn'		: 'none',
			'transitionOut'		: 'none',
                'overlayOpacity': 0.7,
                'overlayColor': '#000',
                'centerOnScroll': true,
			'type'				: 'iframe'
			});

  $('#rcsl').click(function(){    /*click link rc sl*/
 	 $('#th1,#th2,#th3,#tecpdf,#geompdf').show();
   $("#th4,#th5,#th6,#th7,#th8,#th9,#th10,#th11,#th12").hide();    
  if ($('#imgbig').is('.imgmcolor')) {
     $('#imgbig').removeClass('imgmcolor').addClass('imgbike');
   };    
   rcispb="B_RC_CARSLISP_119_1A.jpg";
     $('#imgbig').attr({
     src: imgPath + rcispb,
     alt: ''
       });
     $('#link1').attr({
         href: imgPath + rcispb,
         rel: 'toproad',
         title: 'Super Record 11s Limited Edition 10CR119 - 1A'
      });
     $('#link2').attr({
         href: 'pdfs/RC_CARBON_SL_ISP.pdf',
         title: 'Ficha Técnica'
      });
     $('#link3').attr({
         href: 'pdfs/Geom_1.pdf',
         title: 'Geometria'
      });
     $('#th1').attr({
     src: imgPath+'B_RC_CARSLISP_114_2A_th.jpg',
     alt: ''
     }); 
     $('#lkth1').attr({
         href: imgPath+'B_RC_CARSLISP_114_2A.jpg',
         rel: 'toproad',
         title: 'Ultegra 10s  10CR114 - 2A'
      });
     $('#th2').attr({
     src: imgPath+'F_RC_CARSLISP_Green_th.jpg',
     alt: ''
     }); 
     $('#lkth2').attr({
         href: imgPath+'F_RC_CARSLISP_Green.jpg',
         rel: 'toproad',
         title: 'Quadro - Team (1A)'
      });
     $('#th3').attr({
     src: imgPath+'F_RC_CARSLISP_Red_th.jpg',
     alt: ''
     }); 
     $('#lkth3').attr({
         href: imgPath+'F_RC_CARSLISP_Red.jpg',
         rel: 'toproad',
         title: 'Quadro - Vermelho/Branco (2A)'
      });
     });/*final do RC SL ISP click*/

  $('#mcolor').click(function(){    /*click link my color*/
     $('#th1,#th2,#th3,#th4,#th5,#th6,#th7,#th8,#th9,#th10,#th11,#th12').show();
     $('#tecpdf,#geompdf').hide();
  if ($('#imgbig').is('.imgbike')) {
     $('#imgbig').removeClass('imgbike').addClass('imgmcolor'); 
   };
     $('#imgbig').attr({
     src: 'images/mycolor/R0.png',
     alt: ''
       });
     $('#link1').attr({
         href: 'images/mycolor/R0.png',
         rel: 'mycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th1').attr({
     src: 'images/mycolor/R1_th.jpg',
     alt: ''
       });
     $('#lkth1').attr({
         href: 'images/mycolor/R1.png',
         rel: 'mycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th2').attr({
     src: 'images/mycolor/R2_th.jpg',
     alt: ''
       });
     $('#lkth2').attr({
         href: 'images/mycolor/R2.png',
         rel: 'mycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th3').attr({
     src: 'images/mycolor/R3_th.jpg',
     alt: ''
       });
     $('#lkth3').attr({
         href: 'images/mycolor/R3.png',
         rel: 'mycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th4').attr({
     src: 'images/mycolor/R4_th.jpg',
     alt: ''
       });
     $('#lkth4').attr({
         href: 'images/mycolor/R4.png',
         rel: 'mycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th5').attr({
     src: 'images/mycolor/R5_th.jpg',
     alt: ''
       });
     $('#lkth5').attr({
         href: 'images/mycolor/R5.png',
         rel: 'mycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th6').attr({
     src: 'images/mycolor/R6_th.jpg',
     alt: ''
       });
     $('#lkth6').attr({
         href: 'images/mycolor/R6.png',
         rel: 'mycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th7').attr({
     src: 'images/mycolor/R7_th.jpg',
     alt: ''
       });
     $('#lkth7').attr({
         href: 'images/mycolor/R7.png',
         rel: 'mycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th8').attr({
     src: 'images/mycolor/R8_th.jpg',
     alt: ''
       });
     $('#lkth8').attr({
         href: 'images/mycolor/R8.png',
         rel: 'mycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th9').attr({
     src: 'images/mycolor/R9_th.jpg',
     alt: ''
       });
     $('#lkth9').attr({
         href: 'images/mycolor/R9.png',
         rel: 'mycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th10').attr({
     src: 'images/mycolor/R10_th.jpg',
     alt: ''
       });
     $('#lkth10').attr({
         href: 'images/mycolor/R10.png',
         rel: 'mycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th11').attr({
     src: 'images/mycolor/R11_th.jpg',
     alt: ''
       });
     $('#lkth11').attr({
         href: 'images/mycolor/R11.png',
         rel: 'mycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th12').attr({
     src: 'images/mycolor/R12_th.jpg',
     alt: ''
       });
     $('#lkth12').attr({
         href: 'images/mycolor/R12.png',
         rel: 'mycolor',
         title: 'Programa My Color: Personalização de cores'
   });
  });/*final do mycolor click*/
  
  $('#rccarbon').click(function(){ /*inicio RC Carbon click*/
     $('#th1,#th2,#th3,#th4,#th5,#tecpdf,#geompdf').show();
	$('#th6,#th7,#th8,#th9,#th10,#th11,#th12').hide();
  if ($('#imgbig').is('.imgmcolor')) {
     $('#imgbig').removeClass('imgmcolor').addClass('imgbike'); 
   };    
     $('#imgbig').attr({
     src: imgPath+'B_RC_10CR216_1B.jpg',
     alt: ''
       });
     $('#link1').attr({
         href: imgPath+'B_RC_10CR216_1B.jpg',
         rel: 'rccarbon',
         title: 'Racing Carbono Chorus 11s - Verde (1B)'
       });
     $('#link2').attr({
         href: 'pdfs/RC_CARBON.pdf',
         title: 'Ficha Técnica'
      });
     $('#link3').attr({
         href: 'pdfs/Geom_2.pdf',
         title: 'Geometria'
      });
     $('#th1').attr({
     src: imgPath+'B_RC_10CR215_2B_th.jpg',
     alt: ''
     }); 
     $('#lkth1').attr({
         href: imgPath+'B_RC_10CR215_2B.jpg',
         rel: 'rccarbon',
         title: 'Racing Carbono Ultegra 10s - Vermelho (2B)'
      });
     $('#th2').attr({
     src: imgPath+'B_RC_10CR214_3B_th.jpg',
     alt: ''
     }); 
     $('#lkth2').attr({
         href: imgPath+'B_RC_10CR214_3B.jpg',
         rel: 'rccarbon',
         title: 'Racing Carbono Athena 11s - Laranja (3B)'
      });
     $('#th3').attr({
     src: imgPath+'F_RC_CAR_Green_th.jpg',
     alt: ''
     }); 
     $('#lkth3').attr({
         href: imgPath+'F_RC_CAR_Green.jpg',
         rel: 'rccarbon',
         title: 'Quadro - Verde (1B)'
      });
     $('#th4').attr({
     src: imgPath+'F_RC_CAR_Red_th.jpg',
     alt: ''
     }); 
     $('#lkth4').attr({
         href: imgPath+'F_RC_CAR_Red.jpg',
         rel: 'rccarbon',
         title: 'Quadro - Vermelho (2B)'
      });
     $('#th5').attr({
     src: imgPath+'F_RC_CAR_Orange_th.jpg',
     alt: ''
     }); 
     $('#lkth5').attr({
         href: imgPath+'F_RC_CAR_Orange.jpg',
         rel: 'rccarbon',
         title: 'Quadro - Laranja (3B)'
      });
   }); /*final RC Carbon click*/
  
  $('#champalcar').click(function(){ /*inicio Champion Alloy/Carbon click*/
     $('#th1,#th2,#th3,#tecpdf,#geompdf').show();
	$('#th4,#th5,#th6,#th7,#th8,#th9,#th10,#th11,#th12').hide();
  if ($('#imgbig').is('.imgmcolor')) {
     $('#imgbig').removeClass('imgmcolor').addClass('imgbike'); 
   };    
     $('#imgbig').attr({
     src: imgPath+'B_RC_10AR114_6C.jpg',
     alt: ''
       });
     $('#link1').attr({
         href: imgPath+'B_RC_10AR114_6C.jpg',
         rel: 'rcalcarbon',
         title: 'Racing Alu/Carbon Ultegra 10s - Branco/Dourado (6C)'
       });
     $('#link2').attr({
         href: 'pdfs/CHAMPION_ALCARBON.pdf',
         title: 'Ficha Técnica'
      });
     $('#link3').attr({
         href: 'pdfs/Geom_3.pdf',
         title: 'Geometria'
      });
     $('#th1').attr({
     src: imgPath+'F_RC_ALCAR_Black_th.jpg',
     alt: ''
     }); 
     $('#lkth1').attr({
         href: imgPath+'F_RC_ALCAR_Black.jpg',
         rel: 'rcalcarbon',
         title: 'Quadro Alu/Carbon - Preto (1C)'
      });
     $('#th2').attr({
     src: imgPath+'F_RC_ALCAR_Green_th.jpg',
     alt: ''
     }); 
     $('#lkth2').attr({
         href: imgPath+'F_RC_ALCAR_Green.jpg',
         rel: 'rcalcarbon',
         title: 'Quadro Alu/Carbon - Verde (3C)'
      });
     $('#th3').attr({
     src: imgPath+'F_RC_ALCAR_Gold_th.jpg',
     alt: ''
     }); 
     $('#lkth3').attr({
         href: imgPath+'F_RC_ALCAR_Gold.jpg',
         rel: 'rcalcarbon',
         title: 'Quadro Alu/Carbon - Branco/Dourado (6C)'
      });
   }); /*final RC Alloy/Carbon click*/

  $('#champal').click(function(){ /*inicio Champion Alloy click*/
     $('#th1,#th2,#th3,#th4,#tecpdf,#geompdf').show();
	$('#th5,#th6,#th7,#th8,#th9,#th10,#th11,#th12').hide();
  if ($('#imgbig').is('.imgmcolor')) {
     $('#imgbig').removeClass('imgmcolor').addClass('imgbike'); 
   };    
     $('#imgbig').attr({
     src: imgPath+'B_RC_10AR212_4C.jpg',
     alt: ''
       });
     $('#link1').attr({
         href: imgPath+'B_RC_10AR212_4C.jpg',
         rel: 'rcal',
         title: 'Racing Alu SORA 10S - Branco/Vermelho (4C)'
       });
     $('#link2').attr({
         href: 'pdfs/CHAMPION_ALU.pdf',
         title: 'Ficha Técnica'
      });
     $('#link3').attr({
         href: 'pdfs/Geom_4.pdf',
         title: 'Geometria'
      });
     $('#th1').attr({
     src: imgPath+'B_RC_10AR211_2C_th.jpg',
     alt: ''
     }); 
     $('#lkth1').attr({
         href: imgPath+'B_RC_10AR211_2C.jpg',
         rel: 'rcal',
         title: 'Racing Alu XENON 9S - Preto/Dourado (2C)'
      });
     $('#th2').attr({
     src: imgPath+'F_RC_AL_BlackGold_th.jpg',
     alt: ''
     }); 
     $('#lkth2').attr({
         href: imgPath+'F_RC_AL_BlackGold.jpg',
         rel: 'rcal',
         title: 'Quadro Alu - Preto/Dourado (2C)'
      });
     $('#th3').attr({
     src: imgPath+'F_RC_AL_WhiteRed_th.jpg',
     alt: ''
     }); 
     $('#lkth3').attr({
         href: imgPath+'F_RC_AL_WhiteRed.jpg',
         rel: 'rcal',
         title: 'Quadro Alu - Branco/Vermelho (4C)'
      });
     $('#th4').attr({
     src: imgPath+'F_RC_AL_WhiteOrange_th.jpg',
     alt: ''
     }); 
     $('#lkth4').attr({
         href: imgPath+'F_RC_AL_WhiteOrange.jpg',
         rel: 'rcal',
         title: 'Quadro Alu - Branco/Laranja (5C)'
      });
   }); /*final RC Alloy click*/

  $('#chroalu').click(function(){ /*inicio TT Alloy click*/
$("#th2,#th3,#th4,#th5,#th6,#th7,#th8,#th9,#th10,#th11,#th12").hide(); 
    $('#tecpdf,#geompdf').show();
  if ($('#imgbig').is('.imgmcolor')) {
     $('#imgbig').removeClass('imgmcolor').addClass('imgbike'); 
   };    
     $('#imgbig').attr({
     src: imgPath+'F_RC_TTA_Green.jpg',
     alt: ''
       });
     $('#link1').attr({
         href: imgPath+'F_RC_TTA_Green.jpg',
         rel: 'rctta',
         title: 'Quadro Chrono/TT Alu - Verde (3T)'
       });
     $('#link2').attr({
         href: 'pdfs/CHRONO_ALU_TT.pdf',
         title: 'Ficha Técnica'
      });
     $('#link3').attr({
         href: 'pdfs/Geom_5.pdf',
         title: 'Geometria'
      });
     $('#lkth1').attr({
         href: imgPath+'F_RC_TTA_Gr_b.jpg',
         rel: 'rctta',
         title: 'Quadro Chrono/TT Alu - Verde'
      });
     $('#th1').attr({
     src: imgPath+'F_RC_TTA_Gr_b_th.jpg',
     alt: ''
     }); 
   }); /*final TT Alloy click*/

  $('#pista').click(function(){ /*inicio Pista click*/
     $('#th1,#th2,#tecpdf,#geompdf').show();
	$('#th3,#th4,#th5,#th6,#th7,#th8,#th9,#th10,#th11,#th12').hide();
  if ($('#imgbig').is('.imgmcolor')) {
     $('#imgbig').removeClass('imgmcolor').addClass('imgbike'); 
   };    
     $('#imgbig').attr({
     src: imgPath+'B_RC_10PIA11_1P.jpg',
     alt: ''
       });
     $('#link1').attr({
         href: imgPath+'B_RC_10PIA11_1P.jpg',
         rel: 'pista',
         title: 'Pista Primato - Verde Team (1P)'
       });
     $('#link2').attr({
         href: 'pdfs/PISTA_ALU.pdf',
         title: 'Ficha Técnica'
      });
     $('#link3').attr({
         href: 'pdfs/Geom_7.pdf',
         title: 'Geometria'
      });
     $('#th1').attr({
     src: imgPath+'F_RC_PISTA_Green_th.jpg',
     alt: ''
     }); 
     $('#lkth1').attr({
         href: imgPath+'F_RC_PISTA_Green.jpg',
         rel: 'pista',
         title: 'Quadro Pista Alu - Verde (1P)'
      });
     $('#th2').attr({
     src: imgPath+'F_RC_Pista_White_th.jpg',
     alt: ''
     }); 
     $('#lkth2').attr({
         href: imgPath+'F_RC_Pista_White.jpg',
         rel: 'pista',
         title: 'Quadro Pista Alu - Branco (2P)'
      });
    }); /*final RC Alloy click*/

});
