
jQuery.noConflict();

//      jQuery(function() {          
//          jQuery(".productBrowseItem img.productImage").lazyload({
//					placeholder : "http://www.supercamp.nl/images/ajax-loader.gif",
//					//threshold : 500,
//	        effect      : "fadeIn"
//					
//          });
//      });


// JavaScript Document
jQuery(document).ready(function($){

//		$.mbBgndGallery.buildGallery({
//			containment:"body", // or "#myGalleryElement"
//			timer:4000,
//			effTimer:2000,
//			controls:"#controls",
//			grayScale:false,
//			// If your server allow directory listing
//			folderPath:"media/backpage/wallpapers",
////			images:[
////			 "/media/backpage/wallpapers/winter_wallpaper_2.jpg"
////			 ],
//			onStart:function(){$("#controls .play").hide();$("#controls .pause").show();},
//			onPause:function(){$("#controls .play").show();$("#controls .pause").hide();},
//			onPlay:function(opt){$("#controls .play").hide();$("#controls .pause").show();},
//			onChange:function(idx){}, //idx=the zero based index of the displayed photo
//			onNext:function(opt){},   //opt=the options relatives to this component instance
//			onPrev:function(opt){}   //opt=the options relatives to this component instance
//		});		
   
	 jQuery('#productImageSlider').cycle({                            
      timeout:3000,
      delay:  1, 
      speed:  1,
			pager:  '#bullet',
			slideExpr: 'img',
			pagerAnchorBuilder: function(index, el) {
        return '<div class="bg"><a href="#"> </a></div>';
    	}
     });
	
		jQuery('#productImageSlider').mouseover(function() {
			jQuery(this).cycle('pause');
		});
		
		jQuery('#productImageSlider').mouseout(function() {
			jQuery(this).cycle('resume');
		});
	
		// Effects
		jQuery(".fadein").fadeIn("slow");
		
		jQuery.support.borderRadius = false;
			 jQuery.each(['BorderRadius','MozBorderRadius','WebkitBorderRadius','OBorderRadius','KhtmlBorderRadius'], function() {
					if(document.body.style[this] !== undefined) jQuery.support.borderRadius = true;
					return (!jQuery.support.borderRadius);
			 });
		});
		jQuery(function() {
			 if(!jQuery.support.borderRadius) {
					jQuery('.button').each(function() {
						 jQuery(this).wrap('<div class="buttonwrap"></div>')
						 .before('<div class="corner tl"></div><div class="corner tr"></div>')
						 .after('<div class="corner bl"></div><div class="corner br"></div>');
					});
			 }





//	var total = jQuery('#slider img').length;
//	var rand = Math.floor(Math.random()*total);
//	//sliceDown,sliceDownLeft,sliceUp,sliceUpLeft,sliceUpDown,sliceUpDownLeft,fold,fade	
//	jQuery('#slider').nivoSlider({
//			 startSlide:rand,
//			 effect:'fade, sliceDown,sliceUp',
//			 captionOpacity:0.8,
//			 pauseTime:7000,
//			 pauseOnHover:true,
//			 //effect:'sliceDownLeft',
//			 directionNav:true,
//			 controlNav:false,
//			 delayCaption:1500,
//			 animSpeed:500,
//			 animSpeedOut:100,
//			 effectCaption: 'fadeIn'
//			});
	
	
	//jQuery("#search").autocomplete(globalUrl + "_includes/_js/autocomplete/autocomplete.php?product=1&stamp="+Number(new Date()), {
		//autofill : true												
														
	//	});

	// Make table row clickable
//	jQuery('.tablehover tbody').delegate('tr', 'click', function() {
//		var link = jQuery(this).find('a.link');
//		location.href = link.href;
//	});
	// Optimized row listener
//	jQuery('.tablehover tbody').delegate('tr', 'hover', function() {
//		jQuery(this).toggleClass('rowHover');
//	});  

//login slide
//	var sipPos = -3;
//	jQuery(document).ready(function() {
//		jQuery(".login_button").click(function(e) {
//			e.preventDefault();
//			jQuery("#panel").animate({ top: sipPos }, 148, 'linear', function() {
//				if(sipPos == -3) { sipPos = -152; }
//				else { sipPos = -3; }
//			});
//		});
//	});			


	//imagePreview();

});







//function setEqualHeight(columns)  
//{  
//	var tallestcolumn = 0;  
//	columns.each(  
//		function() {  
//			currentHeight = jQuery(this).outerHeight();  
//			if(currentHeight > tallestcolumn) {  
//				tallestcolumn  = currentHeight;  
//			}  
//		}  
//	);  
//columns.height(tallestcolumn);  
//}  


// function resizeBorders(borders)  
//       {
//        var SuperSizeImageheight = jQuery('#supersize').height(); 
//         borders.each(function()  
//        {  
//          jQuery(this).height(SuperSizeImageheight);
//          
//        });  
//      }  
//  
//    function positionShadowBottom(borders)  
//       {
//        var SuperSizeImageheight = jQuery('#supersize').height(); 
//         borders.each(function()  
//        {  
//        jQuery(this).css("top", (SuperSizeImageheight - jQuery(this).height()));
//        });
//      }  
//  
//      jQuery(function(){
//          jQuery.fn.supersized.options = {
//						startwidth: 16,
//						startheight: 9,
//            vertical_center: 0,
//            slideshow: 0,
//            navigation: 0
//          };		
//        });
//  
//        jQuery('#supersize').supersized();
//				
//
//        jQuery(document).ready(function() { 															 
//         resizeBorders(jQuery("#shadowLeft, #shadowRight"));
//         positionShadowBottom(jQuery("#shadowBottom"));
//					
//					jQuery('.menu ul > li:first-child').attr('style','background:none;'); //menu divider uitschakelen voor het eerste item
//					jQuery('#topleft ul > li:first-child').attr('style','background:none;'); //menu divider uitschakelen voor het eerste item
//					
//				//jQuery(document).pngFix(); 
//				
//				//checkboxen
//				//jQuery('input').customInput();
//					
//        });
//      //resize on window change	
//      jQuery(window).bind("resize", function(){
//         // resizeBorders(jQuery("#shadowLeft, #shadowRight"));
//          positionShadowBottom(jQuery("#shadowBottom"));
//      });


