﻿
function radedseturllength(editor) {
	editor.get_dialogOpener()._dialogUrlLengthLimit = 500; 
}

var globEditor;
var globEditorWidth;
function radedsettoolwidth(editor) {
	globEditor = editor;
	globEditorWidth = editor.get_element().style.width;
	editor.add_firstShow(function() {
		setTimeout("globEditor.get_element().style.width = globEditorWidth;", 500);
	});
}


function ouvrir(url, width_size, height_size, scroll) {
	var param = "directories=no, maximize=no, resizable=no, toolbar=no, scrollbars=" + scroll + ", location=no, status=no, menubar=no, left=0, top=0, screenX=0, screenY=0, width=" + width_size + ", height=" + height_size;
	window.open(url, "popup", param);
}


function Zoom(ficzoom, type) {
	var flashvars = {};
	flashvars.fic = ficzoom;
	flashvars.typeImage = type;
	var attributes = {};
	attributes.wmode = "transparent";
	attributes.id = "zoom";
	swfobject.embedSWF("/flash/diaporama/zoom.swf", "divzoom", "1250", "930", "10", "", flashvars, attributes);
	var st = document.getElementById("divzoom").style;
	st.display = "block";
	st.position = "absolute"; 
	st.left = "-1053px";
	st.top = "-487px";
	st.zIndex = "30";
}
function fermeZoom() {
	var st = document.getElementById("divzoom").style;
	st.display = "none";
}


function ZoomPlan(ficzoom) {
	var flashvars = {};
	flashvars.fic = ficzoom;
	var attributes = {};
	attributes.wmode = "transparent";
	attributes.id = "zoom";
	swfobject.embedSWF("/flash/diaporama/zoom.swf", "divzoom", "1250", "930", "10", "", flashvars, attributes);
	var st = document.getElementById("divzoom").style;
	st.display = "block";
	st.position = "absolute"; 
	st.left = "-100px";
	st.top = "-100px";
	st.zIndex = "9999";
}
