// Text Blink EFX
var flashlinks=new Array()

function changelinkcolor(){
for (i=0; i< flashlinks.length; i++){
var flashtype=document.getElementById? flashlinks[i].getAttribute("flashtype")*1 : flashlinks[i].flashtype*1
var flashcolor=document.getElementById? flashlinks[i].getAttribute("flashcolor") : flashlinks[i].flashcolor
if (flashtype==0){
if (flashlinks[i].style.color!=flashcolor)
flashlinks[i].style.color=flashcolor
else
flashlinks[i].style.color=''
}
else if (flashtype==1){
if (flashlinks[i].style.backgroundColor!=flashcolor)
flashlinks[i].style.backgroundColor=flashcolor
else
flashlinks[i].style.backgroundColor=''
}
}
}

function init(){
var i=0
if (document.all){
while (eval("document.all.flashlink"+i)!=null){
flashlinks[i]= eval("document.all.flashlink"+i)
i++
} 
}
else if (document.getElementById){
while (document.getElementById("flashlink"+i)!=null){
flashlinks[i]= document.getElementById("flashlink"+i)
i++
}
}
setInterval("changelinkcolor()", 400)
}

if (window.addEventListener)
window.addEventListener("load", init, false)
else if (window.attachEvent)
window.attachEvent("onload", init)
else if (document.all)
window.onload=init
// End Text Blink EFX

function ExternalLinks(myLink)
{
	popup1=window.open(myLink,'_blank','');
	window.scroll(0,0);
}

function PrivacyPolicy()
{
	popup1=window.open('English/AboutUs/Policy.html','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=700,height=600');
	window.scroll(0,0);
}

function StayAnimated(idtag)
{
if (document.all && idtag != "") {document.images[idtag].src = document.images[idtag].src;}
}

 function webMail()
  {
	popup1=window.open('https://mail.riyadbank.com','_blank','');
  }
 
function PrivacyPolicy_ar()
{
	popup1=window.open('Arabic/AboutUs/Policy.html','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=700,height=600');
	window.scroll(0,0);
}





