/* require jquery.js */

function AjaxUpdate(method,path,parameter,div,loadingHtml,option)  { // 메소드(겟,포스트),url,파라메터,div id,로딩 html,옵션

	$("#"+div).css("display","block");
	//$("#"+div).addClass("relative");
	//$("#"+div).html("<img src='/images/loading.gif' class='set_center'>"); 

	if(option=='desolve') {
	
	} else if(option=='represh') { $("#"+div).fadeOut(1000); 
	
	} else if(option=='jGrowl') { // 옵션이 'jGrowl' 일때
	
	$("#jGrowl").addClass("inner_jgrowl");
	$("#"+div+ "_jgrowl").jGrowl( loadingHtml, { theme:'mygle',life : 1,closer: false, 
	beforeClose: function(e,m) { $("#jGrowl").remove(); }
	});
	
	} else if(option=='blink') { $("#"+div).fadeTo(400, 0.19); 
	
	} else { 
	
	$("#"+div).html(loadingHtml); 
	
	}

	$.ajax({

	//beforeSend: function(){ $("#"+div).html(loadingHtml); },
	type: method, url: path, data: parameter, cache: false, async: true, dataType: "html",
	success: function(html){ $("#"+div).html(html); }

	});

	if(option=='blink') { $("#"+div).fadeTo(400, 1); }
	else if(option=='represh') { $("#"+div).fadeOut(1000); } 
	else if(option=='open&hide') { $("#"+div).fadeOut(1000); } 
	else if(option=='hide') { $("#"+div).fadeOut(1000); }
		
	} //end of function

function reportError() { alert('에러.. -_-;'); } // end of function

//

/*
 * jqBookmark - a jquery Bookmark script
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file license.txt.
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to calisza@gmail.com so we can send you a copy immediately.
 * ------------------------------------------------------------------------------------
 * usage => <a href="http://www.google.com" title="Google.com" class="jqbookmark">Google bookmark</a>
 *
 */

$(document).ready(function(){
	// add a "rel" attrib if Opera 7+
	if(window.opera) {
		if ($("a.bookmark").attr("rel") != ""){
			$("a.bookmark").attr("rel","sidebar");
		}
	}

	$("a.bookmark").click(function(event){
		event.preventDefault();
		var url = this.href;
		var title = this.title;

		if (window.sidebar) { // Mozilla Firefox Bookmark
			window.sidebar.addPanel(title, url,"");
		} else if( window.external ) { // IE Favorite
			window.external.AddFavorite( url, title);
		} else if(window.opera) { // Opera 7+
			return false; // do nothing
		} else {
			 alert('으아악!, 이 브라우저에는 기능이 지원되지 않습니다. '
			 + ' 딴 거 까셈; ');
		}

	});
});