// JavaScript Document
/* header js */
	var f = true;
	function showSubMenu(obj){		
		$(".subMenu", $(obj)).show();
	}
	
	function hideSubMenu(obj){
		$(".subMenu", $(obj)).hide();
	}
	$("document").ready(function(){		
		$(".menu-item").mouseover(function(){
			showSubMenu(this);
		});
		
		$(".menu-item").mouseout(function(){		
			hideSubMenu(this);
		});
		
		$(".menu-item-select").mouseover(function(){
			showSubMenu(this);
		});
		
		$(".menu-item-select").mouseout(function(){
			hideSubMenu(this);
		});
	
		$(".item-sub").mouseover(function(){
			$(".sub-1", $(this)).show();
		});
		
		$(".item-sub").mouseout(function(){
			$(".sub-1", $(this)).hide();
			
		});
	});
	
	function share_twitter() {
		u = location.href;
		t = document.title;
		window.open("http://twitter.com/home?status=" +  encodeURIComponent(u));
	}
	function share_facebook() {
		u = location.href;
		t = document.title;
		window.open("http://www.facebook.com/share.php?u=" + encodeURIComponent(u) + "&t=" + encodeURIComponent(t));
	}
	function share_google() {
		u = location.href;
		t = document.title;
		window.open("http://www.google.com/bookmarks/mark?op=edit&bkmk=" + encodeURIComponent(u) + "&title=" + t + "&annotation=" + t);
	}
	
	function addBookmark() {
		var title = document.title;
		url = document.location;
        if (window.sidebar) { // firefox
              window.sidebar.addPanel(title, url,"");
        } else if( document.all ) { //MSIE
                window.external.AddFavorite( url, title);
        } else {
               alert("Sorry, your browser doesn't support this");
        }
	}
	
