/* Author: Sodium Halogen */

$(document).ready(function(){
	
	$(".contact-us").click(function(){
		$("#contact").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	$('.launch,.deal-thumbs a').fancybox({
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic'
	});
	$(".tip").tipTip();
	$("#contact form, #sample-form").validate();
	$('a.blank').each(function() {
		var a = new RegExp('/' + window.location.host + '/');
		if(!a.test(this.href)) {
			$(this).click(function(event) {
				event.preventDefault();
				event.stopPropagation();
				window.open(this.href, '_blank');
			});
		}
	});
});
