/*
		********************************************
		*                                          *
		* Code: http://www.candoo.eu               *
		* Date: 07.01.2009                         *
		* Support: info@candoo.eu                  *
		*                                          *
		********************************************
*/


/* -------------------------------------------------------------------------------------------------
                                             FUNCTIONS
------------------------------------------------------------------------------------------------- */

dom = jQuery.noConflict(true);

function blankLinks() {
	dom("a[rel='e'][href]").attr("target", "_blank");
}

function innerLabel(input, label) {
	dom(input).focus(function() {
		if (dom(this).val() == label) {
			dom(this).val("");
		}
	});

	dom(input).blur(function() {
		if (dom(this).val() == '') {
			dom(this).val(label);
		}
	});
}

/* -------------------------------------------------------------------------------------------------
                                           DOCUMENT READY
------------------------------------------------------------------------------------------------- */

dom(document).ready(function() {

	dom("#footer ul li:last").addClass("noBorder");
	dom("#map-interactive-fg").fadeTo("slow", 0.58);
	dom("#discount").show("slow").fadeTo("slow", 0.8);	
	dom("#discount .closeMe").click(function() {
		dom("#discount").slideUp("slow");
	});
	blankLinks();
	
	var count = dom(".working-with").length;
	
	if (count > 0) {
		dom(".working-with").colorbox({width:"50%", inline:true, href:"#working-with-inner"});	
	}
	

});


