var TD = {
	toggleGlasInfo: function(type)
	{
		// hide all divs
		jQuery('div.glas_info').hide();
		
		// only show current one
		jQuery('div.glas_info.type_' + type).show();
	},
	
	toggleLijstInfo: function(type)
	{
		// hide all divs
		jQuery('div.lijst_info').hide();
		
		// only show current one
		jQuery('div.lijst_info.type_' + type).show();
	},

	toggleDivPopup: function(popup)
	{
		// hide all divs
		jQuery('div.popup').hide();
		
		// only show current one
		jQuery('div.popup.' + popup).show();
	},
	
	checkProductSize: function()
	{
		// trigger error when total is still 0
		if(jQuery('input[name="tp_calc_prijs"]').val() == '0.0')
		{
			alert('Fout!\nGelieve een geldige maat (breedte X hoogte) in te geven aub.');
			return false;
		}
		else
		{
			return true;
		}
	}
}

//jQuery(document).ready(function() {
//	jQuery('ul#top-right-rotator').innerfade({
		// speed: 3000,
		// timeout: 4000,
		// type: 'random',
		// containerheight: '229px'
	// });
	// jQuery('ul#photos-right-rotator').innerfade({
		// speed: 3000,
		// timeout: 4000,
		// type: 'random',
		// containerheight: '363px'
	// });
// });  
