// JavaScript Document
var pageArray = new Array("page1","page2","page3");
var arrayLength = 3;
var theImage = new Array();
theImage[0] = "http://oracleimg.com/admin/images/ocom/featNav_1on_sm.gif"; 
theImage[1] = "http://oracleimg.com/admin/images/ocom/featNav_2on_sm.gif"; 
theImage[2] = "http://oracleimg.com/admin/images/ocom/featNav_3on_sm.gif"; 
 
/**************************Preloading Images ***************************/
 
image1 = new Image();
image2 = new Image();
image3 = new Image();
 
/***********************************************************************/
 
//var x=0;
window.onload = function (){
//setInterval('displayImage()',10000);
}
function displayImage(i) {
if (i == null){
i = 0;
/* var i = Math.floor(Math.random()*3);*/
}
orimage();
 	var blockName;
	var node ;
	for(j=0;j<3;j++)
	{
 $(pageArray[j]).style.display = "none";
	}
  $(pageArray[i]).style.display = "block";
	var ImgId = "myImage" + (i+1);
   $(ImgId).src = theImage[i];
	currentIndex =i;
 }
 
function orimage()
{
$("myImage1").src="http://oracleimg.com/admin/images/ocom/featNav_1off_sm.gif";
$("myImage2").src="http://oracleimg.com/admin/images/ocom/featNav_2off_sm.gif";
$("myImage3").src="http://oracleimg.com/admin/images/ocom/featNav_3off_sm.gif";
}
 
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
function disp(id,v){
if(v == "visible"){
$("MiddleBannerArea").style.display = "none";
$(id).style.display = "block";

}
else{
$("MiddleBannerArea").style.display = "block";
$("ValueBanner").style.display = "block";
$(id).style.display = "none";
}
}
function protowindow(v_url,v_title,w,h){
	   if($("LinkWin") == null){
		win = new Window("LinkWin",{
			url:v_url,
			className: "dialog",
			title: v_title ,
			width:w,
			height:h,
			showEffect:Effect.BlindDown,
			hideEffect:Effect.Fade,
			minimizable:false,
			maximizable:false,
			destroyOnClose:true})
		win.showCenter(true);
		 }
else {
	}
}
		 
function blindDownX(id){
new Effect.BlindDown(id);
// $(id).visualEffect(id);
}