function dentro (id) {
	var e = document.getElementById(id);
	/*e.style.color="#F00";*/
	e.style.textDecoration="underline";
	e.style.fontWeight="bold";
	
	document.getElementById("MappaItalia").src =  baseStaticUri + "/images/regioni/"+id +".gif";
	return;
}

function fuori (id) {
	var e = document.getElementById(id);
	/*e.style.color="";*/
	e.style.textDecoration="";
	e.style.fontWeight="";
	document.getElementById("MappaItalia").src =  baseStaticUri + "/images/regioni/italia.gif";
	return;
}

function preload() {
  if (!document.images) return;
  var imgs = new Array();
  var arguments = preload.arguments;
  for (var i = 0; i < arguments.length; i++) {
    imgs[i] = new Image();
    imgs[i].src = arguments[i];
  }
}

function onKeyNumeric(e) {
			
			// Accetto solo numeri e backspace <-
			if ( ((e.keyCode >= 48) && (e.keyCode <= 57)) || (e.keyCode == 8) ) {
				return true;
			} else {
				return false;
			}
		}

function aggiungibookmark(titolo,url)
{
  if (document.all) window.external.AddFavorite(url, titolo);
  else if (window.sidebar && window.sidebar.addPanel) window.sidebar.addPanel(titolo, url, '');
  else alert('Il tuo Browser non supporta questa funzione!');
}

function seleziona(id)
{
  document.getElementById(id).focus();
  document.getElementById(id).select();
}

// Select Province e Comuni dalla Regione.
function selProvCom(idRegion) {
  // Seleziono province di questa regione.
  $.get("select_abitativa.php", { regionid: idRegion, requestItems: 'province'},
  function(dataProvince){
    $("select[id='province']").empty();
    var options = '<option value="">-- seleziona --</option>';
    var arrayProvince = dataProvince.split( '||');
    for (var i = 1; i < arrayProvince.length; i++) {
      var provincia = arrayProvince[i].split( /,/);
      options += '<option value="' + provincia[0] + '">' + provincia[1] + '</option>';
    }
    $("select[id='province']").html(options);
  });
  // Seleziono comuni di questa regione.
  $.get("select_abitativa.php", { regionid: idRegion, requestItems: 'comuni'},
  function(dataComuni){
    $("select[id='city']").empty();
    var options = '<option value="">-- seleziona --</option>';
    var arrayComuni = dataComuni.split( '||');
    for (var i = 1; i < arrayComuni.length; i++) {
      var comune = arrayComuni[i].split( /,/);
      options += '<option value="' + comune[0] + '">' + comune[1] + '</option>';
    }
    $("select[id='city']").html(options);
  });
}

// Select Comuni dalla Provincia.
function selCom(idProvincia) {
  // Seleziono comuni di questa provincia.
  $.get("select_abitativa.php", { provinciaid: idProvincia, requestItems: 'comuni'},
  function(dataComuni){
    $("select[id='city']").empty();
    var options = '<option value="">-- seleziona --</option>';
    var arrayComuni = dataComuni.split( '||');
    for (var i = 1; i < arrayComuni.length; i++) {
      var comune = arrayComuni[i].split( /,/);
      options += '<option value="' + comune[0] + '">' + comune[1] + '</option>';
    }
    $("select[id='city']").html(options);
  });
}


function controllooffconv(){

with(document.formoffconv) {
    
    
if(nomeazienda.value=="") {

alert("Perfavore, inserisci il nome del tuo Negozio o Azienda.");

nomeazienda.focus();

return false;

}

if(indirizzo.value=="") {

alert("Perfavore, inserisci l'indirizzo del tuo Negozio o Azienda.");

indirizzo.focus();

return false;

}

if(comune.value=="") {

alert("Perfavore, inserisci il comune dove si trova il tuo Negozio o Azienda.");

comune.focus();

return false;

}

if(tel.value=="") {

alert("Perfavore, inserisci un recapito Telefonico.");

tel.focus();

return false;

}

if(email.value=="") {

alert("Perfavore, indicare indirizzo Email.");

email.focus();

return false;

}

}

return true;

}




function controllotel(){

with(document.ricerche) {
    
    
if(cercas.value=="") {

alert("Perfavore, inserisci un termine per la ricerca.");

cercas.focus();

return false;

}

if(dove1.value=="") {

alert("Perfavore, inserisci dove vuoi che venga effettuata la tua ricerca.");

dove1.focus();

return false;

}

}

return true;

}


function controllorecpass(){

with(document.forgotForm) {
    
    
if(username.value=="") {

alert("Perfavore, inserisci il tuo Username.");

username.focus();

return false;

}

if(email.value=="") {

alert("Perfavore, inserisci il tuo indirizzo Email.");

email.focus();

return false;

}

}

return true;

}




function controllotel2(){

with(document.ricerche2) {
    
    
if(scerca.value=="") {

alert("Perfavore, inserisci un termine per la ricerca.");

scerca.focus();

return false;

}

}

return true;

}



