<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb">
<head>
<title>OgloszeniaWarszawskie.pl - Strona w budowie!</title>
<meta name="generator" content="Flynax Classifieds Software" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="Keywords" content="" />
<link href="http://www.ogloszeniawarszawskie.pl/plugins/underConstructions/style.css" type="text/css" rel="stylesheet" />
<link rel="shortcut icon" href="http://www.ogloszeniawarszawskie.pl/templates/general_modern/img/favicon.ico" />

<script type="text/javascript" src="http://www.ogloszeniawarszawskie.pl/libs/jquery/jquery.js"></script>


<script type="text/javascript" charset="UTF-8">
/* <![CDATA[ */
try { if (undefined == xajax.config) xajax.config = {}; } catch (e) { xajax = {}; xajax.config = {}; };
xajax.config.requestURI = "http://www.ogloszeniawarszawskie.pl/rss-feed/?page=rss-feed";
xajax.config.statusMessages = false;
xajax.config.waitCursor = true;
xajax.config.version = "xajax 0.5 Beta 4";
xajax.config.legacy = false;
xajax.config.defaultMode = "asynchronous";
xajax.config.defaultMethod = "POST";
/* ]]> */
</script>
<script type="text/javascript" src="http://www.ogloszeniawarszawskie.pl/libs/ajax/xajax_js/xajax_core.js" charset="UTF-8"></script>
<script type="text/javascript" charset="UTF-8">
/* <![CDATA[ */
window.setTimeout(
 function() {
  var scriptExists = false;
  try { if (xajax.isLoaded) scriptExists = true; }
  catch (e) {}
  if (!scriptExists) {
   alert("Error: the xajax Javascript component could not be included. Perhaps the URL is incorrect?\nURL: http://www.ogloszeniawarszawskie.pl/libs/ajax/xajax_js/xajax_core.js");
  }
 }, 2000);
/* ]]> */
</script>

</head>
<body>

<div id="outer_second">
	<div id="outer_first">
		<div id="header"></div>
	</div>
</div>

<div id="flash"></div>

<div id="box">
	<div class="logo"></div>
	
	<table class="shadow">
	<tr>
		<td class="left"></td>
		<td>
		
			<table class="content">
			<tr class="header">
				<td class="left"></td>
				<td class="center"></td>
				<td class="right"></td>
			</tr>
			</table>
			
			<div class="body">
				<h1>Strona jest w budowie</h1>
				<h2>Szacowany pozostały czas przed oficjalną premierą:</h2>
				
				<div class="date">
					<table align="center">
					<tr class="numbers">
						<td align="center" id="time_day"></td>
						<td align="center" id="time_hour"></td>
						<td align="center" id="time_minute"></td>
						<td align="center" id="time_sec"></td>
					</tr>
					<tr class="items">
						<td align="center">Dni</td>
						<td align="center">Godzin</td>
						<td align="center">Minut</td>
						<td align="center">Sekund</td>
					</tr>
					</table>
				</div>
				
								
			</div>
			<table class="content">
			<tr class="footer">
				<td class="left"></td>
				<td class="center"><div></div></td>
				<td class="right"></td>
			</tr>
			</table>
		
		</td>
		<td class="right"></td>
	</tr>
	</table>
	
</div>

<script type="text/javascript">
//<![CDATA[
var current_date = new Array();
var redirect_url = 'http://www.ogloszeniawarszawskie.pl/';
current_date['day'] = 27;
current_date['month'] = 05;
current_date['year'] = 2012;
current_date['hours'] = parseInt('18');
current_date['minutes'] = parseInt('50');
current_date['seconds'] = parseInt('03');

var curTime = 0;



$(document).ready(function(){
	//set current date
	var cDate = new Date();
	cDate.setDate(current_date['day']);
	cDate.setMonth(current_date['month']);
	cDate.setFullYear(current_date['year']);
	cDate.setHours(current_date['hours']);
	cDate.setMinutes(current_date['minutes']);
	cDate.setSeconds(current_date['seconds']);

	var curSeconds = cDate.getTime();

	
	//set target date
	var tDate = new Date();
	tDate.setDate(30);
	tDate.setMonth(05);
	tDate.setFullYear(2012);
	tDate.setHours(parseInt('00'));
	tDate.setMinutes(parseInt('00'));
	tDate.setSeconds(parseInt('00'));
	
	var targetSeconds = tDate.getTime();
	
	//get different
	curTime = (targetSeconds - curSeconds)/1000;
	
	printDate();
	
	$(window).resize(function(){
		resize();	
	});
	
	resize();
	
	var val = false;
	$('input#email').focus(function(){
		if ( !val )
		{
			val = $(this).val();
			$(this).val('');
		}
	}).blur(function(){
		if ( $(this).val() == '' )
		{
			$(this).val(val);
			val = false;
		}
	});
});

var resize = function(){
	var height = $(window).height();
	height = Math.ceil(height/2);
	
	$('#header').height(height);
}

var subscribr = function(){
	xajax_subscribe('subscribe', 'Guest', $('#email').val());
	return false;
}

var printDate = function(){
	
	var days = Math.floor(curTime/3600/24);
	var hours = Math.floor((curTime-(days*3600*24))/3600);

	var minutes = Math.floor((curTime-(days*3600*24)-(hours*3600))/60);
	var seconds = Math.floor((curTime-(days*3600*24)-(hours*3600))-(minutes*60));
	
	if ( days < 0 )
	{
		location.href = redirect_url;
		return;
	}
	
	days = days < 10 ? '0'+days: days;
	hours = hours < 10 ? '0'+hours: hours;
	minutes = minutes < 10 ? '0'+minutes: minutes;
	seconds = seconds < 10 ? '0'+seconds: seconds;
	
	var outTime = days+':' +hours+':'+minutes+':'+seconds;
	$('#time_obj').html(outTime);
	$('#time_day').html(days);
	$('#time_hour').html(hours);
	$('#time_minute').html(minutes);
	$('#time_sec').html(seconds);

	
	curTime--;
	setTimeout('printDate()', 1000);
}


//]]>
</script>

</body>
</html>
