// JavaScript Document

function replace_main_news(nlink,title,intro,price,date,id){
	  var innerHTML='';
	  if(price==0) price_value="(Free)";
	  else price_value="("+price+"$)";
	  innerHTML='<h2><a href="'+nlink+'">'+title+'</a> <span class="orange">'+price_value+'</span> <span id="_sc_'+id+'"><a href="javascript:add_to_sc(\''+id+'\')"><img src="images/add_sc.gif" title="Add to cart" alt="Add to cart"/></a></span></h2><h3>Posted on: '+date+'</h3><p>'+intro+'</p>';
	  document.getElementById('main_news_div').innerHTML=innerHTML;
	  
}

jQuery(document).ready(function() {

						

		$(".textf").focus(function(){
							   
		$(this).val("");
		
								});
		$(".texts").focus(function(){
							   
		$(this).val("");
		
								});
								
								

$(".arrowedlink a").hover(
						   
	   function () {
      $(this).animate({paddingLeft: "20px"}, {queue:false, duration:300});
						   },
		function () {
      $(this).animate({paddingLeft: "0px"}, {queue:false, duration:300});
						   }				   
						   
    );
	
$(".more a").hover(
						   
	   function () {
      $(this).animate({paddingLeft: "20px"}, {queue:false, duration:300});
						   },
		function () {
      $(this).animate({paddingLeft: "0px"}, {queue:false, duration:300});
						   }				   
						   
    );	
		$(".newstip  P:first").css("marginTop", "0");
		
		$('#example1').pager('div');
		$('#example2').pager('ul');

		
});





