if (document.images) {
	onlineStore = new Image(60,20);onlineStore.src = 'http://lib.store.yahoo.net/lib/opticsplanet/headerLinkOnlineStore.gif';
	onlineStoreOn = new Image(60,20);onlineStoreOn.src = 'http://lib.store.yahoo.net/lib/opticsplanet/headerLinkOnlineStoreOn.gif';
	infoAdvice = new Image(181,20);infoAdvice.src = 'http://lib.store.yahoo.net/lib/opticsplanet/headerLinkInfoAdvice.gif';
	infoAdviceOn = new Image(181,20);infoAdviceOn.src = 'http://lib.store.yahoo.net/lib/opticsplanet/headerLinkInfoAdviceOn.gif';
	aboutUs = new Image(52,20);aboutUs.src = 'http://lib.store.yahoo.net/lib/opticsplanet/headerLinkAboutUs.gif';
	aboutUsOn = new Image(52,20);aboutUsOn.src = 'http://lib.store.yahoo.net/lib/opticsplanet/headerLinkAboutUsOn.gif';
	ourPolicy = new Image(46,58);ourPolicy.src = 'http://lib.store.yahoo.net/lib/opticsplanet/headerLinkOurPolicy.gif';
	ourPolicyOn = new Image(46,58);ourPolicyOn.src = 'http://lib.store.yahoo.net/lib/opticsplanet/headerLinkOurPolicyOn.gif';
}

function di(id,name){
  if (document.images) {document.images[id].src=eval(name+".src"); }
}

function dm(msgStr) {
  document.returnValue = false;
  if (document.images) { 
     window.status = msgStr;
     document.returnValue = true;
  }
}
var showMsg = navigator.userAgent != "Mozilla/4.0 (compatible; MSIE 4.0; MacPowerPC)";
function dmim(msgStr) {
  document.returnValue = false;
  if (showMsg) { 
    window.status = msgStr;
    document.returnValue = true;
  }
}

function popUp(passedUrl){
	var popUrl = passedUrl
	doPopUp = window.open(popUrl,"tellfriend","width=320,height=300")
}

function addbookmark() {
	bookmarkurl="http://www.opticsplanet.net"
	bookmarktitle="OpticsPlanet.com - Low  prices, Free UPS Ground, Great Service"
	if (document.all)
		window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
