$("#pop_month").click(
function() {
$("#pop_alltime_box").hide();
$("#pop_month_box").show("slow");
});
$("#pop_alltime").click(
function() {
$("#pop_month_box").hide();
$("#pop_alltime_box").show("slow");
});
$("#tab1").click(
function() {
event.returnValue = false;
if(event.preventDefault) event.preventDefault();
$("#map").hide();
$("#categories").hide();
$("#search").show("slow");
});
$("#tab2").click(
function() {
event.returnValue = false;
if(event.preventDefault) event.preventDefault();
$("#map").hide();
$("#categories").hide();
$("#search").show("slow");
});
$("#tab3").click(
function() {
event.returnValue = false;
if(event.preventDefault) event.preventDefault();
$("#map").show("slow");
$("#categories").hide();
$("#search").hide();
});
$("#tab4").click(
function() {
event.returnValue = false;
if(event.preventDefault) event.preventDefault();
$("#map").hide();
$("#categories").show("slow");
$("#search").hide();
});
$("#bShout").click(
function() {
$("#frm_shout").attr("action", "send_shout.php");
$("#frm_shout:first").submit();
$("#message").val("");
});
$("#bComment").click(
function() {
$("#frm_comment").attr("action", "send_comment.php");
$("#frm_comment:first").submit();
});
$("#bGalleryForm").click(
function() {
$("#galleryForm").toggle("slow");
});
$("#bGoogleEarth").click(
function() {
$("#gEarth").toggle("slow");
});
$("#bEurope").click(
function() {
$("#europe").toggle("slow");
});
$('#pdgfoto').hover(function () {
this.src = 'http://www.worldcam.pl/images/hover.png';
}, function () {
this.src = 'http://www.worldcam.pl/images/hover-out.gif';
});
$("#jqbookmark").click(function(e){
e.preventDefault();
var bookmarkUrl = this.href;
var bookmarkTitle = this.title;
if (window.sidebar) { // For Mozilla Firefox Bookmark
window.sidebar.addPanel(bookmarkTitle, bookmarkUrl,"");
} else if( window.external || document.all) { // For IE Favorite
window.external.AddFavorite( bookmarkUrl, bookmarkTitle);
} else if(window.opera) { // For Opera Browsers
alert('Naciśnij klawisze Ctrl+D aby dodać stronę do zakładek.');
return false;
} else {
alert('Proszę użyć funkcji dodawania do zakładek dostępnej w przeglądarce internetowej.');
return false;
}
});
this.screenshotPreview = function(){
/* CONFIG */
xOffset = 0;
yOffset = 15;
/* END CONFIG */
$("a.preview").hover(function(e){
this.t = this.title;
this.title = "";
if (e.pageX - (screen.width - 960)/2 > 700)
xOffset = -250;
else
xOffset = 0;
var c = (this.t != "") ? "
" + this.t : "";
$("body").append("
"+ c +"