1 /* This compressed file is part of Xinha. For uncompressed sources, forum, and bug reports, go to xinha.org */
2 /* This file is part of version 0.96beta2 released Fri, 20 Mar 2009 11:01:14 +0100 */
3 if(typeof Xinha
=="undefined"){Xinha
=window
.opener
.Xinha
}HTMLArea
=Xinha
;function getAbsolutePos(b
){var c
={x
:b
.offsetLeft
,y
:b
.offsetTop
};if(b
.offsetParent
){var a
=getAbsolutePos(b
.offsetParent
);c
.x
+=a
.x
;c
.y
+=a
.y
}return c
}function comboSelectValue(f
,d
){var b
=f
.getElementsByTagName("option");for(var a
=b
.length
;--a
>=0;){var e
=b
[a
];e
.selected
=(e
.value
==d
)}f
.value
=d
}function __dlg_onclose(){opener
.Dialog
._return(null)}function __dlg_init(b
,a
){__xinha_dlg_init(a
)}function __xinha_dlg_init(b
){if(window
.__dlg_init_done
){return true}if(window
.opener
._editor_skin
){var c
=document
.getElementsByTagName("head")[0];var d
=document
.createElement("link");d
.type
="text/css";d
.href
=window
.opener
._editor_url
+"skins/"+window
.opener
._editor_skin
+"/skin.css";d
.rel
="stylesheet";c
.appendChild(d
)}if(!window
.dialogArguments
&&opener
.Dialog
._arguments
){window
.dialogArguments
=opener
.Dialog
._arguments
}var e
=Xinha
.pageSize(window
);if(!b
){b
={width
:e
.x
,height
:e
.y
}}window
.resizeTo(b
.width
,b
.height
);var f
=Xinha
.viewportSize(window
);window
.resizeBy(0,e
.y
-f
.y
);if(b
.top
&&b
.left
){window
.moveTo(b
.left
,b
.top
)}else{if(!Xinha
.is_ie
){var a
=opener
.screenX
+(opener
.outerWidth
-b
.width
)/2;var g
=opener
.screenY
+(opener
.outerHeight
-b
.height
)/2}else{var a=(self.screen.availWidth-b.width)/2;var g
=(self
.screen
.availHeight
-b
.height
)/2}window.moveTo(a,g)}Xinha.addDom0Event(document.body,"keypress",__dlg_close_on_esc);window.__dlg_init_done=true}function __dlg_translate(e){var d=["input","select","legend","span","option","td","th","button","div","label","a","img"];for(var g=0;g<d.length;++g){var c=document.getElementsByTagName(d[g]);for(var b=c.length;--b>=0;){var f=c[b];if(f.firstChild&&f.firstChild.data){var a=Xinha._lc(f.firstChild.data,e);if(a){f.firstChild.data=a}}if(f.title){var a=Xinha._lc(f.title,e);if(a){f.title=a}}if(f.tagName.toLowerCase()=="input"&&(/^(button
|submit
|reset
)$/i
.test(f
.type
))){var a
=Xinha
._lc(f
.value
,e
);if(a
){f
.value
=a
}}}}document
.title
=Xinha
._lc(document
.title
,e
)}function __dlg_close(a
){opener
.Dialog
._return(a
);window
.close()}function __dlg_close_on_esc(a
){a
||(a
=window
.event
);if(a
.keyCode
==27){__dlg_close(null);return false}return true};