function controllo1(){

with(document.form1) {
    
    
if(sottocat.value=="") {

alert("Perfavore, seleziona la Categoria.");

sottocat.focus();

return false;

}    
    

if(region.value=="") {

alert("Perfavore, seleziona la Regione.");

region.focus();

return false;

}

if(province.value=="") {

alert("Perfavore, seleziona la Provincia.");

province.focus();

return false;

}


if(nome.value=="") {

alert("Perfavore, inserisci il tuo nome.");

nome.focus();

return false;

}


if(email.value=="") {

alert("Perfavore, inserisci la tua email.");

email.focus();

return false;

}

if(tel.value=="") {

alert("Perfavore, inserisci il tuo numero telefonico.");

tel.focus();

return false;

}


if(titolo.value=="") {

alert("Perfavore, inserisci il titolo del tuo annuncio.");

titolo.focus();

return false;

}

if(deslunga.value=="") {

alert("Perfavore, inserisci una descizione dettagliata massimo 400 caratteri.");

deslunga.focus();

return false;

}

}

return true;

}

function controllo2(){

with(document.form2) {

if(ragsoc.value=="") {

alert("Perfavore, inserisci la Ragione Sociale o il Nominativo o il Titolo.");

ragsoc.focus();

return false;

}

if(region.value=="") {

alert("Perfavore, seleziona la Regione.");

region.focus();

return false;

}

if(province.value=="") {

alert("Perfavore, seleziona la Provincia.");

province.focus();

return false;

}

if(city.value=="") {

alert("Perfavore, seleziona il Comune.");

city.focus();

return false;

}

if(cap.value=="") {

alert("Perfavore, inserisci il Cap.");

cap.focus();

return false;

}

if(indirizzo.value=="") {

alert("Perfavore, inserisci l'indirizzo.");

cap.focus();

return false;

}

if(ncivico.value=="") {

alert("Perfavore, inserisci il numero civico.");

ncivico.focus();

return false;

}

if(email.value=="") {

alert("Perfavore, inserisci la tua email.");

email.focus();

return false;

}

if(descorta.value=="") {

alert("Perfavore, inserisci una breve descizione massimo 100 caratteri.");

descorta.focus();

return false;

}

if(deslunga.value=="") {

alert("Perfavore, inserisci una descizione dettagliata massimo 400 caratteri.");

deslunga.focus();

return false;

}

if(privacy.checked == 0) {

alert("Non e' possibile accettare l'iscrizione senza il consenso al trattamento dei dati personali.");

privacy.focus();

return false;

}

}

return true;

}


function gotopage(pPagina)
{
document.info.method="post";
document.info.action=pPagina;
document.info.submit();
}

//********* CONTROLLO ALMENO UN CAMPO SELEZIONATO *****************************
function procedi(ind)
{

errore_votoesp=true //variabile che mi dice se ci sono errori
cont=0 //contatore errori
campi=0 //campo che non stato valorizzato

for (counter = 0; counter < document.info.votoesp.length; counter++)
{
if (document.info.votoesp[counter].checked)
{errore_votoesp=false;break;}
}

if (errore_votoesp==true)
{
++cont;
campi=1;
}

if(errore_votoesp==false)
{
//possiamo andare avanti
gotopage(ind)
}
else
{
//messaggio di errore
if(cont!=1)
{
alert("Attenzione Non hai compilato alcuni campi obbligatori")
}
else
{
alert("Attenzione! devi selezione almeno una risposta.")
}
}
}

function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
countfield.value = maxlimit - field.value.length;
}

function controllo9(){

with(document.formcollabora) {



if(nominativo.value=="") {

alert("Il campo NOMINATIVO e' obbligatorio.");

nominativo.focus();

return false;

}


if(email.value=="") {

alert("Il campo EMAIL e' obbligatorio.");

email.focus();

return false;

}

if(privacy.checked == 0) {

alert("Per effettuare l'invio occorre dare il consenso al trattamento dei dati personali.");

privacy.focus();

return false;

}

}

return true;

}

function controllo5(){

with(document.formdilatua) {



if(nominativo.value=="") {

alert("Il campo NOMINATIVO e' obbligatorio.");

nominativo.focus();

return false;

}


if(email.value=="") {

alert("Il campo EMAIL e' obbligatorio.");

email.focus();

return false;

}


if(testo.value=="") {

alert("Il campo DI LA TUA e' obbligatorio.");

testo.focus();

return false;

}

}

return true;

}


