// BrowserCheck Object
function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns6 = (this.b=="ns" && this.v==5)
	this.ie =  (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0);
	this.ie5 = (this.version.indexOf('MSIE 5')>0);
	this.ie55 = (this.version.indexOf('MSIE 5.5')>0);
	this.min = (this.ns||this.ie)
}
is = new BrowserCheck()  

//***function RESIZE() begins***

if (is.ns4) {

if(!window.saveInnerWidth) {
  saveInnerWidth = window.innerWidth;
  saveInnerHeight = window.innerHeight;
  window.onresize = resize;
   }
}
function resize() {
    if (saveInnerWidth != window.innerWidth || 
        saveInnerHeight != window.innerHeight ) 
    {
	document.location.href = document.location.href;
    }
}

// check for old browswers (3.x and lower)
var browserVer = parseInt ( navigator.appVersion );
if (browserVer < 4 ) {
	window.location = ("/error_page.html");
}

// CSS Platform Specific Javascript
var plat = navigator.platform;

//window.alert("platform:"+plat+" is.ns6:"+is.ns6);

	if (plat.indexOf("Mac") != -1) {
		document.write("<LINK REL='STYLESHEET' HREF='/css/style.css' TYPE='text/css'>");
	} else if (plat.indexOf("SunOS") != -1 && is.ns6) {
		document.write("<LINK REL='STYLESHEET' HREF='/css/style_solaris_ne6.css' TYPE='text/css'>");
	} else if (is.ns6) {
		document.write("<LINK REL='STYLESHEET' HREF='/css/style_pc_ns6.css' TYPE='text/css'>");
	} else if (plat.indexOf("SunOS") != -1) {
		document.write("<LINK REL='STYLESHEET' HREF='/css/style_solaris.css' TYPE='text/css'>");
	} else if (navigator.appName == "Netscape") {
		document.write("<LINK REL='STYLESHEET' HREF='/css/style_pc_ne.css' TYPE='text/css'>");
	} else {
		document.write("<LINK REL='STYLESHEET' HREF='/css/style_pc.css' TYPE='text/css'>");
	}


function makeRemote(URL) {remote = window.open("","remotewin","width=600,height=400,scrollbars=no"); remote.location.href = URL; if (remote.opener == null) remote.opener = window;  remote.opener.name = "opener";}
function makeDemo(URL) {remote = window.open("","remotewin","width=800,height=550,scrollbars=no"); remote.location.href = URL; if (remote.opener == null) remote.opener = window;  remote.opener.name = "opener";}
function makeSunone(URL) {remote = window.open("","remotewin","width=550,height=520,scrollbars=no"); remote.location.href = URL; if (remote.opener == null) remote.opener = window;  remote.opener.name = "opener";}
function openVideo(cpStrIn) {
	remote = window.open("/solutions/customer_profile/"+cpStrIn+"","remotewin","height=340,width=320,scrollbars=no,location=0");
	if (remote.opener == null) 
	remote.opener = window; 
	remote.opener.name = "Main";
	remote.moveTo(((screen.availWidth-320)/2),((screen.availHeight-340)/2));
	remote.focus();	
}

function newWindow(htmlpage,windowName,windowwidth,windowheight)
	{
    eval("window.open('" + htmlpage + "','" + windowName + "','titlebar=no,scrollbars=yes,screenX=10,screenY=100,left=10,top=100,width=" + windowwidth + ",height= " + windowheight + "');");
    }
	
function nopagejump()
	{
	}


//flash
function IP_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=IP_findObj(n,d.layers[i].document); return x;
}

function IP_controlShockwave(objStr,x,cmdName,frameNum) { //v3.0
  var obj=IP_findObj(objStr);
  if (obj) eval('obj.'+cmdName+'('+((cmdName=='GotoFrame')?frameNum:'')+')');
}


//Index Page Rollover
function IP_swapImgRestore() {  
  var i,x,a=document.IP_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function IP_findObj(n, d) {  
  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=IP_findObj(n,d.layers[i].document); return x;
}

function IP_swapImage() {  
  var i,j=0,x,a=IP_swapImage.arguments; document.IP_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=IP_findObj(a[i]))!=null){document.IP_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function IP_preloadImages() {  
  var d=document; if(d.images){ if(!d.IP_p) d.IP_p=new Array();
    var i,j=d.IP_p.length,a=IP_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.IP_p[j]=new Image; d.IP_p[j++].src=a[i];}}
}

