// JavaScript Document
$(document).ready(function() {
		
		/* START ROLLOVER */
		var cache = [];
		
		$("img.roll, input.roll").each(function() {
			//let's preload
			var cacheImage = document.createElement('img');
			cacheImage.src = this.src.replace(/_off([_\.])/, '_on$1');
			cache.push(cacheImage);
		});
		
														 
		$("img.roll, input.roll").hover(function(){
			//alert(this.src);
			this.src=this.src.replace(/_off([_\.])/, '_on$1');
		},
		function(){
			this.src=this.src.replace(/_on([_\.])/, '_off$1');
		});
		
		/* END ROLLOVER */
		
		//$("a[class='lightbox']").colorbox();

	if ($('#bt_switch_en').length > 0) {
		$('#bt_switch_en').hover(
			function() {
				$('#bt_en_hover').addClass('show');
			},
			function() {
				$('#bt_en_hover').removeClass('show');
			}
		)
	}
	
	if ($('#bt_switch_fr').length > 0) {
		$('#bt_switch_fr').hover(
			function() {
				$('#bt_fr_hover').addClass('show');
			},
			function() {
				$('#bt_fr_hover').removeClass('show');
			}
		)
	}

});