
		$(document).ready(function() {
	
			$("a.zoom").fancybox({
               'frameWidth': 755,
               'frameHeight': 500
            });
			
		});	

    


$(document).ready(function() {
    $('.lb').lightBox();
	$("#newsletter_error").hide();
	$(".newsletter_form").fancybox({
		'scrolling'		: 'no',
		'titleShow'		: false,
		'onClosed'		: function() {
			$("#login_error").hide();
		}
	});
	$("#newsletter_form").bind("submit", function() {
		if ($("#newsletter_name").val().length < 1 || $("#newsletter_email").val().length < 1 || $("#newsletter_phone").val().length < 1 || $("#newsletter_job").val().length < 1 || $("#newsletter_company").val().length < 1) {
			$("#newsletter_error").show();
			$.fancybox.resize();
			return false;
		}
		$.fancybox.showActivity();
		$.ajax({
			type		: "POST",
			cache	: false,
			url		: "",
			data		: $(this).serializeArray(),
			success: function(data) {
				$.fancybox(data);
			}
		});
		return false;
	});
});


$(document).ready(function() {
    $('.lb').lightBox();
	$("#sendtofriend_error").hide();
	$(".sendtofriend_form").fancybox({
		'scrolling'		: 'no',
		'titleShow'		: false,
		'onClosed'		: function() {
			$("#sendtofriend_error").hide();
		}
	});
	$("#sendtofriend_form").bind("submit", function() {
		if ($("#sendtofriend_name").val().length < 1 || $("#sendtofriend_email").val().length < 1 || $("#sendtofriend_fname").val().length < 1 || $("#sendtofriend_femail").val().length < 1) {
			$("#sendtofriend_error").show();
			$.fancybox.resize();
			return false;
		}
		$.fancybox.showActivity();
		$.ajax({
			type		: "POST",
			cache	: false,
			url		: "",
			data		: $(this).serializeArray(),
			success: function(data) {
				$.fancybox(data);
			}
		});
		return false;
	});
});


$(document).ready(function() {
    $('.lb').lightBox();
	$("#contact_error").hide();
	$(".contact_form").fancybox({
		'scrolling'		: 'no',
		'titleShow'		: false,
		'onClosed'		: function() {
			$("#contact_error").hide();
		}
	});
	$("#contact_form").bind("submit", function() {
		if ($("#contact_name").val().length < 1 || $("#contact_email").val().length < 1 || $("#contact_job").val().length < 1 || $("#contact_company").val().length < 1 || $("#contact_phone").val().length < 1 ) {
			$("#contact_error").show();
			$.fancybox.resize();
			return false;
		}
		$.fancybox.showActivity();
		$.ajax({
			type		: "POST",
			cache	: false,
			url		: "",
			data		: $(this).serializeArray(),
			success: function(data) {
				$.fancybox(data);
			}
		});
		return false;
	});
});




function sendmail() {
	
	fireEvent(document.getElementById("activatepopup"),'click');
}
function clickLink(linkobj) {
     if (linkobj.getAttribute('onclick') == null) {
          if (linkobj.getAttribute('href')) document.location = linkobj.getAttribute('href');
     }
     else linkobj.onclick();
}


function trigger() {
	setTimeout("clickLink(document.getElementById('activatepopup'))",15000);
}


$(document).ready(function() {
	$("#splash-outer img").removeAttr("title");
	$("#navbar-inner a").removeAttr("title");
	$("#sidebar-left a").removeAttr("title");
	$("#splash-outer img").removeAttr("alt");

    $('a.lb').lightBox();

});



