$(document).ready(function() {
						   
	jQuery(".gcl_nofollow").gcl_nofollow({
		urlAttr   : "title",
		replaceTag: true,
		linkAttr  : { 
			"target" : "_blank"
		}
	});
	
	var $fontResizeTarget = $('.contentSubR');
	
		$(".font_resize").click(function(){
			var currFontSize;
			currFontSize = $fontResizeTarget.css('fontSize'); 
			if( (currFontSize == null) || (currFontSize == '') || (currFontSize.length==0) || (typeof(currFontSize)=="undefined") ) { currFontSize = '12px'; }
			var newFontSize  = parseFloat(currFontSize, 10);
			var stringEnding = currFontSize.slice(-2);
			if(isNaN(newFontSize) || (newFontSize>30) ) { newFontSize = 13; stringEnding='px'; }
	
			if(this.id == 'font_resize_increase') {
				if(newFontSize < 26) { newFontSize *= 1.2; }
			}
			else if (this.id == 'font_resize_decrease'){
				if(newFontSize > 9) { newFontSize /=1.2; }
			}
			$fontResizeTarget.css('fontSize', newFontSize + stringEnding); 
			//$fontResizeTarget.animate({fontSize: newFontSize + stringEnding},200); 
		
		return false;
	});
	
});


///////////////////////////////////////////////////////////////////////////////
// [JQuery NOFOLLOW Link Plugin] //////////////////////////////////////////////
(function($) {
jQuery.fn.gcl_nofollow = function(options) {
	var defaults = {
		urlAttr   : "title",
		replaceTag: true,
		linkClass : null,
		linkID    : null,
		linkAttr  : { }
	},
    settings = jQuery.extend({}, defaults, options);
	
	return this.each(function() {
		var $this = jQuery(this),$link;
		$link = jQuery('<a href="'+$this.attr(settings.urlAttr)+'" title="'+$this.text()+'">'+$this.html()+'</a>');
		if(settings.linkClass != null) { $link.addClass(settings.linkClass); }
		if(settings.linkID != null) { $link.attr("id",settings.linkID); }
		jQuery.each(settings.linkAttr, function(key, val) { $link.attr(key,val); });
		if(settings.replaceTag) {
			$this.replaceWith($link);
		} else {
			$this.html($link);
		}
	});
};
})(jQuery);
    

