
function loadOne(iframe1URL) {
parent.buffer.location.href= iframe1URL;
}

function loadPrNvBf(ifPri, ifMen, ifBfr) {
parent.tarif.location.href= ifPri;
parent.navig.location.href= ifMen;
parent.buffer.location.href= ifBfr;
}

// gardé pour historique index :
function loadNavplan(ifmenuc, iframeUrl) {
parent.navig.location.href= ifmenuc;
parent.buffer.location.href= iframeUrl;
}

// gardé pour historique index :
function loadDocTarif(ifTarife, ifdoce) {
parent.tarif.location.href= ifTarife;
parent.doc.location.href= ifdoce;
}

function loadTwo (ifmenud, ifdocd, ifTarifd) {
parent.navig.location.href= ifmenud;
parent.doc.location.href= ifdocd;
parent.tarif.location.href= ifTarifd;
}

function loadThree (ifdocd, ifTarifd, iframBuf) {
parent.doc.location.href= ifdocd;
parent.tarif.location.href= ifTarifd;
parent.buffer.location.href= iframBuf;
}

function loadNavmenu(ifmenuc) {
parent.navig.location.href= ifmenuc;
}

function loadPlan (ifpland) {
parent.buffer.location.href= ifpland;
}

function loadDoc(ifdoce) {
parent.doc.location.href= ifdoce;
}

function visite(agents) {
parent.conseil.location.href= agents;
}

function bfprint() 
{
parent.frames["buffer"].focus();
parent.frames["buffer"].print();
}

function changePicPlus(el, pic1, alt1, pic2, alt2) {
if ((el.src).match("images/"+pic1+".gif")!=null) {
	el.src="images/"+pic2+".gif";
	el.alt=alt2;
	el.title=alt2;
	visite('merlin/merlin.htm');
	}
	else {
	el.src="images/"+pic1+".gif";
	el.alt=alt1;
	el.title=alt1;
	parent.conseil.Explain();
	}
}

// afficheDescURL : affichage nom du programme en cours de lecture

function nompgm(toThis) 
  {
  if (document.getElementById)
    {
    document.getElementById("textDiv").innerHTML = toThis;
    }
  else if (document.all) 
    {
    document.all["textDiv"].innerHTML = toThis;
    }
  }
base = " vapofisc.com nettoie les impôts en profondeur et ravive le patrimoine immobilier";
//nompgm(base);


function datliv(toThis) 
  {
  if (document.getElementById)
    {
    document.getElementById("anlivr").innerHTML = toThis;
    }
  else if (document.all) 
    {
    document.all["anlivr"].innerHTML = toThis;
    }
  }
depart = " www.vapofisc.com";
//datliv(depart);


function footermsg(toThis) 
  {
  if (document.getElementById)
    {
    document.getElementById("footerSlogan").innerHTML = toThis;
    }
  else if (document.all) 
    {
    document.all["footerSlogan"].innerHTML = toThis;
    }
  }
msginit = "http://www.<font color='#CC3300'>vapofisc.com</font> Le site qui nettoie les impôts en profondeur et ravive le patrimoine immobilier";
msgblockpop ="<div style='position:relative;top:7px;padding:1px;white-space:nowrap; color:#FF0000; border: 1px solid #FF0000; background-color: #FFFFFF'><img border='0' style='vertical-align: bottom;' src='images/icon/danger45.gif' width='20' height='20' hspace='4' vspace='0' alt='Quelques minutes après désactivation ou réduction du popblocker, cette barre pour information se retirera.'>Vapofisc.com ne supporte pas les blocker de popup : désactiver cette fonction pour accéder à la totalité du site&nbsp;</div>"
//footermsg(msginit);

function changeZindex(id,z) { 
document.getElementById(id).style.zIndex = z; 
}

function getElementsByClassName(oElm, strTagName, oClassNames){
	var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);
	var arrReturnElements = new Array();
	var arrRegExpClassNames = new Array();
	if(typeof oClassNames == "object"){
		for(var i=0; i<oClassNames.length; i++){
			arrRegExpClassNames.push(new RegExp("(^|\\s)" + oClassNames[i].replace(/\-/g, "\\-") + "(\\s|$)"));
		}
	}
	else{
		arrRegExpClassNames.push(new RegExp("(^|\\s)" + oClassNames.replace(/\-/g, "\\-") + "(\\s|$)"));
	}
	var oElement;
	var bMatchesAll;
	for(var j=0; j<arrElements.length; j++){
		oElement = arrElements[j];
		bMatchesAll = true;
		for(var k=0; k<arrRegExpClassNames.length; k++){
			if(!arrRegExpClassNames[k].test(oElement.className)){
				bMatchesAll = false;
				break;
			}
		}
		if(bMatchesAll){
			arrReturnElements.push(oElement);
		}
	}
	return (arrReturnElements)
}

// Array support for the push method in IE 5
if(typeof Array.prototype.push != "function"){
	Array.prototype.push = ArrayPush;
	function ArrayPush(value){
		this[this.length] = value;
	}
}

function hidecliker(){
var elements = document.getElementsByTagName("span");
for (i=0;i< elements.length;i++){
// elements[i].style.visibility='hidden';
elements[i].style.display ='none';
}
}

function cliker(voir){
hidecliker();
var elements = getElementsByClassName(document.getElementById(voir), "span", ["readMo"]);
for (i=0;i< elements.length;i++){
// elements[i].style.visibility='visible';
elements[i].style.display ='inline';
}
}

function loadContent(file){
  var scriptTag = document.getElementById('loadScript');
  var head = document.getElementsByTagName('head').item(0)
  if(scriptTag) head.removeChild(scriptTag);
  script = document.createElement('script');
  script.src = file;
	script.type = 'text/javascript';
	script.id = 'loadScript';
	head.appendChild(script)
}

function tform(ADR,dimW,dimH) {
var left; var top;
top = ((screen.height -400) / 2);
left =	((screen.width - 600) / 2);
win  = window.open(ADR, "telform", "toolbar=0,scrollbars=0,location=0,status=0,menubar=0,directories=0,resizable=0,width="+dimW+",height="+dimH+",left="+left+",top="+top+"")}
