/* AUTEUR: Scasi.com */
/* Date de création: 10/06/02 */
window.onResize=window.location.href;
var win = null;
function doc(mypage,myname,w,h,bar){
var LeftPosition = (screen.width) ? (screen.width-w)/2.11 : 0;
var TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
var settings = 'height='+h+',width='+w+',top=' + TopPosition + ',left=' + LeftPosition +',toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars='+bar+',resizable=yes,copyhistory=yes';
var win = window.open(mypage,myname,settings);
if(win.window.focus){win.window.focus();}
}
function addbookmark()
{
/* INFORMATIONS A PERSONNALISER */
var urlSite = "http://www.scasi.com"
var nomSite = "Scasi.com - Services, Création et Administration de Sites Internet"
/* TRAITEMENT DES NAVIGATEURS */
	// internet explorer windows
	if(window.external)
	{
	window.external.AddFavorite(urlSite,nomSite)
	}
	// internet explorer mac
	if (document.all && 
	(navigator.userAgent.indexOf('Win') < 0))
	{
	alert ("COMMAND + B pour ajouter  " + nomSite + " à vos favoris!")
	}
	// netscape 6.x
	if (window.sidebar)
	{
	window.sidebar.addPanel(nomSite,urlSite,"")
	}
	// netscape 4.x
	if (document.layers)
	{
	alert ("CTRL + D pour ajouter " + nomSite + " à vos favoris!")
	}
	// opéra
	if (navigator.userAgent.indexOf('Opera') != -1) 
	{
	alert ("CTRL + T pour ajouter " + nomSite + " à vos favoris!")
	}
}

// alerte
function avertissement(msg){
alert(msg);
}

var NS = (navigator.appName == "Netscape");
var mac = (navigator.userAgent.indexOf("Mac") != -1 );
var pr= (window.print);
function printit()
{
if(parent.frames["princ"]){parent.frames["princ"].focus();}
if(!mac)
{
if (NS) 
{ 
 window.print(); 
} 
else 
{
if(pr)
{
window.print();
}
else
{ 
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser); 
WebBrowser1.ExecWB(6,2); //Use a 1 vs. a 2 for a prompting dialog box 
WebBrowser1.outerHTML= ""; 
}
}
window.close();
}
} 
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function prec(){ //v3.0
if(parent.frames["princ"]){parent.frames["princ"].focus();}
window.history.back();
}
// xiti expert
<!--
function xt_clic(typecl,section,page,url,nvlle)
{
Xt_r = document.referrer;
Xt_h = new Date();
xt_img = new Image();
Xt_i = 'http://logi7.xiti.com/hit.xiti?s=178661&s2='+section;
Xt_i += '&p='+page+'&clic='+typecl+'&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
if(parseFloat(navigator.appVersion)>=4)
{Xiti_s=screen;Xt_i += '&r=' + Xiti_s.width + 'x' + Xiti_s.height + 'x' + Xiti_s.pixelDepth + 'x' + Xiti_s.colorDepth;}
Xt_i += '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$');
xt_img.src = Xt_i;
if ((url != null)&&(url!=undefined))
{ if ((nvlle=='')||(nvlle==null)) { document.location = url;} else {xfen = window.open(url,'xfen',''); xfen.focus();}}
else
{return;}
}
//-->
function show_hide(id) {
	if (document.getElementById) {
	var objet=document.getElementById(id);
	} else if (document.all) {
	var objet=document.all[id];
	}
	if (objet.style.display=='none') {
	objet.style.display='';
	} else {
	objet.style.display='none';
	}
}