<html>
<body  marginheight=0 marginwidth=0 leftmargin=0 topmargin=0  bgcolor=<?php echo $botbackcolor; ?> background="<?php echo $botbackground; ?>">
<link rel="stylesheet" type="text/css" href="themes/<?php echo $theme;?>/chatbubble.css"   />	


<DIV style="background: #FFFFFF url('<?php echo $topbackground; ?>'); width:100%; height:<?php echo $topframeheight; ?>px; top:0px; left:0px; position:relative;">

   <?php if ($CSLH_Config['showoperator']=="Y"){ ?>
  <DIV style="width:250px; height:<?php echo $topframeheight; ?>px;  position:relative; float:left;">
  <table width=100><tr><td valign=center height=<?php echo $topframeheight; ?>><img src=<?php echo $urlforoperator; ?> height=<?php echo $topframeheight; ?> border=0>    			   
   </td></tr></table>
  </DIV>
  <?php } ?>  

  <DIV style="float:right; width:300px; height:<?php echo $topframeheight; ?>px; text-align:right;  "> 
  <font style="font-family: verdana, helvetica, sans-serif; font-size: 8px; color: #000000;">Powered By:</font>
  <a href="http://www.craftysyntax.com" alt="Crafty Syntax Live Help" target="_blank" style="font-family: verdana, helvetica, sans-serif; font-size: 10px; color: #11498e; text-decoration: none; font-weight: bold;">Crafty Syntax</font></a>
  </DIV>    

</DIV>    

	<?php if(!(empty($td_list))){ ?>
				<DIV style="width:100%; height:28px; background: #FFFFFF url('themes/operator_top/topbar.png'); position:relative;">
  <div id="navigation" style="float:left; height:28px; ">
    <?php echo $td_list; ?>
 </div>
</div>
	<div style="margin: 0; padding: 0; clear: both;"></div>
	
<?php } ?>
   
 
   
 <DIV style="width:99%; height:260px;  top:0px; left:0px; position:relative;  float:left; border: 1px solid;">
	    <iframe height="260" width="99%" frameborder=0 src="<?php echo $urlforchat; ?>" name="chatwindow" scrolling="auto" border="1" marginheight="0" marginwidth="0" NORESIZE=NORESIZE></iframe>
    </DIV>
 
 
  			  	
  			  	
	
	<div style="margin: 0; padding: 0; clear: both;"></div>
  
	<DIV style="width:90%; height:75px; float:left; top:20px; left:0px;  position:relative;">	 		


<table width=99% cellpadding=0 cellspacing=0 border=0 background=images/blank.gif>
    <tr><td valign=top>
    	 <FORM action="javascript:nothingtodo()"  name=chatter METHOD=POST name=chatter>
       <table cellspacing=0 cellpadding=0 border=0><tr>
        <td width=20>&nbsp; </td>
        <td><b><?php echo $lang['ask']; ?></b></td>
        <td width=80%><textarea cols=45 rows=2 name=comment ONKEYDOWN="return microsoftKeyPress()"></textarea></td>
         <td><table width=75 cellspacing=0 cellpadding=0 border=0><tr>
<?php 
 if($smiles!="N"){  
   if ($UNTRUSTED['convertsmile'] == "ON"){ 
   	print "<td><a href=javascript:showsmile()><img src=images/icon_smile.gif border=0>&nbsp;".$lang['view']."</a></td></tr><tr><td><font color=009900><b>".$lang['ON']."</b></font> / <a href=livehelp.php?convertsmile=OFF&department=$department>".$lang['OFF']."</a></td></tr></table></td>";
   } else { 
   	print "<td><img src=images/icon_nosmile.gif border=0>&nbsp;<s>".$lang['view']."</s></td></tr><tr><td><a href=livehelp.php?department=$department>".$lang['ON'] ."</a> / <font color=990000><b>".$lang['OFF']."</b></font></td></tr></table></td>";  }
  } 
   
 ?>
<td valign=top valign=bottom width=76 STYLE="top:10px; border:0px;"><img src=images/blank.gif width=70 height=10 border=0><br><a class="button" href="javascript:nothingtodo()" onclick="safeSubmit()" STYLE="border:0px;"><span STYLE="border:0px;" ><?php echo $lang['SAY']; ?></span></a></td>
<td valign=top width=75> &nbsp; </td>
<td valign=top valign=bottom width=76 STYLE="top:10px; border:0px;"><img src=images/blank.gif width=70 height=10 border=0><br><a class="button" href="javascript:nothingtodo()" onclick="exitchat()" STYLE="border:0px;"><span STYLE="border:0px;" ><?php echo $lang['exit']; ?></span></a></td>
<input type=hidden name=channel value=<?php echo $channel; ?> >
<input type=hidden name=department value=<?php echo $department; ?> >
<input type=hidden name=myid value=<?php echo $myid; ?> >
<input type=hidden name=typing value="no">
<?php 
if ($UNTRUSTED['convertsmile'] == "ON")
  	print "<input type=hidden name=convertsmile value=ON>";
   else
    print "<input type=hidden name=convertsmile value=OFF>";
?>	
</td></tr></table>
</FORM>
</td></tr></table> 


</DIV>
  

</body>
</html>