

/***********************************************
* Switch Content script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var enablepersist="on" //Enable saving state of content structure? (on/off)

if (document.getElementById){
document.write('<style type="text/css">')
document.write('.switchcontent{display:none;}')
document.write('</style>')
}

function getElementbyClass(classname){
ccollect=new Array()
var inc=0
var alltags=document.all? document.all : document.getElementsByTagName("*")
for (i=0; i<alltags.length; i++){
if (alltags[i].className==classname)
ccollect[inc++]=alltags[i]
}
}

function contractcontent(omit){
var inc=0
while (ccollect[inc]){
if (ccollect[inc].id!=omit)
ccollect[inc].style.display="none"
inc++
}
}

function expandcontent(cid){
if (typeof ccollect!="undefined"){
contractcontent(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
selectedItem=cid+"|"+document.getElementById(cid).style.display
}
}

function revivecontent(){
/*selectedItem=getselectedItem()
selectedComponents=selectedItem.split("|")
contractcontent(selectedComponents[0])
document.getElementById(selectedComponents[0]).style.display=selectedComponents[1]*/
}

function do_onload(){
getElementbyClass("switchcontent")
if (enablepersist=="on" /*&& getselectedItem()!=""*/)
revivecontent()
}


if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload

function fenetre(chemin){
	window.open(chemin, 'CONDITIONS GENERALES', 'width=700, height=600, scrollbars=yes');
}
function place(){
	document.body.scrollTop = 10000;
	return false;
}			
/*
var s = document.createElement('script');
s.type = 'text/javascript';
s.id='tg_passage_cybercite';
s.str = 'http://tracking.veille-referencement.com/TAG/TAG_passage.js?idsite=2472';
document.getElementsByTagName('head')[0].appendChild(s);
*/
document.write("<script id='tg_passage_cybercite' type='text/javascript' src='http://tracking.veille-referencement.com/TAG/TAG_passage.js?idsite=2472'></script>");
