function ShowResults(x)
{
	with(document.getElementById('block_'+x).style)
	{
		display = display=='none'?'block':'none';
	}
	
	with(document.getElementById('rsign_'+x))
	{
		innerHTML = innerHTML=='[+]'?'[&minus;]':'[+]';
	}
}

function Okno(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function Round() {
	mint.fx.Round("thisWeekOffers");
	mint.fx.Round("newsletter");
	mint.fx.Round("contentLeftBox");
	//mint.fx.Round("contentLeftBox2");

	for(i=1; i<=4; i++)
	{
		mint.fx.Round("hotBox"+i);
	}
}

function RoundPage() {
	mint.fx.Round("contentLeftBox");
	mint.fx.Round("contentLeftBox2");
	mint.fx.Round("contentLeftBox3");
	
	for(i=1; i<=4; i++)
	{
		mint.fx.Round("hotBox"+i);
	}
	
	if(document.getElementById('news_box_1'))
	{
		mint.fx.Round("news_box_1");
		mint.fx.Round("news_box_2");
		mint.fx.Round("news_box_3");
		mint.fx.Round("news_box_4");
		mint.fx.Round("news_box_5");
	}
}

function checkRooms(x)
{
	with(document.getElementById(x))
	{
		disabled=disabled==true?false:true;
	}
}

function printSite()
{
	printPrepare("apart. olsztyńskie nieruchomości", document.getElementById('contentSection').innerHTML);
}

function printPrepare(title, content)
{
	content = content.replace('display: block','display: none');
    
    printWindow = window.open("", "","width=800,height=600,toolbar=no,directories=no,menubar=no,locations=no,status=no,scrollbars=yes,resizable=no,fullscreen=no");
    printWindow.document.open();

    printWindow.document.writeln("<html>");
	printWindow.document.writeln("<head>");
	printWindow.document.writeln("<title>"+ title +"</title>");
	printWindow.document.writeln("</head>");
    printWindow.document.writeln("<body style=\"background-color: #ffffff; margin: 10px;\" onload=\"print();\">");
    printWindow.document.writeln("<style>");
    printWindow.document.writeln("img { border: none; } table { font-family: arial; font-size: 12px; }");
    printWindow.document.writeln("</style>");
	printWindow.document.writeln("<table width=\"100%\"><tr><td style=\"text-align: justify;\">");
    printWindow.document.writeln(content);    
    printWindow.document.writeln("</td></tr></table>");
    printWindow.document.writeln("</body>");
	printWindow.document.writeln("</html>");
    printWindow.document.close();
    printWindow.focus();
}
