/**
 * @author kratzl
 * Belépés nyelvválasztó függvénye
 */

function nyelv_valtas(nyelv){
    var str_rendben;
    var str_irodalogin;
    var str_irodajelszo;
    var str_userlogin;
    var str_userjelszo;
    switch (nyelv) {
        case "hu":
            str_rendben = "Rendben";
            str_irodalogin = "Iroda bejelentkezési név:";
            str_irodajelszo = "Irodai jelszó:";
            str_userlogin = "Ügyintéző bejelentkezési név:";
            str_userjelszo = "Ügyintéző jelszó:";
            break;
        case "en":
            str_rendben = "Login";
            str_irodalogin = "Company login:";
            str_irodajelszo = "Company password:";
            str_userlogin = "User login:";
            str_userjelszo = "User password:";
            break;
        case "it":
            str_rendben = "Assegno di";
            str_irodalogin = "Azienda assegno in:";
            str_irodajelszo = "Azienda password:";
            str_userlogin = "Domanda di assegni in:";
            str_userjelszo = "Applicazione password:";
            break;
        case "de":
            str_rendben = "Scheck - in";
            str_irodalogin = "Firmenscheck - in:";
            str_irodajelszo = "Firmenkennwort:";
            str_userlogin = "Anwendungsscheck - in:";
            str_userjelszo = "Anwendungskennwort:";
            break;
        case "sk":
            str_rendben = "Šek-in";
            str_irodalogin = "Spoločnosť šek-in:";
            str_irodajelszo = "Spoločnosť heslo:";
            str_userlogin = "Použitie šeku-in:";
            str_userjelszo = "Použitie hesla:";
            break;
        case "sr":
            str_rendben = "Чек-ин";
            str_irodalogin = "Компанија чек-ин:";
            str_irodajelszo = "Компанија лозинка:";
            str_userlogin = "Примена чек-ин:";
            str_userjelszo = "Примена лозинка:";
            break;
        case "hr":
            str_rendben = "Ček-in";
            str_irodalogin = "Tvrtka ček-in:";
            str_irodajelszo = "Tvrtka lozinka:";
            str_userlogin = "Primjena ček-in:";
            str_userjelszo = "Primjena lozinka:";
            break;
            
        default:
            str_rendben = "Rendben"
    }
    
    document.getElementById("lab_irodalogin").innerHTML = str_irodalogin;
    document.getElementById("lab_irodajelszo").innerHTML = str_irodajelszo;
    document.getElementById("lab_ugyintezologin").innerHTML = str_userlogin;
    document.getElementById("lab_ugyintezojelszo").innerHTML = str_userjelszo;
    
    document.getElementById("loginsubmit").innerHTML = str_rendben;
    
	switch(nyelv) {
		case "hu":
			document.getElementById("kezdo_tartalom").innerHTML ="<p>" +								    		
		    "A www.ingatlannyilvantartas.hu cím alatt Ön egy ingatlanirodák számára fejlesztett ingatlan nyilvántartó programot talál. " + 
		    "Az ingatlan program vezeti az irodai nyilvántartást, eltárolja a kínálatokat és a kereséseket, majd ezeket kérésre automatikusan párosítja, " + 
		    "részletes ügyfélkezeléssel rendelkezik, valamint a benne tárolt adatokat több ingatlanos portál felé képes továbbítani. " +				
		    "</p> " +
			"<p> " +
		    "Az ingatlanközvetítő program alapját az OriGo Ingatlan Program biztosítja, melyet az üzemeltetők 1996 óta folyamatosan fejlesztenek. " + 
		    "Az Ingatlannyilvántartás egyaránt képes kiszolgálni önálló irodákat, cégcsoportokat, hálózatba tömörült társaságokat, " + 
		    "függetlenül attól, hogy ez utóbbiak esetében sima kereskedelmi együttműködésről, vagy franchise hálózatról van szó. " + 
		    "A program hálózatok kiszolgálása mellett cégcsoportok telephelyeinek kezelésére is alkalmas. " +  
		    "Ez különösen akkor hasznos, ha az ingatlanirodára vonatkozó jelentéseket nem csak az irodán belül kívánja látni, " + 
		    "hanem cégcsoportra összevontan is követni kívánja az irodák eseményeit. " +  
		    "Ilyen lehet az új megbízások és értékesítések követése, az érdeklődések és bemutatók nyilvántartása. " + 
		    "Szorosabb elszámolással működő ingatlan hálózatok és franchise rendszerek számára hatalmas előny a program által " +  
		    "biztosított központi felügyelet. " + 
			"</p> " +
			"<p> " +
			"A hálózatokban az adatküldés hasonló az adatbázisok felé való továbbítással. Egyetlen kattintással megoszthatja ingatlanjait hálózati " +
			"partnereivel, és ezzel a keresztértékesítés lehetősége lényegesen nagyobb. " +
			"<br /> " +
			"<br /> " +
			"Megfelelő ingatlan szoftver nélkül az ingatlanközvetítés ma már nehezen űzhető. Az Ingatlannyilvántartás szinte minden felmerülő " +
			"igényt kielégít. Hálózati partnereink a <a href='http://www.origoingatlan.hu' target='_blank'>www.origoingatlan.hu</a> oldalt ingyen tölthetik. " +
			"Ha Ön önálló irodaként kívánja használni az ingatlan szoftvert, akkor az OrigoIngatlan oldalon való megjelenésre külön előfizethet. " +
			"<br /> " +
			"Az Ingatlannyilvántartás internet alapon működő böngésző független szoftver, így használhatja Windows Explorer, Firefox, " + 
			"Google Chrome, Safari, vagy Opera segítségével. Az Ingatlannyilvántartás az OriGo Ingatlan Program új változata. " +			
			"</p>"
			break;						
		default:
			document.getElementById("kezdo_tartalom").innerHTML = "<p class='szoveg_kozepes' align='justify'>" +
     		"The software of Real Estate Inventory is an application specially designed for real estate brokerage offices, with the purpose of supporting their daily routine work.  In Hungary this system has the highest number of users, it is used by both independent offices and networks. Dunaholding Informatikai Stúdió Kft. has been working on the continuous development of this software since 1996, thus they can be considered the longest standing Hungarian service provider in the real estate market, in the field of IT.  The basis of this system is the OriGo Real Estate Program. " +
     		"</p><p class='szoveg_kozepes' align='justify'>" +
     		"Real Estate Inventory can be accessed through the Internet (www.ingatlannyilvantartas.hu), it is browser independent, available under Internet Explorer, Google Chrome, Firefox, Safari and Opera. " +
             "The application can be functionally scaled for small and large offices as well as networks.  It keeps an inventory of the real estate offers and listings of the office. It enables the registration of events, contains an electronic to do list for the staff, statistics can be queried to get information about the average values in the given area. " +
             "If you use this application, the property is no longer isolated, as it offers opportunities for such things as cooperation over the network, for example. The network version supports the cross-selling of independent offices, showing the properties for sale in a shared database.  By its site management function it offers a solution for the communication and central control of companies maintaining multiple offices. " +
             "Companies can load their web sites simply and quickly by using an OriGo-based search engine.  The application of this function will put the shared properties from the internal records of the office unto a public display, there is no need to maintain separate inventories for the internal system and the public advertising display." +
             "</p><p class='szoveg_kozepes' align='justify'>" +
             "It is one of the most important interests of real estate developers that their advertisements should be published in as many places as possible. However, this requires lots of work, time and administration.  You can reduce all of these by using the Real Estate Inventory program of Dunaholding Informatikai Stúdió Kft.  In addition to the fact that our customers maintain professional office inventories, from a central database, they are able to forward to advertisements posted on the Internet to 26 partner sites.  Relying on the interfaces they can appear on the different advertisement portals with punctual administration and genuine data.  It is enough to mark the given property once, by one click for data forwarding, and every update or change will be forwarded automatically onto the respective surfaces. " +
             "By this solution Origo will spare the burdens of multiple administration for its partners.  The developers of the system are constantly looking for those advertisement portals where they could send over the properties of their customers, thus the list of available interfaces is expanding continuously. Since the program uses codes for storing much of the data available about the properties, multi-language portals could also be used when establishing a connection. " +
             "</p><p class='szoveg_kozepes' align='justify'>" +
             "You can test the opportunities this program offers on the site of www.ingatlannyilvantartas.hu, you only need to register for that.  On the main page you find the possibility for registration; after recording your corporate data the system will send the office password to the e-mail address that you have specified.  You can use this and the passwords specified by you to enter the program.  You can use the built-in help function of the program, which even offers instructional videos.  However, if you prefer to learn how to use the system in the form of a free Internet-based course, you also have that option. " +
             "</p><p class='szoveg_kozepes' align='justify'>" +
             "When you enter the program, you can choose what language the program should use to communicate with you.  Translations are being prepared and expanded constantly, so in the future it is likely that everybody will be able to select in which language they want to use the program.  After the completion of the language versions the program will be able to handle communities in countries outside Hungary, thus you can also record properties in these areas. " +
             "</p><p class='szoveg_kozepes' align='justify'>" +
             "The data will be allowed to appear without geographical restrictions on those public pages that are available for the presentation of properties located in Europe and the Real Estate Inventory has data forwarding option to them. " +
             "</p>";						
	}                                                                   
} 

