function o_resizeWG(size){
window.parent.document.body.rows=""+size+",*";
}
function search (){
try {
if (o_sExtractVar('hmac') != null){
if (adresse_redirect.indexOf('?') != -1) adresse_redirect += "&hmac=" + o_sExtractVar('hmac');
else adresse_redirect += "?hmac=" + o_sExtractVar('hmac');
}
if (o_sExtractVar('trxId') != null){
if (adresse_redirect.indexOf('?') != -1) adresse_redirect += "&trxId=" + o_sExtractVar('trxId');
else adresse_redirect += "?trxId=" + o_sExtractVar('trxId');
}
if (o_sExtractVar('bhv') != null){
var sBhv = (o_sExtractVar('bhv') == "askimage")?"images":o_sExtractVar('bhv');
if (adresse_redirect.indexOf('?') != -1) adresse_redirect += "&bhv=" + sBhv;
else adresse_redirect += "?bhv=" + sBhv;
}
if (o_sExtractVar('profil') != null){
if (adresse_redirect.indexOf('?') != -1) adresse_redirect += "&profil=" + o_sExtractVar('profil');
else adresse_redirect += "?profil=" + o_sExtractVar('profil');
}
if (o_sExtractVar('uid') != null){
if (adresse_redirect.indexOf('?') != -1) adresse_redirect += "&uid=" + o_sExtractVar('uid');
else adresse_redirect += "?uid=" + o_sExtractVar('uid');
}
if (o_sExtractVar('num') != null){
if (adresse_redirect.indexOf('?') != -1) adresse_redirect += "&num=" + o_sExtractVar('num');
else adresse_redirect += "?num=" + o_sExtractVar('num');
}
if (adresse_redirect != '' && adresse_redirect != '?pubwg=ok'){
var iptProfil = document.getElementById('lProfilVal');
if (iptProfil && iptProfil.value == 'orange') iptProfil.value = sGetProfil(adresse_redirect);
parent.w_contenu.location.href = adresse_redirect;
if (afficher_wg_1px(adresse_redirect)){
o_resizeWG(1);
} else if (afficher_wg_pub(adresse_redirect)){
if (document.getElementById('pub')) document.getElementById('pub').style.display = '';
if (document.getElementById('astuceJour')) document.getElementById('astuceJour').style.display = 'none';
} else if (afficher_wg_noForm(adresse_redirect)){
if (document.getElementById('formulaire')) document.getElementById('formulaire').style.display = 'none';
if (document.getElementById('astuceJour')) document.getElementById('astuceJour').style.display = 'none';
} else if (afficher_wg_neutre(adresse_redirect)){
if (document.getElementById('formulaire')) document.getElementById('formulaire').style.display = '';
if (document.getElementById('astuceJour')) document.getElementById('astuceJour').style.display = '';
} else {
if (document.getElementById('formulaire')) document.getElementById('formulaire').style.display = '';
if (document.getElementById('astuceJour')) document.getElementById('astuceJour').style.display = '';
}
}
} catch (e) {}
}
function cacherAstuce(){
if (o_hGetById('astuceJour')) o_hGetById('astuceJour').style.display = 'none'; 
return false;
}
function urlBL(expreg,autorise,bAuthentNeed){
this.expreg = expreg;
this.autorise = autorise;
if (typeof bAuthentNeed != "undefined") this.authentNeed = bAuthentNeed;
else this.authentNeed = false;
}
function afficher_wg_neutre(adresse){
var urlArray = new Array(
new urlBL('assistance\.orange\.fr\/visiteur\.php',true)
);
for( var index=0; index<urlArray.length; index++ ) {
if (adresse.search(urlArray[index].expreg) > -1) {
return urlArray[index].autorise;
}
}
return true;
}
function afficher_wg_1px(adresse){
var urlArray = new Array(
new urlBL('^http://pourelles\.shopping\.orange\.fr/',false),
new urlBL('^http://pourelles\.shopping\.dev\.orange\.fr/',false),
new urlBL('^http://pourelles\.shopping\.rec\.orange\.fr/',false),
new urlBL('^http://[(a-zA-Z0-9)+\.]*shopping\.orange\.fr/',true),
new urlBL('^http://[(a-zA-Z0-9)+\.]*shopping\.dev\.orange\.fr/',true),
new urlBL('^http://[(a-zA-Z0-9)+\.]*shopping\.rec\.orange\.fr/',true),
new urlBL('http://shopping\.dev\.voila\.fr/',true),
new urlBL('http://shopping\.rec\.voila\.fr/',true),
new urlBL('http://shopping\.voila\.fr/',true),
new urlBL('qual\.ke\.voila\.com(.)*\/S\/',true),
new urlBL('preprod\.ke\.voila\.fr\/S\/searchproxi\\?(.)*profil=orange_enville',false),
new urlBL('local\.search\.ke\.voila\.fr\/S\/searchproxi\\?(.)*profil=orange_enville',false),
new urlBL('dev\.local\.ke\.voila\.fr:8080\/S\/searchproxi\\?(.)*profil=orange_enville',false),
new urlBL('search\.ke\.voila\.fr\/S\/',true),
new urlBL('preprod\.ke\.voila\.fr\/S\/',true),
new urlBL('afa\.ke\.orange\.fr',true),
new urlBL('plus\.dev\.ke\.orange\.fr',true),
new urlBL('plus\.preprod\.ke\.orange\.fr',true),
new urlBL('plus\.qualif\.ke\.orange\.fr',true),
new urlBL('plus\.ke\.orange\.fr',true),
new urlBL('rechercher\.dev\.orange\.fr',true),
new urlBL('recherche\.orange\.fr',true),
new urlBL('rechercher\.orange\.fr',true),
new urlBL('r\.voila\.fr\/se(.)*moteur_actu',true),
new urlBL('r\.voila\.fr\/se',true),
new urlBL('\.ke\.echo',true),
new urlBL('\.ke\.wanadoo',true),
new urlBL('thieli00.*\.dev\.voila\.com/S/',true),
new urlBL('gen02.ke.voila.fr/S/voila',true),
new urlBL('gen02.ke.voila.fr/S/orange',true),
new urlBL('gen01.ke.voila.fr',true),
new urlBL('gen00\.ke\.voila\.fr',true),
new urlBL('gen01\.ke\.voila\.fr',true),
new urlBL('thieli001\.front\.prod\.gen00\.ke\.p\.fti\.net',true),
new urlBL('dev\.voila\.com',true),
new urlBL('qualif.ke.voila.fr',true), 
new urlBL('local\..*ke\.voila\.fr.*error',true),
new urlBL('local\.search\.ke\.voila\.fr\/S\/searchproxi',true),
new urlBL('dev\.local\.ke\.voila\.fr(.)*\/S\/searchproxi',true),
new urlBL('ulteem\.orange\.fr',true),
new urlBL('referencement\.preprod\.ke\.voila\.fr',true),
new urlBL('referencement\.ke\.orange\.fr',true),
new urlBL('plus\.preprod\.ke\.voila\.fr',true),
new urlBL('guide\-orange\.search\.ke\.voila\.fr',true),
new urlBL('^http://webmail.*\.orange\.fr',true),
new urlBL('^http://smsmms2\.orange\.fr',true),
new urlBL('^http://smsmms1\.orange\.fr',true),
new urlBL('^http://smsmms\.orange\.fr',true),
new urlBL('^http://contact[s]*\.orange\.fr',true),
new urlBL('^http://mail\.orange\.fr',true),
new urlBL('^http://webmail\.wanadoo\.fr',true),
new urlBL('thieli001.front.prod.gen00.ke.p.fti.net:8080',true),
new urlBL('thieli001.front.prod.gen01.ke.p.fti.net:8080',true),
new urlBL('www001.front.prod.annuaire.m1.p.fti.net:8080',true),
new urlBL('www003.front.preprod.annuaire.m1.p.fti.net:8080',true),
new urlBL('thieli002.front.preprod.gen01.ke.p.fti.net:8080',true)
);
for( var index=0; index<urlArray.length; index++ ) {
if (adresse.search(urlArray[index].expreg) > -1) {
return urlArray[index].autorise;
}
}
return false;
}
function afficher_wg_pub(adresse){
var urlArray = new Array(
);
for( var index=0; index<urlArray.length; index++ ) {
if (adresse.search(urlArray[index].expreg) > -1) {
if (urlArray[index].authentNeed){
if (!o_bVisiteur) return urlArray[index].autorise;
else return false;
} else return urlArray[index].autorise;
}
}
return false;
}
function sGetProfil(adresse){
var urlArray = new Array(
new urlBL('^http://carrefour\.blogsperso\.orange\.fr','site_orange_box_blogs'),
new urlBL('^http://blogsperso\.orange\.fr','site_orange_box_blogs'),
new urlBL('^http://forum\.orange\.fr','site_orange_box_forums'),
new urlBL('^http://tchat\.orange\.fr','site_orange_box_tchat'),
new urlBL('^http://photos\.orange\.fr','site_orange_box_photos'),
new urlBL('^http://im\.orange\.fr','site_orange_box_messenger')
);
for( var index=0; index<urlArray.length; index++ ) {
if (adresse.search(urlArray[index].expreg) > -1) {
return urlArray[index].autorise;
}
}
return "orange";
}
function afficher_wg_noForm(adresse){
var urlArray = new Array(
new urlBL('^http://maxicours\.soutienscolaire\.orange\.fr',true),
new urlBL('^http://maxicours\.soutienscolaire\.rec\.orange\.fr',true)
);
for( var index=0; index<urlArray.length; index++ ) {
if (adresse.search(urlArray[index].expreg) > -1) {
return urlArray[index].autorise;
}
}
return false;
}
