/*<script language="JavaScript1.2">*/

var BroW = navigator.appVersion;

//check visitor screen resolution

  x = screen.width ; y = screen.height
  
    if ((x > 800) && (x <= 1028)) {x = 1028}
    if ((y > 600) && (y <= 780))  {y = 780}
    if ((x > 640) && (x <= 800))  {x = 800}
    if ((y > 480) && (y <= 600))  {y = 600}
    if (x <= 640) {x = 640}
    if (y <= 480) {y = 480}

  Res = x + "x" + y



function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function openWin1(url,w,h)
{
	var j=window.open(url,"jj","top=10,left=10,width="+w+",height="+h+",resizable=no,scrollbars=no")
	j.foucs();
	

}

		//Function that is a wrapper function for FW_showMenu and handles page loaded error handling
		function FrWks_showMenu(objMenu,xpos,ypos,val)
		{	

			if (val == 1) 
			{
				document.abt.src="drpdown/about_jnj_inside_roll.gif";
			}
			if (val == 2) 
			{
				document.cpi.src="drpdown/company_philosophy_inside_r.gif";
			}

			if (val == 3) 
			{
				document.bsd.src="drpdown/business_divisions_inside_r.gif";
			}
			
			if (val == 4) 
			{
				document.car.src="drpdown/careers_inside_roll.gif";
			}

			if (val == 5) 
			{
				document.cont.src="drpdown/conatct_us_inside_roll.gif";
			}
				objMenu = eval(objMenu)
				if (window.FW_showMenu)							
					window.FW_showMenu(objMenu,xpos,ypos);				
			
		}
			
		//Function that is a wrapper function for FW_startTimeout and handles page loaded error handling
		function FrWks_startTimeout(imgToShow)
		{
			
			if (imgToShow == 1)
			{
				document.abt.src="drpdown/about_jnj_inside.gif";
			}
			if (imgToShow == 2)
			

			{
				document.cpi.src="drpdown/company_philosophy_inside.gif";
			}

			if (imgToShow == 3)
			{
				document.bsd.src="drpdown/business_divisions_inside.gif";
			}

			if (imgToShow == 4)
			{

				document.car.src="drpdown/careers_inside_roll.gif";

			}

			if (imgToShow == 5)
			{

				document.cont.src="drpdown/conatct_us_inside.gif";

			}			
				if (window.FW_startTimeout)
					window.FW_startTimeout();
			
		}	


//if (Res == '800x600'){
//  location.href="vistakon_portfolio800.html";
//  
//  }		


/*</script>


<script language="javascript">*/
// JavaScript Document
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

/*</script>



<SCRIPT language=JavaScript>*/


// ******Function check(x,y), check for browser starts here, for bringline *****
function checkline(x,y)
{
a=navigator.appName
if(a=="Microsoft Internet Explorer") 
                {       
                bringlineie(x,y);
                }
else
                {                       
                bringlinens(x,y);
                }
}
//******Function check(x,y) ends here*****

function bringlineie()


// ********* Code to bring line in IE and hide the arrow layer ends here *****

{
        document.all.item('arrow1').style.visibility="hidden";
                        

        for(i=0; i<250; i++)
        
                if (document.all.item('line').style.pixelLeft <= 0)
                {
        document.all.item('line').style.pixelLeft=document.all.item('line').style.pixelLeft+(2);

                                for(j=0; j<50; j++)
                                {
                                };

                }
        
}
// ********* Code to bring line and hide the arrow layer ends here *****



// ********* Code to bring line in NS and hide the arrow layer ends here *****

function bringlinens()

{
        document.layers['arrow1'].visibility = "hide";
        for(i=0; i<250; i++)

                if (document.layers['line'].left <= 0)
                {
                document.layers['line'].left=document.layers['line'].left+(2);
                
                        for (j=0; j<30; j++)
                        {
                        };
                        
                }
}
// ********* Code to bring line and hide the arrow layer ends here *****



// ******Function check(x,y), check for browser starts here*****
function check(x,y)
{

a=navigator.appName
if(a=="Microsoft Internet Explorer") 
                {       
                sidewinderie(x,y);
                }
else
                {                       
		sidewinderns(x,y);
                }
}
//******Function check(x,y) ends here*****

//**************start of slide code***************************//
/*****Variables**********/
// timex - timeout variable for x
var time1;
var time2;
var time3;
var time4;
var time5;
var time6;



time1 = null;
time2 = null;
time3 = null;
time4 = null;
time5 = null;
time6 = null;





