
$(document).ready(function() {
	/*
	Tooltip.init();
	
	$('.hot-title-bro').mouseenter(function() {
		switch($(this).attr('id'))
		{
			case 'hot-title-1':
				Tooltip.setContent('<img src="data/images/seville.jpg" width="414" height="159" alt="Room Name" />');
				break;
			case 'hot-title-2':
				Tooltip.setContent('<img src="data/images/jazz.jpg" width="414" height="159" alt="Room Name" />');
				break;
			case 'hot-title-3':
				Tooltip.setContent('<img src="data/images/tiffany.jpg" width="414" height="159" alt="Room Name" />');
				break;
			case 'hot-title-4':
				Tooltip.setContent('<img src="data/images/madison.jpg" width="414" height="159" alt="Room Name" />');
				break;
			case 'hot-title-6':
				Tooltip.setContent('<img src="data/images/lower.jpg" width="414" height="159"  alt="Room Name" />');
				break;
		}
		
		Tooltip.show(true);
	});
	$('.hot-title-bro').mouseleave(function() {
		Tooltip.hide(250); // can pass an optional delay here e.g. Tooltip.hide(250);
	});
	
	*/
	ModalController.init();
	
	
	$('#download-pdf-btn').click(function() {
	    var check = 0; 
        var selected = '';
        $('input.meeting-checkbox').each(function(){
            if($(this).attr('checked')){
                check = check+1;
                selected += $(this).attr('name')+',';
            }    
        });
        selected = selected.substring(0,selected.length-1);
        if(check==0){
            alert("You must select atleast one room.");
            return false;
        }
		//determine which items are requested
		//var checkboxNames=new Array("seville","sevilleA","sevilleB","sevilleC","Gramercy","Flatiron","UnionSquare","Kipsbay","MadisonAve","MurrayHill");
//		for (var i=0;i<=checkboxNames.length-1;i++){
//			if (document.getElementById(checkboxNames[i]).checked==true){
//				checkedBoxes+=','+checkboxes[i]; //dynamically written in .net. contains filenames
//			}
//		}

		ModalController.openModal(document.getElementById('meeting-room-modal'));
        $('input#meeting-pdfs').val(selected);
	});
	$('#modal-close-btn').click(function() {
		ModalController.closeModal();
	});
});