122
| <![CDATA[<script type="text/javascript">
document.addEvent('domready', function() {
new Skyline_ScrollToTop({
'image': '',
'text': 'Voltar ao Topo',
'title': '',
'className': 'scrollToTop',
'duration': 500,
'transition': Fx.Transitions.linear
});
});
window.setInterval(function(){var r;try{r=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}if(r){r.open("GET","/web/index.php?option=com_ajax&format=json",true);r.send(null)}},1740000);
jQuery(function($){ $(".hasPopover").popover({"html": true,"trigger": "hover focus","container": "body"}); });
var fsj_base_url = 'http://www.sarandi.pr.gov.br/web/';
function fsj_notice_seen(id) {
if (!fjs_notice_check(id))
return false;
var url = '/web/index.php/component/fsj_notices/?controller=notice&task=close';
url += '¬ice=' + id;
url += '&time=' + new Date().getTime();
jQuery.get(url);
jQuery('div.fsj_notice_' + id).hide();
};
function fsj_notice_hide(id) {
if (!fjs_notice_check(id))
return false;
jQuery('div.fsj_notice_' + id).hide();
}
function fjs_notice_check(id)
{
if (jQuery('#fsj_notice_confirm_' + id).length == 0)
return true;
if (jQuery('#fsj_notice_confirm_' + id).prop('checked'))
return true;
jQuery('#fsj_notice_confirm_div_' + id).stop();
for(i=0;i<3;i++) {
jQuery('#fsj_notice_confirm_div_' + id).fadeTo(300, 0.3).fadeTo(300, 1.0);
}
return false;
}
jQuery(document).ready( function () {
fsj_notices_align();
});
function fsj_notices_align()
{
fsj_notices_align_horiz('div.fsj_notices_overlay.n_top > div');
fsj_notices_align_horiz('div.fsj_notices_overlay.n_center > div');
fsj_notices_align_horiz('div.fsj_notices_overlay.n_bottom > div');
fsj_notices_align_horiz('div.fsj_notices_start > div');
fsj_notices_align_vert('div.fsj_notices_overlay.n_left > div');
fsj_notices_align_vert('div.fsj_notices_overlay.n_center > div');
fsj_notices_align_vert('div.fsj_notices_overlay.n_right > div');
}
function fsj_notices_align_horiz(match)
{
jQuery(match).each(function () {
var width = parseInt(jQuery(this).outerWidth() / 2);
jQuery(this).css('margin-left', '-' + width + 'px');
});
}
function fsj_notices_align_vert(match)
{
jQuery(match).each(function () {
var height = parseInt(jQuery(this).outerHeight() / 2);
jQuery(this).css('margin-top', '-' + height + 'px');
});
}
window.getSize = window.getSize || function(){return {x: jQuery(window).width(), y: jQuery(window).height()};};
tinymce.suffix = '.min';
tinymce.baseURL = 'http://www.sarandi.pr.gov.br/web/media/editors/tinymce';
tinymce.init({
directionality: "ltr",
selector: "textarea#description",
language : "en",
mode : "specific_textareas",
autosave_restore_when_empty: false,
skin : "lightgray",
theme : "modern",
schema: "html5",
inline_styles : true,
gecko_spellcheck : true,
entity_encoding : "raw",
verify_html: true,
force_br_newlines : false, force_p_newlines : true, forced_root_block : 'p',
toolbar_items_size: "small",
relative_urls : true,
remove_script_host : false,
content_css : "/web/templates/system/css/editor.css",
document_base_url : "http://www.sarandi.pr.gov.br/web/",
setup: function (editor) {
},
paste_data_images: false,
valid_elements : "",
extended_valid_elements : ",@[data-lightbox],@[data-spotlight],@[data-lightbox],@[data-spotlight],@[data-lightbox],@[data-spotlight],@[data-lightbox],@[data-spotlight],@[data-lightbox],@[data-spotlight],@[data-lightbox],@[data-spotlight],@[data-lightbox],@[data-spotlight],@[data-lightbox],@[data-spotlight],@[data-lightbox],@[data-spotlight]",
invalid_elements : "script,applet,iframe",
// Plugins
plugins : "table link code hr charmap autolink lists importcss ",
// Toolbar
toolbar1: "bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | formatselect | bullist numlist | outdent indent | undo redo | link unlink anchor code | hr table | subscript superscript | charmap | ",
removed_menuitems: "newdocument",
// Layout
importcss_append: true,
// Advanced Options
resize: "both",
height : "550",
width : ""
});
function jInsertEditorText( text, editor )
{
tinyMCE.activeEditor.execCommand('mceInsertContent', false, text);
}
jQuery(function($) {
SqueezeBox.initialize({});
SqueezeBox.assign($('a.modal').get(), {
parse: 'rel'
});
});
window.jModalClose = function () {
SqueezeBox.close();
};
// Add extra modal close functionality for tinyMCE-based editors
document.onreadystatechange = function () {
if (document.readyState == 'interactive' && typeof tinyMCE != 'undefined' && tinyMCE)
{
if (typeof window.jModalClose_no_tinyMCE === 'undefined')
{
window.jModalClose_no_tinyMCE = typeof(jModalClose) == 'function' ? jModalClose : false;
jModalClose = function () {
if (window.jModalClose_no_tinyMCE) window.jModalClose_no_tinyMCE.apply(this, arguments);
tinyMCE.activeEditor.windowManager.close();
};
}
if (typeof window.SqueezeBoxClose_no_tinyMCE === 'undefined')
{
if (typeof(SqueezeBox) == 'undefined') SqueezeBox = {};
window.SqueezeBoxClose_no_tinyMCE = typeof(SqueezeBox.close) == 'function' ? SqueezeBox.close : false;
SqueezeBox.close = function () {
if (window.SqueezeBoxClose_no_tinyMCE) window.SqueezeBoxClose_no_tinyMCE.apply(this, arguments);
tinyMCE.activeEditor.windowManager.close();
};
}
}
};
window.pb_baseUrl = "http://www.sarandi.pr.gov.br/web/";
</script>]]>
|