var affInterfaceOptions = 'aff=ayadif&skin=16&cols=2&rows=5&shop=n1-green&currency=0&locale=en';

var message="2008 © Copyright  AyadiPro \n All Rights Reserved.\n\n Respect COPYRIGHT LAW";





var id,pause=0,position=0;
function typewrite() 
{       
        m0="       AyadiPro creative Web Solutions      Exclusive Web Development, Impressive and Professional          Internet Marketing SEO professionals              ";    
        var i,k,msg=m0; 
        k=(70/msg.length)+1;
        for(i=0;i<=k;i++) 
                msg+=" "+msg;   
        window.status=msg.substring(position,position+120);     
        if(position++==msg.length) 
                position=0;             
        id=setTimeout("typewrite()",100); 
}


function typewrite2() 
{       
        m0="       AyadiPro creative Web Solutions      Exclusive Web Development, Impressive and Professional           Internet Marketing SEO professionals ";    
        var i,k,msg=m0; 
        k=(70/msg.length)+1;
        for(i=0;i<=k;i++) 
                msg+=" "+msg;   
        window.status=msg.substring(position,position+120);     
        if(position++==msg.length) 
                position=0;             
        id=setTimeout("typewrite2()",100); 
}


function typewrite3() 
{       
        m0="       AyadiPro est la solution créative du web       Le Développement exclusif du Web, Impressive and Professionnel            Internet Marketing SEO professionals Google adwords professional              ";    
        var i,k,msg=m0; 
        k=(70/msg.length)+1;
        for(i=0;i<=k;i++) 
                msg+=" "+msg;   
        window.status=msg.substring(position,position+120);     
        if(position++==msg.length) 
                position=0;             
        id=setTimeout("typewrite3()",100); 
}




/* function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}


function disableselect(e){
return false
}


function reEnable(){
return true
}

*/

function IncludeAffInterface(options,file){
	if(!file) file = 'interface';
	options = affInterfaceOptions + (options ? '&'+options : '');
	document.write('<SCRIPT type="text/javascript" language="JavaScript" src="http://www.templatehelp.com/codes/'+file+'.php?'+options+'"> <'+'/SCRIPT>');
}


function Popup(url){
	window.open(
		url,
		'window',
		'width=600, height=600, resizable=yes, scrollbars=yes, location=no,  toolbar=no, menubar=no, status=no'
	);
}


function Popup4(url){
	window.open(
		url,
		'window',
		'width=500, height=400, resizable=no, scrollbars=no, location=no,  toolbar=no, menubar=no, status=no'
	);
}



function Popup2(url){
	window.open(
		url,
		'window',
		'width=750, height=700, resizable=yes, scrollbars=yes, location=no,  toolbar=no, menubar=no, status=no'
	);
}

function Popup3(url){
	window.open(
		url,
		'window',
		'width=650, height=500, resizable=no, scrollbars=no, location=no,  toolbar=no, menubar=no, status=no'
	);
}




function mailpage()
{
  mail_str = "mailto:?subject= Great Website AyadiPro Web Development";
  mail_str += "&body= I recommend this Great Website AyadiPro Web Development";
  mail_str += ". You should check this out at, " + location.href; 
  location.href = mail_str;
}


//search function display form

function go1() {
window.open( document.typestemp1.ddjump1.options[document.typestemp1.ddjump1.selectedIndex].value,'searchframe');
}


function go2() {
window.open( document.typestemp.ddjump.options[document.typestemp.ddjump.selectedIndex].value,'searchframe');
}




// Hide "" from status bar
function HideStatus(){
	window.status = document.readyState!="complete" ?
		"Loading..." : window.defaultStatus;
}
document.onreadystatechange = HideStatus;

