/********************************************/

var navVersion = parseInt(navigator.appVersion);
var isMac = ((navigator.userAgent.indexOf("Mac") > 0) || (navigator.appVersion.indexOf("Mac") != -1) || (navigator.userAgent.indexOf("Mac_Power") > 0) || (navigator.appVersion.indexOf("Mac_Power") != -1))
var isNN  = ((navigator.appName == "Netscape")  && (!isMac) && (navVersion >= 4));
var isIE  = ((document.all) && (!isMac) && (navVersion >= 4));

if(navigator.userAgent.indexOf("Opera")!=-1){
var versionindex=navigator.userAgent.indexOf("Opera")+6
var isOp = (parseInt(navigator.userAgent.charAt(versionindex))>=8)
}

/**************************** Image Replacer ****************/

var Pic = new Array(); //
var Txt = new Array(); //

/***************************** EDITABLE VALUES *******************/

var slideShowSpeed = 6500; // The slide show speed ==> counted in miliseconds ==> 1 second = 1000 miliseconds
var crossFadeDuration = 2; // The Blending Time ==> counted in seconds

// the picture and the corresponding image should have the same index.
Pic[0] = 'Images/homeImage3.jpg';
Pic[1] = 'Images/homeImage5.jpg';
Pic[2] = 'Images/homeImage6.jpg';
Pic[3] = 'Images/homeImage1.jpg';
Pic[4] = 'Images/homeImage2.jpg';
Pic[5] = 'Images/homeImage7.jpg';
Pic[6] = 'Images/homeImage4.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];
}

j = Math.floor(Math.random()*p);
var the_first_j = j;


/**************************** ****************/


function SlideShowBase() {
if ((isIE) && (!isOp)){
document.write("<img src=\"Images\/homeImage3.jpg\" name='SlideShow' width=760 height=200>")
}}


/**************************** 
function SlideShowText() {
if ((isIE) && (!isOp)){
document.write("<div id=\"imgTxt\"><TABLE cellspacing=0 cellpadding=0 border=0><tr><td height=15><\/td><\/tr><tr><td width=658><font class=\"fontHome01\">Mixing efficiency and creativity helps to produce <\/font><font class=\"fontBold\">better database applications.<\/font><\/td></tr><tr><td width=658><font class=\"fontHome01\">Customized, good quality, imaginatively developed database applications for variety of business, organizational and departmental needs.<\/font><\/td></tr><\/TABLE><\/div>")
}}
****************/

function runSlideShow() {
if ((isIE) && (!isOp)){
runFadingSlideShow()}
}


/**************************** ****************/


function runFadingSlideShow(){	

	if (document.all){
		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();
		

/**************************** 
		TxtObj.style.filter="RevealTrans(duration="+crossFadeDuration+",Transition=6)";
		TxtObj.filters.RevealTrans.Apply();   
	}
	TxtObj.innerHTML=Txt[j];
	if (document.all){
		TxtObj.filters.RevealTrans.Play();
	}
****************/
}
	j++;
	if (j == p) j=0;
	t = setTimeout('runFadingSlideShow()', slideShowSpeed)
}


/**************************** ****************/


function SelectRandom() {
if ((!isIE) || (isOp)){
runReplacementSlideShow()}
}

function runReplacementSlideShow() {
	Collection = new Array();
	Collection[1] = "<img src=\"Images/homeImage3.jpg\" width=\"760\" height=\"200\" border=\"0\" alt=\"\">"
	Collection[2] = "<img src=\"Images/homeImage5.jpg\" width=\"760\" height=\"200\" border=\"0\" alt=\"\">"
	Collection[3] = "<img src=\"Images/homeImage6.jpg\" width=\"760\" height=\"200\" border=\"0\" alt=\"\">"
	Collection[4] = "<img src=\"Images/homeImage1.jpg\" width=\"760\" height=\"200\" border=\"0\" alt=\"\">"
	Collection[5] = "<img src=\"Images/homeImage2.jpg\" width=\"760\" height=\"200\" border=\"0\" alt=\"\">"
	Collection[6] = "<img src=\"Images/homeImage7.jpg\" width=\"760\" height=\"200\" border=\"0\" alt=\"\">"
	Collection[7] = "<img src=\"Images/homeImage4.jpg\" width=\"760\" height=\"200\" border=\"0\" alt=\"\">"

	Now = new Date();
	lng = (Now.getSeconds()) % 7;
	lng = lng + 1;
	document.write(Collection[lng])
	}


function reloadPage(doit) {
if (doit==true) with (navigator) {if (isNN) reloadPage; }
else location.reload();}
reloadPage(true); 

if ((!isIE) || (isOp)){
setTimeout("reloadPage()",12500);}


/**************************** OnMouseOver Text Generator ****************/


