/* Skryptomania
http://skryptomania.koti.com.pl - darmowe skrypty JavaScript, DHTML oraz aplety Javy */

var new_window = null
function openSiteMapIQGame() {
gry_window = window.open('Games/IQGame/iqgame.html','gryonline', 'width=600,height=450,toolbars=no,resizable=no,scrollbars=yes' );
}

function openSiteMapRubik() {
gry_window = window.open('Games/Rubik/rubik.html','gryonline', 'width=600,height=450,toolbars=no,resizable=no,scrollbars=yes' );
}

function openSiteMapLines() {
gry_window = window.open('Games/Lines/Lines.html','gryonline', 'width=600,height=450,toolbars=no,resizable=no,scrollbars=yes' );
}

function openSiteMapMrMind() {
gry_window = window.open('Games/MrMind/MrMind.html','gryonline', 'width=600,height=450,toolbars=no,resizable=no,scrollbars=yes' );
}

function openSiteMapMrMind2() {
gry_window = window.open('Games/MrMind2/MrMind2.html','gryonline', 'width=600,height=450,toolbars=no,resizable=no,scrollbars=yes' );
}

function openSiteMapSlowa() {
gry_window = window.open('Games/WordSearch/WordSearch.html','gryonline', 'width=600,height=450,toolbars=no,resizable=no,scrollbars=yes' );
}

function clickclose () {
close();
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


// clock
var timerRunning = false;
function stopclock () {
	if(timerRunning)
		clearTimeout(timerID);
	timerRunning = false;
}
function startclock () {
	stopclock();
	showtime();
}
function showtime () {
	var now = new Date();
	var hours = now.getHours();
	var minutes = now.getMinutes();
	var seconds = now.getSeconds();
	var clockShow = '';
	var daysPL = new Array("niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota");
	timeValue = '';
	timeValue += ((hours < 10) ? '0' : '') + hours;
	timeValue += ((minutes < 10) ? ':0' : ':') + minutes;
	timeValue += "<span style='font-size:11px;color:#872;font-weight:normal;'>"+((seconds < 10) ? ' 0' : ' ')+seconds+'</span>';
	dateValue = now.getDate()+'.'+((now.getMonth()+1)<10?'0'+(now.getMonth()+1):now.getMonth()+1)+'.'+now.getFullYear();
	dayValue = now.getDay();
	clockShow  = '<div style=\"position:relative;top:5px;clear:both;\">';
	clockShow += '<div style=\"position:relative;width:90px;text-align:center;border:0px solid #ff2;float:left;\">';
	clockShow += '<div style=\"position:relative;font:10px Verdana,Tahoma,Arial,serif;font-weight:normal;color:#972;\">'+dateValue+'</div>';
	clockShow += '<div style=\"position:relative;top:-3px;font:9px Verdana,Arial,serif;color:#972;\">'+daysPL[dayValue]+'</div>';
	clockShow += '</div>';
	clockShow += '<div style=\"position:relative;top:1px;font:14px Verdana,Tahoma,Arial,serif;font-weight:bold;color:#a92;float:left;\">'+timeValue+'</span>';
	clockShow += '</div>';
	if( document.getElementById ) document.getElementById('clock').innerHTML = clockShow;
	timerID = setTimeout('showtime()',1000);
	timerRunning = true;
}
// clock <