$(document).ready(function(){
				var accordionindex = $("#sitePart").val();
				accordionindex = parseInt(accordionindex, 10);  // convert a string to a number
				
				$('#TogglePaneFancy').initTogglePane({
					headerClassClosed:'TogglePaneHeaderClosed',
					startOpened: accordionindex});



				// Tooltip
/*				$(".book_tooltip").each(function(index, elem){
					var id1 = $(this).attr("id").substring($(this).attr("id").lastIndexOf('_')+1);
					var tooltipId1 = "#image_link_tip_" + id1;
					if ($("#hiddenWidth_"+id1).length > 0 && $("#hiddenWidth_"+id1).length > 0) {
					$(this).tooltip({
						effect : "slide",
						showURL : false,
						bodyHandler: function() {
							var id = $(this).attr("id").substring($(this).attr("id").lastIndexOf('_')+1);
							var tooltipId = "#image_link_tip_" + id;
							var img = $("<img/>").attr({
								"src" : $(tooltipId + " img").attr("src"),
								"alt" : "",
								"title" : ""
							});
//							if ($("#hiddenWidth_"+id).length <= 0) return null;
//							if ($("#hiddenHeight_"+id).length <= 0) return null;
							var tooltipWidth = parseInt($("#hiddenWidth_"+id).text());
							var tooltipHeight = parseInt($("#hiddenHeight_"+id).text());
							var margin = parseInt($(elem).children().first().css("margin-top"));
//							alert(margin);
							img.width(tooltipWidth);
							img.height(tooltipHeight);

							var h1 = 1;
							var h2 = 7;
							var delta = 6;
							var pos = $(elem).offset();  
							var width = $(elem).width();
							var left = pos.left - tooltipWidth;
							var top = pos.top + margin;
							jQuery.each(jQuery.browser, function(i, val) {
								if (i == "mozilla" || i == "opera") {
									left = pos.left - tooltipWidth;
									if (margin == 0)
										top = top + h1;
								}
								if (i == "msie" || i == "safari") {
									left = pos.left + width - tooltipWidth;
									top = top - margin - delta;
									if (margin == 0)
										top = top - h2;
								}
							});
												
							img.css("position", "absolute");
							img.css("left", left);
							img.css("top", top);
//							img.css("opacity", "0.5");
							img.mouseout(function() {
								$("#tooltip").hide();
							});
							
							var href = $(elem).attr("href");
							var idA = "image_link_tip_" + id;
							var a = $("<a/>").attr({
								"id": idA,
								"href": href
							});
							a.append(img);
							return a;
						}
					});
					}
				});		*/					
			});
