$(function() {			  
	$('.box h2, .category h2, .primary a, .welcome').addClass('cuf');
	
	Cufon.replace('.primary a', 
						  {fontFamily: 'DIN Medium', 
						  hover: false,
						  textShadow: '#fff 2px 2px'
						  }
					  );
	
	Cufon.replace('.front .box h2, .division .box h2, .general .box h2, .power_tools .box h2, .category h2, .welcome', 
						{fontFamily: 'DIN Medium',
						textShadow: '#fff 1px 1px'
						}
					); 	
		
	var domain = top.location.href.match(/(\/\/.*?)\/+/i)[1];
	$('a.external').live('click', (function(e){e.preventDefault();window.open($(this).attr('href'));}));
	$("a[href^='http']:not(a[href^='http:" + domain + "'])").addClass('external');
	
	$('.country .button').hide();
	
	$('ul.multimedia, div.gallery, div.gallery-inc').each(function ()
	{
		$('a', $(this)).lightBox({
			fixedNavigation: true,
			overlayBgColor: '#899dae',
			overlayOpacity: 0.8,
			imageBlank: '/Static/images/lightbox-blank.gif',
			imageLoading: '/Static/images/lightbox-loading.gif',
			imageBtnClose: '/Static/images/lightbox-closelabel.gif',
			imageBtnPrev: '/Static/images/lightbox-btn-prev.gif',
			imageBtnNext: '/Static/images/lightbox-btn-next.gif',
			txtImage: 'Slika',
			txtOf: 'od',
			containerResizeSpeed: 200
	});
	});
});