﻿var $j = jQuery.noConflict();

$j(document).ready(function()
{
	// Init Function
	function __construct()
	{
		//  Create Sliders
			$j('.simpleSlider').CustomSlider({ animationType: 'fade', animationTime: 0, controlType: 2, isAutoSlide: true });
			$j('.sliderDoctor').CustomSlider({ controlType: 4, isAutoSlide: true });
		
		/*
		//  Create auto select input box
			$j('input[type="text"]').each(function()
			{
			    $j(this).CreateAutoSelect();
			}); 
		// */
			
		//  Create tabs
			$j('.tabs-holder').each(function()
		    {
		        var id = $j(this).attr('id');
		        $j(this).CreateTabs({ tabsID: id, tabsTag: 'span' });
		    });
			
		//  Lightbox effect
			$j('a[rel="lightbox[roadtrip]"]').colorbox();
			$j('a[rel="lightbox[roadtrip1]"]').colorbox();
			$j('a[rel="lightbox[roadtrip2]"]').colorbox();
			if ($j('#popup').length > 0)
{
    $j.colorbox({ opacity: .3, width: "600px", inline: true, href: "#popup" });
}
			
		//  ====================================================
		//  IE6 drop down
			if ($j.browser.msie && $j.browser.version == "6.0")
			{
				$j('.mainnav li').each(function(count)
				{
					$j(this).hover(function()
					{
						$j(this).addClass('hover');
					}, function()
					{
						$j(this).removeClass('hover');
					});
				});
			}

	};
	
	__construct();
});
