/*==============================================
	New window Module
==============================================*/
$(function(){
	$('a.blank').click(function(){
		window.open(this.href,'_blank');
		return false;
	});
});

/*==============================================
	Swap image Module
==============================================*/
$(function(){
	var image_cache=new Object();
	$("img.swap").not("[@src*='_ovr.']").each(function(i){
		var imgsrc=this.src;
		var dot=this.src.lastIndexOf('.');
		var imgsrc_ovr=this.src.substr(0,dot)+'_ovr'+this.src.substr(dot,4);
		image_cache[this.src]=new Image();
		image_cache[this.src].src=imgsrc_ovr;
		$(this).hover(function(){
			this.src=imgsrc_ovr;
		},function(){
			this.src=imgsrc;
		});
	});
});

/*==============================================
	Word Break Module
==============================================*/
$(function(){
	var i='.wbr';
	if($.browser.msie){
		$(i).css({
			wordBreak:'break-all',
			display:'block'
		});
	}else{
		var j=(function x(){})[-6]=='x';
		$(i).each(function(){
			j?$(this).html($(this).text().split('').join('<wbr />')):$(this).html($(this).text().split('').join(String.fromCharCode(8203)));
		});
	}
});