function controllo8(){

with(document.form8) {
    
    
if(nome.value=="") {

alert("Perfavore, Inserire il Nome.");

nome.focus();

return false;

}    


if(cognome.value=="") {

alert("Perfavore, inserisci il tuo Cognome.");

cognome.focus();

return false;

}
    

if(region.value=="") {

alert("Perfavore, seleziona la Regione.");

region.focus();

return false;

}

if(province.value=="") {

alert("Perfavore, seleziona la Provincia.");

province.focus();

return false;

}

if(city.value=="") {

alert("Perfavore, seleziona Il Comune.");

city.focus();

return false;

}

if(cap.value=="") {

alert("Perfavore, inserisci il Cap.");

cap.focus();

return false;

}

if(indirizzo.value=="") {

alert("Perfavore, inserisci il tuo Indirizzo.");

indirizzo.focus();

return false;

}


if(numciv.value=="") {

alert("Perfavore, inserisci il Numero Civico.");

numciv.focus();

return false;

}


if(email.value=="") {

alert("Perfavore, inserisci la tua email.");

email.focus();

return false;

}

if(tel.value=="") {

alert("Perfavore, inserisci il tuo numero telefonico.");

tel.focus();

return false;

}

if(privacy.checked == 0) {

alert("Non e' possibile accettare l'iscrizione senza il consenso al trattamento dei dati personali.");

privacy.focus();

return false;

}

}

return true;

}


function controllo7(){

with(document.form7) {
    
    
if(nomec.value=="") {

alert("Perfavore, Inserire il Nome del tuo cane.");

nomec.focus();

return false;

}    


if(razzac.value=="") {

alert("Perfavore, Inserire la Razza del tuo cane.");

razzac.focus();

return false;

}
    

if(sessoc.value=="") {

alert("Perfavore, seleziona il sesso del tuo cane.");

sessoc.focus();

return false;

}

if(microchip.value=="") {

alert("Perfavore, Inserire il microchip del tuo cane.");

microchip.focus();

return false;

}

if(giornoc.value=="") {

alert("Perfavore, seleziona Il giorno di nascita del tuo cane.");

giornoc.focus();

return false;

}

if(mesec.value=="") {

alert("Perfavore, seleziona Il mese di nascita del tuo cane.");

mesec.focus();

return false;

}

if(annoc.value=="") {

alert("Perfavore, inserisci Anno di nascita del tuo cane.");

annoc.focus();

return false;

}


}

return true;

}


function controlloformaccredito(){

with(document.formaccredito) {
    
    
if(nome.value=="") {

alert("Perfavore, Inserire il Nome.");

nome.focus();

return false;

}   

if(cognome.value=="") {

alert("Perfavore, Inserire il Cognome.");

cognome.focus();

return false;

} 

if(email.value=="") {

alert("Perfavore, indirizzo Email.");

email.focus();

return false;

} 

if(testata.value=="") {

alert("Perfavore, indicare la Testata.");

testata.focus();

return false;

} 

if(privacy.checked == 0) {

alert("Per effettuare l'invio occorre dare il consenso al trattamento dei dati personali.");

privacy.focus();

return false;

}

}

return true;

} 



function controllo8bis(){

with(document.form8bis) {
    
    
if(nome.value=="") {

alert("Perfavore, Inserire il Nome.");

nome.focus();

return false;

}    


if(cognome.value=="") {

alert("Perfavore, inserisci il tuo Cognome.");

cognome.focus();

return false;

}
    

if(region.value=="") {

alert("Perfavore, seleziona la Regione.");

region.focus();

return false;

}

if(province.value=="") {

alert("Perfavore, seleziona la Provincia.");

province.focus();

return false;

}

if(city.value=="") {

alert("Perfavore, seleziona Il Comune.");

city.focus();

return false;

}

if(email.value=="") {

alert("Perfavore, indirizzo Email.");

email.focus();

return false;

} 

if(privacy.checked == 0) {

alert("Per effettuare l'invio occorre dare il consenso al trattamento dei dati personali.");

privacy.focus();

return false;

}

}

return true;

} 



function selectAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
}

/* begin Page */

/* Generated with Artisteer version 2.2.0.17981, file checksum is A9B5EF42. */

var artEventHelper = {
	'bind': function(obj, evt, fn) {
		if (obj.addEventListener)
			obj.addEventListener(evt, fn, false);
		else if (obj.attachEvent)
			obj.attachEvent('on' + evt, fn);
		else
			obj['on' + evt] = fn;
	}
};

var userAgent = navigator.userAgent.toLowerCase();
var browser = {
	version: (userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [])[1],
	safari: /webkit/.test(userAgent) && !/chrome/.test(userAgent),
	chrome: /chrome/.test(userAgent),
	opera: /opera/.test(userAgent),
	msie: /msie/.test(userAgent) && !/opera/.test(userAgent),
	mozilla: /mozilla/.test(userAgent) && !/(compatible|webkit)/.test(userAgent)
};

