autoload("comunicate.js");

function jak_rezerwowac (event){
//	alert(sciecha);

	txt = "<table border=0 cellspacing=0 cellpadding=0>";
	txt += "<tr>";
//	txt += "<td style='width:11px; height:10px;	background:url(gfx/ramka1/lg.gif) no-repeat; margin:0px;'></td>";
//	txt += "<td style='width:11px; height:10px;	background:url(gfx/ramka1/gs.gif) repeat-x; margin:0px;'></td>";
//	txt += "<td style='width:10px; height:10px;	background:url(gfx/ramka1/pg.gif) no-repeat; margin:0px;'></td>";
//	txt += "</tr><tr>";
	txt += "<td style='width:11px; height:10px;	background:url(gfx/ramka1/ls.gif) repeat-y; margin:0px;'></td>";
	txt += "<td bgcolor=#ffffff><span bgcolor='white' style='padding: 5px; cursor: pointer; position:relative;' onClick=' opis.hide(); comunicate.close(); '>";
	
	
	txt += "<img src='/gfx/poradnik/jak-zamawiac.jpg' style=' padding: 5 px; margin: 5px;' >";

	txt += "</span><span  style='padding: 5px; cursor: pointer; position:relative; z-index: 220;' onClick=' opis.hide(); comunicate.close(); '>";
	if(navigator.userAgent.indexOf("MSIE") > -1)
	{
		txt += "<div style='z-index: 220; position: absolute; top: 240; left: -710; background-color: red; filter: alpha(opacity = 0); width: 180; height:50; ' onmousemove='opis.move(event)' onmouseout='opis.hide()' onmouseover='opis.view(event, 1)'></div>";
		txt += "<div style='z-index: 220; position: absolute; top: 50; left: -510;  background-color: red; filter: alpha(opacity = 0); width: 250; height:50; ' onmousemove='opis.move(event)' onmouseout='opis.hide()' onmouseover='opis.view(event, 2)'></div>";
		txt += "<div style='z-index: 220; position: absolute; top: 195; left: -260; background-color: red; filter: alpha(opacity = 0); width: 200; height:50; ' onmousemove='opis.move(event)' onmouseout='opis.hide()' onmouseover='opis.view(event, 3)'></div>";
		txt += "<div style='z-index: 220; position: absolute; top: 440; left: -310; background-color: red; filter: alpha(opacity = 0); width: 250; height:50; ' onmousemove='opis.move(event)' onmouseout='opis.hide()' onmouseover='opis.view(event, 4)'></div>";
		txt += "<div style='z-index: 220; position: absolute; top: 480; left: -640; background-color: red; filter: alpha(opacity = 0); width: 290; height:50; ' onmousemove='opis.move(event)' onmouseout='opis.hide()' onmouseover='opis.view(event, 5)' ></div>";
	}
	else
	{
		txt += "<div style='z-index: 220; position: absolute; top: -440; left: -710;  background-color: transparent; width: 180; height:50; ' onmousemove='opis.move(event)' onmouseout='opis.hide()' onmouseover='opis.view(event, 1)'></div>";
		txt += "<div style='z-index: 220; position: absolute; top: -630; left: -510; background-color: transparent; width: 250; height:50; ' onmousemove='opis.move(event)' onmouseout='opis.hide()' onmouseover='opis.view(event, 2)'></div>";
		txt += "<div style='z-index: 220; position: absolute; top: -485; left: -260; background-color: transparent; width: 200; height:50; ' onmousemove='opis.move(event)' onmouseout='opis.hide()' onmouseover='opis.view(event, 3)'></div>";
		txt += "<div style='z-index: 220; position: absolute; top: -240; left: -310; background-color: transparent; width: 250; height:50; ' onmousemove='opis.move(event)' onmouseout='opis.hide()' onmouseover='opis.view(event, 4)'></div>";
		txt += "<div style='z-index: 220; position: absolute; top: -190; left: -640; background-color: transparent; width: 290; height:50; ' onmousemove='opis.move(event)' onmouseout='opis.hide()' onmouseover='opis.view(event, 5)' ></div>";
	}
	txt += "</span></td>";
	
	txt += "<td style='width:10px; height:10px;	background:url(gfx/ramka1/ps.gif) repeat-y; margin:0px;'></td>";
//	txt += "</tr><tr>";
//	txt += "<td style='width:11px; height:11px;	background:url(gfx/ramka1/ld.gif) no-repeat; margin:0px;'></td>";
//	txt += "<td style='width:11px; height:11px;	background:url(gfx/ramka1/ds.gif) repeat-x; margin:0px;'></td>";
//	txt += "<td style='width:10px; height:11px;	background:url(gfx/ramka1/pd.gif) no-repeat; margin:0px;'></td>";
	txt += "</tr>";
	txt += "</table>";
	
	comunicate.open(txt, true);

}


