function nextpic()
{
s=document.images[0].src
i=s.lastIndexOf('/',s.length)
j=Number(s.substring(i+6,s.length-4))
if(j==18)j=17
return j+1
}

function prevpic()
{
s=images[0].src
i=s.lastIndexOf('/',s.length)
j=Number(s.substring(i+6,s.length-4))
if (j==1) j=2
return j-1
}

function picname(pos)
{
s=img[pos][0]
s=s.substring(s.indexOf('/')+1,s.length-4)
if(!is_nav4){
mybody=document.getElementsByTagName("body").item(0);
mytable=mybody.getElementsByTagName("table").item(0);
mytablebody=mytable.getElementsByTagName("tbody").item(0);
myrow=mytablebody.getElementsByTagName("tr").item(9);
mycel=myrow.getElementsByTagName("td").item(2);
myceltext=mycel.childNodes.item(0);
myceltext.data=s
}
}

function chopname(s)
{
  return s.substring(s.indexOf('/')+1,s.length-4)
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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) { //v3.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); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function display_image(imge)
{
	img=eval(imge)
	document.write("<img align=center src='"+img.src+"' width="+img.w+" height="+img.h+" border=0 alt="+imge+" name='"+imge+"'>")	
}

function showpic(pic,w,h)
{
 document.images['pic'].height=h;
 document.images['pic'].width=w 
 document.images['pic'].src=pic;
}

function display_image1(imge,caption)
{
	img=eval(imge)
	document.write("<img src='"+img.src+"' width="+img.w+" height="+img.h+" border=0 alt='"+caption+"' name='"+imge+"'>")	
}

function change_image(img,newimge)
{
  newimg=eval(newimge)
//alert(newimg.h)
  if(newimg.complete)
  	document.images[img].src=newimg.src
}

function subhd(sub)
{
  if (typeof(parent.frames[1].frames[0].document.images[0])=='object')
         parent.frames[1].frames[0].document.images[0].src=sub.src
}


function subhd1(sub)
{
  if (typeof(parent.parent.frames[1].frames[0].document.images[0])=='object')
         parent.parent.frames[1].frames[0].document.images[0].src=sub.src
}

function makeRemote(url,name,w,h,scroll){
remote = window.open(url,name,"left="+(width-w)/2+",top=20,width="+w+",height="+h+",toolbar=no,menubar=no,status=no,scrollbars="+scroll+",resizable=no");
if (remote.opener == null) remote.opener = window;
remote.focus()
}

document.write('<style type="text/css">'
+'<!--.f4 {font-family:arial; font-size:'+width/55+'px}'
+'.f {font-size:'+width/64+'px; font-weight:bold;color:white; background:black;font-family:verdana}'
+'.f3 {font-family:verdana; font-weight:bold; font-size:'+width/64+'px}'
+'.f3a {color:#003399; font-family:verdana; font-weight:bold; font-size:'+width/75+'px}'
+'.f3b {color:black; font-family:verdana; font-weight:bold; font-size:'+width/75+'px}'
+'.f4b {color:#003399; font-family:arial; font-size:'+width/55+'px}'
+'.f2 {font-family:verdana; font-size:'+width/50+'px}'
+'.f1 {color:black; font-family:verdana; font-weight:bold;font-size:'+width/65+'px}'
+'.f1a {color:black; font-family:arial;font-size:'+width/70+'px}'
+'.f1b {color:black; font-family:arial;font-weight:bold;font-size:'+width/65+'px}'
+'.f5 {font-family:arial; font-size:'+width/85+'px}'
+'.f6 {font-family:verdana; font-weight:bold; line-height:1.2;font-size:'+width/62+'px}'
+'.f6a {color:navy;font-family:verdana; font-weight:bold; line-height:1.2;font-size:'+width/62+'px}'
+'.f7 {font-family:arial; line-height:1.2;font-size:'+width/55+'px}'
+'.f8 {font-family:arial; font-size:'+width/40+'px}'
+'.f9 {font-family:arial; color:#003399; font-size:'+width/45+'px}'
+'.f10 {font-family:arial; color:#003399; font-size:'+width/40+'px}'
+'.f11 {font-family:arial; color:#003399; font-size:'+width/72+'px}'
+'.f11a {font-family:arial; font-size:'+width/75+'px}'
+'.f12 {font-family:verdana;font-weight:bold; font-size:'+width/50+'px}'
+'.f13 {font-family:arial; font-size:'+width/110+'px}'
+'.f14 {font-family:arial; font-weight:bold; font-size:'+width/60+'px}'
+'.f15 {color:#003399; font-family:arial; font-weight:bold; font-size:'+width/80+'px}'
+'.fr {color:brown; font-family:verdana; font-weight:bold;font-size:'+width/65+'px}'
+'.frd {color:red; font-family:verdana; font-weight:bold;font-size:'+width/60+'px}'
+'.indent {text-indent:5%}'
+'.bdr1 {border-color:navy; border-style: solid; border-width:2}'
+'.bdr{color:#ff6400; padding-left:12; padding-right:12;text-align:center; font-family:arial;font-size:'+width/30+'px; border-style:solid;border-color:#32a0ff;border-width:3}'
+'.bdr2{color:#ff6400; padding-left:12; padding-right:12;text-align:center; font-family:arial;font-size:'+width/35+'px; border-style:solid;border-color:#32a0ff;border-width:3}'
+'.lh {font-family:arial narrow; font-weight:bold;color:black;font-size:'+width/65+'px}'
+'.lh1 {font-family:arial; font-size:'+width/70+'px;line-height:65%;text-indent:0%}'
+'.lh2 {font-size:'+width/120+'px}'
//+'body {color:#003399; background-color:#ffffcc;scrollbar-face-color: #Fcfcd9;scrollbar-shadow-color: #0000FF; scrollbar-highlight-color: #F26522; scrollbar-3dlight-color: #39B54A; scrollbar-darkshadow-color: #FFFFFF; scrollbar-track-color: #ffffcc; scrollbar-arrow-color: #440E62;}'
+'li {list-style-type:disk}'
+'a.l:link {text-decoration: none; color:#003399}'
+'a.l:visited {text-decoration: none; color:#003399}'
+'a.l:active {text-decoration: none; color:#003399}'
+'a.l:hover {text-decoration: none; color:#003399}'
+'a:link {text-decoration: none; color:#0033cc}'
+'a:visited {text-decoration: none; color:#0033cc}'
+'a:active {text-decoration: none; color:#0033cc}'
+'a:hover {text-decoration: none; color:red}--></style>')




