var motive = Array();
var motive_en = Array();
var motiv_curent = 0;
var motiv_curent_en = 0;


motive[0] = 'Toate cele noua blocuri din acest complex imobiliar vor fi gata simultan - fara utilaje, praf si galagie dupa ce te muti.';
motive[1] = 'Credite ipotecare prin Alpha Bank in conditii foarte avantajoase.<b><a href="http://www.romfeltplaza.ro/solutii_de_finantare/" style=\"background-color: #fe9561\">Vezi consultantul Alpha Bank</a></b>';
motive[2] = 'Echipa de dezvoltare este formata din firme cu o bogata experienta in proiectarea, finantarea si construirea unor obiective investitionale de mare anvergura.<b><a href="http://www.romfeltplaza.ro/echipa_de_dezvoltare/" style=" background-color: #fe9561">Vezi echipa de dezvoltare</a></b>';
//motive[2] = 'Bog\'ART a fost ales constructor general datorita experientei si calitatii lucrarilor executate. Astfel constructia si finisajele complexului pot oferi garantia celei mai bune calitati. ';
//motive[2] = 'Locatia aleasa, zona Colentina - Gara de Est, beneficiaza de multa vegetatie (parcuri si lacuri). ';
motive[3] = 'Etajele superioare ale blocurilor turn au o panorama inedita pe care putine locuinte din Bucuresti o pot oferi. ';
motive[4] = 'Proiectele de infrastructura in derulare (pasaj Doamna Ghica, noua sosea Colentina - Pantelimon, pasaj peste calea ferata Gara de Est - Constanta) vor contribui la asigurarea unor conditii civilizate de circulatie. ';
motive[5] = 'Complexul rezidential Romfelt Plaza este situat intr-un cartier central din Bucuresti, in plina dezvoltare, la doar 4,5 km de centrul orasului.';
motive[6] = 'Complexul rezidential Romfelt Plaza se afla la cativa pasi de viitorul Complex Comercial Bucur Obor (in constructie) si Kaufland.';
//motive[7] = 'Romfelt Plaza este un proiect cu o arhitectura indrazneata care  creaza  personalitate complexului rezidential si te face sa te simti acasa din prima clipa. ';


function schimba_motiv(){
	if(motiv_curent >= 6) motiv_curent = 0;
	else motiv_curent++;
	document.getElementById('motiv_curent').innerHTML = motive[motiv_curent];
}






motive_en[0] = 'All nine buildings from this residential complex will be finished simultaneously - without any construction equipment, dust and noise after you move in.';
motive_en[1] = 'Highly expedient and convenient mortgage loans from ALPHA BANK.<a href="http://www.romfeltplaza.ro/en/financing_options/" style=" background-color: #fe9561">See the Alpha Bank consultant</a>';
motive_en[2] = 'The project is developed by Romanian and Slovenian investors with performing economical results, which is a guaranty in quality and in time project closing.';
//motive[2] = 'Bog\'ART a fost ales constructor general datorita experientei si calitatii lucrarilor executate. Astfel constructia si finisajele complexului pot oferi garantia celei mai bune calitati. ';
motive_en[3] = 'Bog\'ART was chosen as general contractor due to the experience and quality of the executed progects. This is a guaranty for the construction and finishes quality. <a href="http://www.romfeltplaza.ro/en/development_team/">See our develpment team</a>';
motive_en[4] = 'The location, Colentina area - Gara de Est, benefits of a large green environment (parks and lakes) and the view is unique in Bucharest.';
motive_en[5] = 'Romfelt Plaza complex, having building of 17 and 25 levels hight, offers the perspective of one of the highest buildings in Bucharest.';

motive_en[6] = 'The upper levels of the buildings have a panoramic  view which few apartments in Bucharest can offer.';
motive_en[7] = 'The infrastructure on going (Passage Doamna Ghica, the boulevard Colentina - Pantelimon, passage over the railway Gara de Est - Constanta) will insure the circulation improvement of the area.';
motive_en[8] = 'The residential complex Romfelt Plaza is located in a center area of Bucharest, in full expansion, only 4 km far from the town center.';
motive_en[9] = 'Romfelt Plaza complex, having building of 17 and 25 levels hight, offers the perspective of one of the highest buildings in Bucharest.';
motive_en[10] = 'The residential complex Romfelt Plaza is only few steps far from the future commercial complex Bucur Obor (under construction) and Kaufland.';
motive_en[11] = 'Romfelt Plaza is a project with a courageous architecture, with personality that makes  you feel at home.';


function schimba_motiv_en(){
	if(motiv_curent_en >= 11) motiv_curent_en = 0;
	else motiv_curent_en++;
	document.getElementById('motiv_curent').innerHTML = motive_en[motiv_curent_en];
}

function make_link(url){
	gigel = window.open();
	gigel.document.location.href='http://'+url.replace("|",".").replace("|",".").replace("|",".").replace("|",".").replace("|",".").replace("|",".").replace("|",".").replace("|",".");
}

function updateFreeApartments(blockNo,etaj){

	if (!etaj)
		etaj = 0;
		
	if(blockNo=='clear')
		$('items').innerHTML='<div class=\'replacingTest\'>Faceti click pe unul dintre blocuri pentru a vedea structura noilor apartamente!</div><div class=\'text_content\'><h4>Structura si detalii pentru acest complex rezidential<br /></h4><p style=\"width:330px;font-size:12px;font-weight:normal;margin:0px;padding:0px;padding-bottom:4px;\"><strong>9 blocuri noi cu apartamente complet finisate</strong> cu obiecte sanitare din portelan. Dotari standard includ gresie si faianta import Spania, aer conditionat system multisplit in living si dormitoare, instalatie electrica cu 32 de circuite, prize si comutatoare de ceramica, tamplarie aluminiu, usa intrare blindata si cele de interior cellular furniruite firma Vertical design.<br /></p><ul><li><a href=\"http://www.doamnaghicaplaza.ro/garsoniere/\" title=\"Vanzari garsoniere\">Garsoniere noi</a><br /> de la 65.800Eur</li><li><a href=\"http://www.doamnaghicaplaza.ro/apartamente-2-camere/\" title=\"Vanzari apartamente 2 camere\">Apartamente 2 camere</a><br /> apartamente noi complet finisate: de la 83.448Eur</li><li><a href=\"http://www.doamnaghicaplaza.ro/apartamente-3-camere/\" title=\"Apartamente 3 camere\">Apartamente 3 camere</a><br />apartamente noi complet finisate: oferta speciala</li><li><a href=\"http://www.doamnaghicaplaza.ro/apartamente-4-camere/\" title=\"Apartamente 4 camere\">Apartamente 4 camere</a><br /> de la 152.144Eur</li></ul></div>';
	else{
		//alert("asdas");
		new Ajax.Updater('items', '/buildingAnalyser.php', 
		{
	  		method: 'get',
	  		parameters: {building: blockNo,etaj: etaj}
	  	});
	}
	
}


	

