// Browser Check -- 12.21.01
	var bIsIE = navigator.appName == "Microsoft Internet Explorer";
	var bIsIE4 = bIsIE && navigator.appVersion.indexOf("4.") > -1;
	var bIsNS = navigator.appName != "Microsoft Internet Explorer";
	var bIsNS4 = bIsNS && navigator.appVersion.indexOf("4.") > -1;
	var osISmac = navigator.appVersion.indexOf("Mac") != -1 

// Window opener -- 12.21.01
function login(url, title)
 {
 var w = screen.width;
 var h = screen.height;
 var l = (w-200)/2;
 var t = (h-100)/2;
 var settings = 'location=0,toolbar=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0';
 var position =  'top=' + t + ',screenY=' + t + ',left=' + l + ',screenX=' + l;
 var size = 'width=200,innerWidth=200, height=100,innerHeight=100';
 var settings = settings + ',' + position + ',' + size
 window.open(url, title, settings);
 }
 
 function client(url)
 {
 var w = screen.width;
 var h = screen.height;
 var l = (w-800)/2;
 var t = (h-500)/2;
 var settings = 'location=0,toolbar=1,directories=0,status=0,menubar=0,scrollbars=1,resizable=1';
 var position =  'top=' + t + ',screenY=' + t + ',left=' + l + ',screenX=' + l;
 var size = 'width=800,innerWidth=800, height=500,innerHeight=500';
 var settings = settings + ',' + position + ',' + size
 window.open(url, 'Client', settings);
 }
 
  function printable(url)
 {
 var w = screen.width;
 var h = screen.height;
 var l = (w-620)/2;
 var t = (h-400)/2;
 var settings = 'location=0,toolbar=1,directories=0,status=0,menubar=0,scrollbars=1,resizable=1';
 var position =  'top=' + t + ',screenY=' + t + ',left=' + l + ',screenX=' + l;
 var size = 'width=620,innerWidth=620, height=400,innerHeight=400';
 var settings = settings + ',' + position + ',' + size
 window.open(url, 'printable', settings);
 }
 
// Window opener -- 12.21.01
	function awards() 
{
window.open('awards/index.html','awards', 'height=400,width=200,left=0,top=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
}
	function wallpaper(url) 
{
window.open(url,'wallpaper', 'height=400,width=400,left=0,top=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
}
	function links() 
{
window.open('links/index.html','links', 'height=230,width=375,left=0,top=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
}

	function loadwindow(url,wid,hei,mysettings) 
{
 var w = screen.width;
 var h = screen.height;
 var l = (w-wid)/2;
 var t = (h-hei)/2;
 var position =  'top=' + t + ',screenY=' + t + ',left=' + l + ',screenX=' + l;
 var size = 'width=200,innerWidth=200, height=100,innerHeight=100';
 var settings = settings + ',' + position + ',' + size
 window.open(url, 'Crucial', mysettings);
}

	function popMe(url,wid,hei) 
{
 var w = screen.width;
 var h = screen.height;
 var l = (w-wid)/2;
 var t = (h-hei)/2;
 var position =  'top=' + t + ',screenY=' + t + ',left=' + l + ',screenX=' + l;
 var size = 'width=' + wid + ',innerWidth=' + wid + ', height=' + hei + ',innerHeight=' + hei;
 var mysettings = position + ',' + size
 window.open(url, 'Crucial', mysettings);
}

	function zsi() 
{
 var url = "zsi.html";
 var wid = "713";
 var hei = "465";
 var mysettings = 'location=0,toolbar=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0';
 var w = screen.width;
 var h = screen.height;
 var l = (w-wid)/2;
 var t = (h-hei)/2;
 var position =  'top=' + t + ',screenY=' + t + ',left=' + l + ',screenX=' + l;
 var size = 'width=' + wid + ',innerWidth=' + wid + ', height=' + hei + ',innerHeight=' + hei;
 var mysettings = mysettings + ',' + position + ',' + size
 window.open(url, 'Crucial', mysettings);
}


	function privacy() 
{
window.open('privacy.html','privacy', 'height=225,width=375,left=0,top=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
}

	function copyright() 
{
window.open('copyright.html','copyright', 'height=281,width=375,left=0,top=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
}

function sample(view)
{
	switch(view) 
{
case "memory":
window.open('lab/samples/memory/index.html','memory', 'height=540,width=712,left=0,top=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
break;

case "slider":
window.open('lab/samples/slider/index.html','slider', 'height=325,width=400,left=0,top=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
break;

case "transitions":
window.open('lab/samples/transitions/index.html','transitions', 'height=200,width=350,left=0,top=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
break;
}
}

// Rollover Scripts -- 12.21.01

function CL_rollOut() 
		{var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}

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

function 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=findObj(n,d.layers[i].document);
  		if(!x && document.getElementById) x=document.getElementById(n); return x;
		}

function CL_rollOver() 
		{
  		var i,j=0,x,a=CL_rollOver.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   		if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
		}
		
// Status Bar -- 12.21.01
	function CL_statusBar(msg)
	{
	window.status = msg
	return true
	}
	window.defaultStatus = "Crucial Limit :: New.Media.Design ::";

