// JavaScript Document
indexArray = new Array() 
var PreviousValue
var CurrentValue

function ModifyIndex(N) {
	if (indexArray.length<1) {
		indexArray.push(N);
		Currentvalue = indexArray[0];
		//	alert('onlyOne');
		showHide(Currentvalue);
		
		//alert(indexArray.length)
	} else {
		indexArray.push(N);
		//alert('greater than 0')
		PreviousValue = indexArray[0];
		CurrentValue = indexArray[1];
		if (PreviousValue == CurrentValue) {
			showHide(PreviousValue)
			indexArray.shift()
			indexArray.shift()
		//	alert(indexArray.length)
		}
		else{
		showHide(PreviousValue);
		showHide(CurrentValue);
		indexArray.shift();
		}
	}
}   


function showHide(x){
	if (document.getElementById(x).style.display == '') {
	node = document.getElementById(x).style.display='none';
} else {
	node = document.getElementById(x).style.display='';
}
}
function clearZip()
{

	document.getElementById('zip').value = '';
}

/*Added ------ Personalize -------*/

// rowitem 1,2,3 MouseOver
function showHideRowitemOver(x)
{
    document.getElementById(x).style.display='block'; 
   
//     //browser check
//    var is_ie = (navigator.userAgent.indexOf('MSIE') >= 0) ? 1 : 0; 
//    var is_ie5 = (navigator.appVersion.indexOf("MSIE 5.5")!=-1) ? 1 : 0; 
//    var is_opera = ((navigator.userAgent.indexOf("Opera6")!=-1)||(navigator.userAgent.indexOf("Opera/6")!=-1)) ? 1 : 0; 
//    //netscape, safari, mozilla behave the same??? 
//    var is_netscape = (navigator.userAgent.indexOf('Gecko') >= 0) ? 1 : 0; 

//        if (is_netscape == 1)
//        {
//            // setting position of div 
//           document.getElementById(x).style.marginTop = "-180px;" ;
//        }

}

// Row Item 1,2,3 Button MouseOut
function showHideRowitemOut(x)
{
    document.getElementById(x).style.display='none';
}

// rowpersonalize Div1,2,3 MouseOver
function showHidePersOver(x,y)
{
    document.getElementById(x).style.display='block'; 
    //document.getElementById(y).className = 'rowTitleBtnPers';
     
//    //browser chk
//    var is_ie = (navigator.userAgent.indexOf('MSIE') >= 0) ? 1 : 0; 
//    var is_ie5 = (navigator.appVersion.indexOf("MSIE 5.5")!=-1) ? 1 : 0; 
//    var is_opera = ((navigator.userAgent.indexOf("Opera6")!=-1)||(navigator.userAgent.indexOf("Opera/6")!=-1)) ? 1 : 0; 
//    //netscape, safari, mozilla behave the same??? 
//    var is_netscape = (navigator.userAgent.indexOf('Gecko') >= 0) ? 1 : 0; 

//    if (is_netscape == 1)
//    {
//         // setting position of div 
//       document.getElementById(rowPersonalize).style.marginTop = "-180px;" ;
//    }
}

// rowpersonalize Div1,2,3 MouseOver

function showHidePersOut(x,y)
{
    document.getElementById(x).style.display='none';
    //document.getElementById(y).className = 'rowTitleBtn';  
}


function showHidediv(tabs)
{

var divs = document.getElementById('NWSbox1').getElementsByTagName('div');
for (var x=0, y=divs.length; x < y; x++) 
{

    if(divs[x].className=="Show")
    {
    
    divs[x].className="Hide"

    
    }
}
document.getElementById(tabs).className="Show";


showHideRowitemOut('personalizeBoxPos1')


}


/*video Wall Scroll scripts starts here----06-11-08/-----*/	

function showSubMenu(tabs)
{


var menuToShow = "content"+tabs;
var borderToHide = "wallContent"+tabs;
var btnBg ="wallBtnBG"+tabs;

    for (var x=1, y=4; x <= y; x++) 
    {
		

        document.getElementById('content'+x).style.display='none'; 
        document.getElementById('wallContent'+x).className="wallRightBorder IE_float"
		 document.getElementById('wallBtnBG'+x).className="videoWall_greyBtnBG btntop"
		 
        document.getElementById("wallBtn"+x).className="videoWall_greyBtn"
      
    }
    document.getElementById(menuToShow).style.display='block'; 
   
  document.getElementById(borderToHide).className="wallRightNoBorder IE_float"
  document.getElementById(btnBg).className="videoWall_greyBtnBGNew btntop"
  
document.getElementById("wallBtn"+tabs).className="videoWall_yellowBtn"	  
    
}


function btnChange(img)
{

for (var x=1, y=1; x <= y; x++) 
    {
	document.getElementById("wallBtn"+x).className="videoWall_greyBtn"
    }

document.getElementById("wallBtn"+img).className="videoWall_yellowBtn"

}

function btnGrey(img)
{



document.getElementById("wallBtn"+img).className="videoWall_greyBtn"

}

/*video Wall Scroll scripts ends here----06-11-08/-----*/	


/*video Wall Scroll scripts starts here----07-11-08/-----*/	
function clearSearch()
{

	document.getElementById('txt_search').value = '';
}/*------------change tab color----------12/11/08----------*/
var navTabId = 0
function changeTabColorOnClick(position)
{
	if ( navTabId != 0 )
		document.getElementById('navcont' + navTabId).style.background = 'none';
	navTabId = position
	document.getElementById('navcont' + position).style.background = 'url(/images/catNav-on.gif) repeat-x';
	document.getElementById('navcont' + position).style.height = '50px';
}

function revertColorOnOut(position)
{
	if ( position != navTabId )
	{
		document.getElementById('navcont' + position).style.background = 'none'; 
	}
}

function changeTabColorOnOver(position)
{
	document.getElementById('navcont' + position).style.background = 'url(/images/catNav-on.gif) repeat-x';
}
/*------------change tab color---ends here-------12/11/08----------*/
/*chopper 12 scripts starts here----------12/11/2008--------*/

function choppershowSubMenu(tabs)
{


var menuToShow = "content"+tabs;
var borderToHide = "wallContent"+tabs;
var btnBg ="wallBtnBG"+tabs;

    for (var x=2, y=6; x <= y; x++) 


/*video Wall Scroll scripts ends here----07-11-08/-----*/	

    {
		

        document.getElementById('content'+x).style.display='none'; 
        document.getElementById('wallContent'+x).className="wallRightBorder IE_float"
		 document.getElementById('wallBtnBG'+x).className="videoWall_greyBtnBG btntop"
		 
        document.getElementById("wallBtn"+x).className="videoWall_greyBtn"
      
    }
    document.getElementById(menuToShow).style.display='block'; 
   
  document.getElementById(borderToHide).className="wallRightNoBorder IE_float"
  document.getElementById(btnBg).className="videoWall_greyBtnBGNew btntop"
  
document.getElementById("wallBtn"+tabs).className="videoWall_yellowBtn"	  
    
}

function chopperbtnChange(img)
{

    for (var x=1, y=6; x <= y; x++) 
    {
	 document.getElementById("wallBtn"+x).className="chopper_greyBtn"
	
	}

    document.getElementById("wallBtn"+img).className="chopper_yellowBtn"
    

 }

function chopperbtnGrey(img)
{
 document.getElementById("wallBtn"+img).className="chopper_greyBtn"
}

/*chopper 12 scripts ends here----------12/11/2008--------*/
