// JavaScript Document by Songchai
/*
//AJAX Add By SONGCHAI for Display Hidden Item
//usage : ShowItemById(ItemURL[str],DisplayLocId[str],isON[true/false])
//<script type="text/javascript"> 
*/
function ShowItemById(ItemURL,DisplayLocId,isON)
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    if (isON)
	document.getElementById(DisplayLocId).innerHTML=xmlhttp.responseText;
	else
	document.getElementById(DisplayLocId).innerHTML="";
    }
  }
xmlhttp.open("GET",ItemURL,true);
xmlhttp.send();
}
//</script>
//End of AJAX


//jQuery Add By SONGCHAI for Display "Last Update" in side-bar
//need command <script type="text/javascript" src="/jQuery/jquery-1.4.2.min.js"> </script> in header.php
//<script type="text/javascript"> 
$(document).ready(function(){
$(".sb-flip").click(function(){
    $(".sb-panel").slideToggle("slow");
  });
});
//</script>
//End of SB-Panel jQuery

