/***************************
 * Speaker Object
 */
Speaker = {
	
	e_mini_bio: 'mini-bio',
	e_print_type: '#print_type',
	
	stylesheet_mini_bio: 'print-bio-mini.css',
	
	// What size do you want to print.. small or normal
	print: function(){
		
		var size = this.getPrintSize() || 'normal';
		
		if(size == 'small'){
			$('head').append('<link rel="stylesheet" id="' + this.e_mini_bio + '" href="' + Workspace.RootUrl + '/css/' + this.stylesheet_mini_bio + '" type="text/css" media="print" />');
		}
		else {
			if($('#' + this.e_mini_bio)){
				$('#' + this.e_mini_bio).remove();
			}
		}
		
		window.print();
		return false;
		
	},
	
	// Get the value from the #print_type element.. 
	getPrintSize: function(){
		
		var v = $(this.e_print_type).val();
		return v || false;
		
	}
	
}
