');
-->
$(function(){
$('.thumb_list a').touchTouch();
});
}else{
$(function(){
var $itemNum = $('#contentFlow .flow .item').length,
$visibleItem,$flowSpeedFactor=2
if($itemNum>=9){
$visibleItem = 3
}else if($itemNum<=8&&$itemNum>=5){
$visibleItem = 2
$flowSpeedFactor=1
}else if($itemNum<=4&&$itemNum>=1){
$visibleItem = 1
$flowSpeedFactor=1
}
//
var cf = new ContentFlow('contentFlow', {reflectionColor: "#000000", startItem: 0, visibleItems: $visibleItem, endOpacity:.5,scaleFactor:2.5, reflectionHeight: 0 ,onReachTarget: loadLargeImg, duration : 4000, flowSpeedFactor:$flowSpeedFactor
});
function loadLargeImg(){
//console.log(cf.getActiveItem().getIndex())
var oriImage = $('.flow .item.active img').attr('data-oriImage');
$('.flow .item.active img').attr('src', oriImage);
}
$('.thumb_list>li').click(function(){
var $idx = $(this).index();
$('#contentFlow,#contentFlow_bg,#contentFlow_close').fadeIn();
cf.moveTo($idx);
cf.resize();
if($('.thumb_list>li').length==1){
loadLargeImg();
$('.preButton,.nextButton').hide();
}
$('body,html').scrollTop(0);
return false
})
$('#contentFlow_close').click(function(){
$('#contentFlow_close').hide();
$('#contentFlow,#contentFlow_bg').fadeOut();
})
})
}//