var detect = navigator.userAgent.toLowerCase();
var OS,browser,total,thestring;
var version = 0;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "an unknown operating system";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

function stopOutMargin(e)
{
//pt. ca exploderul (browser-ul celor multi :D),
//pe langa multe pe care nu le stie...
//...nu stie nici de min-width, min-height
//(adica stie el ceva .. dar pe dos (auzi ma, tata: width==min-width ?!)
//&#351;i... CULMEA!!!! ... M$ este partener de seama la w3c ?!?!?!
if (browser == "Internet Explorer"){
    h=document.body.clientHeight;
    w=document.body.clientWidth;
    if (h < 482){
	document.getElementById("t_pp").style.height="482px";
	}
    else{
	document.getElementById("t_pp").style.height="100%";
	}
    if (w < 790){
	document.getElementById("t_pp").style.width="790px";
	}
    else{
	document.getElementById("t_pp").style.width="100%";
	}
    }
}
function initR()
{window.onresize=stopOutMargin;}


function clearAllBord()
{
document.getElementById("wpID").style.textDecoration="none";
document.getElementById("wdID").style.textDecoration="none";
document.getElementById("whID").style.textDecoration="none";
document.getElementById("sID").style.textDecoration="none";
document.getElementById("cID").style.textDecoration="none";
document.getElementById("lanID").style.textDecoration="none";
document.getElementById("wanID").style.textDecoration="none";
}

//var wp="web programming";
var wp='<p class="nfo_titlu">web programming</p><p>Echipa <span class="nfo_brown">I-LiNC</span> are o experien&#355;&#259; bogat&#259; &#238;n dezvoltarea aplica&#355;iilor pentru web, de la simple programe utilitare p&#226;n&#259; la aplica&#355;ii construite pe baze de date complexe. <span class="nfo_brown">Experien&#355;a I-LiNC</span> ne permite s&#259; v&#259; oferim aplica&#355;ii <span class="nfo_brown">profesionale, complexe</span> dar &#351;i <span class="nfo_brown">performante</span>, &#238;n acelasi timp <span class="nfo_brown">\"user friendly\"</span> u&#351;or de utilizat, precum &#351;i cu <span class="nfo_brown">&#238;ntre&#355;inere &#351;i administrare</span> facile pentru utilizator.</p><p class="nfo_brown">Dezvolt&#259;m, pentru fiecare client I-LiNC, solu&#355;ia optim&#259; &#351;i personalizat&#259;.</p><p>V&#259; st&#259;m la dispozi&#355;ie pentru dezvoltarea de site-uri cu administrare de con&#355;inut <span class="nfo_brown">CMS</span>, comunica&#355;ii (forum, chat, instant messaging), portaluri de <span class="nfo_brown">B2B</span> sau <span class="nfo_brown">B2C</span>, aplica&#355;ii de <span class="nfo_brown">e-commerce</span>, sisteme de gestiune, managementul clien&#355;ilor <span class="nfo_brown">CRM</span>, resurse umane, managementul documentelor <span class="nfo_brown">DMS</span>, etc.</p>';
var wd='<p class="nfo_titlu">web design</p><p>Designul pe care &#238;l oferim este bazat pe concepte care s&#259; transpun&#259; nevoile dv. &#238;ntr-o imagine, care s&#259; asigure o <span class="nfo_brown">identitate unic&#259;</span> &#238;n spa&#355;iul world wide web. <span class="nfo_brown">Imaginea</span> de pe www a <span class="nfo_brown">companiei dv.</span> este cel pu&#355;in la fel de important&#259; pentru clien&#355;ii sau partenerii dv. de afaceri ca &#351;i fa&#355;ada spa&#355;iului comercial, sau a biroului dv., sau ma&#351;ina din care cobor&#226;&#355;i!</p><p class="nfo_brown">Dezvolt&#259;m, pentru fiecare client I-LiNC, solu&#355;ia optim&#259; &#351;i personalizat&#259;.</p><p>Noi nu ne alegem clientela, deoarece Clien&#355;ii no&#351;trii &#351;tiu s&#259; aleag&#259;!</p>';
var wh='<p class="nfo_titlu">web hosting</p><p></p>';
var s='<p class="nfo_titlu">servicii IT</p><p></p>';
var c='<p class="nfo_titlu">consultanta IT</p><p></p>';
var lan='<p class="nfo_titlu">intranet</p><p></p>';
var wan='<p class="nfo_titlu">internet</p><p></p>';

function showInfo(categ, theID)
{
clearAllBord();
document.getElementById("theInfoText").style.display="";
document.getElementById("theX").style.display="";
document.getElementById("theInfoText").innerHTML=categ;
document.getElementById(theID).style.textDecoration="underline";
}

function hideInfo()
{
clearAllBord();
document.getElementById("theInfoText").style.display="none";
document.getElementById("theX").style.display="none";
}


 theX = new Image(14,14)
 theX.src = "../pics/theX.png"
 theXo = new Image(14,14)
 theXo.src = "../pics/theXo.png"
 
function chImg(cImg,ref) {
 document.images[cImg].src = ref.src
 }



