var banner_link= new Array(4); 
banner_link[1]="<img src='/NR/images/links_arrow.gif' align='absmiddle' />&nbsp;<A title='mTopup' href='/Who_we_serve/telco/mtopup/'>mTopup</A>&nbsp;|&nbsp;<A title='Vodafone Sales Scorecard' href='/Showcase/Resource_Center/Case_Studies/Documents/Vodafone Sales ScoreCard.pdf' target=_blank>Vodafone Sales Scorecard</A>&nbsp;|&nbsp;<A title='Vodafone live!' href='/Showcase/Resource_Center/Case_Studies/Documents/Vodafone live.pdf' target=_blank>Vodafone live!</A>";
banner_link[2]="<img src='/NR/images/links_arrow.gif' align='absmiddle' />&nbsp;<A title='Egypt Post Banking System with Bank Faisal' href='/Showcase/Resource_Center/Case_Studies/Documents/Egypt Post Banking System with Bank Faisal.pdf' target=_blank>Egypt Post Banking System with Bank Faisal</A>&nbsp;|&nbsp;<a title='Government Portal Accelerator' href='/Who_we_serve/Government/ITWorxGovernmentPortalAccelerator.aspx'>Government Portal Accelerator</a>";
banner_link[3]="<img src='/NR/images/links_arrow.gif' align='absmiddle' />&nbsp;<A title='ESSC' href='/Who_we_serve/Education/ESSC/'>ESSC</A>&nbsp;|&nbsp;<a title='Microsoft Education Solution Support Center' href='/Showcase/Resource_Center/Case_Studies/Documents/Microsoft ESSC.pdf' target=_blank>Microsoft Education Solution Support Center</a>&nbsp;|&nbsp;<a title='Microsoft learning gateway auto-deployment tool' href='News_Events/Press_Releases/Pages/MLGAuto-DeploymentTool.aspx'>Microsoft learning gateway auto-deployment tool</a>";
banner_link[4]="<img src='/NR/images/links_arrow.gif' align='absmiddle' />&nbsp;ITWorx delivers secure banking e-services</A>&nbsp;|&nbsp;<A title='Egypt Post Financial Services' href='/Showcase/Resource_Center/Case_Studies/Documents/Egypt Post Financial Sytem_Back.pdf'  target=_blank>Egypt Post Financial Services</A>";
banner_link[5]="<img src='/NR/images/links_arrow.gif' align='absmiddle' />&nbsp;<A title='Microsoft MEA Developer Support Center' href='/Showcase/Resource_Center/Case_Studies/Documents/Microsoft MEA Developer Support Center.pdf' target=_blank>Microsoft MEA Developer Support Center</A>&nbsp;|&nbsp;<A title='RiskClick Business Process Management Solutions for Insurance' href='/Showcase/Resource_Center/Case_Studies/Documents/RiskClick Business Process Management Solutions for Insurance.pdf' target=_blank>RiskClick Business Process Management Solutions for Insurance</A>";

var banner_title= new Array(4); 
banner_title[1]="<A href='/Who_we_serve/Telco/'><font class='bannertitle'>Portals, Business Intelligence, and SOA</font><br /><font class='bannersubtitle'>for today's telco leaders</font></A>";
banner_title[2]="<a href='/Who_we_serve/Government/'><font class='bannertitle'>Our vision of efficient, connected</font><br /><font class='bannersubtitle'>government services</font></a>";
banner_title[3]="<a href='/Who_we_serve/Education/'><font class='bannertitle'>Using technology to personalize instruction</font><br /><font class='bannersubtitle'>and improve student achievement</font></a>";
banner_title[4]="<a href='/Who_we_serve/Financial+Services/'><font class='bannertitle'>e-Business solutions</font><br /><font class='bannersubtitle'>that power the agile financial services firm</font></a>";
banner_title[5]="<a href='/Who_we_serve/ISV/'><font class='bannertitle'>Custom application development</font><br /><font class='bannersubtitle'>for increased ISV efficiency</font></a>";

