var viewMoreTags = function(tContainer, pContainer) {
    tagsContainer = tContainer;
    origHeight = jQuery('#'+tagsContainer).height();
    parentContainer = pContainer;
    parentContainerHeight = jQuery('#'+parentContainer).height();
    
    this.toggle = function(btn) {
        if (jQuery('#'+tagsContainer).css('overflow') == 'hidden') {
            jQuery(btn).attr({
               src: '/i/ICN_close_txt.gif',
               alt: 'Close' 
            });

            jQuery('#'+tagsContainer).css({overflow : 'visible'});
            jQuery('#'+tagsContainer).height('auto');
            jQuery('#'+parentContainer).height('auto');
            
        } else {
            jQuery(btn).attr({
               src: '/i/ICN_viewmoretags.gif',
               alt: 'View More Tags' 
            });
            jQuery('#'+tagsContainer).css({overflow : 'hidden'});
            jQuery('#'+tagsContainer).height(origHeight);
            
            jQuery('#'+parentContainer).height(parentContainerHeight);
            //this.setMacHeight();
        }
        return this;
    }
    
    this.setMacHeight = function() {
        if(navigator.userAgent.indexOf('Mac') >= 0) {
            if (cnp.util.browser.isSafari()) {
                jQuery('#'+tagsContainer ).height(jQuery('#'+tagsContainer).height()+7);
            }
            
            if (cnp.util.browser.isFirefox()) {
                jQuery('#'+tagsContainer ).height(jQuery('#'+tagsContainer).height()-6);
            }
        }
        return this;
    } 
}

//Fix Mac Issues
