function openModal(edit_elem, width, height, tiny, title){
	
	var newcon = elementObject['ModalOpenerHtml'];
	jQuery.fx.off = true;
	
	if(!title){
		var title = '';	
	}
	
	$.nyroModalManual({
		 minWidth: width, // Minimum width
		 minHeight: height, // Minimum height
		 modal: false,
		 zIndexStart: 1000,
		 padding: 40,
		 bgColor: '#36434E',
		 title: title,
		 content: newcon
	});
/*
$(function() {
  $.nyroModalSettings({
    endRemove: function() {
      window.location.reload();
    }
  });
});
*/


	if(tiny == 1)
	{
		if(height && width){
			var height = height - 70;
			var width = width + 174;
		}else{
			var height = "500";
			var width = "500";
		}
		setTimeout(function(){starttiny(edit_elem, width, height);},200);
	}
}

function starttiny(elem, tiny_width, tiny_height){
	toggleEditor(elem, tiny_width, tiny_height);
}

function check_modal_layers(){
	if(elementObject['ModalOpenerHtml']['sedit']!=""){
		if(elementObject['ModalOpenerHtml']['sedit']){
			
		}
	}
}

$(document).ready(function(){ 
	
}); 
