<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
//MM_reloadPage(true);
//-->

function hideall(){
  document.all['sub1'].style.visibility = 'hidden';
}
function showact(lobj){
  kont = 1;
  hideall();
  document.all[lobj].style.visibility = 'visible';
}
function hideact(lobj){
  kont = 0;
  setTimeout("hideactx('"+lobj+"')",500);
}
function hideactx(lobj){
  if(kont==0){document.all[lobj].style.visibility = 'hidden';}
}


function getRefToDiv(divID,oDoc) {
   if( !oDoc ) { oDoc = document; }
   if( document.layers ) {
       if( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else {
           //repeatedly run through all child layers
           for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {
               //on success, return that layer, else return nothing
               y = getRefToDiv(divID,oDoc.layers[x].document); }
           return y; } }
   if( document.getElementById ) {
       return document.getElementById(divID); }
   if( document.all ) {
       return document.all[divID]; }
   return false;
}


function moveDivTo(x,y,z) {
myReference = getRefToDiv(z);
if( !myReference ) { return; }
if( myReference.style ) { myReference = myReference.style; }
var noPx = document.childNodes ? 'px' : 0;
myReference.left = x + noPx;
myReference.top = y + noPx;
}

function hidediv(x) { 
if (document.getElementById) { // DOM3 = IE5, NS6 
document.getElementById(x).style.visibility = 'hidden'; 
} 
else { 
if (document.layers) { // netscape 4 
document.x.visibility = 'hidden'; 
} 
else { // IE 4 
document.all.x.style.visibility = 'hidden'; 
} 
} 

var myform = document.getElementById("frm_src");
if (myform!=null)
{
	if (myform.combo_src_cat!="") myform.combo_src_cat.style.visibility='visible';
	if (myform.combo_src_pri!="") myform.combo_src_pri.style.visibility='visible';
	if (myform.combo_src_siz!="") myform.combo_src_siz.style.visibility='visible';
	if (myform.combo_brand!="") myform.combo_brand.style.visibility='visible';
	if (myform.combo_crystaltype!="") myform.combo_crystaltype.style.visibility='visible';
	if (myform.combo_finish!="") myform.combo_finish.style.visibility='visible';
}

myform = document.getElementById("frm_product_list_main");
if (myform!=null)
{
	if (myform.combo_src_ord!="") myform.combo_src_ord.style.visibility='visible';
}
} 

function showdiv(x) { 
if (document.getElementById) { // DOM3 = IE5, NS6 
document.getElementById(x).style.visibility = 'visible'; 
} 
else { 
if (document.layers) { // netscape 4 
document.x.visibility = 'visible'; 
} 
else { // IE 4 
document.all.x.style.visibility = 'visible'; 
} 
} 

var myform = document.getElementById("frm_src");
if (myform!=null)
{
	if (myform.combo_src_cat!="") myform.combo_src_cat.style.visibility='hidden';
	if (myform.combo_src_pri!="") myform.combo_src_pri.style.visibility='hidden';
	if (myform.combo_src_siz!="") myform.combo_src_siz.style.visibility='hidden';
	if (myform.combo_brand!="") myform.combo_brand.style.visibility='hidden';
	if (myform.combo_crystaltype!="") myform.combo_crystaltype.style.visibility='hidden';
	if (myform.combo_finish!="") myform.combo_finish.style.visibility='hidden';
}

myform = document.getElementById("frm_product_list_main");
if (myform!=null)
{
	if (myform.combo_src_ord!="") myform.combo_src_ord.style.visibility='hidden';
}

} 


function showHideStatic()
{
if (document.getElementById("divleftStaticMenu").style.visibility=="hidden")
	document.getElementById("divleftStaticMenu").style.visibility="visible";
else
	document.getElementById("divleftStaticMenu").style.visibility="hidden";
}