jQuery.noConflict(); 
jQuery(document).ready(function() {
    // Initialise the first and second carousel by class selector.
	// Note that they use both the same configuration options (none in this case).
	jQuery('.first-and-second-carousel').jcarousel();
	
	// If you want to use a caoursel with different configuration options,
	// you have to initialise it seperately.
	// We do it by an id selector here.
	
});

/********************************************************/
jQuery(document).ready(function(){
		jQuery("#search_txt").autocomplete("ajaxindex_dc.php", {
			width: 200,
			selectFirst: false,
			param:12
		}); 
		
		
		
		
});
function popuppage(bookid,bookname)
{
	//alert("Here");
	window.open("http://www.dcbookshop.net/books/"+bookid+"/"+bookname, "Bill", "toolbar=0, menubar=0, status=0, scrollbars=0, resizable=0, width=750, height=1050, top=5");
	return;
}

function clearSearch()
{
	document.getElementById("search_txt").value = "";
}

function searchUrl(url)
{
	var val		= document.getElementById("search_txt").value;
	var type	= document.getElementById("bookSelect").value;
	//alert('val-'+val+' store-'+sid+' typ-'+type);

	//document.getElementById("sbmtLnk").href = "php/bookSearchResult.php?val="+val+"&type="+type;
	//document.getElementById("sbmtLnk").href = "book_search/"+val+"/"+type;
	if(val == '')
	{
		document.getElementById("sbmtLnk").href = url+"book-search/"+type;
	}
	else
	{
		document.getElementById("sbmtLnk").href = url+"book-search/"+val+"/"+type;
	}

}
function sltStore()
{
		
}

/********************************************************************/

 var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-17705040-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
  
/*******************************************************************/
  
  



