//menu
ddsmoothmenu.init({
	mainmenuid: "smoothmenu1", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

//autoslide
//var mygallery=new fadeSlideShow({
//	wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
//	dimensions: [197, 148], //width/height of gallery in pixels. Should reflect dimensions of largest image
//	imagearray: [
//		["http://www.pn-balebandung.go.id/foto/r-sidang/r-sidang1.jpg", "", "", "Ruang Sidang Utama (Cakra)."],
//		["http://www.pn-balebandung.go.id/foto/r-sidang/r-sidang2.jpg", "", "", "Ruang Sidang Puspa."],
//		["http://www.pn-balebandung.go.id/foto/r-sidang/r-sidang3.jpg", "", "", "Ruang Sidang Melati."] //<--no trailing comma after very last image element!
//	],
//	displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
//	persist: false, //remember last viewed slide and recall within same session?
//	fadeduration: 1000, //transition duration (milliseconds)
//	descreveal: "ondemand",
//	togglerid: ""
//})

//stayontop

//feed pt-bandung
    function LoadDynamicFeedControl() {
      var feeds = [
	{title: 'Pengadilan Tinggi Bandung',
	 url: 'http://www.pt-bandung.go.id/modules/rssfeeder.php'
	}];
      var options = {
        stacked : false,
        horizontal : false,
        title : ""
      }

      new GFdynamicFeedControl(feeds, 'feed-control', options);
    }
    // Load the feeds API and set the onload callback.
    google.load('feeds', '1');
    google.setOnLoadCallback(LoadDynamicFeedControl);

//jslide
jQuery(function(){
        $('div#showcase1').slide({
            loop: [1, 10000]
        });
        $('#stoploop').click(function(){
            $('div#showcase1').slide().toggleLoop();
            return false;
        });       
});

//date
var dayarray=new Array("Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu")
var montharray=new Array("Januari","Februari","Maret","April","Mei","Juni","Juli","Augustus","September","Oktober","November","Desember")

function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here
var cdate="<small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+daym+" "+montharray[month]+" "+year+" "+hours+":"+minutes+":"+seconds+" "+dn
+"</b></font></small>"
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}

