');
-->
$(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();
$('body,html').stop(true,true).scrollTop(0);
var $g_wrap_top = $('.g_wrap').css('margin-top') ;
$g_wrap_top = parseInt($g_wrap_top,10) -60
var $g_wrap_left = $('.g_wrap').css('margin-left');
$('#contentFlow').css({'margin-top':'-'+$g_wrap_top+'px','margin-left':'-'+$g_wrap_left, width:$(window).width()})
return false
})
$('#contentFlow_close').click(function(){
$('#contentFlow_close').hide();
$('#contentFlow,#contentFlow_bg').fadeOut();
})
})
}//