<!--
var cdn='infocomp.ro';
var terms='z/conditii_de_utilizare';

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//add to favorites
var sn=top.location.hostname;
if (sn==cdn) top.location.href='http://www.'+cdn+'/';

function BookMarkIt(site) {
 if (window.external) {
  if (MM_findObj('addfavchannel')) MM_findObj('addfavchannel').innerHTML='<img src="/add2favorites.php?url='+escape(document.location.href)+'" alt="" width=1 height=1 border=0>';
  window.external.AddFavorite(document.location, site+document.title);
 }
 else alert("Sorry! Your browser doesn't support this function.");
}

function JumpToLogin() {
 alert ('Functia de Login este temporar indisponibila.');
}

function Subscribe() {
 alert ('Formularul de abonament este temporar indisponibil.');
}

function JumpTo(what) {
 var a='http://www.',b='tititudorancea',c='titiland',d='.net',e='.com',f='contact',g='/',i='.htm',z='';
 if (what=='net') z=a+b+d+g;
 if (what=='contact') z=a+b+d+g+'z/'+f+i;
 if (what=='publisher') z=a+c+e+g;
 if (what=='terms') z=a+cdn+g+terms+i;
 if (z.length) window.location.href=z;
}

//make homepage
function setHP() {
 if (document.getElementById('hp').style.behavior) {
	hp.style.behavior='url(#default#homepage)';
	hp.setHomePage('http://www.'+cdn+'/');
 } else {
	alert("Sorry! Your browser doesn't support this function.");
 }
}

//e-mail
function EmailPage() {
 popUpWindow("http://www."+cdn+"/z/email_to_friend.htm?whatpage="+escape(location.href)+"&pagetitle="+escape(document.title), 40, 40, 720, 280);
}

//search site
function KeySrc(frm){
 var pass=true;
 if ((frm.sk) && (frm.sk.value == '')) pass=false;
 if (!pass){
	alert("Insert search phrase or words, then hit Search!");
	return false;
 } else {
	return true;
 }
}

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height) {
 if(popUpWin) {
	if(!popUpWin.closed) popUpWin.close();
 }
 popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=yes,scrollbar=no,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top);
}
//default pop-up
function popMeUp(zURL) {
	popUpWindow(zURL, 40, 10, 720, 650);
}
//new pop-up
function BigPhoto(pic,wd,ht,caption,auth) {
 popUpWindow('', 40, 10, 720, 630);
 if (auth) var credits='<p class="ezsignature" style="text-align:right">'+auth+'</p>';
 popUpWin.document.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>'+caption+'</title><link rel="stylesheet" href="/lib/styles.css" type="text/css"></head><body leftmargin="40" topmargin="5" rightmargin="40" bottommargin="5" style="background-color:#FFFFFF"><div align="center"><div style="width:640px"><div align="right"><img src="/lib/head-name-xxs.gif" border="0" alt="" width="232" height="12" vspace="5"></div><p><img src="'+pic+'" border="0" alt="" width="'+wd+'" height="'+ht+'" galleryimg="no"></p>'+credits+'<div align="left"><p class="Txt">'+caption+'</p></div></div></div></body></html>');
 popUpWin.document.close();
}

function dC(s,m){var o='',k=0,si=0,cArr,rb,xc,ps='',pis=0,u;
 for (w=0;w<s.length;w++) {
	u=s.substr(w,1);
	if (isNaN(u)&&(u!=',')) {
		if (pis) ps+=','+u;
		else ps+=u;
		pis=1;
	} else {
		ps+=u;
		pis=0;
	}
 }
 cArr=ps.split(',');
 for (i=0;i<cArr.length;i++) {
	if (k>=m.length) k=0;
	if (si>=sn.length) si=0;
	if (isNaN(cArr[i])) {
		xc=cArr[i].charCodeAt(0);
		if (xc>96) rb=97; else rb=65;
		xc-=(m.charCodeAt(k)+sn.charCodeAt(si))%10;
		if (xc<rb) xc+=26;
	} else {
		xc=cArr[i]-m.charCodeAt(k)-sn.charCodeAt(si);
	}
	eval("o+=String.fromCharCode("+xc+");");
	k++;
 }
 return o;
}
function HotLoad(fi,ap) {
 if (dhld[fi]!=undefined) {
	eval(dhld[fi]);
	if (ap) setTimeout("sendEvent('mp','playpause')",1000);
 }
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
//####end of home js####

function RSwaP() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function DoSwaP() { //v3.0
  var i,j=0,x,a=DoSwaP.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//-->