function complexRoll(position) { 
	if (position == 'pos0') {
	document.getElementById('home-rollover').className = 'position0';
	document.getElementById('featured-center').src = 'img/featured-center.jpg';
	// Change the link for the default image
	document.getElementById('center-link').href = '#';
	}
	if (position == 'pos1') {
	document.getElementById('home-rollover').className = 'position1';
	document.getElementById('featured-center').src = 'img/center-o-ring.jpg';
	// Change the link for the o-ring image
	document.getElementById('center-link').href = '#';
	}
	if (position == 'pos2') {
	document.getElementById('home-rollover').className = 'position2';
	document.getElementById('featured-center').src = 'img/center-gasket.jpg';
	// Change the link for the gaskets image
	document.getElementById('center-link').href = '#';
	}
	if (position == 'pos3') {
	document.getElementById('home-rollover').className = 'position3';
	document.getElementById('featured-center').src = 'img/center-molded-shapes.jpg';
	// Change the link for the molded shapes image
	document.getElementById('center-link').href = '#';
	}
	if (position == 'pos4') {
	document.getElementById('home-rollover').className = 'position4';
	document.getElementById('featured-center').src = 'img/center-o-ring-cord.jpg';
	// Change the link for the o-ring cord and extrusions image
	document.getElementById('center-link').href = '#';
	}
	if (position == 'pos5') {
	document.getElementById('home-rollover').className = 'position5';
	document.getElementById('featured-center').src = 'img/center-product-index.jpg';
	// Change the link for the product index image
	document.getElementById('center-link').href = '#';
	}
	if (position == 'pos6') {
	document.getElementById('home-rollover').className = 'position6';
	document.getElementById('featured-center').src = 'img/center-performance-seals.jpg';
	// Change the link for the performance seals image
	document.getElementById('center-link').href = '#';
	}
	if (position == 'pos7') {
	document.getElementById('home-rollover').className = 'position7';
	document.getElementById('featured-center').src = 'img/center-x-ring.jpg';
	// Change the link for the x-rings and square rings image
	document.getElementById('center-link').href = '#';
	}
	if (position == 'pos8') {
	document.getElementById('home-rollover').className = 'position8';
	document.getElementById('featured-center').src = 'img/center-o-ring-kits.jpg';
	// Change the link for the o-ring kits and accessories image
	document.getElementById('center-link').href = '#';
	}
}


 //**************layer swap*******************
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 layerSwap() { //v6.0
  var i,p,v,m,obj,args=layerSwap.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')?'block':(v=='hide')?'none':v; }
    obj.display=v; }
}
 //**************end layer swap*******************
 
 
 // popup window function
 function openPop(w,h,page){
	window.open(page,null,"height="+h+",width="+w+",channelmode=no,directories=no,fullscreen=no,titlebar=no;location=no,toolbar=no,menubar=no,resizeable=no,scrollbars=no,status=no,top="+((screen.height-h)/2)+",left="+((screen.width-w)/2),true);
}