// Watermark & JQuery Menu SETUP
jQuery(function($){
  $("#search").Watermark("Type keyword (s) to search");
  $("#name").Watermark("Your Name");
  $("#email").Watermark("Your E-Mail");
  $("#comments").Watermark("Your Comments");
  
  $("ul.dropdown li").hover(function(){
    $('.menu_first', this).addClass('hover');
	$('.sub_menu', this).slideDown(800);
  }, function(){
    obj = this;
    $('.sub_menu', this).slideUp(800, function(){ $('.menu_first', obj).removeClass('hover'); });
  });
  $("ul.dropdown li ul li:has(ul)").find("a:first").append(" &raquo; ");
});

window.onload=function()
{
  var html_text =  "<strong>This site still under development, you are viewing the beta version</strong>";
  windows.show(html_text,"BANDUNGCITY.INFO");
 // alert(html_text);
 setTimeout(function(){
   windows._fadeOut();
 }, 5000);
};



/*
$(document).ready(function(){
    $('.down-list').width($('.dropdown-menu').width()-2);

    $('.dropdown-menu').hover(
      function () {
        $('.menu-first', this).addClass('slide-down'); 
        $('.down-list', this).slideDown(100);
      }, 
      function () {
        obj = this;
        $('.down-list', this).slideUp(100, function(){ $('.menu-first', obj).removeClass('slide-down'); });
      }
    );
});
*/

// Share it SETUP
function fbs_click(){
	u=location.href;t=document.title;
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}

function twt_click(){
	window.open('http://twitter.com/home?status=Currently reading http://www.praktisi.ac.id');
	return false;
}

function mail_click(){
	window.open('http://www.addtoany.com/email?linkurl=www.praktisi.ac.id&linkname=PRAKTISI');
	return false;
}