function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });
 
    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });
 
    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};
 
jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
		visible: 5,
        auto: 5,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });
});




function gbyid(id)

{
	return document.getElementById(id);
}

		
function link(id)
{

	if (id == 'google')
	{
		window.open("http://www.google.com/search?hl=ro&q="+gbyid('cauta_txt').value, "_blank"); done=1;
	}

	if (id == 'yahoo')
	{
		window.open("http://search.yahoo.com/search;_ylt=AgRlh.P_d_IH5W.8n_qLCs6bvZx4?p="+gbyid('cauta_txt').value, "_blank"); done=1;
	}
	
	if (id == 'bing')
	{
		window.open("http://www.bing.com/search?q="+gbyid('cauta_txt').value, "_blank"); done=1;
	}
	if (id == 'ask')
	{
		window.open("http://www.ask.com/web?q="+gbyid('cauta_txt').value, "_blank"); done=1;
	}
	
}

function div_load(pagina, div)
{
$.ajax({
  url: pagina,
  cache: false,
  success: function(html){
    $(div).append(html);
  } }); }