144
| <![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
});
});
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');
});
}
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/";
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($){ $(".hasTooltip").tooltip({"html": true,"container": "body"}); });
</script>]]>
|