function  sidewinderns(num,direction)
{
	clearTimeout(time5);
	clearTimeout(time6);
        switch (num)
        {
                case 1: {clearTimeout(time1);break;}
                case 2: {clearTimeout(time2);break;}
                case 3: {clearTimeout(time3);break;}
                case 4: {clearTimeout(time4);break;}
        }
		
        
        name = "sld" + num;
        if (direction < 0)
        {


                        if (document.layers[name].top >= 80)
                        {
                                
                                document.layers[name].top=document.layers[name].top+(2*direction);
                                b = "sidewinderns(" + num + "," + direction +")";
                                switch (num)
                                {
                                        case 1: {time1 =  setTimeout(b,10);break;}
                                        case 2: {time2 =  setTimeout(b,10);break;}
                                        case 3: {time3 =  setTimeout(b,10);break;}
                                        case 4: {time4 =  setTimeout(b,10);break;}
                                }
                        }       
        }

        else

        {
			if (document.layers[name].top <= 94)

        		{
                                document.layers[name].top=document.layers[name].top+(2*direction);
                                b = "sidewinderns(" + num + "," + direction +")";
                                switch (num)
                                {
                                        case 1: {time1 =  setTimeout(b,10);break;}
                                        case 2: {time2 =  setTimeout(b,10);break;}
                                        case 3: {time3 =  setTimeout(b,10);break;}
                                        case 4: {time4 =  setTimeout(b,10);break;}
                                }
				

                        }       
        }

//		time5 = setTimeout("removepops()",500); 
		

}


function  sidewinderie(num,direction)
{
	  clearTimeout(time5);
	  switch (num)
        {
                case 1: {clearTimeout(time1);break;}
                case 2: {clearTimeout(time2);break;}
                case 3: {clearTimeout(time3);break;}
                case 4: {clearTimeout(time4);break;}
        }
        
        name = "sld" + num;
        if (direction < 0)
        {
                        if (document.all.item(name).style.pixelTop >= 80)
                        {
			document.all.item(name).style.pixelTop=document.all.item(name).style.pixelTop+(2*direction);
			b = "sidewinderie(" + num + "," + direction +")";
                                switch (num)
                                {
                                        case 1: {time1 =  setTimeout(b,10);break;}
                                        case 2: {time2 =  setTimeout(b,10);break;}
                                        case 3: {time3 =  setTimeout(b,10);break;}
                                        case 4: {time4 =  setTimeout(b,10);break;}
                                }
                        }       

        }

        else

        {

		        if (document.all.item(name).style.pixelTop <= 94 )
                

		        {
			document.all.item(name).style.pixelTop=document.all.item(name).style.pixelTop+(2*direction);
                        b = "sidewinderie(" + num + "," + direction +")";
                                switch (num)
                                {
                                        case 1: {time1 =  setTimeout(b,10);break;}
                                        case 2: {time2 =  setTimeout(b,10);break;}
                                        case 3: {time3 =  setTimeout(b,10);break;}
                                        case 4: {time4 =  setTimeout(b,10);break;}
                                }
                        }       
        }


//		time5 = setTimeout("removepops()",500); 

}


//******************end of slide code*********************//

// ******Function check for removepops for browser starts here*****
function removepops()
{

a=navigator.appName
if(a=="Microsoft Internet Explorer") 
                {       
                removepopsie();
                }
else
                {                       
		removepopsns();
                }
}
//******Function check for removepops ends here*****

//*********Removepops for NS starts here*********//

function removepopsns()
{
document.layers['sld1'].top=80;
document.layers['sld2'].top=80;
document.layers['sld3'].top=80;
document.layers['sld4'].top=80;
}

//*********Removepops for NS ends here*********//

//*********Removepops for IE starts here*********//

function removepopsie()
{
if (Res == "1028x780"){
document.all.item('sld1').style.pixelTop=149
document.all.item('sld2').style.pixelTop=149
}else{
document.all.item('sld1').style.pixelTop=67
document.all.item('sld2').style.pixelTop=67
}
document.all.item('sld1').style.visibility="hidden";

document.all.item('sld2').style.visibility="hidden";
MM_swapImgRestore();
///document.all.item('sld3').style.pixelTop=80
///document.all.item('sld4').style.pixelTop=80
}

//*********Removepops for IE ends here*********//

function waitnremove()
{
		time6 = setTimeout("removepops()",200); 
		

}

/*</SCRIPT>

<SCRIPT language=JavaScript>*/

// ******Function check for showslds for browser starts here*****
function showslds(nm)
{

a=navigator.appName

if(a=="Microsoft Internet Explorer") 
                { 
                	var f = "showJMenu(\'"+nm+"\')" ;     
                	
                	 setTimeout(f,10);
               	 ;
                }
else
                {                       
			showsldsns();
                }
}
//******Function check for showslds ends here*****

//*********showslds for NS starts here*********//

function showsldsns()
{

document.layers['sld1'].visibility = "show";
document.layers['sld2'].visibility = "show";
document.layers['sld3'].visibility = "show";
document.layers['sld4'].visibility = "show";
}

//*********showslds for NS ends here*********//

//*********showslds for IE starts here*********//

function showsldsie()
{
document.all.item('sld1').style.visibility="visible";
///document.all.item('sld2').style.visibility="visible";
///document.all.item('sld3').style.visibility="visible";
///document.all.item('sld4').style.visibility="visible";
}

//*********showslds for IE ends here*********//


function showJMenu(layerName){

	if ( layerName == 'sld1')
		document.all.item('sld1').style.visibility="visible"
	if ( layerName == 'sld2')
		document.all.item('sld2').style.visibility="visible"
}

function hideJMenu(layerName){
	document.all.item('sld1').style.visibility="hidden"
}


/*</SCRIPT>*/