var artLoadEvent = (function() {
	

	var list = [];

	var done = false;
	var ready = function() {
		if (done) return;
		done = true;
		for (var i = 0; i < list.length; i++)
			list[i]();
	};

	if (document.addEventListener && !browser.opera)
		document.addEventListener('DOMContentLoaded', ready, false);

	if (browser.msie && window == top) {
		(function() {
			try {
				document.documentElement.doScroll('left');
			} catch (e) {
				setTimeout(arguments.callee, 10);
				return;
			}
			ready();
		})();
	}

	if (browser.opera) {
		document.addEventListener('DOMContentLoaded', function() {
			for (var i = 0; i < document.styleSheets.length; i++) {
				if (document.styleSheets[i].disabled) {
					setTimeout(arguments.callee, 10);
					return;
				}
			}
			ready();
		}, false);
	}

	if (browser.safari) {
		var numStyles;
		(function() {
			if (document.readyState != 'loaded' && document.readyState != 'complete') {
				setTimeout(arguments.callee, 10);
				return;
			}
			if ('undefined' == typeof numStyles) {
				numStyles = document.getElementsByTagName('style').length;
				var links = document.getElementsByTagName('link');
				for (var i = 0; i < links.length; i++) {
					numStyles += (links[i].getAttribute('rel') == 'stylesheet') ? 1 : 0;
				}
				if (document.styleSheets.length != numStyles) {
					setTimeout(arguments.callee, 0);
					return;
				}
			}
			ready();
		})();
	}

	artEventHelper.bind(window, 'load', ready);

	return ({
		add: function(f) {
			list.push(f);
		}
	})
})();

(function() {
	// fix ie blinking
	var m = document.uniqueID && document.compatMode && !window.XMLHttpRequest && document.execCommand;
	try { if (!!m) { m('BackgroundImageCache', false, true); } }
	catch (oh) { };
})();

function xGetElementsByClassName(clsName, parentEle, tagName) {
	var elements = null;
	var found = [];
	var s = String.fromCharCode(92);
	var re = new RegExp('(?:^|' + s + 's+)' + clsName + '(?:$|' + s + 's+)');
	if (!parentEle) parentEle = document;
	if (!tagName) tagName = '*';
	elements = parentEle.getElementsByTagName(tagName);
	if (elements) {
		for (var i = 0; i < elements.length; ++i) {
			if (elements[i].className.search(re) != -1) {
				found[found.length] = elements[i];
			}
		}
	}
	return found;
}

var styleUrlCached = null;
function GetStyleUrl() {
	if (null == styleUrlCached) {
		var ns;
		styleUrlCached = '';
		ns = document.getElementsByTagName('link');
		for (var i = 0; i < ns.length; i++) {
			var l = ns[i];
			if (l.href && /style\.css(\?.*)?$/.test(l.href)) {
				return styleUrlCached = l.href.replace(/style\.css(\?.*)?$/, '');
			}
		}

		ns = document.getElementsByTagName('style');
		for (var i = 0; i < ns.length; i++) {
			var matches = new RegExp('import\\s+"([^"]+\\/)style\\.css"').exec(ns[i].innerHTML);
			if (null != matches && matches.length > 0)
				return styleUrlCached = matches[1];
		}
	}
	return styleUrlCached;
}

function fixPNG(element) {
	if (/MSIE (5\.5|6).+Win/.test(navigator.userAgent)) {
		var src;
		if (element.tagName == 'IMG') {
			if (/\.png$/.test(element.src)) {
				src = element.src;
				element.src = GetStyleUrl() + 'images/spacer.gif';
			}
		}
		else {
			src = element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i);
			if (src) {
				src = src[1];
				element.runtimeStyle.backgroundImage = 'none';
			}
		}
		if (src) element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "')";
	}
}

function artHasClass(el, cls) {
    return (el && el.className && (' ' + el.className + ' ').indexOf(' ' + cls + ' ') != -1);
}/* end Page */

/* begin Menu */
function Insert_Separators() {
	var menus = xGetElementsByClassName("art-menu", document);
	for (var i = 0; i < menus.length; i++) {
		var menu = menus[i];
		var childs = menu.childNodes;
		var listItems = [];
		for (var j = 0; j < childs.length; j++) {
			var el = childs[j];
			if (String(el.tagName).toLowerCase() == "li") listItems.push(el);
		}
		for (var j = 0; j < listItems.length - 1; j++) {
			var span = document.createElement('span');
			span.className = 'art-menu-separator';
			var li = document.createElement('li');
			li.appendChild(span);
			listItems[j].parentNode.insertBefore(li, listItems[j].nextSibling);
		}
	}
}
artLoadEvent.add(Insert_Separators);

