var GL = {
	
	// return false when general terms checkbox is not checked
	checkOrder: function(url) {
		
		// check if checkbox is checked
		if(jQuery('input#general-terms:checked').length == 0) {
		
			alert('You have to accept the general terms and conditions first !');
		
		} else {
			
			// redirect to url
			location.href = url;
		
		}
		
	}
	
}

// when document is loaded, do some stuff
jQuery(document).ready(function() {
	
	// make cnt-right transparent
	//$('div.cnt-right-bg').fadeTo('fast', 0.30);
	
	// load shadowbox
	Shadowbox.init();
	
});

