jQuery.noConflict();

// Put all your code in your document ready area

jQuery(document).ready(function($){

// Do jQuery stuff using $ this where the functions need to go   


		$(document).ready(function() {

// =============== HOMEPAGE SLIDER FUNCTIONS - jQuery Cycle Plugin & Easing Plugin  =============== 
				
		$(function() {
		   	$('div.slide_container').cycle({
			fx: 'scrollHorz',
			speed:  1500,
			easing:  'easeInOutExpo', 
			timeout: 0,
			cleartypeNoBg: true,
			prev: 'a.previous',
			next: 'a.next',
			pager:  'ul.slider_nav',
        	pagerAnchorBuilder: pagerFactory
    		});

			function pagerFactory(idx, slide) {
				var s = idx > 2 ? '' : '';
				return '<li'+s+'><a href="#">'+(idx+1)+'</a></li>';
			};
			
		});		

/*================= HOMEPAGE SWF OBJECT - HOUSTON CLOCK - Using swfobject.js =====================*/

			var flashvars = {};
			var params = {};
			var attributes = {};
			var params = {wmode:"transparent"};
			swfobject.embedSWF("/wp-content/themes/atelier_base/furniture/swf/digitalclock_houston.swf", "clock_houston", "76", "30", "9.0.0","/wp-content/themes/atelier_base/furniture/swf/expressInstall.swf", flashvars, params, attributes);


/*================= HOMEPAGE SWF OBJECT - DUBAI CLOCK - Using swfobject.js =====================*/

			var flashvars = {};
			var params = {};
			var attributes = {};
			var params = {wmode:"transparent"};
			swfobject.embedSWF("/wp-content/themes/atelier_base/furniture/swf/digitalclock_dubai.swf", "clock_dubai", "76", "30", "9.0.0","/wp-content/themes/atelier_base/furniture/swf/expressInstall.swf", flashvars, params, attributes);


/*================= HOMEPAGE SWF OBJECT - SHANGHAI CLOCK - Using swfobject.js =====================*/

			var flashvars = {};
			var params = {};
			var attributes = {};
			var params = {wmode:"transparent"};
			swfobject.embedSWF("/wp-content/themes/atelier_base/furniture/swf/digitalclock_shanghai.swf", "clock_shanghai", "76", "30", "9.0.0","/wp-content/themes/atelier_base/furniture/swf/expressInstall.swf", flashvars, params, attributes);
			
			
/*================= HOMEPAGE SWF OBJECT - MOSCOW CLOCK - Using swfobject.js =====================*/

			var flashvars = {};
			var params = {};
			var attributes = {};
			var params = {wmode:"transparent"};
			swfobject.embedSWF("/wp-content/themes/atelier_base/furniture/swf/digitalclock_moscow.swf", "clock_moscow", "76", "30", "9.0.0","/wp-content/themes/atelier_base/furniture/swf/expressInstall.swf", flashvars, params, attributes);			


// ======================= ADD PRINT FUNCTION - NO PLUGIN =========================
		
			$('a#print_page').click(function() {
				window.print();
				return false;
			});
			
// ======================= NEWS TICKER - USING vertical-ticker.js =========================
		
			$('div.news_ticker').vTicker({
			   speed: 500,
			   pause: 8000,
			   showItems: 2,
			   mousePause: true
			});



	$(".menu a").hover(function() {
	  $(this).next("em").animate({opacity: "show", top: "-35"}, "slow");
	}, function() {
	  $(this).next("em").animate({opacity: "hide", top: "-45"}, "fast");
	});
	$(".menu2 a").hover(function() {
	  $(this).next("em").animate({opacity: "show", top: "-35"}, "slow");
	}, function() {
	  $(this).next("em").animate({opacity: "hide", top: "-45"}, "fast");
	});

		
	});
});
