Index: /CKEditor/trunk/_source/plugins/scayt/dialogs/options.js
===================================================================
--- /CKEditor/trunk/_source/plugins/scayt/dialogs/options.js	(revision 3970)
+++ /CKEditor/trunk/_source/plugins/scayt/dialogs/options.js	(revision 3971)
@@ -195,5 +195,5 @@
 		}
 		//apply handler
-		dic[ this.getId() ].apply( null, [ this, dic_name, dic_buttons ] );
+		window.dic[ this.getId() ].apply( null, [ this, dic_name, dic_buttons ] );
 
 		return true;
@@ -304,5 +304,5 @@
 				//console.info("--plugin ");
 
-				scayt.createUserDictionary(dic_name,
+				window.scayt.createUserDictionary(dic_name,
 					function(arg)
 						{
@@ -322,5 +322,5 @@
 			};
 
-		dic.dic_rename = function( el, dic_name , dic_buttons )
+		dic.dic_rename = function( el, dic_name )
 			{
 				//
@@ -330,5 +330,5 @@
 				var err_massage = captions["err_dic_rename"] || "";
 				var suc_massage = captions["succ_dic_rename"] || "";
-				scayt.renameUserDictionary(dic_name,
+				window.scayt.renameUserDictionary(dic_name,
 					function(arg)
 						{
@@ -355,5 +355,5 @@
 				// try to delete dictionary
 				// @TODO: delete dict
-				scayt.deleteUserDictionary(
+				window.scayt.deleteUserDictionary(
 					function(arg)
 						{
@@ -380,5 +380,5 @@
 				var suc_massage = captions["succ_dic_restore"];
 
-				scayt.restoreUserDictionary(dic_name,
+				window.scayt.restoreUserDictionary(dic_name,
 					function(arg)
 						{
@@ -436,5 +436,5 @@
 		// * user dictionary
 		if ( userDicActive ){
-			scayt.getNameUserDictionary(
+			window.scayt.getNameUserDictionary(
 			function( o )
 			{
Index: /CKEditor/trunk/_source/plugins/scayt/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/scayt/plugin.js	(revision 3970)
+++ /CKEditor/trunk/_source/plugins/scayt/plugin.js	(revision 3971)
@@ -12,6 +12,4 @@
 {
 	var commandName 	= 'scaytcheck',
-		sc_on_cssclass 	= 'scayt_enabled',
-		sc_off_cssclass = 'scayt_disabled',
 		openPage		= '';
 
@@ -41,5 +39,5 @@
 			}
 
-			var scayt_control = new scayt( oParams );
+			var scayt_control = new window.scayt( oParams );
 
 			// Copy config.
@@ -121,8 +119,8 @@
 		editor.on( 'scaytDialog', function( ev )	// Communication with dialog.
 			{
-				ev.data.djConfig = djConfig;
+				ev.data.djConfig = window.djConfig;
 				ev.data.scayt_control = plugin.getScayt( editor );
 				ev.data.tab = openPage;
-				ev.data.scayt = scayt;
+				ev.data.scayt = window.scayt;
 			});
 
@@ -158,11 +156,10 @@
 		getScayt : function( editor )
 		{
-			var instance = this.instances[ editor.name ];
-			return instance;
+			return this.instances[ editor.name ];
 		},
 		isScaytReady : function( editor )
 		{
 			return this.engineLoaded === true &&
-				'undefined' !== typeof scayt && this.getScayt( editor );
+				'undefined' !== typeof window.scayt && this.getScayt( editor );
 		},
 		isScaytEnabled : function( editor )
@@ -380,5 +377,5 @@
 			if ( editor.contextMenu && editor.addMenuItems )
 			{
-				editor.contextMenu.addListener( function( element, selection )
+				editor.contextMenu.addListener( function( element )
 					{
 						if ( !( plugin.isScaytEnabled( editor ) && element ) )
@@ -393,5 +390,5 @@
 						var sLang = scayt_control.getLang(),
 							_r = {},
-							items_suggestion = scayt.getSuggestion( word, sLang );
+							items_suggestion = window.scayt.getSuggestion( word, sLang );
 						if (!items_suggestion || !items_suggestion.length )
 							return null;
@@ -418,5 +415,5 @@
 								{
 									return {
-										exec: function( editor )
+										exec: function()
 										{
 											scayt_control.replace(el, s);
@@ -472,5 +469,5 @@
 							exec: function()
 							{
-								scayt.addWordToUserDictionary( element.$ );
+								window.scayt.addWordToUserDictionary( element.$ );
 							}
 						};
Index: /CKEditor/trunk/_source/plugins/wsc/dialogs/tmpFrameset.html
===================================================================
--- /CKEditor/trunk/_source/plugins/wsc/dialogs/tmpFrameset.html	(revision 3970)
+++ /CKEditor/trunk/_source/plugins/wsc/dialogs/tmpFrameset.html	(revision 3971)
@@ -23,4 +23,5 @@
 }
 
+var opener;
 function tryLoad()
 {
Index: /CKEditor/trunk/_source/plugins/wsc/dialogs/wsc.js
===================================================================
--- /CKEditor/trunk/_source/plugins/wsc/dialogs/wsc.js	(revision 3970)
+++ /CKEditor/trunk/_source/plugins/wsc/dialogs/wsc.js	(revision 3971)
@@ -56,5 +56,5 @@
 			}
 			else if ( i++ == 180 )								// Timeout: 180 * 250ms = 45s.
-				_cancelOnError( errorMsg );
+				window._cancelOnError( errorMsg );
 		};
 	}
@@ -79,5 +79,5 @@
 		// global var is used in FCK specific core
 		// change on equal var used in fckplugin.js
-		gFCKPluginName = 'wsc';
+		window.gFCKPluginName = 'wsc';
 
 		LangComparer.setDefaulLangCode( editor.config.defaultLanguage );
