﻿
/*
        [MHz.OpenBlog.Ver.1]
        (c) 2007 MHZ. (http://www.openblog.com)
        
        author  : Pang
        date    : 2007-07-27
        comment : UccImagePost.aspx JavaScript & AJAX Function
*/

//<!CDATA[[
    var WorkingNow = false;
    function AxCallImageList(PageNo){
        if(!WorkingNow){
            WorkingNow = true;
            OnSplash();
            MHz.OpenV1.OpenBlogWeb.UccImagePost.AxImageList(PageNo, AxBackImageList);}}
    
    function AxCallSearchImage(PageNo, Keyword){
        if(!WorkingNow){
            WorkingNow = true;
            OnSplash();
            MHz.OpenV1.OpenBlogWeb.UccImagePost.AxImageList(PageNo, AxBackImageList);}}
    
    function AxBackImageList(res){
        if(res != null && res.value != null){
            if(res.value.ImageList != null && res.value.Pager != null){
                var ImageList = res.value.ImageList;
                var Pager = res.value.Pager;
                $("centerImg").innerHTML = ImageList;
                $("page").innerHTML = Pager;}
            else{alert(res.error.message);}}
        else{alert(res.error.message);}
        OffSplash();
        new Effect.ScrollTo('wrap', {duration: 0.0});
        WorkingNow = false;
    }
         
    function SearchTest(){
        if($("txtKeyword").value == ""){alert("검색어를 입력해주세요");}
        else{document.location.href = "http://search.openblog.com/Tag/" + $("txtKeyword").value;}}
        
    function OffSplash() { Element.setStyle('splashDiv',{display:'none'}); }
	function OnSplash()
	{
		var objStyle = 
		{
			zindex:1000,
			position:'absolute',
			top:posY+'px',
			left:'3px',
			width:'210',
			height:'14',
			backgroundColor:'#EEEEEE',
			textAlign:'center',
			display:'block'
		};
		Element.setStyle('splashDiv',objStyle);
		$('splashDiv').update('<strong>페이지 정보를 가져오고 있습니다.</strong>');
	}   
//]]>
