
function buttonColor(id, color)
{
  id.style.backgroundColor = color;
}

function getParameter(str, name)
{
  var res = "";
  if (str.indexOf("?")!=-1)
  {
    str = str.substring(str.indexOf("?")+1, str.length);
    if (str.indexOf(name)!=-1)
    {
      if (str.indexOf("&", str.indexOf(name)+name.length)!=-1)
        res = str.substring(str.indexOf(name)+name.length+1, str.indexOf("&"))
	  else
        res = str.substring(str.indexOf(name)+name.length+1, str.length);
	}
  }
  return res;
}

function showBig(imageName, windowName, width, height)
{
  win = window.open("big.htm?path="+imageName,windowName,"width="+Number(width+30)+",height="+Number(height+60)+",left=100,top=100,statusbar=no,toolbar=no,scrollbars= never,navbar=no");
  win.focus();
}

function loadfocus()
{
  if ((navigator.appName== "Netscape" && parseInt(navigator.appVersion) >= 4)|| (navigator.appName.indexOf("Microsoft") != -1 && parseInt(navigator.appVersion) > 3))
    browserVer = '1';
  else
    browserVer = '2';
  if (browserVer == 1)
	window.focus();
  return true;
}

function showBelgardCatalog()
{
  win = window.open("http://www.clearimaging.com/nubel/binder.htm","bindercatalog","width=760,height=476,left=17,top=17,statusbar=no,toolbar=no,scrollbars= never,navbar=no");
  win.focus();
}

function showCulturedCatalog()
{
  win = window.open('http://www.callreply.com/cultured/1.htm','culturedcatalog','width=647,height=400,left=17,top=17');
  win.focus();
}

function showStepstoneCatalog()
{
  win = window.open('http://www.popcat.com/stepcd/toggle.htm?wall&15','stepstone','width=600, height=480,left=17,top=17,resizable=no');
  win.focus();
}

function showBrowserPopup()
{
  win = window.open("http://www.flipbinder.com/browser.htm","browser","width=260,height=260,left=250,top=250,statusbar=no,toolbar=no,scrollbars= never,navbar=no");
  win.focus();
}

function showCatalogPopup()
{
  win = window.open("http://www.flipbinder.com/catalog.htm","catalog","width=260,height=260,left=250,top=250,statusbar=no,toolbar=no,scrollbars= never,navbar=no");
  win.focus();
}

function showBinderPopup()
{
  win = window.open("http://www.flipbinder.com/binder.htm","binder","width=260,height=260,left=250,top=250,statusbar=no,toolbar=no,scrollbars= never,navbar=no");
  win.focus();
}

function showTellFriend()
{
  win = window.open("tellfriend.htm","tellfriend","width=340,height=200,left=250,top=250,statusbar=no,toolbar=no,scrollbars= never,navbar=no");
  win.focus();
}

function showCorningBinder()
{
  win = window.open("http://www.flipbinder.com/corningmini/bindermini.htm","designsolution3mini","width=620,height=406,left=17,top=17,statusbar=no,toolbar=no,scrollbars=never,navbar=no");
  win.focus();
}

function showCSCatalog()
{
  win = window.open("cscatalog/bindermini.htm","cscatalogmini","width=640,height=401,left=17,top=17,statusbar=no,toolbar=no,scrollbars=never,navbar=no");
  win.focus();
}




var vRC_Message = 
    "   For More Information About Us   " + String.fromCharCode(13,10)
  + " Call 800 741-2861 or Visit Us at: " + String.fromCharCode(13,10)
  + "      www.clearimaging.com         " + String.fromCharCode(13,10)
  + "   All Source Code Copyrighted     " + String.fromCharCode(13,10)
  + "    by Clearimaging.com © 2003     ";
  
function clickIE4(){
  if (event.button==2){
    alert(message);
    return false;
  }
}

function clickNS4(e){
  if (document.layers||document.getElementById&&!document.all){
    if (e.which==2||e.which==3){
      alert(message);
      return false;
    }
  }
}

if (document.layers){
  document.captureEvents(Event.MOUSEDOWN);
  document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
  document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(vRC_Message);return false");
