/*
 * jQuery Impromptu
 * By: Trent Richardson [http://trentrichardson.com]
 * Version 3.1
 * Last Modified: 3/30/2010
 * 
 * Copyright 2010 Trent Richardson
 * Dual licensed under the MIT and GPL licenses.
 * http://trentrichardson.com/Impromptu/GPL-LICENSE.txt
 * http://trentrichardson.com/Impromptu/MIT-LICENSE.txt
 * 
 */
// codes persos js officine-plus
function favoris() {
	var url= window.location;
	var titre = "Pfizer - Prévention Glaucome";
	if ( navigator.appName != 'Microsoft Internet Explorer' )
	{
		window.sidebar.addPanel(url,titre,''); 
	}
	else {
		window.external.AddFavorite(url,titre); 
	}
}
t.getElementsByTagName("a" );
	for (var ix = 0; ix < ahrefs.length; ix++ )
	{
		if( ahrefs[ix].target == "_blank" )
		{
			//ahrefs[ix].onclick = alerteSortie(ahrefs[ix]);
			ahrefs[ix].onclick = alerteSortie;
		}
	}
}

//Ouverture d'une PopUp en JavaScript pour afficher les minisites HTML
function openPopUpCond(){
	var puWidth = 800;
	var puHeight = 690;
	var puX = (screen.width - puWidth) / 2;
	var puY = (screen.height - puHeight) / 2;

	pu = window.open(
		'http://prevention-tabac.pfizer.fr/conditions',
		'', 
		'width='+ puWidth +', height='+ puHeight +', left='+ puX +', top='+ puY +', menubar=no, status=no, scrollbars=yes'
	);
	
	pu.focus();
}
function openPopUpQui(){
	var puWidth = 800;
	var puHeight = 690;
	var puX = (screen.width - puWidth) / 2;
	var puY = (screen.height - puHeight) / 2;

	pu = window.open(
		'http://prevention-tabac.pfizer.fr/Qui-sommes-nous',
		'', 
		'width='+ puWidth +', height='+ puHeight +', left='+ puX +', top='+ puY +', menubar=no, status=no, scrollbars=yes'
	);
	
	pu.focus();
}
function openPopUpCharte(){
	var puWidth = 800;
	var puHeight = 690;
	var puX = (screen.width - puWidth) / 2;
	var puY = (screen.height - puHeight) / 2;

	pu = window.open(
		'http://prevention-tabac.pfizer.fr/charte',
		'', 
		'width='+ puWidth +', height='+ puHeight +', left='+ puX +', top='+ puY +', menubar=no, status=no, scrollbars=yes'
	);
	
	pu.focus();
}
function openPopUpContact(){
	var puWidth = 800;
	var puHeight = 690;
	var puX = (screen.width - puWidth) / 2;
	var puY = (screen.height - puHeight) / 2;

	pu = window.open(
		'http://prevention-tabac.pfizer.fr/contact',
		'', 
		'width='+ puWidth +', height='+ puHeight +', left='+ puX +', top='+ puY +', menubar=no, status=no, scrollbars=yes'
	);
	
	pu.focus();
}