opis = {

	view : function (event, numer_opisu){
		
		
		s_opis = this.przygotuj_opis(numer_opisu);
		
		under_mouse.showText(event, s_opis);
	
	},
	
	
	przygotuj_opis : function (numer_opisu){
	
		sBuffor = "<div class=info3><table style='font-size: inherit'>";
		
		
		sBuffor += "<tr><td>";
		
		sBuffor += this.opisy[numer_opisu];
		
		sBuffor += "</td></tr>";
		
		
		sBuffor += "</table></div>";
		
		return sBuffor;
	},
	
	hide : function () {
		under_mouse.hide();
	},
	
	move : function (event){
		under_mouse.move(event);
	},

	opisy : {
		
		1 : "Skorzystaj z wyszukania wycieczek<br>- samolotem<br>-własnym samochodem<br>-Dalekich podróży<br>-atrakcyjnej oferty HIT<br>- Last minute<br>Sprawdź również<br>- Promocje<br>- Łowców okazji<br>- Ofertę tygodnia",
		2 : "Wybierz typ pokoju, dostawkę dla dziecka i wyżywienie<br>Możliwe wybranie wielu pokojów.<br>Cena i dostępność zostaną sprawdzone<br> dla wszystkich wybranych zakwaterowań.<br>Podana cena jest ceną końcową zawierającą<br>wszystkie możliwe promocje i zniżki",
		3 : "Zwróć uwagę aby daty urodzenia dzieci zgadzały się<br>z wiekiem podanym przy wyborze zakwaterowania.<br>Na podany mail zostaną wysłane <br>- zgłoszenie uczestnictwa<br>- warunki uczestnictwa<br>- warunki ubezpieczenia.",
		4 : "Płatność możliwa :<br> - kartą płatniczą Visa lub MasterCard<br>- internetowym przelewem bankowym<br>- przelewem zwykłym<br>Płatności nie wymagają potwierdzeń",
		5 : "Po zaplacie całej kwoty zostaną wysłane<br>dokumenty podróży <br>- voucher oraz ubezpieczenie.<br> W przypadku bliskiego terminu wyjazdu<br> prosimy o kontakt z Infolinią"
	
	}

};


function jak_rezerwowac_film (event){
//	alert(sciecha);

	txt = "<table border=0 cellspacing=0 cellpadding=10>";
	txt += "<tr>";
	txt += "<td style='width:11px; height:10px;	background:url(gfx/ramka1/ls.gif) repeat-y; margin:0px;'></td>";
	txt += "<td style='width:600px; height:365px;' bgcolor=#ffffff><span bgcolor='white' style='padding: 20px; cursor: pointer; position:relative;' onClick=' opis.hide(); comunicate.close(); '>";
	
	txt += "<iframe width='560' height='325' src='http://www.youtube.com/embed/JG7r_5RDVmY' frameborder='0' allowfullscreen></iframe>";
	
	txt += "<td style='width:10px; height:10px;	background:url(gfx/ramka1/ps.gif) repeat-y; margin:0px;'></td>";
	txt += "</tr>";
	txt += "</table>";
	
	comunicate.open(txt, true);

}