function Menu_IE6Setup() {
	var isIE6 = navigator.userAgent.toLowerCase().indexOf("msie") != -1
    && navigator.userAgent.toLowerCase().indexOf("msie 7") == -1;
	if (!isIE6) return;
	var aTmp2, i, j, oLI, aUL, aA;
	var aTmp = xGetElementsByClassName("art-menu", document, "ul");
	for (i = 0; i < aTmp.length; i++) {
		aTmp2 = aTmp[i].getElementsByTagName("li");
		for (j = 0; j < aTmp2.length; j++) {
			oLI = aTmp2[j];
			aUL = oLI.getElementsByTagName("ul");
			if (aUL && aUL.length) {
				oLI.UL = aUL[0];
				aA = oLI.getElementsByTagName("a");
				if (aA && aA.length)
					oLI.A = aA[0];
				oLI.onmouseenter = function() {
					this.className += " art-menuhover";
					this.UL.className += " art-menuhoverUL";
					if (this.A) this.A.className += " art-menuhoverA";
				};
				oLI.onmouseleave = function() {
					this.className = this.className.replace(/art-menuhover/, "");
					this.UL.className = this.UL.className.replace(/art-menuhoverUL/, "");
					if (this.A) this.A.className = this.A.className.replace(/art-menuhoverA/, "");
				};
			}
		}
	}
}
artLoadEvent.add(Menu_IE6Setup);
/* end Menu */

/* begin Button */
function artButtonsSetupJsHover(className) {
	var tags = ["input", "a", "button"];
	for (var j = 0; j < tags.length; j++){
		var buttons = xGetElementsByClassName(className, document, tags[j]);
		for (var i = 0; i < buttons.length; i++) {
			var button = buttons[i];
			if (!button.tagName || !button.parentNode) return;
			if (!artHasClass(button.parentNode, 'art-button-wrapper')) {
				if (!artHasClass(button, 'art-button')) button.className += ' art-button';
				var wrapper = document.createElement('span');
				wrapper.className = "art-button-wrapper";
				if (artHasClass(button, 'active')) wrapper.className += ' active';
				var spanL = document.createElement('span');
				spanL.className = "l";
				spanL.innerHTML = " ";
				wrapper.appendChild(spanL);
				var spanR = document.createElement('span');
				spanR.className = "r";
				spanR.innerHTML = " ";
				wrapper.appendChild(spanR);
				button.parentNode.insertBefore(wrapper, button);
				wrapper.appendChild(button);
			}
			artEventHelper.bind(button, 'mouseover', function(e) {
				e = e || window.event;
				wrapper = (e.target || e.srcElement).parentNode;
				wrapper.className += " hover";
			});
			artEventHelper.bind(button, 'mouseout', function(e) {
				e = e || window.event;
				button = e.target || e.srcElement;
				wrapper = button.parentNode;
				wrapper.className = wrapper.className.replace(/hover/, "");
				if (!artHasClass(button, 'active')) wrapper.className = wrapper.className.replace(/active/, "");
			});
			artEventHelper.bind(button, 'mousedown', function(e) {
				e = e || window.event;
				button = e.target || e.srcElement;
				wrapper = button.parentNode;
				if (!artHasClass(button, 'active')) wrapper.className += " active";
			});
			artEventHelper.bind(button, 'mouseup', function(e) {
				e = e || window.event;
				button = e.target || e.srcElement;
				wrapper = button.parentNode;
				if (!artHasClass(button, 'active')) wrapper.className = wrapper.className.replace(/active/, "");
			});
		}
	}
}
artLoadEvent.add(function() { artButtonsSetupJsHover("art-button"); });
/* end Button */


