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

//--------------------
function fjs(url) {	
	if (!window.win2||win2.closed)
		win2=window.open(url, '', 'height=750,width=1050,left=0,top=0,screenX=0,screenY=0,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=yes');
		//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(http://www.construct-ove.ro/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(http://www.construct-ove.ro/images/" + source.id + "1.gif)";
	}
}

function changeTDto(e,highlightcolor,textcolor){
source=ie? e.srcElement : source=e.target
if (source.tagName=="TABLE") return;
while (source.tagName!="TD" && source.tagName!="HTML") 	 
	source=ns6? source.parentNode : source.parentElement;

if ((source.id=="TDM") && (source.style.backgroundColor!=highlightcolor))// && source.id!=meniuId)
	{
		//source.style.backgroundColor=highlightcolor;
		source.style.backgroundImage="url(http://www.construct-ove.ro/images/meniu_but_bk2.gif)";
	 	source.style.color=textcolor;
	 }
if (source.id=="TDMG")// && source.id!=meniuId)
	{
		//source.style.backgroundColor=highlightcolor;
		source.style.backgroundImage="url(http://www.construct-ove.ro/images/meniu_gal_bk2.gif)";
	 	source.style.color=textcolor;
	 }
}

function changeTDback(e,originalcolor){
if (ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||(source.id!="TDM"&&source.id!="TDMG")))//||source.tagName=="TABLE" )//|| source.id==meniuId)
	return
	else if (ns6&&(contains_ns6(source, e.relatedTarget)||(source.id!="TDM"&&source.id!="TDMG")) )//|| source.id==meniuId)
		return
//if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
	{//source.style.backgroundColor=originalcolor;
		if (source.id=="TDM")  source.style.backgroundImage="url(http://www.construct-ove.ro/images/meniu_but_bk1.gif)";
		if (source.id=="TDMG") source.style.backgroundImage="url(http://www.construct-ove.ro/images/meniu_gal_bk1.gif)";		
	}
	
}

function getGET(){ // Import GET Vars  document.$_GET['varname']
	document.$_GET = [];   
	var urlHalves = String(document.location).split('?');   
	if(urlHalves[1]){      
		var urlVars = urlHalves[1].split('&');      
		for(var i=0; i<=(urlVars.length); i++){         
			if(urlVars[i]){            
				var urlVarPair = urlVars[i].split('=');            
				document.$_GET[urlVarPair[0]] = urlVarPair[1];         
			}      
		}   
	}
}

function MM_preloadImages() { //v3.0
  var d=document;
  if (d.images) 
  	{ 
		if(!d.MM_p) d.MM_p=new Array();
	    var i, j=d.MM_p.length, a=MM_preloadImages.arguments;
		for(i=0; i<a.length; i++)
		    if (a[i].indexOf("#")!=0)
			{ 
				d.MM_p[j]=new Image;
				d.MM_p[j++].src=a[i];
			}
	}
}

window.onload = "MM_preloadImages('http://www.construct-ove.ro/images/BAmprentat2.gif','http://www.construct-ove.ro/images/BCompania2.gif','http://www.construct-ove.ro/images/BContact2.gif','http://www.construct-ove.ro/images/BElicopterizat2.gif','http://www.construct-ove.ro/images/BPiscine2.gif','http://www.construct-ove.ro/images/BUtilaje2.gif','http://www.construct-ove.ro/images/meniu_but_bk2.gif','http://www.construct-ove.ro/images/meniu_gal_bk2.gif','http://www.construct-ove.ro/images/loading.gif')"











/*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;*/
