j.addMethod(this,"showDialog", function(obj, TF){ // Remove Div
		j.onSelectText( document.body, true );		
		j.showDialog('none', obj, 0);	 		
		if(TF==true){ 
			j.g("bgDisable").style.display = 'none'; 
			document.body.removeChild( j.g("bgDisable") ); 
		}		
});
j.addMethod(this,"showDialog", function(obj, h, mDrag){ // Create Div
	if(obj){
		j.onSelectText( document.body, false );
		j.showDialog('block', obj, h);  
		j.g("bgDisable").style.display = 'block';
		window.onresize = function(){ 
			if(j.g("bgDisable")){ showDialog(obj, h, mDrag); }			
		}
		document.body.onscroll=function(){
			if(j.g("bgDisable")){ showDialog(obj, h, mDrag); }	
		}		
		if(mDrag==true){
			var wObj = j.int( obj.style.width.replace(/px/,"") );
			var hObj = j.int( obj.style.height.replace(/px/,"") );		
			var wObj2 = wObj/2;
			var hObj2 = hObj*0.75;
			var xMousePosMax = j.pageWidth()+j.PosXleft();
			var yMousePosMax = j.pageHeight()+j.PosYtop();		
			Drag.init( j.g(obj.id+'_move') , obj , (j.PosXleft()-wObj2) , ((xMousePosMax-wObj)+wObj2) , j.PosYtop() , ((yMousePosMax-hObj)+hObj2) );	
			obj.onDrag=function(){ j.g(obj.id+'_detail').style.display = 'none'; }			
			obj.onDragEnd=function(){ j.g(obj.id+'_detail').style.display = 'block'; }						
		}
	}
});

j.addMethod(this,"showDialogFix", function(obj, h, mDrag){ // Create Div
	if(obj){
		j.onSelectText( document.body, false );
		j.showDialog('block', obj, h);  
		j.g("bgDisable").style.display = 'block';
		window.onresize = function(){ 
			if(j.g("bgDisable")){ showDialogFix(obj, h, mDrag); }			
		}
		document.body.onscroll=function(){
			if(j.g("bgDisable")){ showDialogFix(obj, h, mDrag); }	
		}		
		if(mDrag==true){
			var wObj = j.int( obj.style.width.replace(/px/,"") );
			var hObj = j.int( obj.style.height.replace(/px/,"") );		
			var xMousePosMax = j.pageWidth()+j.PosXleft();
			var yMousePosMax = j.pageHeight()+j.PosYtop();		
			Drag.init( j.g(obj.id+'_move') , obj , (j.PosXleft()) , ((xMousePosMax-wObj)) , j.PosYtop() , ((yMousePosMax-hObj)) );	
			obj.onDrag=function(){ j.g(obj.id+'_detail').style.display = 'none'; }			
			obj.onDragEnd=function(){ j.g(obj.id+'_detail').style.display = 'block'; }						
		}
	}
});
