storeAndroidURL='https://play.google.com/store/apps/details?id=fr.gouv.finances.smartphone.android';
storeAppleURL='https://itunes.apple.com/fr/app/impots.gouv/id505488770?mt=8';
storeWindowsPhoneURL='http://www.windowsphone.com/fr-fr/store/app/impots-gouv/f2663ea7-4ea9-4600-a52e-5d03255dee4c';
document.getElementById('portailpublic').href=PortPub+PathPub;
document.getElementById('proPriv').href=ProPrivFqdn+ProPrivPath;
document.getElementById('payer').href=Payer;
deconnexionpath='/deconnexion2';
if (window.location.pathname.search(deconnexionpath)==0)
{
$("#decoWait").html('
');
$("#deco").modal('show');
var deco_delay= 4;
var curr_app = 0;
var iframes = new Array(40);
var files=[ ];
disconnect();
}
deconnexionpath='/deconnexion3';
if (window.location.pathname.search(deconnexionpath)==0)
{
$("#deco").modal('show');
var deco_delay= 4;
var curr_app = 0;
var iframes = new Array(40);
var files=[ ];
disconnect();
}
var afficheSmartBanner_default=0;
if (navigator.userAgent.match(/Android/i))
{
afficheSmartBanner_default=1;
if (typeof(afficheSmartBanner)=='undefined') { var afficheSmartBanner=new Object();}
if (!("android" in afficheSmartBanner)) { afficheSmartBanner["android"]=afficheSmartBanner_default ; }
if (afficheSmartBanner["android"]==1)
{
$("#leStoreLogo").html('
');
deleteClassName(document.getElementById('banniereSmart'), 'pasvisible');
document.getElementById('leStoreLogo').href=storeAndroidURL;
}
}
if (navigator.userAgent.match(/iPhone|iPad|iPod/i))
{
afficheSmartBanner_default=0;
if (typeof(afficheSmartBanner)=='undefined') { var afficheSmartBanner=new Object();}
if (!("apple" in afficheSmartBanner)) { afficheSmartBanner["apple"]=afficheSmartBanner_default ; }
if (afficheSmartBanner["apple"]==1)
{
deleteClassName(document.getElementById('banniereSmart'), 'pasvisible');
document.getElementById('leStoreLogo').href=storeAppleURL;
}
}
if (navigator.userAgent.match(/Windows Phone/i))
{
afficheSmartBanner_default=0;
if (typeof(afficheSmartBanner)=='undefined') { var afficheSmartBanner=new Object();}
if (!("wphone" in afficheSmartBanner)) { afficheSmartBanner["wphone"]=afficheSmartBanner_default ; }
if (typeof(afficheSmartBanner["wphone"])=='undefined') { afficheSmartBanner["wphone"]=afficheSmartBanner_default;}
if (afficheSmartBanner["wphone"]==1)
{
deleteClassName(document.getElementById('banniereSmart'), 'pasvisible');
document.getElementById('leStoreLogo').href=storeWindowsPhoneURL;
document.getElementById('LogoSmartImage').src='/templates/images/Small_ico_windows.png';
}
}
document.getElementById('toPortailPub').href=PortPub+PathPub;
function getURLParameter(name)
{
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null;
}
isDenied=getURLParameter('denied');
if(isDenied== '403')
{
deleteClassName(document.getElementById('Cat2Interdit'), 'pasvisible');
}
isIndispo=getURLParameter('indispo');
if(isIndispo== '3S')
{
deleteClassName(document.getElementById('Cat2Indispo3S'), 'pasvisible');
}
if(isIndispo== 'LMDP')
{
deleteClassName(document.getElementById('Cat2IndispoLMDP'), 'pasvisible');
}
//FC Error
errorFC=getURLParameter('fcError');
if (errorFC==1) { deleteClassName(document.getElementById('Cat2FC1'), 'pasvisible'); }
if (errorFC==2) { deleteClassName(document.getElementById('Cat2FC2'), 'pasvisible'); }
if (errorFC==3) { deleteClassName(document.getElementById('Cat2FC3'), 'pasvisible'); }
withFC=getURLParameter('withFC');
if (withFC==1) {
deleteClassName(document.getElementById("FranceConnect"),"pasvisible");
}
//Deco
deco3Detect=getURLParameter('deco3');
if(deco3Detect== 'yes') { deleteClassName(document.getElementById('Cat2Deco3'), 'pasvisible'); }
// urlLoginMotDePasse = '/LoginMDP?op=c&url=aHR0cHM6Ly9jZnNwYXJ0LmltcG90cy5nb3V2LmZyLw==';