//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
////
////		setCalendar() - Calendar Expand/Slide/Toggle details functions
////
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
/*$(document).ready(function() {
	// hides the slickbox as soon as the DOM is ready
	// (a little sooner than page load)
	$('.details_body').hide(500);
	$('div.details_btn').click(function() {
		//$(this).parent().children("div.details_body").toggle(400);
		// change the text
		//var attribute = $(this).children('.bigplus').text;
		//alert(attribute)
			//if ($(this).text() == '+ Details') {
			//if ($(this).children('.bigplus').text() == '+') {
		if ($(this).children('.bigplus').text() == '+') {
		//if ($(this).parent().children("div.details_body").height==1){
			$(this).children('.bigplus').text('-')
			//$(this).text('- Details');
			$(this).parent().children("div.details_body").show('slow'); 
		} else {
			//$(this).text('+'+ ' Details');
			$(this).children('.bigplus').text('+')
			//$(this).parent().children('.bigplus').text('+')
			$(this).parent().children("div.details_body").hide('fast'); 
		}
			return false;	
	});

});*/
//v2	
//$(document).ready(function() {

		// click actions for top_row
		
function setCalendar()
{
	//var ieVersion = checkVersionIE();
	
	//if(ieVersion != 6){ 
		// hide all detail content		  
		$('.bottom_row').hide();
		
		$('div.expandall_btn').click(function() {
			var attrib = $(this).css("font-size");
			if (attrib != '5px') {
				$(this).addClass("collapse_all");
				$('.details_btn').addClass("details_btn_collapse");
				$('.bottom_row').show("slow");
				//alert(color)
			} else {
				$(this).removeClass("collapse_all");
				$('.details_btn').removeClass("details_btn_collapse");
				$('.bottom_row').hide("slow"); 
				//alert(color)
			}
			//alert(attrib)
			return false;	
		});
	//}
}


function setUpTopRow(){	

	// mouse over/out actions for top_row
	//var ieVersion = checkVersionIE();
	
	//if(ieVersion != 6){ 

		//alert(ieVersion)
	//}else{
		//alert(ieVersion)
		
	//cursor:pointer;
	//$('div.top_row').css("cursor") = "pointer";
	//$('div.top_row').css("cursor","pointer");
	//$('div.top_row').attr("title","Click to expand/collapse")
	
		$('div.top_row').mouseover(function(){
			$(this).addClass("tl_opacity");
		});
		$('div.top_row').mouseout(function(){
			$(this).removeClass("tl_opacity");				 
		});
	
		$('div.top_row').click(function() {
			var attrib = $(this).children('.details_btn').css("font-size");
			if (attrib == '10px') {
				$(this).children('.details_btn').addClass("details_btn_collapse");
				//$(this).parent().children("div.bottom_row").show('slow');
				$(this).parent().children("div.bottom_row").show("slow");
				//alert(color)
			} else {
				$(this).children('.details_btn').removeClass("details_btn_collapse");
				//$(this).parent().children("div.bottom_row").hide('fast');
				$(this).parent().children("div.bottom_row").hide("slow");
				//alert(color)
			}
			//alert(color)
			return false;	
		});
	


	
	
	
	
	
	// click actions for expand_all_btn
/*	$('div.expand_all_btn').click(function(){
		if ($(this).text() == '+ Expand All') {
			$('.bottom_row').show(500);
			$('.bigplus').text('-')
			$(this).text('- Collapse All');
			$(this).width('80px');
		} else {
			$(this).text('+ Expand All');
			$(this).width('80px');
			$('.bigplus').text('+')
			$('.bottom_row').hide(500);
		}
		return false;
	});*/
	
/*		$('div.expand_all_btn').click(function(){
		if ($(this).text() == '+ Expand All') {
			$('.bottom_row').show(500);
			$('.bigplus').text('-')
			$(this).text('- Collapse All');
			$(this).width('80px');
		} else {
			$(this).text('+ Expand All');
			$(this).width('80px');
			$('.bigplus').text('+')
			$('.bottom_row').hide(500);
		}
		return false;
	});*/
		

	
	//}
};

function setUpTopRow2(){
	
	//alert("HI");
	
}
//setup_top_row();	
//});
// End //////////////
/////////////////////// JavaScript Document