var activeMenuItem = new Array();
	
	function isUlInArray(inputObj,ulObj){
		while(inputObj && inputObj.id!='dhtmlgoodies_listMenu'){
			if(inputObj==ulObj)return true;
			inputObj = inputObj.parentNode;			
		}		
		return false;
	}
	
	function showHideSub(e,inputObj)
	{
		

		if(!inputObj)inputObj=this;
		var parentObj = inputObj.parentNode;
		var ul = parentObj.getElementsByTagName('UL')[0];
		if(activeMenuItem.length>0){
			for(var no=0;no<activeMenuItem.length;no++){
				if(!isUlInArray(ul,activeMenuItem[0]) && !isUlInArray(activeMenuItem[0],ul)){
					activeMenuItem[no].style.display='none';
					activeMenuItem.splice(no,1);
					no--;
				}
			}			
		}
		if(ul.offsetHeight == 0){
			ul.style.display='block';
			activeMenuItem.push(ul);
		}else{
			ul.style.display='none';
		}
	}
	
	function showHidePath(inputObj)
	{
		var startTag = inputObj;
		showHideSub(false,inputObj);
		inputObj = inputObj.parentNode;
		while(inputObj){			
			inputObj = inputObj.parentNode;
			if(inputObj.tagName=='LI')showHideSub(false,inputObj.getElementsByTagName('A')[0]);
			if(inputObj.id=='dhtmlgoodies_listMenu')inputObj=false;	
		}		
	}
	
	function initMenu()
	{
		var obj = document.getElementById('dhtmlgoodies_listMenu');
		var linkCounter=0;
		var aTags = obj.getElementsByTagName('A');
		var activeMenuItem = false;
		var activeMenuLink = false;
		var thisLocationArray = location.href.split(/\//);
		var fileNameThis = thisLocationArray[thisLocationArray.length-1];
		if(fileNameThis.indexOf('?')>0)fileNameThis = fileNameThis.substr(0,fileNameThis.indexOf('?'));
		if(fileNameThis.indexOf('#')>0)fileNameThis = fileNameThis.substr(0,fileNameThis.indexOf('#'));

		for(var no=0;no<aTags.length;no++){
			var parent = aTags[no].parentNode;
			var subs = parent.getElementsByTagName('UL');
			if(subs.length>0){
				aTags[no].onclick = showHideSub;	
				linkCounter++;
				aTags[no].id = 'aLink' + linkCounter;
			}	
			
			if(aTags[no].href.indexOf(fileNameThis)>=0 && aTags[no].href.charAt(aTags[no].href.length-1)!='#'){				
				if(aTags[no].parentNode.parentNode && aTags[no].parentNode.parentNode.id!='dhtmlgoodies_listMenu'){								
					var parentObj = aTags[no].parentNode.parentNode.parentNode;
					var a = parentObj.getElementsByTagName('A')[0];
					if(a.id && !activeMenuLink){						
						activeMenuLink = aTags[no];
						activeMenuItem = a.id;
					}
				}
			}		
		}		

	}
    
    
    
    /**
 * Internet Explorer Select Width and Style Bug Workaround.
 * 
 * Copyright (c) 2010 Ewen Elder
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * @author: Ewen Elder <glomainn at yahoo dot co dot uk> <ewen at jainaewen dot com>
 * @version: 1.0
**/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(f($){$.1h={2j:\'0.9 2k\'};$.1e.1h=f(d){R b,A,c,J,a,i,n;a=2l;b=$(1K);J=2m.2n;i=1t;n=2o;c=n;d=$.2p({},$.1h.1L,d);A={B:f(){R z,y,x;5(!a.2q){k n}k b.2r(f(){y=$(1K);5(y.e(\'2s\')||y.e(\'2t\')>0){k n}5(a.1M&&a.1M>7){c=i}5(!y.e(\'g\').S){y.e(\'g\',2u((2v 2w()).2x()).1N(/\\D/2y,\'\').1f(8))}z=A.I(y);5(d.j!==\'\'){y.4(\'j\',d.x)}5(c){x=y.1O()}T{x=A.M(y,z)}y.U(\'z\',x);A.C(y,z);5(d.P){A.H(y)}5(d.1P){A.D(y);y.1u(\'1Q 14 1v 1w\',f(w){A.E(w)});y.1u(\'14 2z 1R 2A 1w 1v\',f(w){A.G(w)})}5(!J&&($.1e.1S||$.1e.1i)){$(\'#\'+y.e(\'g\')+\'-W\').2B(\'h\').1i()}})},C:f(z,y){R x,w,v,u,t=0,s=0,r=0,q=0,p=\'X\',o=\'X\',m=\'X\',l=\'X\';5(!J){v=\'2C\'}T 5(J&&!c){v=\'2D\'}T 5(c){v=\'2E\'}z.1T(\'<h g="\'+z.e(\'g\')+\'-W" 15="\'+d.1U+\' \'+(!d.P?d.1j:\'\')+\' \'+v+\'">\'+(!d.P?\'<h></h>\':\'\')+\'</h>\');5(d.P){x=\'#\'+z.e(\'g\')+\'-W\'}T{x=\'#\'+z.e(\'g\')+\'-W.\'+d.1j+\' h\'}$(x).1k(z);5(d.P||c){t=(z.4(\'1V\')!==\'1l\'?A.N(z.4(\'1V\'))-(c?1:2):0);s=(z.4(\'1m\')!==\'1l\'?A.N(z.4(\'1m\')):0);r=(z.4(\'1W\')!==\'1l\'?A.N(z.4(\'1W\')):0);q=(z.4(\'1n\')!==\'1l\'?A.N(z.4(\'1n\'))-(c?0:1):0);w=z.4(\'16\')!==\'2F\'?z.4(\'16\'):\'#2G\';1X{p=z.4(\'2H\')+\' \'+y.Z.1Y+\' \'+z.4(\'2I\');o=z.4(\'1x\')+\' \'+y.Z.1o+\' \'+z.4(\'2J\');m=z.4(\'2K\')+\' \'+y.Z.1Z+\' \'+z.4(\'2L\');l=z.4(\'20\')+\' \'+y.Z.1y+\' \'+z.4(\'2M\')}21(22){}z.4({1p:\'X\'})}$(\'#\'+z.e(\'g\')+\'-W.\'+d.1j+\' > h\').4({12:\'18\',1z:\'1A\'});z.U(\'z\',(z.U(\'z\')-(c?s+q:0)));$(\'#\'+z.e(\'g\')+\'-W\').4({13:z.4(\'13\')===\'2N\'?\'1B\':z.4(\'13\'),12:\'18\',Q:z.4(\'Q\'),1q:z.4(\'1q\'),1r:z.4(\'1r\'),11:z.4(\'11\'),1z:\'1A\',j:(z.U(\'z\')+(!d.P||c?0:1)),23:t+\' \'+s+\' \'+r+\' \'+q,1C:(z.4(\'24\')!==\'V\'?z.4(\'24\'):0)+\' \'+(z.4(\'25\')!==\'V\'?z.4(\'25\'):0)+\' \'+(z.4(\'26\')!==\'V\'?z.4(\'26\'):0)+\' \'+(z.4(\'27\')!==\'V\'?z.4(\'27\'):0),2O:p,28:o,2P:m,2Q:l,2R:w});z.4({13:\'1B\',Q:!d.P||c?\'V\':-1,11:!d.P||c?\'V\':-1,1r:\'V\',1q:\'V\',1D:1,j:(z.U(\'z\')+(!d.P||c?0:3)),23:0,1C:0});u=z.1s().1s();5(!d.P){u=u.1s()}5(!u.4(\'2S\')){u.4(\'1a\',\'1%\')}5(d.1E!==\'\'){$(\'#\'+z.e(\'g\')+\'-W\').4(d.1E)}5(!J&&($.1e.1S||$.1e.1i)){$(\'#\'+z.e(\'g\')+\'-W h\').1i()}},D:f(z){R y,x,w,v,u,t,s,r,q,p,o,m,l;u=z.e(\'g\');p=u+\'-\'+d.Y;z.1T(\'<a g="\'+p+\'" 15="\'+d.Y+\'"><h></h></a>\');q=$(\'#\'+p);q.1u(\'14\',f(){29(f(){z.2T()},1)});v=$(\'#\'+z.e(\'g\')+\'-W\');w=q.2U(\'h\').j();y=v.4(\'16\');x=z.4(\'1o\')!==\'X\'?A.N(z.4(\'1x\')):0;o=A.N(v.4(\'1m\'));m=A.N(v.4(\'1n\'));s=(z.1b()-w-(!d.P||c?0:2))+(c?m:0);l=w+o;t=z.1c();q.4({13:\'2a\',12:\'X\',Q:c?z.13().Q:\'V\',11:s,1D:2,j:l,1a:t,1C:r,28:x,16:y});5(d.1F!==\'\'){q.4(d.1F)}},E:f(z){R y,x,w,v,u,t,s;y=$(z.1G);x=y.e(\'g\');w=y.2b();v=$(\'#\'+x+\'-\'+d.Y);u=z.2c;t=z.2d;s=z.2e;5(s===\'1v\'||s===\'1w\'||s===\'1Q\'||(s===\'14\'&&v.4(\'12\')===\'18\'&&w.11<u&&(w.11+y.U(\'z\'))>u&&w.Q<t&&(w.Q+y.1c())>t)){k A.F(z)}5(v.4(\'12\')===\'X\'){v.4(\'12\',\'18\')}5(!y.U(\'y\')){y.4(\'j\',\'V\');5(y.1b()<y.1s().1O()){y.4(\'j\',y.U(\'z\'));y.U(\'y\',i)}}},F:f(z){R y=$(z.1G);5(!y.U(\'y\')){29(f(){y.4({j:(y.U(\'z\')+(!d.P||c?0:3))}).2V(\'a.\'+d.Y).4(\'12\',\'X\')},1)}},G:f(z){R y,x,w,v,u,t;y=$(z.1G);x=y.2b();w=$(\'a#\'+y.e(\'g\')+\'-\'+d.Y);v=z.2c;u=z.2d;t=z.2e;5(!w.S){k n}5(x.11<v&&(x.11+y.U(\'z\'))>v&&x.Q<u&&(x.Q+y.1c())>u){5(t===\'14\'){w.1H().1I(d.Y+\' \'+d.Y+\'-14\')}T 5(t===\'1R\'){w.1H().1I(d.Y+\' \'+d.Y+\'-2W\')}}T{w.1H().1I(d.Y)}},H:f(z){R y;5(c){k n}$(\'#\'+z.e(\'g\')+\'-W\').1k(\'<h g="\'+z.e(\'g\')+\'-1p-1J"></h>\');$(\'#\'+z.e(\'g\')+\'-1p-1J\').1k(\'<h 15="a"></h><h 15="b"></h><h 15="c"></h><h 15="d"></h>\').1k(z).4({13:\'1B\',12:\'18\',Q:1,j:z.1b()-2,1a:z.1c()-2,1z:\'1A\'});y=\'#\'+z.e(\'g\')+\'-1p-1J h.\';$(y+\'a,\'+y+\'b,\'+y+\'c,\'+y+\'d\').4({13:\'2a\',12:\'18\',Q:0,11:0,1D:2,j:(z.1b()-19),1a:2,16:z.4(\'16\')});$(y+\'b\').4({Q:\'V\',1r:0});$(y+\'c\').4({Q:2,j:2,1a:(z.1c()-6)});$(y+\'d\').4({Q:2,11:\'V\',1q:17,j:2,1a:(z.1c()-6)})},I:f(z){R y,x,w,v,u;y=a.2X;v=[];x=[];x[0]=0;x[1]=\'\';1g(w=0;w<y.S;w++){v=v.2Y(A.J(z,y[w].2Z))}1g(w=0;w<v.S;w++){5(!$(v[w][0]).S){30}u=A.K(v[w][0]);5(u>x[0]){x[0]=u;x[1]=v[w][1]}}k x[1]},J:f(z,y){R x,w,v,u;u=[];1g(w=0;w<y.S;w++){v=y[w].31.2f();x=A.L(z,v);5((y[w].Z.1Y!==\'\'||y[w].Z.1o!==\'\'||y[w].Z.1Z!==\'\'||y[w].Z.1y!==\'\')&&(A.O(v,z.e(\'g\'))>-1||A.O(v,z.e(\'32\').2f())>-1||A.O(v,\'.\')>-1||x)){u.33([v,y[w]])}}k u},K:f(z){R y,x,w;y=z.1d(\' \');x=0;1g(w=0;w<y.S;w++){5(y[w].1f(0,1)===\'#\'&&A.O(y[w],\'.\')===-1){x=x+2g}T 5(y[w].1f(0,1)===\'.\'&&A.O(y[w],\'#\')===-1){x=x+(10*(y[w].1d(\'.\').S-1))}T 5(A.O(y[w],\'#\')>-1&&A.O(y[w],\'.\')>-1){x=x+2g;x=x+(10*(y[w].1d(\'.\').S-1));5(y[w].1f(0,1)!==\'#\'&&y[w].1f(0,1)!==\'.\'){x=x+1}}T 5(A.O(y[w],\'#\')!==-1){x=x+34;x=x+(10*(y[w].1d(\'.\').S-1))}T 5(A.O(y[w],\'.\')!==-1){x=x+1;x=x+(10*(y[w].1d(\'.\').S-1))}T 5(y[w]!==\'\'&&y[w]!==\' \'&&A.O(y[w],\'*\')===-1&&A.O(y[w],\'+\')===-1&&A.O(y[w],\'>\')===-1){x=x+1}5(A.O(y[w],\':\')>-1){x=x+1}}k x},L:f(z,y){R x,w;x=z.e(\'35\').1d(\' \');5(!x.S){k n}1g(w=0;w<x.S;w++){5(A.O(y,\'.\'+x[w])>-1){k w}}},M:f(z,y){R x,w,v;1X{w=y.36.1y!==\'X\'?A.N(z.4(\'1x\')):0;x=y.Z.1o!==\'X\'?A.N(z.4(\'20\')):0}21(22){w=0;x=0}5(d.P){v=(z.1b()-A.N(z.4(\'1n\'))-A.N(z.4(\'1m\'))-w-x)}T{v=z.1b()}k v},N:f(z){k+z.1N(\'37\',\'\')},O:f(z,y){k z.38(y)}};k A.B()};$.1h.1L={j:\'\',1U:\'2h-2i-j-W\',Y:\'2h-2i-j-39\',1j:\'3a-Z\',1E:\'\',1F:\'\',1P:1t,P:1t}})(3b);',62,198,'||||css|if|||||||||attr|function|id|span||width|return|||||||||||||||||||||||||||||||applyStyle|top|var|length|else|data|auto|container|none|overlayClassName|style||left|display|position|mousedown|class|backgroundColor||block||height|outerWidth|outerHeight|split|fn|substr|for|ieSelectStyle|bgiframe|noStyleClassName|append|0px|paddingRight|paddingLeft|borderRightStyle|border|right|bottom|parent|true|bind|change|blur|borderRightWidth|borderLeftStyle|overflow|hidden|relative|margin|zIndex|containerCSS|overlayCSS|target|removeClass|addClass|mask|this|defaults|documentMode|replace|innerWidth|applyWidth|dblclick|mouseover|bgIframe|after|containerClassName|paddingTop|paddingBottom|try|borderTopStyle|borderBottomStyle|borderLeftWidth|catch|err|padding|marginTop|marginRight|marginBottom|marginLeft|borderRight|setTimeout|absolute|offset|pageX|pageY|type|toLowerCase|100|ie|select|version|beta|document|window|XMLHttpRequest|false|extend|all|each|multiple|size|String|new|Date|getTime|gi|mouseup|mouseout|find|ie6|ie7|ie8|transparent|fff|borderTopWidth|borderTopColor|borderRightColor|borderBottomWidth|borderBottomColor|borderLeftColor|static|borderTop|borderBottom|borderLeft|background|hasLayout|focus|children|siblings|hover|styleSheets|concat|rules|continue|selectorText|tagName|push|101|className|estyle|px|indexOf|overlay|no|jQuery'.split('|'),0,{}))
