var sansasoft = {
  src: '/swf/sansasoft.swf'
};

sIFR.activate();

sIFR.replace(sansasoft, {
  selector: 'h1'
  ,wmode: 'transparent'
  ,css: {
  	'.sIFR-root': { 'color': '#FFFFFF', 'font-size': '30px' }
  	,'.wit': { 'color': '#FFFFFF' }
  }
});

sIFR.replace(sansasoft, {
  selector: 'h2'
  ,wmode: 'transparent'
  ,css: {
		'.sIFR-root': { 'color': '#FFFFFF', 'font-size': '14px'},
		'a': { 'color': '#FFFFFF', 'text-decoration': 'none' },
		'a:hover': { 'color': '#FFFFFF', 'text-decoration': 'none'},
		'a:active': { 'color': '#FFFFFF', 'text-decoration': 'none' }
  }
});

sIFR.replace(sansasoft, {
  selector: 'h3'
  ,wmode: 'transparent'
  ,css: {
  	'.sIFR-root': { 'color': '#FFFFFF', 'font-size': '15px'},
		'a': { 'color': '#FFFFFF', 'text-decoration': 'none' },
		'a:hover': { 'color': '#FFFFFF', 'text-decoration': 'none'},
		'a:active': { 'color': '#FFFFFF', 'text-decoration': 'none' }
  }
});

sIFR.replace(sansasoft, {
  selector: 'h4'
  ,wmode: 'transparent'
  ,css: {
  	'.sIFR-root': { 'color': '#FFFFFF', 'font-size': '26px' }
  }
});

$(document).ready(function() {
	$(".thumbLink").click(function() {
		$("#bgmap").load("getItem.php?id="+$(this).attr("rel"));
		return false;
	});
	
	if ($("#formMail")) {
		$("#formMail").submit(function() {
			$.ajax({
				type: "POST",
				url: "/php/mail.php",
				dataType: "xml",
				data: $('#formMail').formSerialize(),
				success: function(xml) {
					if ($("message",xml).text()=="OK") {
						alert('Je bericht is verstuurd!');
						$('#formMail').trigger('reset');
					} else {
						alert($("message",xml).text());
					}
				}
			});
			return false;
		});
	}
});
