// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;

// Duration of crossfade (seconds)
var crossFadeDuration = 3;

// Specify the image files

var Pic = new Array(); // don't touch this
var PicUrl = new Array(); // don't touch this

var PicCaption = new Array(); // don't touch this

Pic[0] = 'images/img1a.jpg';
Pic[1] = 'images/img2a.jpg';
Pic[2] = 'images/img6a.jpg';
Pic[3] = 'images/img4a.jpg';
Pic[4] = 'images/img3a.jpg';
Pic[5] = 'images/img5a.jpg';


PicUrl[0] = '#';
PicUrl[1] = '#';

var PageNav='#';

// =======================================
// do not edit anything below this line
// =======================================

var m_intTimeOut;
var j = 0;
var m_intArrayLen = Pic.length;

var preLoad = new Array();
for (i = 0; i < m_intArrayLen; i++)
{
   preLoad[i] = new Image();
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)";
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
      document.images.SlideShow.filters.blendTrans.Apply();      
   }
   document.images.SlideShow.src = preLoad[j].src;
	PageNav=PicUrl[j];

   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play();
   }
   j = j + 1;
   if (j > (m_intArrayLen-1)) j=0
   m_intTimeOut = setTimeout('runSlideShow()', slideShowSpeed);
}

function pg_nav()
{
	window.location.href=PageNav;
}

function SpecialCharValidation()
{// for `(96) &(38) "(34) '(39) 
				code=eval(event.keyCode)				
				if (code==96 || code==38 || code==34 || code==39)
				{event.keyCode=0;}
}

function PassportValidation()
{// for `(96) &(38) "(34) '(39) Space(32)
				code=eval(event.keyCode)				
				if (code==96 || code==38 || code==34 || code==39 || code==32)
				{event.keyCode=0;}
}

function fnUCase(obj)
{
	var strText = new String(obj.value);
	strText = strText.replace("'", "");
	strText = strText.replace("\"", "");
		
	var newstrText = new String();
	newstrText = strText.toUpperCase();
	obj.value = newstrText;
	return;
}

function AcceptNumerics()
{
	// for `(96) &(38) "(34) '(39) 
	code=eval(event.keyCode);						
	if (code<48 || code>57)
	{
	event.keyCode=0;
	}
}

