var RegioDialog_TermsAndConditions = new Class({
	Implements: [Events, Options],

	initialize : function(element, options) {
		this.element = $(element);
		this.setOptions(options);

		if(! $chk(element)) {
			alert('No element');
			return false;
		}

		if( $type(this.options.title) != false ) {
			this.element.getParent('.box-content-inner').getElement('.terms-and-conditions').setAttribute('title',this.options.title );
		}

		if($chk(this.element) && $chk(this.element.getParent('.box-content-inner'))) {
			new RegioDialog_Element(
				this.element.getParent('.box-content-inner').getElement('.terms-and-conditions')
			);
		}
	}
});
