// JavaScript Document
//window.status='De vanzare fara intermediari.ro';

//--------------------
function fjs(e) {	
	source=ie? e.srcElement : e.target
	i=source.src;	
	
	var url = i.substring(0, i.lastIndexOf("."));
	if (url.charAt(url.length-1)=='m') url = url.substring(0, url.length-1);
	url = url + "o.jpg";

	if (!window.win2||win2.closed)
		win2=window.open(url, '', 'height=750,width=990,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no');
		//else if win2 already exists
		else{
			win2.location=url
			win2.focus() }
}

//-----------Meniu
//Specify highlight behavior. "TD" to highlight table cells, "TR" to highlight the entire row:
var highlightbehavior="TD"

var ns6=document.getElementById&&!document.all
var ie=document.all


function contains_ns6(master, slave) { //check if slave is contained by master
while (slave.parentNode)
	if ((slave = slave.parentNode) == master) return true;
return false;
}

function meniuchangeto(e,highlightcolor){
source=ie? e.srcElement : source=e.target
while (source.tagName!="TABLE" && source.tagName!="HTML")
	source=ns6? source.parentNode : source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
	{		
		source.style.backgroundImage="url(images/" + source.id + "2.gif)";
	}
}

function meniuchangeback(e,originalcolor){
if (ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore"))
	return
	else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore") )
		return
if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
	{
		source.style.backgroundImage="url(images/" + source.id + "1.gif)";
	}
}

function changeto(e,highlightcolor){
source=ie? e.srcElement : source=e.target
if (source.tagName=="TABLE") return;
while (source.tagName!=highlightbehavior && source.tagName!="HTML")
	source=ns6? source.parentNode : source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")// && source.id!=meniuId)
	{source.style.backgroundColor=highlightcolor;}
}

function changeback(e,originalcolor){
if (ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore"))//||source.tagName=="TABLE" )//|| source.id==meniuId)
	return
	else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore") )//|| source.id==meniuId)
		return
if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
	{source.style.backgroundColor=originalcolor;}
}


function initHideImg()
{
	var divs = document.getElementsByTagName('IMG');

	for(var no=0;no<divs.length;no++){
		
		if (divs[no].title && divs[no].title != '') divs[no].title = '';
        if (divs[no].alt && divs[no].alt != '') divs[no].alt = '';
		}		
		
}
window.onload = initHideImg;