var banner_quote= new Array(4); 
banner_quote[1]="&quot;ITWorx was the best fit for our current and future objectives&quot;<BR><BR><font style='font-size:11px;'><I>Housam El-Dokany, Internet Development & Data Services Manager at Vodafone Egypt</I></font>";
banner_quote[2]="&quot;we are looking forward towards continuously receiving ITWorx professional support&quot;<BR><BR><font style='font-size:11px;'><I>Ashraf M.Fawzy, E-Gov Infrastructure Program Manager - Ministry of State for Administrative Development (MSAD)</I></font>";
banner_quote[3]="&quot;The result was yet another powerful, focused solution that directly addresses a major need of Microsoft&acute;s educational customers.&quot;<BR><BR><font style='font-size:11px;'><I>David Langridge, Solutions & Partner Development Manager Education Solutions Group EMEA</I></font>";
banner_quote[4]="&quot;We are pleased to have found ITWorx to be a partner who shares our commitment to customer satisfaction.&quot;<BR><BR><font style='font-size:11px;'><I>Anthony Siggers, Head of Business Development for Execution</I></font>";


function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	
	try{
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0)
		 {  var readcookie = c.substring(nameEQ.length,c.length); 
			document.getElementById('imagetd').style.backgroundImage = 'url(/NR/images/'+ readcookie+'.jpg)';
			var newy = readcookie.split('image');
			document.getElementById('bannerlink').innerHTML = banner_link[newy[1]];
			//document.getElementById('bannerquote').innerHTML = banner_quote[newy[1]];
			document.getElementById('bannertitle').innerHTML = banner_title[newy[1]];
			}
		
	}
	}
	catch(err3)
	{
	}
	
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}


function autonext()
{
    try
    {
    	autonextvar = setTimeout("next_image();",7000);
	}
	catch(err)
	{
	}
}

function next_image() 
{ 
   try{
    var x =  document.getElementById('imagetd').style.backgroundImage;
    if (x.length == 0)
    	x = 'url(/NR/images/images/image1.jpg';
    	
    var newx = x.split('url(/NR/images/image');
    var num = newx[1].split('.jpg)');
       	
    if (num[0] < 5)
    {
        num[0]++;
    }
    else
        num[0] = 1;
	   	
    document.getElementById('imagetd').style.backgroundImage = 'url(/NR/images/image' + num[0] + '.jpg)';
	   	
    createCookie('itworxcookie','image'+num[0],7);
	   	
    document.getElementById('bannerlink').innerHTML = banner_link[num[0]];
       	
    //document.getElementById('bannerquote').innerHTML = banner_quote[num[0]];
    document.getElementById('bannertitle').innerHTML = banner_title[num[0]];
       	
    clearTimeout(autonextvar);
       	
    }
    catch(err2)
    {
    
    	//alert(err2);
    }
    autonext();
}

function prev_image() 
{ 
try
{
    var x = document.getElementById('imagetd').style.backgroundImage;
    if (x.length == 0)
    	x = 'url(/NR/images/images/image1.jpg';
    	
    var newx = x.split('url(/NR/images/image');
    var num = newx[1].split('.jpg)');
    if (num[0] <= 5  && num[0] >1)
    {
        num[0]--;
    }
    else 
        num[0] = 5;

    document.getElementById('imagetd').style.backgroundImage = 'url(/NR/images/image' + num[0] + '.jpg)';

    createCookie('itworxcookie','image'+num[0],7);

    document.getElementById('bannerlink').innerHTML = banner_link[num[0]];
    //document.getElementById('bannerquote').innerHTML = banner_quote[num[0]];
    document.getElementById('bannertitle').innerHTML = banner_title[num[0]];

    clearTimeout(autonextvar);
    }
    catch(err3)
    {}
    autonext();
}

function imageselector(i)
{
	document.getElementById('imagetd').style.backgroundImage = 'url(/NR/images/image' + i + '.jpg)';
	
	createCookie('itworxcookie','image'+i,7);
	
	document.getElementById('bannerlink').innerHTML = banner_link[i];
	//document.getElementById('bannerquote').innerHTML = banner_quote[i];
	document.getElementById('bannertitle').innerHTML = banner_title[i];
	clearTimeout(autonextvar);
	autonext();
}