//THIS FILE HAS BEEN CREATED BY ORCHID INFORMATION SYSTEMS
//www.orchidwebs.com
//UNAUTHORISED USE PROHIBITED.


// ----------------------------------------------------------------------------------------------------------
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 2000

// Duration of crossfade (seconds)
var crossFadeDuration = 0

var Pic = new Array() // don't touch this

Pic[0] = '../imgz/iifabusiness00.jpg'
Pic[1] = '../imgz/iifabusiness01.jpg'
Pic[2] = '../imgz/iifabusiness02.jpg'
Pic[3] = '../imgz/iifabusiness03.jpg'
Pic[4] = '../imgz/iifabusiness04.jpg'
Pic[5] = '../imgz/iifabusiness05.jpg'
Pic[6] = '../imgz/iifabusiness06.jpg'
Pic[7] = '../imgz/iifabusiness07.jpg'
Pic[8] = '../imgz/iifabusiness08.jpg'
Pic[9] = '../imgz/iifabusiness09.jpg'
Pic[10] = '../imgz/iifabusiness10.jpg'
Pic[11] = '../imgz/iifabusiness11.jpg'
Pic[12] = '../imgz/iifabusiness12.jpg'
Pic[13] = '../imgz/iifabusiness13.jpg'
Pic[14] = '../imgz/iifabusiness14.jpg'
Pic[15] = '../imgz/iifabusiness15.jpg'
Pic[16] = '../imgz/iifabusiness16.jpg'
var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=0)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}

// ----------------------------------------------------------------------------------------------------------

//TO POP UP THE WINDOW FOR VARIOUS SECTORS

function OpenNewWindow(formname)
{	
	
	if (window.external) 
	{
		Scene_Wnd = window.open(formname+'','WINDOW','scrollbars=yes,status=no,resizable=no,top=10,left=440,width=550,height=650');
		Scene_Wnd.focus();
	}
	else
	{
		Scene_Wnd = window.open(formname+'','WINDOW','scrollbars=yes,status=no,resizeable=no,top=10,left=440,width=550,height=650');
		Scene_Wnd.focus();
	}
}

//TO POP UP THE WINDOW FOR SNAPSHOTS / IMAGES

function OpenSnapWindow(formname)
{	
	
	if (window.external) 
	{
		Scene_Wnd2 = window.open(formname+'','WINDOW2','scrollbars=no,status=no,resizable=no,top=190,left=430,width=420,height=330');
		Scene_Wnd2.focus();
	}
	else
	{
		Scene_Wnd2 = window.open(formname+'','WINDOW2','scrollbars=no,status=no,resizable=no,top=190,left=430,width=420,height=330');
		Scene_Wnd2.focus();
	}
}
// ----------------------------------------------------------------------------------------------------------


//TO DISABLE THE RIGHT CLICK FUNCTION
function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

	if (window.Event) // Only Netscape will have the CAPITAL E.
	  document.captureEvents(Event.MOUSEUP); // catch the mouse up event
	function nocontextmenu()  // this function only applies to IE4, ignored otherwise.
	{
	 event.cancelBubble = true
	 event.returnValue = false;
	 return false;
	}
	function norightclick(e) // This function is used by all others
	{
	 if (window.Event) // again, IE or NAV?
	 {
	  if (e.which == 2 || e.which == 3)
	   return false;
	 }
	 else
	  if (event.button == 2 || event.button == 3)
	  {
	   event.cancelBubble = true
	   event.returnValue = false;
	   return false;
	  }
	}
	document.oncontextmenu = nocontextmenu;  // for IE5+
	document.onmousedown = norightclick;  // for all others

// ----------------------------------------------------------------------------------------------------------


//UNAUTHORISED USE PROHIBITED.
//www.orchidwebs.com
//THIS FILE HAS BEEN CREATED BY ORCHID INFORMATION SYSTEMS