<style type="text/css">
/*<![CDATA[*/
.nothere {
     visibility:hidden;
 }
.there {
     visibility:visible;
 }
/*//]]>*/
</style>

<script type="text/javascript">
//<![CDATA[
onload=function() {
     document.getElementById('newsload').className='there';
 }
//]]>
</script>
<div id="floatright" style="width:295px; float:right;">

                        	
							 <div class="rightadd" style="height:250px;background-image:none;border:none;">
							<img src="images/sideadd1.PNG" alt="coalbazaar,com" title="welcome to coalbazaar.com"/>                     </div><br />
	<div class="newsdiv">

                            	<h2>News & Events</h2>

                                <h3><A href="news.php">Latest news on coalbazaar.com</A></h3>
								<marquee id="newsload" class="nothere" onMouseOver="this.scrollAmount=0" onMouseOut="this.scrollAmount=2" scrollamount="2" direction="up" loop="true" width="100%">
                                <?php
								$news = new DBClass();
									$sql = "select * from news where status = '0' order by added_date DESC Limit 0,5";
									$rs = $news->executeQry($sql,$link);
								while($nws = $news->fetchrow()) {
								 ?>
                                
                                <div class="newsdetail">

                                	<div class="datebox">

                                    	<span><?php echo date("d/m",strtotime($nws['added_date'])) ?></span>

                                    </div>

                                    <p>
                                    <a href="news.php?id=<?php echo $nws['id']; ?>"><strong><?php echo $nws['title']; ?></strong></a><br />
                                    <?php echo substr(strip_tags(html_entity_decode(stripslashes($nws['news']))),0,100); ?></p> 

                                    <a href="news.php?id=<?php echo $nws['id']; ?>" style="text-align:right; float:right"><img src="images/readmore1.PNG" alt="" class="morebutton" style="border:none;"></a>

                                    <div style="clear:both;"></div>

                                </div>

                                <?php } ?>	
								</marquee>
                                

                                

                            </div> 
                            
						   
							<br />
							 <div class="rightadd">
								<img src="images/rightadd2.PNG"  height="155" alt="Side Add"/> 
				<div style="clear:both;"></div>
                            </div>
                           

</div>