﻿var message       = "موقع قداسة البابا كيرلس السادس^" +
                "بابا الأسكندرية وبطريرك الكرازة المرقسية رقم 116^" +
                "الرب يبارك حياتكم جميعا^" +
                "أذكرونا فى صلواتكم^" +
                "^" 
var scrollSpeed = 150
var lineDelay   = 1500
var  txt         = ""
  
  function scrollText(pos) {
	
  
    if (message.charAt(pos) != '^') {
      txt    = txt + message.charAt(pos)
      status = txt
      pauze  = scrollSpeed
    }
    else {
      pauze = lineDelay
      txt   = ""
      if (pos == message.length-1) pos = -1
    }
    pos++
    setTimeout("scrollText('"+pos+"')",pauze)
  }

  
                       


var bookmarkurl="http://www.ava-kyrillos.com"
var bookmarktitle="موقع قداسة البابا كيرلس السادس"
function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}



function poptastic(url)
{	newwindow=window.open(url,'name2','width=555,height=400,scrollbars=yes,left=50,top=50');
	if (window.focus) {newwindow.focus()}
}


function disableRightClick(e)
{
var message = "";
			  
			if(!document.rightClickDisabled) // initialize
			{
				if(document.layers) 
				{
				document.captureEvents(Event.MOUSEDOWN);
				document.onmousedown = disableRightClick;
				}
				else document.oncontextmenu = disableRightClick;
				return document.rightClickDisabled = true;
			}
			if(document.layers || (document.getElementById && !document.all))
			{
				if (e.which==2||e.which==3)
				{
			     
				return false;
				}
			}
			else
			{
			    
				return false;
			}
			}

function displayLayer(elm){
thestyle = document.getElementById(elm).style;
if(thestyle.display=='none')
	thestyle.display = 'block';
else
	thestyle.display = 'none';
}




		function OpWin(MYURL,W,H,SCROLL,T,L,NAME)
		{
		window.open (MYURL, NAME, 'scrollbars='+SCROLL+',status=no,resizable=no,width='+W+',height='+H+',top='+T+',left='+L+'')
		}

	
