function checktarget(str) {
var jtarget="_self";
if(str.indexOf("showbanner.asp?bn")>0)
	jtarget="_blank";

return jtarget
}


$(document).ready(function () {
$('#mainFlashbig').animate({opacity: 1},2000,function(){
$('#mainFlashbig').ctRotator(dataSourcebig, { itemRenderer: function(item){    
return '<div class="rotator-item"><a href="' +item.url+ '" title="' + item.title + '" target="'+checktarget(item.url)+'"><img src="/rotator/' + item.image + '" alt="' + item.title + '" width="514" height="234" /></a></div>';   
		  }   
		}); 
	});

$('#container').animate({height: "355px"},2000,function(){
$('#container').ctRotator(dataSource, { itemRenderer: function(item){    
return '<div class="rotator-item"><a href="' +item.url+ '" title="' + item.title + '" target="'+checktarget(item.url)+'"><img src="/rotator/' + item.image + '" alt="' + item.title + '" width="237" height="355" /></a></div>';   
		  }   
		}); 
	});

$('#rotatorplace1').animate({opacity: 1},2000,function(){$('#rotatorplace1').ctRotator(datarotator1, { itemRenderer: function(item){return '<div class="rotator-item"><a href="' +item.url+ '" title="' + item.title + '" target="'+checktarget(item.url)+'"><img src="/rotator/' + item.image + '" alt="' + item.title + '" /></a></div>'; 
		  }   
		}); 
	});

$('#rotatorplace2').animate({opacity: 1},2000,function(){$('#rotatorplace2').ctRotator(datarotator2, { itemRenderer: function(item){return '<div class="rotator-item"><a href="' +item.url+ '" title="' + item.title + '" target="'+checktarget(item.url)+'"><img src="/rotator/' + item.image + '" alt="' + item.title + '" /></a></div>'; 
		  }   
		}); 
	});

$('#rotatorplace3').animate({opacity: 1},2000,function(){$('#rotatorplace3').ctRotator(datarotator3, { itemRenderer: function(item){return '<div class="rotator-item"><a href="' +item.url+ '" title="' + item.title + '" target="'+checktarget(item.url)+'"><img src="/rotator/' + item.image + '" alt="' + item.title + '" /></a></div>'; 
		  }   
		}); 
	});


$('#rotatorplace4').animate({opacity: 1},2000,function(){$('#rotatorplace4').ctRotator(datarotator4, { itemRenderer: function(item){return '<div class="rotator-item"><a href="' +item.url+ '" title="' + item.title + '" target="_blank"><img src="/rotator/' + item.image + '" alt="' + item.title + '" /></a></div>'; 
		  }   
		}); 
	});


$('#rotatorplace5').animate({opacity: 1},2000,function(){$('#rotatorplace5').ctRotator(datarotator5, { itemRenderer: function(item){return '<div class="rotator-item"><a href="' +item.url+ '" title="' + item.title + '" target="_blank"><img src="/rotator/' + item.image + '" alt="' + item.title + '" /></a></div>'; 
		  }   
		}); 
	});

});



