﻿/*script for jorbi-bikes.com, made by and copyright: Pedro Grave, 2010*/

jQuery(document).ready (function() {
 imgPath="images/bikes/"
			$("a[rel=topmtb]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'outside',
                'overlayOpacity': 0.7,
                'overlayColor': '#000',
                'centerOnScroll': true,
				'padding'			:1
			});
			$("a[rel=mtmycolor]").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'
			});
			$("#link3").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'
			});

  $('#mtcarsl').click(function(){    /*click link mtb sl*/
 	 $('#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_MTCARISP_green.jpg',
     alt: ''
       });
     $('#link1').attr({
         href: imgPath+'B_MTCARISP_green.jpg',
         rel: 'topmtb',
         title: 'SRAM XX 10CM124 - 1D'
      });
     $('#link2').attr({
         href: 'pdfs/MTB_CARBON_SL_ISP.pdf',
         title: 'Ficha Técnica'
      });
     $('#link3').attr({
         href: 'pdfs/Geom_8.pdf',
         title: 'Geometria'
      });
     $('#th1').attr({
     src: imgPath+'F_MTCARISP_green_th.jpg',
     alt: ''
     }); 
     $('#lkth1').attr({
         href: imgPath+'F_MTCARISP_green.jpg',
         rel: 'topmtb',
         title: 'Quadro - JORBI Test Team (1D)'
      });
     $('#th2').attr({
     src: imgPath+'F_MTCARISP_red_th.jpg',
     alt: ''
     }); 
     $('#lkth2').attr({
         href: imgPath+'F_MTCARISP_red.jpg',
         rel: 'topmtb',
         title: 'Quadro - Vermelho/Branco (2D)'
      });
     });/*final do MTB SL ISP click*/
 
 $('#mtmcolor').click(function(){    /*click link MTB 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/X0.png',
     alt: ''
       });
     $('#link1').attr({
         href: 'images/mycolor/X0.png',
         rel: 'mtmycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th1').attr({
     src: 'images/mycolor/X1_th.jpg',
     alt: ''
       });
     $('#lkth1').attr({
         href: 'images/mycolor/X1.png',
         rel: 'mtmycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th2').attr({
     src: 'images/mycolor/X2_th.jpg',
     alt: ''
       });
     $('#lkth2').attr({
         href: 'images/mycolor/X2.png',
         rel: 'mtmycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th3').attr({
     src: 'images/mycolor/X3_th.jpg',
     alt: ''
       });
     $('#lkth3').attr({
         href: 'images/mycolor/X3.png',
         rel: 'mtmycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th4').attr({
     src: 'images/mycolor/X4_th.jpg',
     alt: ''
       });
     $('#lkth4').attr({
         href: 'images/mycolor/X4.png',
         rel: 'mtmycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th5').attr({
     src: 'images/mycolor/X5_th.jpg',
     alt: ''
       });
     $('#lkth5').attr({
         href: 'images/mycolor/X5.png',
         rel: 'mtmycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th6').attr({
     src: 'images/mycolor/X6_th.jpg',
     alt: ''
       });
     $('#lkth6').attr({
         href: 'images/mycolor/X6.png',
         rel: 'mtmycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th7').attr({
     src: 'images/mycolor/X7_th.jpg',
     alt: ''
       });
     $('#lkth7').attr({
         href: 'images/mycolor/X7.png',
         rel: 'mtmycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th8').attr({
     src: 'images/mycolor/X8_th.jpg',
     alt: ''
       });
     $('#lkth8').attr({
         href: 'images/mycolor/X8.png',
         rel: 'mtmycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th9').attr({
     src: 'images/mycolor/X9_th.jpg',
     alt: ''
       });
     $('#lkth9').attr({
         href: 'images/mycolor/X9.png',
         rel: 'mtmycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th10').attr({
     src: 'images/mycolor/X10_th.jpg',
     alt: ''
       });
     $('#lkth10').attr({
         href: 'images/mycolor/X10.png',
         rel: 'mtmycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th11').attr({
     src: 'images/mycolor/X11_th.jpg',
     alt: ''
       });
     $('#lkth11').attr({
         href: 'images/mycolor/X11.png',
         rel: 'mtmycolor',
         title: 'Programa My Color: Personalização de cores'
   });
     $('#th12').attr({
     src: 'images/mycolor/X12_th.jpg',
     alt: ''
       });
     $('#lkth12').attr({
         href: 'images/mycolor/X12.png',
         rel: 'mtmycolor',
         title: 'Programa My Color: Personalização de cores'
   });
  });/*final do MTB mycolor click*/
  
  $('#mtalufs').click(function(){ /*inicio MTB ALU FS 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_MTFSAL_green.jpg',
     alt: ''
       });
     $('#link1').attr({
         href: imgPath+'B_MTFSAL_green.jpg',
         rel: 'mtfsal',
         title: 'F.2 X.O 10FS123 - Verde (1E)'
       });
     $('#link2').attr({
         href: 'pdfs/MTB_SPORT_ALU_FS.pdf',
         title: 'Ficha Técnica'
      });
     $('#link3').attr({
         href: 'pdfs/Geom_9.pdf',
         title: 'Geometria'
      });
     $('#th1').attr({
     src: imgPath+'B_MT_AL10FS122_2ES1_th.jpg',
     alt: ''
     }); 
     $('#lkth1').attr({
         href: imgPath+'B_MT_AL10FS122_2ES1.jpg',
         rel: 'mtfsal',
         title: 'F.1 XT mix 10FS122 - Vermelho (2E)'
      });
     $('#th2').attr({
     src: imgPath+'F_MTFSAL_RED_th.jpg',
     alt: ''
     }); 
     $('#lkth2').attr({
         href: imgPath+'F_MTFSAL_RED.jpg',
         rel: 'mtfsal',
         title: 'Quadro FS Alu - Vermelho (2E)'
      });
   }); /*final MTB ALU FS click*/
  $('#mtsalu').click(function(){ /*inicio MTB Alu click*/
     $('#th1,#th2,#th3,#th4,#th5,#th6,#tecpdf,#geompdf').show();
	$('#th7,#th8,#th9,#th10,#th11,#th12').hide();
  if ($('#imgbig').is('.imgmcolor')) {
     $('#imgbig').removeClass('imgmcolor').addClass('imgbike'); 
   };    
     $('#imgbig').attr({
     src: imgPath+'B_MT_AL10AM126_3F.jpg',
     alt: ''
       });
     $('#link1').attr({
         href: imgPath+'B_MT_AL10AM126_3F.jpg',
         rel: 'mtal',
         title: 'Bicicleta A.6 X.O - Vermelho/Preto (3F)'
       });
     $('#link2').attr({
         href: 'pdfs/MTB_SPORT_ALU.pdf',
         title: 'Ficha Técnica'
      });
     $('#link3').attr({
         href: 'pdfs/Geom_10.pdf',
         title: 'Geometria'
      });
     $('#th1').attr({
     src: imgPath+'B_MT_AL10AM125_th.jpg',
     alt: ''
     }); 
     $('#lkth1').attr({
         href: imgPath+'B_MT_AL10AM125.jpg',
         rel: 'mtal',
         title: 'Bicicleta A.5 XTR mix - Verde (1F)'
      });
     $('#th2').attr({
     src: imgPath+'B_MT_AL10AM125_1Fside_th.jpg',
     alt: ''
     }); 
     $('#lkth2').attr({
         href: imgPath+'B_MT_AL10AM125_1Fside.jpg',
         rel: 'mtal',
         title: 'Bicicleta A.5 XTR mix - Verde (1F)'
      });
    $('#th3').attr({
     src: imgPath+'B_MT_AL10AM124_2F_th.jpg', //B_MT_AL10AM125_1Fside_th.jpg
     alt: ''
     }); 
     $('#lkth3').attr({
         href: imgPath+'B_MT_AL10AM124_2F.jpg',
         rel: 'mtal',
         title: 'Bicicleta A.4 XT mix - Branco/Vermelho (2F)'
      });
     $('#th4').attr({
     src: imgPath+'F_MT_AL_green_th.jpg',
     alt: ''
     }); 
     $('#lkth4').attr({
         href: imgPath+'F_MT_AL_green.jpg',
         rel: 'mtal',
         title: 'Quadro Sport MTB Hydro Alu - Verde (1F)'
      });
     $('#th5').attr({
     src: imgPath+'F_MT_AL_WhiteRed_th.jpg',
     alt: ''
     }); 
     $('#lkth5').attr({
         href: imgPath+'F_MT_AL_WhiteRed.jpg',
         rel: 'mtal',
         title: 'Quadro Sport MTB Hydro Alu - Branco/Vermelho (2F)'
      });
     $('#th6').attr({
     src: imgPath+'F_MT_AL_BlackRed_th.jpg',
     alt: ''
     }); 
     $('#lkth6').attr({
         href: imgPath+'F_MT_AL_BlackRed.jpg',
         rel: 'mtal',
         title: 'Quadro Sport MTB Hydro Alu - Preto/Vermelho (3F)'
      });
   }); /*final MTB Alu click*/

});