Cufon.replace('h1, h2, h3, p.excerpt, ul.galleryNav a, .side .archive h3');
//Cufon.replace('.side .archive a', {hover:true});
//Cufon.replace('.globalNav ul a', {textShadow:'0 -1px 0 #fff', hover:true});
//Cufon.replace('.globalNav ul li.active a', {textShadow:'0 1px 0 #000'});
Cufon.replace('a.midBtn', {textShadow:'0 1px 0 #f9edc9', hover: {textShadow:'0 -1px 0 #000'}});
Cufon.replace('a.bigBtn', {textShadow:'0 1px 0 #f9edc9', fontFamily: 'Eurostile2', hover: {textShadow:'0 -1px 0 #000'}});
Cufon.replace('.newsBlurb a, .side .archive ul.newsList a', {ignore: { span: true },textShadow:'1px 1px #fff', fontFamily: 'Eurostile2', hover:true });
Cufon.replace('.videoBlurb a');
Cufon.replace('a.sthlmbtn span.date, a.sthlmbtn p', { fontFamily: 'Eurostile2', hover: {color:'#dcbe82'} });
Cufon.replace('a.nordsydbtn span.date, a.nordsydbtn p', { fontFamily: 'Eurostile2', hover: {color:'#dcbe82'} });
Cufon.replace('a.nordsydbtn2 span.date, a.nordsydbtn2 p', { fontFamily: 'Eurostile2' });
	
$(document).ready(function(){
	
	$('a.sthlmbtn').hover(function(){
		Cufon.replace($(this).find('p'), {color:'#dcbe82', fontFamily: 'Eurostile2'});
	}, function(){
		Cufon.replace($(this).find('p'), {color:'#382225', fontFamily: 'Eurostile2'});
	});	
	
	$('a.nordsydbtn').hover(function(){
		Cufon.replace($(this).find('p'), {color:'#dcbe82', fontFamily: 'Eurostile2'});
	}, function(){
		Cufon.replace($(this).find('p'), {color:'#382225', fontFamily: 'Eurostile2'});
	});	
	
	$('.videoBlurb, ul.galleryVideos li').hover(function(){
		$(this).addClass('hover');
	}, function(){
		$(this).removeClass('hover');
	});
	$('.newsBlurb').hover(function(){
		$(this).addClass('hover');
		Cufon.replace($(this).find('a'), {textShadow:'1px 1px #fff', color: '#382225', fontFamily: 'Eurostile2'});
	}, function(){
		$(this).removeClass('hover');
		Cufon.replace($(this).find('a'), {textShadow:'1px 1px #fff', color: '#BE9C59', fontFamily: 'Eurostile2'});
	});
	
	$('.newsBlurb,').click(function(e){
			var url = $(this).find('a').attr('href');
			var target = $(this).find('a').attr('target')
	
			if (url != null) {
				if (target != null && target == "_blank")
					window.open(url, "campaign");
				else
					window.location = url;
			} else {
				return false;
			}
	});
		
	$('.videoBlurb, ul.galleryVideos li').click(function(e){
		if (!$(e.target).is('a')) {
			$(this).find('a').trigger('click');	
		}
		return true;
	});
	
	if($('.relImg .slide img').size() > 1) {
		
		$('.relImg .slide').cycle({timeout:6000});
			
	}
		
		
	/*$('.galleryVideos a, .videoBlurb a').fancybox({
		'type':'iframe',
		'padding':0,
		'margin':0,
		'width':960,
		'height':540,
		'overlayColor':'#000',
		'overlayOpacity':'.8'	
	});*/
	/* This is basic - uses default settings */
	
	/*$(".galleryView li a").fancybox();*/
});

function pageLoad(sender, args) {
    Cufon.refresh();
}

$(function () {
     $(".remember").each(function () {
         $(this).data("placeholder", $(this).val());
     });
     $(".remember").focus(function () {
         if ($(this).val() == $(this).data("placeholder"))
             $(this).val('');
     });
     $(".remember").blur(function () {
         if ($(this).val() == '')
             $(this).val($(this).data("placeholder"));
     });
});

