﻿/*script for jorbi-bikes.com, made by and copyright: Pedro Grave, 2010*/

jQuery(document).ready (function() {
 imgPath="images/bikes/"
			$("a[rel=jroupa]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'outside',
                'overlayOpacity': 0.7,
                'overlayColor': '#000',
                'centerOnScroll': true,
				'padding'			:1
			});
			$("#pqp").fancybox({
			'width'				: '90%',
			'height'			: '75%',
	        'autoScale'     	: false,
	        'transitionIn'		: 'none',
			'transitionOut'		: 'none',
                'overlayOpacity': 0.7,
                'overlayColor': '#000',
                'centerOnScroll': true,
			'type'				: 'iframe'
			});
			$("#drpouts").fancybox({
			'width'				: '90%',
			'height'			: '75%',
	        'autoScale'     	: false,
	        'transitionIn'		: 'none',
			'transitionOut'		: 'none',
                'overlayOpacity': 0.7,
                'overlayColor': '#000',
                'centerOnScroll': true,
			'type'				: 'iframe'
			});
			$("#forks").fancybox({
			'width'				: '90%',
			'height'			: '75%',
	        'autoScale'     	: false,
	        'transitionIn'		: 'none',
			'transitionOut'		: 'none',
                'overlayOpacity': 0.7,
                'overlayColor': '#000',
                'centerOnScroll': true,
			'type'				: 'iframe'
			});
			$("#tabela").fancybox({
			'width'				: '90%',
			'height'			: '75%',
	        'autoScale'     	: false,
	        'transitionIn'		: 'none',
			'transitionOut'		: 'none',
                'overlayOpacity': 0.7,
                'overlayColor': '#000',
                'centerOnScroll': true,
			'type'				: 'iframe'
			});
			$("#link2").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'
			});

  $('#roupa').click(function(){    /*click link roupa Jorbi*/
 	 $('#th1,#th2,#tecpdf').show();
//   $("#th3,#th4,#th5,#th6,#th7,#th8,#th9,#th10,#th11,#th12").hide();    
  if ($('#imgbig').is('.imgmcolor')) {
     $('#imgbig').removeClass('imgmcolor').addClass('imgbike');
   };    
     $('#imgbig').attr({
     src: 'images/Acc/ROUPA_JORBI_NORM.jpg',
     alt: ''
       });
     $('#link1').attr({
         href: 'images/Acc/ROUPA_JORBI_NORM.jpg',
         rel: 'jroupa',
         title: 'Roupa JORBI'
      });
     $('#link2').attr({
         href: 'pdfs/JORBI 10 ACC.pdf',
         title: 'Tabela'
      });
     $('#th1').attr({
     src: 'images/Acc/ROUPA_JORBI_TAVIRA_th.jpg',
     alt: ''
     }); 
     $('#lkth1').attr({
         href: 'images/Acc/ROUPA_JORBI_TAVIRA.jpg',
         rel: 'jroupa',
         title: 'Roupa JORBI TEAM TAVIRA'
      });
     $('#th2').attr({
     src: 'images/Acc/ROUPA_JORBI_TTEAM_th.jpg',
     alt: ''
     }); 
     $('#lkth2').attr({
         href: 'images/Acc/ROUPA_JORBI_TTEAM.jpg',
         rel: 'jroupa',
         title: 'Roupa JORBI TEST TEAM'
      });
     });/*final do MTB SL ISP click*/
 

});