// var $jn = jQuery.noConflict();

// --------- s:Jam Pengganti
    namaHari = new Array("Minggu","Senin","Selasa","Rabu","Kamis","Jum'at","Sabtu");
    namaBulan = new Array("Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember");

    window.setTimeout("waktu()",1000);    
    function waktu() {     
	  var tanggal = new Date();
	  tahun  = tanggal.getYear();
	  if (tahun < 1000) tahun +=1900;	  
	  setTimeout("waktu()",1000);    
	  document.getElementById("time").innerHTML = namaHari[tanggal.getDay()]+", "+tanggal.getDate()+" "+namaBulan[tanggal.getMonth()]+" "+tahun+" "+tanggal.getHours()+":"+tanggal.getMinutes()+":"+tanggal.getSeconds();  
    }
// --------- s:Jam Pengganti



$(document).ready(function() {
    
    //$("#time").load("{#linkInternalClass#}showclock");
    //var refreshId = setInterval(function() {
    //  $("#time").load('{#linkInternalClass#}showclock/'+ Math.random());
    //  $("#paginate-slider1").css("z-index",Math.random());
    //}, 1000);
   
    //Default Action
    $(".tab_content").hide(); //Hide all content
    $("ul.tabs li:first").addClass("active").show(); //Activate first tab
    $(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {
		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});


	$(".tab_content2A").hide(); //Hide all content
	$("ul.tabs2 li:first").addClass("active").show(); //Activate first tab
	$(".tab_content2A:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs2 li").click(function() {
		$("ul.tabs2 li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content2A").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});

    $(".tab_contentRightA").hide(); //Hide all content
	$("ul.tabsRight li:first").addClass("active").show(); //Activate first tab
	$(".tab_contentRightA:first").show(); //Show first tab content
   // $(".divGalleria").attr("id","galleria");
	//On Click Event
	$("ul.tabsRight li").click(function() {
		$("ul.tabsRight li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
                //
           
	
   //     $(".divGalleria").attr("id","galleria");
    	$(".tab_contentRightA").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
                  var JQ = jQuery.noConflict();
                        JQ('#videoGalleria').galleria({
                            image_crop: true,
                            transition: 'fade',
                              extend: function() {
                            var gallery2 = this;
                            gallery2.play();
                            }
                        });
		return false;
	});
   
});
