37
| <![CDATA[<script type="text/javascript">
jQuery.noConflict();
window.addEvent('load', function() {
new JCaption('img.caption');
});
Date.prototype.stdTimezoneOffset = function() {
var jan = new Date(this.getFullYear(), 0, 1);
var jul = new Date(this.getFullYear(), 6, 1);
return Math.max(jan.getTimezoneOffset(), jul.getTimezoneOffset());
};
Date.prototype.dst = function() {
return this.getTimezoneOffset() < this.stdTimezoneOffset();
};
function ISO8601Local216(date) {
// handles years from 0000 to 9999 only
var offset216 = date.getTimezoneOffset();
var offsetSign216 = "-";
if (offset216 <= 0) {
offsetSign216 = "+";
offset216 = -offset216;
};
var offsetHours216 = Math.floor(offset216 / 60);
var offsetMinutes216 = offset216 - offsetHours216 * 60;
return ("000" + date.getFullYear()).slice(-4) +
"-" + ("0" + (date.getMonth() + 1)).slice(-2) +
"-" + ("0" + date.getDate()).slice(-2) +
"T" + ("0" + date.getHours()).slice(-2) +
":" + ("0" + date.getMinutes()).slice(-2) +
":" + ("0" + date.getSeconds()).slice(-2) +
"," + ("00" + date.getMilliseconds()).slice(-3) +
offsetSign216 + ("0" + offsetHours216).slice(-2) +
":" + ("0" + offsetMinutes216).slice(-2);
};
var ISO8601216 = "0";
function clock216() {
var newdate216 = new Date();
if(ISO8601216 == "1") {
var time216 = ISO8601Local216(newdate216);
} else {
var day216="";
var month216="";
var myweekday216="";
var year216="";
var mydate216 = new Date();
var dston216 = new Date("March 14, 1999 2:59:59");
var dstoff216 = new Date("/November 7, 1999 2:59:59");
dston216.setFullYear(newdate216.getFullYear());
dstoff216.setFullYear(newdate216.getFullYear());
var dst216 = "0";
var myzone216 = newdate216.getTimezoneOffset();
var zone216 = parseInt(-3);
// zone is negative so convert to positive to do calculations
if (zone216 <= 0) {
zoneb216 = -zone216;
} else {
zoneb216 = zone216;
};
if (mydate216 > dston216 && mydate216 < dstoff216 && dst216 == "1") {
//date is between dst dates and dst adjust is on.
zonea216 = zoneb216 - 1;
var houradjust216 = 0;
} else {
zonea216 = zoneb216;
var houradjust216 = -1;
};
newtime216=newdate216.getTime();
var newzone216 = (zonea216*60*60*1000);
// convert zone back to negative if it was negative originally
if (zone216 <= 0) {
newzone216 = -newzone216;
};
newtimea216 = newtime216+(myzone216*60*1000)+newzone216;
mydate216.setTime(newtimea216);
myday216 = mydate216.getDay();
mymonth216 = mydate216.getMonth();
myweekday216= mydate216.getDate();
myyear216= mydate216.getYear();
year216 = myyear216;
if (year216 < 2000) year216 = year216 + 1900;
myhours216 = mydate216.getHours();
if (myhours216 < 10) {
myhours216 = "0" + myhours216;
} else {
myhours216 = "" + myhours216;
};
myminutes216 = mydate216.getMinutes();
if (myminutes216 < 10) {
mytime216 = "0" + myminutes216;
} else {
mytime216 = "" + myminutes216;
};
myseconds216 = mydate216.getSeconds();
if (myseconds216 < 10) {
myseconds216 = "0" + myseconds216;
} else {
myseconds216 = "" + myseconds216;
};
arday216 = new Array("Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado");
armonth216 = new Array("Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro", "Outubro","Novembro","Dezembro");
ardate216 = new Array("0th","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31");
var time216 = (""+arday216[myday216]+","+"Â "+ardate216[myweekday216]+"Â "+armonth216[mymonth216]+","+"Â "+year216+"Â "+""+""+"Â "+myhours216+":"+mytime216+":"+myseconds216+"");
};
document.getElementById("ty2udate216").innerHTML = time216;
setTimeout("clock216()", 1000);
};
listen("load", window, clock216);
</script>]]>
|
211
| <![CDATA[<script type="text/javascript" >
window.addEvent('domready', function() {
// MainMenu
var MainMenu = new IceMenu({
id: 'nav',
subMenusContainerId:'MainMenuSub',
effect: 'slide and fade',
duration: 600,
physics: Fx.Transitions.Quad.easeOut,
hideDelay: 1000,
orientation: 'horizontal',
direction:{ x: 'right', y: 'down' },
opacity: 90 });
// OtherMenu
});
</script>]]>
|