
function new_captcha()
{
var c_currentTime = new Date();
var c_miliseconds = c_currentTime.getTime();
document.getElementById('captcha').src = 'http://' + domain997 + '/script/captcha.php?x='+ c_miliseconds;
}
function hd_slideSwitch() {
var $active = $('#hd_slideshow img.active');
if ( $active.length == 0 ) $active = $('#hd_slideshow img:last');
var $next =  $active.next().length ? $active.next()
: $('#hd_slideshow img:first');
$active.addClass('last-active');
$next.css({opacity: 0.0})
.addClass('active')
.animate({opacity: 1.0}, 1000, function() {
$active.removeClass('active last-active');
});
}
//var hd_ss_sp;
$(function() {
if(typeof hd_ss_sp == "undefined"){hd_ss_sp = "6000";}
setInterval( "hd_slideSwitch()", hd_ss_sp );
});
function slideSwitch() {
var $active = $('#slideshow div.active');
if ( $active.length == 0 ) $active = $('#slideshow div:last');
var $next =  $active.next().length ? $active.next()
: $('#slideshow div:first');
$active.addClass('last-active');
$next.css({opacity: 0.0})
.addClass('active')
.animate({opacity: 1.0}, 1000, function() {
$active.removeClass('active last-active');
});
}
//var slideshow_speed;
$(function() {
if(typeof slideshow_speed == "undefined"){slideshow_speed = "3000";}
var playSlideshow =  setInterval( "slideSwitch()", slideshow_speed );
$('#slideshow').hover(function() {
    clearInterval(playSlideshow);
},
function() {
    playSlideshow =  setInterval( "slideSwitch()", slideshow_speed );
});
});

$(function() {
		$('a.lightbox').lightBox();
	});
function div_choice (hellodiv)
{
var num1;
num1 = document.getElementById(hellodiv);
if(num1.style.display == 'block')
{
num1.style.display = 'none';
}
else
{
num1.style.display = 'block';
}
return false;
}
/* uploading.... */
function show_message () 
{
var el = document.getElementById("my_message");
el.style.display = "block"; 
return true;
}
function openWindow(url, wname, width, height) {
window.open(url, wname, "height=" + height + ",width=" + width + "location = 0, status = 1, resizable = 0, scrollbars=1, toolbar = 0");
return true;
}
$(document).on("click",".mPhotoClick",function(event){
var targetDivName = $(this).attr('data-smrfTargetDivName');
var moduleName = $(this).attr('data-smrfModule');
var fileName = $(this).attr('data-smrfFile');
var albumIdVal = $(this).attr('data-smrfAlbumId');
var photoIdVal = $(this).attr('data-smrfPhotoId');
var pathInfoVal = $(this).attr('data-smrfPathInfo');
var mLangVal = $(this).attr('data-smrfMLang');
var multiLangVal = $(this).attr('data-smrfMultiLang');
$.post(location.protocol + "//" + location.host + "/callback/callback.php",{pathInfo:pathInfoVal, mLang:mLangVal, multiLang:multiLangVal, module:moduleName, file:fileName, albumId:albumIdVal, photoId:photoIdVal}, function(data){
$('#' + targetDivName).html(data);
$('a.lightbox').lightBox();
});
event.preventDefault();
});
/* m_as refresh weather div */
/*
$(document).ready(function() {

    $('#nav li a').click(function(){

    var toLoad = $(this).attr('href')+' #content';
    $('#content').hide('fast',loadContent);
    $('#load').remove();
    $('#wrapper').append('<span id="load">LOADING...</span>');
    $('#load').fadeIn('normal');
    function loadContent() {
    	$('#content').load(toLoad,'',showNewContent())
    }
    function showNewContent() {
    	$('#content').show('normal',hideLoader());
    }
    function hideLoader() {
    	$('#load').fadeOut('normal');
    }
    return false;

    });
});
*/
/* $(document).ready(function() { */

    $('#as_show_city_link a').click(function(){

    var toLoad = $(this).attr('href');
    $('#as_show_weather').hide('fast',loadContent);
    $('#as_load').remove();
    $('#as_show_city_link').append('<span id="as_load">LOADING...</span>');
    $('#as_load').fadeIn('normal');
    function loadContent() {
		 $('#as_show_weather').load('http://www.4wind.nl/callback/callback.php', {'module':'m_as','file':'as_show_weather.php','as_city': toLoad}, showNewContent()); 
    }
    function showNewContent() {
    	$('#as_show_weather').show('normal',hideLoader());
    }
    function hideLoader() {
    	$('#as_load').fadeOut('normal');
    }
    return false;

    });
 /*}); */

