//首页大广告
var gg960ShowTime = 8000; //播放时间
var gg960Time = null;
function open_gg960(showBtn) {
var rnd = Math.random();
if (rnd > 0) {
$('.gg_full .gg_fcon').html(gg960Con).slideDown(1170, function () {
if (showBtn !== false) {
$('.gg_full .gg_fbtn').fadeIn();
}
if (gg960Time) { clearTimeout(gg960Time); }
gg960Time = setTimeout(close_gg960, gg960ShowTime);
});
}
}
function close_gg960() {
$('.gg_full .gg_fcon').slideUp(350, function () {
$(this).html('');
$('.gg_fclose').hide();
$('.gg_freplay').show();
});
}
$('.gg_fclose').click(function(){
if(gg960Time){clearTimeout(gg960Time);}
close_gg960();
return false;
});
$('.gg_freplay').click(function(){
if(gg960Time){clearTimeout(gg960Time);}
open_gg960(false);
$('.gg_freplay').hide();
$('.gg_fclose').show();
return false;
});
var gg960Con;
var fullAdType = 'swf';
var fullAdUrl = ''
var fullAdName = '';;
$.getJSON("http://ida.cnool.net/AdShowCache2013?cnool-syts|1|2637&callback=?", function (ret) {
if (ret.Src != "") {
fullAdName = ret.Src;
fullAdUrl = ret.Url;
$("#taishan").show();
if (fullAdName) {
if (fullAdType == 'swf') {
gg960Con = '';
//gg960Con = '';
}
else {
gg960Con = ''; //flash无法显示时,显示JPG广告
}
setTimeout(open_gg960, 8000);//延迟显示
}
}
});