function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v3.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
} }
} else if (event == "over") { document.MM_nbOver = nbArr = new Array();
   for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) 
{  if (!img.MM_up) img.MM_up = img.src;
   img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
   nbArr[nbArr.length] = img;
}} 
else if (event == "out" ) {  for (i=0; i < document.MM_nbOver.length; i++) 
{ img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} }



function bgcol() {
var bg='FFFFFF';
bg1='#VAR(bg1)#';
bg2='#VAR(bg2)#';
bg3='#VAR(bg3)#';
bg4='#VAR(bg4)#';
bg5='#VAR(bg5)#';
bg6='#VAR(bg6)#';
bg7='#VAR(bg7)#';
bg8='#VAR(bg1)#';
var URL='<!--#CAT_CUR_URL#-->';

if ('URL' == '1') bg='<TD WIDTH=167 bgcolor='+bg1+' valign=top>';
else if (URL == '2') bg='<TD WIDTH=167 bgcolor='+bg2+' valign=top>';
else if (URL == '3') bg='<TD WIDTH=167 bgcolor='+bg3+' valign=top>';
else if (URL == '4') bg='<TD WIDTH=167 bgcolor='+bg4+' valign=top>';
else if (URL == '5') bg='<TD WIDTH=167 bgcolor='+bg5+' valign=top>';
else if (URL == '6') bg='<TD WIDTH=167 bgcolor='+bg6+' valign=top>';
else if (URL == '7') bg='<TD WIDTH=167 bgcolor='+bg7+' valign=top>';
else if (URL == '8') bg='<TD WIDTH=167 bgcolor='+bg8+' valign=top>';
else bg='<TD WIDTH=167 bgcolor=FFFFFF valign=top>';
}

var p1=0
var row=1;
var cols=0;
var strTD="";

function show_img(width,height,s_url){
	var imgnwin=window.open(s_url,"imgswin","resizable=1,scrollbars=1,toolbar=1,location=0,directoties=0,status=0,menubar=0,width="+width+",height="+height);
}

function show_bask(width,height,s_url){
	var basknwin=window.open(s_url,"baskswin","resizable=1,scrollbars=1,toolbar=1,location=0,directoties=0,status=0,menubar=0,width="+width+",height="+height);
}

function show_reg(width,height,s_url){
	var regnwin=window.open(s_url,"regswin","resizable=1,scrollbars=1,toolbar=0,location=0,directoties=0,status=0,menubar=0,width="+width+",height="+height);
}

function show_img_noscrl(width,height,s_url){
	var n2win=window.open(s_url,"swin","resizable=1,scrollbars=0,toolbar=0,location=0,directoties=0,status=0,menubar=0,width="+width+",height="+height);
}

function show_img_navig(width,height,s_url){
	var n3win=window.open(s_url,"swin","resizable=1,scrollbars=1,toolbar=1,location=1,directoties=1,status=1,menubar=1,width="+width+",height="+height);
	return n3win;
}

function active_win(surl){
	window.opener.document.location=surl;
}