function MilyenBongeszo(){
    var bongeszo = "Az Ön böngészője: ";
	var javaslat = '<br/><a style="color: #ffffff; font-size: 14px; font-weight: bold; text-decoration: none;" href="http://www.google.com/chrome" target="_blank">' +
				'<br/>Használjon Google Chrome böngészőt a gyorsabb működésért!<br/>Letöltés és telepítés itt.</a>'
    
    if (Ext.isGecko) {
        if (Ext.isGecko2) {
            bongeszo += 'FireFox 2, vagy FireFox 4 - ';
            bongeszo += 'A FireFox 2 lassú az Ingatlannyilvántartás használatához. Telepítse a 4-es verziót, de gyorsabb futást érhet el a Google Chrome böngészőjével is. A Firefox 4 sebessége megfelelő.';
        };
        if (Ext.isGecko3) {
            bongeszo += 'FireFox 3 - ';
            bongeszo += 'A FireFox 3 jó választás az Ingatlannyilvántartás használatához, de gyorsabb futást érhet el a Google Chrome böngészőjével, vagy a FireFox 4-es verziójával.';
        };
            };
    
    if (Ext.isChrome) {
        bongeszo += 'Google Chrome - ';
        bongeszo += 'A Google Chrome böngészőjével fut leggyorsabban az Ingatlannyilvántartás. Ön jól választott. Ellenőrizze rendszeresen a böngésző névjegy panelén az aktuális verziószámot!';
    };
    if (Ext.isIE) {
        if (Ext.isIE6) {
            bongeszo += 'Internet Explorer 6 - ';
            bongeszo += 'Az IE6 nem javasolt a rendszerhez. Frissítse IE8-ra a böngészőjét. Gyorsabb futást érhet el a Google Chrome böngészőjével.';
        };
        if (Ext.isIE7) {
            bongeszo += 'Internet Explorer 7 (vagy IE8 kompatibilitási üzemmódban) - ';
            bongeszo += 'Az IE7 alkalmas a rendszer használatához, érdemes bővíteni IE8-ra. Ha IE8-at használ, akkor kapcsolja ki a kompatibilitási üzemmódot erre az internet címre. Gyorsabb futást érhet el a Google Chrome böngészőjével.';
        };
        if (Ext.isIE8) {
            bongeszo += 'Internet Explorer 8 - ';
            bongeszo += 'Az IE8 alkalmas a rendszer használatához, de a FireFox és Chrome gyorsabb. Gyorsabb futást érhet el a Google Chrome böngészőjével.';
        };
            };
    if (Ext.isOpera) {
        bongeszo += 'Opera - ';
        bongeszo += 'Az Opera alkalmas az Ingatlannyilvántartás használatára, és gyors is.';
    };
    if (Ext.isSafari) {
        if (Ext.isSafari2) {
            bongeszo += 'Safari 2 - ';
            bongeszo += 'A Safari 2 nem javasolt a rendszerhez. Frissítse Safari 4-re a böngészőjét. Gyorsabb futást érhet el a Google Chrome böngészőjével.';
        };
        if (Ext.isSafari3) {
            bongeszo += 'Safari 3 - ';
            bongeszo += 'A Safari 3 alkalmas a rendszer használatához, érdemes bővíteni Safari 4-re. Gyorsabb futást érhet el a Google Chrome böngészőjével.';
        };
        if (Ext.isSafari4) {
            bongeszo += 'Safari 4 - ';
            bongeszo += 'A Safari 4 alkalmas a rendszer használatához. Esetleg gyorsabb futást érhet el a Google Chrome böngészőjével.';
        };
    };
	
	if (!Ext.isChrome) {
        bongeszo += javaslat;        
    };
	
    document.getElementById("bongeszo_vizsgalat").innerHTML = bongeszo;
    
}
