		$(document).ready(function(){
			try {
			$("a[rel^='prettyPhoto']").prettyPhoto({
				animationSpeed: 'normal', /* fast/slow/normal */
				padding: 40, /* padding for each side of the picture */
				opacity: 0.35, /* Value betwee 0 and 1 */
				showTitle: true, /* true/false */
				allowresize: true, /* true/false */
				counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
				theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
				callback: function(){}
			}); }
			catch(e) {};
			
			try {
				$(".newsticker").newsTicker();				
			} catch(e) {}		
			
			$(".culture_change_bg").click(function() {
				
				var ln = window.location; 
				if(ln.href.match(/fr/)) { 
					 ln.href = ln.href.replace(/\/fr/, '/bg');
					 
				} else if(!ln.href.match(/\/bg/)) {
					 ln.href += '/bg';
					 
				}
				
				return false;
				
			});
			
			$(".culture_change_fr").click(function() {
				
				var ln = window.location; 
				if(ln.href.match(/bg/)) { 
					 ln.href = ln.href.replace(/\/bg/, '/fr');
					 
				} else if(!ln.href.match(/\/fr/)) {
					 ln.href += '/fr';
					 
				}
				return false;
				
			});
			
		});

	
