// JavaScript Document
    	jQuery(document).ready(function(){
							  if (jQuery("body").attr('id')=="index"){			
jQuery("#logo").css({top:-300});
jQuery("#logo").animate({top:-10}, { duration: 1500, "easing": "swing" });
										}
jQuery("#categories_block_left li ul").each(function(){
jQuery(this).hide();
});
jQuery("#categories_block_left li").each(function(){
jQuery(this).hover(function(){
jQuery(this).find("ul").show();
jQuery(this).find("ul").css({'height':150});
},
function(){
jQuery(this).find("ul").hide();
});
});

/*cloudstag
			var camera = new Camera3D();
			camera.init(0,0,0,300);
			
			var item = new Object3D(jQuery("#item"));
			
			item.addChild(new Cube(50));
			
			var scene = new Scene3D();
			scene.addToScene(item);


			var animateIt = function(){
				axisRotation.y -= .007
				axisRotation.x += .007
				scene.renderCamera(camera);
			};
			setInterval(animateIt, 20);

*/

/*product*/
if(jQuery("body").attr("id")=="product"){

jQuery('#thumbs_list').serialScroll({
		items:'li',
		prev:'#scroll_left',
		next:'#scroll_right',
		offset:-70, //when scrolling to photo, stop 230 before reaching it (from the left)
		start:1, //as we are centering it, start at the 2nd
		duration:600,
		force:true,
		stop:true,
		lock:false,
		cycle:false, //don't pull back once you reach the end
		easing:'swing', //use this easing equation for a funny effect
		jump: true //click on the images to scroll to them
	});

/*jQuery("#scroll_left").click(function(e){
	e.preventDefault();
	jQuery(window)._scrollable();
jQuery("#thumbs_list_frame").scrollTo("img",  duration: 1000);
	});		
jQuery("#scroll_right").click(function(e){
	var offset=jQuery("#thumbs_list_frame img").length;
	alert(offset);
jQuery("#thumbs_list_frame").animate({marginLeft:-width}, { duration: 1000, "easing": "swing" });
	});		*/
/*zoom*/
function a(){
jQuery("#box").jqzoom({
                zoomWidth: 280,
                zoomHeight: 280,
                zoomType:'reverse',
				showEffect:'fadein',
				fadeinSpeed:'normal',
				hideEffect:'hide',
				title:'true'
            });

}

jQuery("#thumbs_list img").bind("mouseover",function() {
var url = jQuery(this).attr('src').replace("medium", "thickbox"); 
var text = jQuery(this).attr('alt'); 
jQuery("#box").attr('href', url);
jQuery("#box").attr('title', text);
a();
});
var url = jQuery("#bigpic").attr('src').replace("large", "thickbox"); 
jQuery("#box").attr('href', url);
jQuery(".jqZoomWindow").remove();
a();
function interval(){
setInterval(function(){jQuery(".jqZoomWindow:first").nextAll().remove();},0.5);
}
interval();
/*fancybox*/
jQuery(".box").fancybox({'zoomSpeedIn':500, 'zoomSpeedOut':500, 'overlayShow':true, 'overlayOpacity':.6 , 'frameWidth':850, 'frameHeight':550});
jQuery("#box").fancybox({'zoomSpeedIn':500, 'zoomSpeedOut':500, 'overlayShow':true, 'overlayOpacity':.6 , 'frameWidth':850, 'frameHeight':550});
}
/*360*/


});
