// JavaScript Document
function isValidEmail(str) { 
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if (!filter.test(str)){
	return false
	}else{
		return true
	}
}
$(document).ready(function() {
	$("a[rel='gallery']").colorbox({transition:"fade"});
	$('#flashContent').flash({
		swf: 'websiteCS5-still.swf',
		width: 1050,
		wmode: 'transparent',
		allowFullScreen: true,
		height: 660	});
		
	$('#flashContent').center();
	
	$(window).resize(function() {
		$('#flashContent').center();
	});
	
	
});

function launchLb(){
$('a.first').trigger('click');
}

jQuery.fn.center = function () {
    this.css("position","absolute");
    this.css("top", ( $(window).height() - this.height() ) / 2+$(window).scrollTop() + "px");
    this.css("left", ( $(window).width() - this.width() ) / 2+$(window).scrollLeft() + "px");
    return this;
}

