h1 { font: 15pt Arial, Helvetica, geneva;
color: black!important!;
}
-h2 { font: normal 12pt Arial, Helvetica, geneva;
- color: black!important;
-}
+h2 { font: normal 12pt Arial, Helvetica, geneva; }
#header {
background: url("../images/header-bg.png") scroll top left repeat-x #4d8c83;
}
#header h1 {
- color: #fff;
margin-left: 310px;
position: fixed;
top: 10px;
left: -15px;
- color: black!important;
+ color: #404040 !important;
}
/*
text-align: right;
}
-#content h1, #content h2 { color: black; }
+#content h1, #content h2 {
+color: #404040 !important;
+font-size: 170%;
+font-weight: normal;
+}
.navfooter { bottom: 2%; }
.highlight { background-color: #c5d3c3; }
.highlightButton{ font-size: 0; }
persist: "cookie"
};
+//Turn ON and OFF the animations for Show/Hide Sidebar. Extend this to other anime as well if any.
+var noAnimations=false;
+
$(document).ready(function() {
*/
function showHideToc() {
var showHideButton = $("#showHideButton");
- var leftNavigation = $("#leftnavigation");
+ var leftNavigation = $("#sidebar");
var content = $("#content");
+ var animeTime=75
if (showHideButton != undefined && showHideButton.hasClass("pointLeft")) {
//Hide TOC
showHideButton.removeClass('pointLeft').addClass('pointRight');
- content.css("margin", "125px 0 0 0");
- leftNavigation.css("display", "none");
- showHideButton.attr("title", "Show the TOC tree");
+
+ if(noAnimations) {
+ leftNavigation.css("display", "none");
+ content.css("margin", "125px 0 0 0");
+ } else {
+ leftNavigation.hide(animeTime);
+ content.animate( { "margin-left": 0 }, animeTime);
+ }
+ showHideButton.attr("title", "Show Sidebar");
} else {
//Show the TOC
showHideButton.removeClass('pointRight').addClass('pointLeft');
- content.css("margin", "125px 0 0 280px");
- leftNavigation.css("display", "block");
- showHideButton.attr("title", "Hide the TOC Tree");
+ if(noAnimations) {
+ content.css("margin", "125px 0 0 280px");
+ leftNavigation.css("display", "block");
+ } else {
+ content.animate( { "margin-left": '280px' }, animeTime);
+ leftNavigation.show(animeTime);
+ }
+ showHideButton.attr("title", "Hide Sidebar");
}
}
</xsl:choose>
</xsl:variable>
- <div>
+ <div id="sidebar"> <!--#sidebar id is used for showing and hiding the side bar -->
<div id="leftnavigation" style="padding-top:3px;">
<div id="tabs">
<ul>
<head>
<link rel="shortcut icon" href="favicon.ico"/>
<meta http-equiv="Refresh" content="1; URL=content/{$default.topic}"/>
- <title><xsl:value-of select="//title[1]"/> 
- </title>
+ <title><xsl:value-of select="//title[1]"/> </title>
</head>
<body>
If not automatically redirected, click <a href="content/{$default.topic}">content/<xsl:value-of select="$default.topic"/></a>