$(document).ready(
	function() {
		var $rotator = $j(".rotator");
		$rotator.wtListRotator({
					screen_width:600,
					screen_height:300,
					item_width:250,
					item_height:75,
					item_display:4,
					list_align:"left",
					scroll_type:"mouse_move",
					auto_start:true,//true
					delay:7000,
					transition:"random",
					transition_speed:800,
					display_playbutton:false,
					display_number:false,
					display_timer:true,
					display_arrow:true,
					display_thumb:true,
					display_scrollbar:true,
					pause_mouseover:false,
					cpanel_mouseover:false,					
					text_mouseover:false,
					text_effect:"fade",
					text_sync:true,
					cpanel_align:"TR",
					timer_align:"bottom",
					move_one:false,
					auto_adjust:true,
					shuffle:true,
					block_size:75,
					vert_size:50,
					horz_size:50,
					block_delay:35,
					vstripe_delay:90,
					hstripe_delay:180		
	});
	
    $j("#nav").buildMenu(
    {
      template:"menuVoices.html",
      menuWidth:200,
      openOnRight:false,
      menuSelector: ".menuContainer",
      hasImages:false,
      fadeInTime:100,
      fadeOutTime:300,
      minZindex:200,
      opacity:.98,
      shadow:false,
      shadowColor:"#ccc",
      hoverIntent:0,
      openOnClick:true,
      closeOnMouseOut:true,
	  menuTop:2,
	  menuLeft:7,
	  closeAfter:2000,
      submenuHoverIntent:200
    });
	
	var newsoption = {
			firstname: "mynews",
			secondname: "showhere",
			thirdname:"news_display",
			fourthname:"news_button",
			imagedir:"/images/",
			newsspeed:10000
		}
	$j.init_plus(newsoption);
	//var myoffset=$j('#news_button').offset();
	//var mytop=myoffset.top-1;
	//$j('#news_button').css({top:mytop});
	
	$j('#slides').slides({
		preload: true,
		preloadImage: 'images/loading.gif',
		effect: 'slide, fade',
		crossfade: true,
		slideSpeed: 500,
		fadeSpeed: 1000,
		play: 8000,
		generateNextPrev: true,
		generatePagination: false
	});
	if(!jQuery.browser.msie){
		$j(".producto a[title],.foto_img a[title],.cat a[title],.subcat a[title]").tooltip({
		   // tweak the position
		   offset: [10, 2],
		   // use the "slide" effect
		   effect: 'slide',
		   predelay: 1000
		// add dynamic plugin with optional configuration for bottom edge
		}).dynamic({ bottom: { direction: 'down', bounce: true } });
	}
	$j('.link_blue_orange').jMagnify({
			centralEffect: {'color': '#0077a8','font-size': '100%'},
			lat1Effect: {'color': '#ff8c00','font-size': '100%'},
			lat2Effect: {'color': '#0077a8','font-size': '100%'},
			lat3Effect: {'color': '#ff8c00','font-size': '100%'},
			resetEffect: {'color': '#32312F','font-size': '100%'}
		});
		
	$j('#scroller_twitter').readmytweet({ 'color' : 'blue', 'search': 'bidabu', 'user': 'bidabu', 'tweets': 10, 'speed': 25,'width':1170});
	}
);
