function externalLinks(){
	if(!document.getElementsByTagName) return;
	var anchors=document.getElementsByTagName("a");
	if(!anchors) return;
	for(var i=0;i<anchors.length;i++){
		var anchor = anchors[i];
		if(anchor.getAttribute("href") && anchor.getAttribute("rel")=="ext")
			anchor.target = "_blank";
	}
}

var hoverIt = new Array();
hoverIt[0]='MainMenu';

function sfHover(){
	if(!document.getElementById || !document.getElementsByTagName) return;
	for(var j=0;j<hoverIt.length;j++){
		var thenav = document.getElementById(hoverIt[j]);
		if(!thenav) continue;
		var sfEls = thenav.getElementsByTagName("li");
		if(!sfEls) continue;
		for (var i=0; i<sfEls.length; i++){
			sfEls[i].onmouseover=function(){this.className+=" hover";}
			sfEls[i].onmouseout=function(){this.className=this.className.replace(new RegExp(" hover\\b"), "");}
		}
	}
}

function dothings(){
	externalLinks();
}

window.onload = dothings;

if (window.attachEvent) window.attachEvent("onload", sfHover);//numai ie stie de attachEvent (si Opera)

function DisplayFlash(flashFile,width,height,quality,wmode,idHtml) {
  document.write('<object id="'+ idHtml +'" type="application/x-shockwave-flash" data="'+ flashFile +'" width="'+ width +'" height="'+ height +'">');
  document.write('<param name="movie" value="'+ flashFile +'" />');
  document.write('<param name="quality" value="'+ quality +'" />');
  document.write('<param name="wmode" value="'+ wmode +'" />');
  document.write('<param name="menu" value="false" />>');
  document.write('<param name="scale" value="noscale" />>');
  document.write('<param name="loop" value="false" />>');
  document.write('</object>');
}

