$.fn.corner.defaults.useNative = false;
jQuery(document).ready(function($){
			$('.list').hover(
			  function () {
				$('.menu-first', this).addClass('slide-down'); 
				$('.down-list', this).slideDown(0);	
			  }, 
			  function () {
				$('.down-list', this).slideUp(0);
				$('.menu-first', this).removeClass('slide-down');
			});			
			$('.list_2').hover(
			  function () {
				$('.menu-first_2', this).addClass('slide-down_2'); 
				$('.down-list_2', this).slideDown(0);	
			  }, 
			  function () {
				$('.down-list_2', this).slideUp(0);
				$('.menu-first_2', this).removeClass('slide-down_2'); 
			});								
			$('.list_last').hover(
			  function () {
				$('.menu-first', this).addClass('slide-down'); 
				$('.down-list-last', this).slideDown(0);	
			  }, 
			  function () {
				$('.down-list-last', this).slideUp(0);
				$('.menu-first', this).removeClass('slide-down'); 
			});
	$("#galleryslideshow").scrollable({size: 1,speed:500}).circular().autoscroll({autoplay: false,speed:500,steps:1});;	
	$("#thumb").scrollable({size:4,speed:500,next:".next2",prev:".prev2"}).circular().autoscroll({autoplay: true,speed:500,steps:1});	
	$("#togglebox #slideup").click(function(){
		$("#togglebox #txtbox").slideToggle("slow");
	});	
	$("a.fancybox").fancybox();			
  $(".fancybox_iframe").fancybox({
    'width'     : 707,
    'height'    : 450,
    'scrolling'   : "no",
    'showCloseButton' : true,
    'enableEscapeButton'  : true,
    'hideOnOverlayClick'  : false,
    'autoScale'       : false,
    'titleShow'   : false,
    'transitionIn'    : 'none',
    'transitionOut'   : 'none',
    'type'      : 'iframe'

  });
  $(".fancybox_friend").fancybox({
	    'width'     : 500,
	    'height'    : 350,
	    'scrolling'   : "no",
	    'showCloseButton' : true,
	    'enableEscapeButton'  : true,
	    'hideOnOverlayClick'  : false,
	    'autoScale'       : false,
	    'titleShow'   : false,
	    'transitionIn'    : 'none',
	    'transitionOut'   : 'none',
	    'type'      : 'iframe'

	  }); 
  $(".fancybox_autostart").fancybox({
		'width'			: 270,
		'height'		: 190,
		'scrolling'		: "no",
		'showCloseButton'	: true,
		'enableEscapeButton'	: false,
		'hideOnOverlayClick'	: false,
		'autoScale'     	: false,
		'titleShow'		: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'			: 'iframe'	
   }); 
  $(".fancybox_edit_login").fancybox({
		'width'			: 270,
		'height'		: 190,
		'scrolling'		: "no",
		'showCloseButton'	: true,
		'enableEscapeButton'	: false,
		'hideOnOverlayClick'	: false,
		'autoScale'     	: false,
		'titleShow'		: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'			: 'iframe'	
 });  
  $(".rounded").corner("15px");	  

	$(".tabs1").tabs(".panes > div");	
	//script for thumb
	$("#thumb2").scrollable({size:4}).autoscroll({autoplay: false,speed:1500});	
	$(".tabs2").tabs(".panes2 > dd");
    $('.bannerbox').cycle({
		fx: 'fade',
		timeout: 4000
	});	
});


	function lookup(inputString) {
		if(inputString.length == 0) {
			jQuery('#suggestions').hide();
		} else {
			jQuery.post("/pages/autocomplete.php", {queryString: ""+inputString+""}, function(data){
				if(data.length >0) {
					jQuery('#suggestions').show();
					jQuery('#autoSuggestionsList').html(data);
				}
			});
		}
	}
	function fill(thisValue) {
		jQuery('#search').val(thisValue);
		setTimeout("jQuery('#suggestions').hide();", 200);
	}
