jQuery(window).load(function() {
	jQuery('div.top_menu ul li').hover(function() {
		jQuery(this).addClass('hover');  
	}, function() {
		jQuery(this).removeClass('hover');
	});
	
	jQuery('a[rel=external]').attr('target','_blank');
	Layout.setHeight(0);
	
	
	jQuery('input[type=password]').css('font-family', 'arial');
});

jQuery(document).ready(function() {
   jQuery('input[type=radio],input[type=checkbox]').css('border','0px none');
   jQuery(document).pngFix();
});
var Layout = {
	
	setHeight	: function(extraHeight) {
		var maxHeight = 0;
		if (jQuery('div.content_wrapper div.lft').height() > maxHeight)
			maxHeight = jQuery('div.content_wrapper > div.lft').height();
		if (jQuery('div.content_wrapper div.middle').height() > maxHeight)
			maxHeight = jQuery('div.content_wrapper > div.middle').height();
		if (jQuery('div.content_wrapper div.rgt').height() > maxHeight)
			maxHeight = jQuery('div.content_wrapper > div.rgt').height();
		maxHeight = maxHeight + extraHeight;
		jQuery('div.content_wrapper > div.lft').css({height: maxHeight+70 + 'px'});
		jQuery('div.content_wrapper > div.rgt').css({height: maxHeight +70+ 'px'});
		jQuery('div.content_wrapper > div.middle').css({height: maxHeight+70 + 'px'});	
	}
};

var Woonwinkel = {

	adresses		: {
		1			: 'Reclamewerkt<br/>Postbus 23<br/>8070 AA Nunspeet<br/>T 0341 41 19 39<br/><a href="mailto:info@woonstijl.nl">info@woonstijl.nl</a><br/><a href="http://www.woonstijl.nl" target="_blank">www.woonstijl.nl</a>',
		2			: 'Reclamewerkt<br/>Postbus 23<br/>8070 AA Nunspeet<br/>T 0341 41 19 39<br/><a href="mailto:info@woonstijl.nl">info@woonstijl.nl</a><br/><a href="http://www.woonstijl.nl" target="_blank">www.woonstijl.nl</a>',
		3			: 'Reclamewerkt<br/>Postbus 23<br/>8070 AA Nunspeet<br/>T 0341 41 19 39<br/><a href="mailto:info@woonstijl.nl">info@woonstijl.nl</a><br/><a href="http://www.woonstijl.nl" target="_blank">www.woonstijl.nl</a>'
	},
	
	toggleKaart		: function(newSrc) {
	 	var obj = document.getElementById('my_map');
		 	obj.src = '/img/kaartjes/' +newSrc;
		return false;	
	},
	
	toggleAddress	: function(number){
	 	jQuery('div#active_woonwinkel_address_data').html(Woonwinkel.adresses[number]);
	}
};
