/* Author: Rafael Ehlers

*/


(function($){
		  
	$(document).ready(function(){
		
		// -------------------------------------------------------------------------------------------------------
		// Cycle - slider jQuery plugin 
		// -------------------------------------------------------------------------------------------------------
		
		$('#slideshow-index ul').cycle({
			timeout: 7000,// milliseconds between slide transitions (0 to disable auto advance)
			fx: 'fade',// choose your transition type, ex: fade, scrollUp, shuffle, etc...            
			pager: '#index-slideshow-pager',// selector for element to use as pager container
			delay: 0, // additional delay (in ms) for first transition (hint: can be negative)
			speed: 1000,  // speed of the transition (any valid fx speed value) 
			pause: true,// true to enable "pause on hover"
			cleartypeNoBg: true,// set to true to disable extra cleartype fixing (leave false to force background color setting on slides)
			pauseOnPagerHover: 0 // true to pause when hovering over pager link
		});
		
		
		// -------------------------------------------------------------------------------------------------------
		// Cufon - font replacement
		// -------------------------------------------------------------------------------------------------------
		
		if ( ! ( $.browser.msie && ($.browser.version == 6) ) ){ // only apply cufon on modern browsers
		
			Cufon.replace('h1, h2, h3, h4, h5, h6, #header-menu li, #header-menu li a, #footer-menu li, #footer-menu li a', {hover: true});
		}
		
		// -------------------------------------------------------------------------------------------------------
		// Tabify
		// -------------------------------------------------------------------------------------------------------
		
		$('#linhas-durafloor').tabify();
		$('#linhas-eucafloor').tabify();
		$('#linhas-floorest').tabify();
		
		/* ColorBox */
		
		$("#vintage a").colorbox({rel:'vintage',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		$("#design a").colorbox({rel:'design',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		$("#studio a").colorbox({rel:'studio',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		$("#nature a").colorbox({rel:'nature',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		$("#way a").colorbox({rel:'way',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		$("#ritz a").colorbox({rel:'ritz',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		$("#premium a").colorbox({rel:'premium',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		$("#style a").colorbox({rel:'style',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		
		$("#evidence a").colorbox({rel:'evidence',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		$("#rustic a").colorbox({rel:'rustic',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		$("#classic a").colorbox({rel:'classic',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		$("#elegance a").colorbox({rel:'elegance',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		$("#prime a").colorbox({rel:'prime',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		
		$("#wood a").colorbox({rel:'wood',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		$("#blissclean a").colorbox({rel:'blissclean',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		$("#blisstouch a").colorbox({rel:'blisstouch',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		$("#bevel a").colorbox({rel:'bevel',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		$("#homeoffice a").colorbox({rel:'homeoffice',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		
		$(".lojas").colorbox({rel:'lojas',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		
		$("#horizontal a").colorbox({rel:'horizontal',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		
		$("#vertical a").colorbox({rel:'vertical',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		
		$("#plissada a").colorbox({rel:'plissada',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		
		$("#celular a").colorbox({rel:'celular',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		
		$("#rolo a").colorbox({rel:'rolo',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		
		$("#romana a").colorbox({rel:'romana',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		
		$("#painel a").colorbox({rel:'painel',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		
		$("#sheer a").colorbox({rel:'sheer',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		
		$("#seychelles a").colorbox({rel:'seychelles',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});
		
		$("#beaulieu a").colorbox({rel:'beaulieu',transition:"fade",scalePhotos:true,current:"Imagem {current} de {total}",innerWidth:900,maxHeight:"90%"});		
		
		$(".youtube").colorbox({iframe:true, innerWidth:853, innerHeight:480});
	});

})(window.jQuery);
