function availablespace(){

	if (self.innerWidth)	{
		available_width = self.innerWidth;
		available_height = self.innerHeight;
	}else if (document.documentElement && document.documentElement.clientWidth)	{
		available_width = document.documentElement.clientWidth;
		available_height = document.documentElement.clientHeight;
	}else if (document.body) {
		available_width = document.body.clientWidth;
		available_height = document.body.clientHeight;
	} else {
  		available_width="NA";
  		available_height="NA";
	}
}

document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='http:\/\/www.kimmelandcompany.com\/standard\/jvs\/mover.js'  TYPE='text\/javascript'><\/SCR" + "IPT>");
document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='http:\/\/www.kimmelandcompany.com\/standard\/jvs\/clipper.js'  TYPE='text\/javascript'><\/SCR" + "IPT>");
document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='http:\/\/www.kimmelandcompany.com\/standard\/jvs\/layervisibility.js'  TYPE='text\/javascript'><\/SCR" + "IPT>");
document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='http:\/\/www.kimmelandcompany.com\/standard\/jvs\/changezindex.js'  TYPE='text\/javascript'><\/SCR" + "IPT>");

cn0 = new Image();
	cn0.src = "http://www.kimmelandcompany.com/images/its-simple.gif";
cn1 = new Image();
	cn1.src = "http://www.kimmelandcompany.com/images/blank20.gif";

if ((navigator.vendor == "Apple Computer, Inc.")&&(navigator.appCodeName == "Mozilla")){
  ytpercent = '-40';
  ybpercent = 20;
}else{
  ytpercent = '-20';
  ybpercent = 20;
}

availablespace();

if (available_width > 500){
communication_percent = (available_width-500)/available_width*100;
}else{
communication_percent = 0;
}

document.write('<div name="yellowbottom" id="yellowbottom" style="position: absolute; top: ' + ybpercent + '%; width: 100%; height: 130%; Z-Index:4">');
document.write('<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">');
document.write('  <tr>');
document.write('    <td width="100%"><img border="0" src="http://www.kimmelandcompany.com/images/yellowbt1.gif" width="100%"  height="72" alt=""></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td width="100%" bgcolor="#E8DD00" height="100%" valign="bottom"> ');
document.write(' </td>');
document.write('  </tr>');
document.write('</table>');
document.write('</div>');

document.write('<div name="itsimp" id="itsimp" style="position: absolute; top: 67%; width: 100%; Z-Index:5">');
document.write('<p align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('<img id="simple" name="simple" border="0" src="http://www.kimmelandcompany.com/images/its-simple-beg.gif" alt="It is really quite simple..."></p>');
document.write('</div>');

document.write('<div name="yellowtop" id="yellowtop" style="position: absolute; top:' + ytpercent + '%; width:100%; height:80%; Z-Index:6">');
document.write('<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">');
document.write('  <tr>');
document.write('    <td width="100%"  bgcolor="#E8DD00" height="100%" valign="bottom"><p align="center"><a href="javascript:moveoff(0,communication_percent,ytpercent)"><img border="0" src="http://www.kimmelandcompany.com/images/kimmeltitle-yellow1.gif" alt="Kimmel and Company"></a>');
document.write(' </td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td width="100%"><img border="0" src="http://www.kimmelandcompany.com/images/yellowtp1.gif" width="100%"  height="72" alt=""></td>');
document.write('  </tr>');
document.write('</table>');
document.write('</div>');

document.write('<div name="communication" id="communication" style="position: absolute; top: 80%; left: ' + communication_percent + '%; width: 475; clip: rect(0px 0px 100px 0px); Z-Index:7">');
document.write('<p align="right">');
document.write('<img border="0" src="http://www.kimmelandcompany.com/images/communication-works.gif" alt="Communication Works">');
document.write('<p align="right"><a href="javascript:moveoff(0,communication_percent,ytpercent)"><img id="entr" name="entr" border="0" src="http://www.kimmelandcompany.com/images/enter-site.gif" alt="Enter Site"></a>&nbsp;&nbsp;&nbsp;</p>');
document.write('</div>');

 myString = new String(navigator.userAgent);
 rExp = /opera/gi;
 results = myString.search(rExp);
 aExp = /CS/gi;
 aesults = myString.search(aExp);
 bExp = /gecko/gi;
 besults = myString.search(bExp);

function starter() {
     if ((results > -1)||(navigator.vendor == 'Netscape')|| ((aesults > -1) && (besults > -1))){}else{document.body.className= 'yellow';}
  document['simple'].src = cn0.src;
  setTimeout("showclip(0)", 2000);
}

function showclip(cd) {
	ab = cd;
   clipper('0px',ab + 'px','100px','0px','communication');

	if ( ab < 500 ){
		ab = ab + 25;
		setTimeout("showclip(ab)", 50);
	}
}

function moveoff(gt,kt,yt) {
ef = gt;
vf = kt;
yf = yt;

 if ( ef < 110 ){
  mover('left',ef + '%','itsimp')
  ef = ef + 5;
  setTimeout("moveoff(ef,vf,yf)", 40);
  
 } else if ( vf > -110 ){
 
   if ((vf < communication_percent)&&(vf > communication_percent-10)){
     document['entr'].src = cn1.src;
     mover('left','-1000%','itsimp');
     mover('top','-1000%','itsimp');
   }
   
   mover('left',vf + '%','communication');
   vf = vf - 5;
   setTimeout("moveoff(ef,vf,yf)", 40);
   
 } else if ( yf > -110 ){
   mover('top',yf + '%','yellowtop');
   mover('top',ybpercent + '%','yellowbottom');
   yf = yf - 2;
   ybpercent = ybpercent + 2;
      
   if ((yf < -42)&&(yf > -46)){layervisibility('Content','visible');}
	
   setTimeout("moveoff(ef,vf,yf)", 20);
      
  } else {
     if ((results > -1)||(navigator.vendor == 'Netscape')|| ((aesults > -1) && (besults > -1))){}else{document.body.className= 'blue'; document.getElementById('Content').className= 'ltblue';}
             
    if ( ybpercent < 130 ){
         mover('top',ybpercent + '%','yellowbottom');
         ybpercent = ybpercent + 3;
         setTimeout("moveoff(ef,vf,yf)", 0);
    }else{
          mover('top','-1000%','yellowbottom');
          mover('left','-1000%','yellowbottom');
          mover('top','-1000%','yellowtop');
          mover('left','-1000%','yellowtop');
          mover('left','-1000%','communication');
          mover('top','-1000%','communication');

    }
    
  }
}