/**
 * @author his90
 */
var ShowBox = 'ShowAreaBox';
var MainBox = 'ImagePowerBox';

function ImagePower(bsn)
{
	
	var msgbox = ShowBox;
	var actionurl = siteurl + '/ImagePower/ajax.php?p=show_ipm';
	var QString = '&BSN='+bsn;
	
	
	if ($(msgbox).style.display == 'none') {
		ajax = new Ajax.Updater(msgbox, actionurl, {
			method: 'post',
			postBody: QString,
			onComplete: function(){
				new Effect.Appear(msgbox, {
					duration: 1,
					from: 0,
					to: 1
				});
			},
			asynchronous: true,
			evalScripts: true
		});
		
		goTop();
	}else
	{
		new Effect.Fade(msgbox,{duration:0.2});
	}//end if	
};//end func


function ViewPhoto(bsn,psn)
{
	
	var msgbox = 'RBox';
	var actionurl = siteurl + '/ImagePower/ajax.php?p=ipm_view_photo';
	var QString = '&BSN='+bsn+'&PSN='+psn;
	
	new Effect.Appear('LoadStatus');
	
		ajax = new Ajax.Updater(msgbox, actionurl, {
			method: 'post',
			postBody: QString,
			onComplete: function(){
				new Effect.Appear(msgbox, {
					duration: 1,
					from: 0,
					to: 1
				});
			},
			asynchronous: true,
			evalScripts: true
		});
	
};//end func
