function makeLarger(){
	createCookie('fontSize','2','365');
		try{
	  targetElement=document.getElementById('content').className = "font_basesize-large";
	} catch(oException){
	   try{
	    targetElement=document.getElementById('content_v2').className = "font_basesize-large";
	   } catch(oException){
	   }
	}
	//targetElement=document.getElementById('content').className = "font_basesize-large";
	if (document.getElementById('enlarge_icon') != null){
		document.getElementById('enlarge_icon').innerHTML = '<a href="#" onclick="makeSmaller();"><img src="/images/common/toolbar-enlarge_text.gif" alt="Reduce Text" border="0" title="Reduce Text" /></a>';
	}
	if (document.getElementById('enlarge_text') != null){
		document.getElementById('enlarge_text').innerHTML = '<a href="#" onclick="makeSmaller();"><nobr>Reduce Text</nobr></a>';
	}
	if (document.getElementById('info_program_hd') != null){
		document.getElementById('info_program_hd').innerHTML = '<img src="/professional/images/home/gout_information_hd_large.gif" alt="Gout Information" title="Gout Information" border="0" />';
	}
	if (document.getElementById('info_program_hd_v2') != null){
		document.getElementById('info_program_hd_v2').innerHTML = '<img src="/professional/images/home/callout_hd_video_large.gif" alt="Gout Info Video" title="Gout Info Video" border="0" />';
	}
}

function makeSmaller(){
	createCookie('fontSize','1','365');
	try{
	  targetElement=document.getElementById('content').className = "font_basesize-normal";
	} catch(oException){
	   try{
	    targetElement=document.getElementById('content_v2').className = "font_basesize-normal";
	   } catch(oException){
	   }
	}
	//targetElement=document.getElementById('content').className = "font_basesize-normal";
	if (document.getElementById('enlarge_icon') != null){
		document.getElementById('enlarge_icon').innerHTML = '<a href="#" onclick="makeLarger();"><img src="/images/common/toolbar-enlarge_text.gif" alt="Enlarge Text" border="0" title="Enlarge Text" /></a>';
	}
	if (document.getElementById('enlarge_text') != null){
		document.getElementById('enlarge_text').innerHTML = '<a href="#" onclick="makeLarger();"><nobr>Enlarge Text</nobr></a>';
	}
	if (document.getElementById('info_program_hd') != null){
		document.getElementById('info_program_hd').innerHTML = '<img src="/professional/images/home/gout_information_hd_small.gif" alt="Gout Information" title="Gout Information" border="0" />';
	}
	if (document.getElementById('info_program_hd_v2') != null){
		document.getElementById('info_program_hd_v2').innerHTML = '<img src="/professional/images/home/callout_hd_video_small.gif" alt="Gout Info Video" title="Gout Info Video" border="0" />';
	}
}

function makeLargerHome(){
	createCookie('fontSize','2','365');
	targetElement=document.getElementById('body').className = "font_basesize-large";
	document.getElementById('enlarge_type').innerHTML = '<a href="#" onclick="makeSmallerHome();"><img src="/images/home/nav-bottom_reduce.jpg" alt="Reduce Text" title="Reduce Text" border="0" /></a>';
	document.getElementById('bottom_callout1_hd').innerHTML = '<img src="/images/home/callout_hdr_get_large.gif" alt="How Do I Get Through a Gout Attack?" title="How Do I Get Through a Gout Attack?" border="0" />';
	document.getElementById('bottom_callout2_hd').innerHTML = '<img src="/images/home/callout_hdr_program_large.gif" alt="Gout.com Information Program" title="Gout.com Information Program" border="0" />';
	document.getElementById('bottom_callout3_hd').innerHTML = '<img src="/images/home/callout_hdr_qp_large.gif" alt="Quick Poll" title="Quick Poll" border="0" />';
}

function makeSmallerHome(){
	createCookie('fontSize','1','365');
	targetElement=document.getElementById('body').className = "font_basesize-normal";
	document.getElementById('enlarge_type').innerHTML = '<a href="#" onclick="makeLargerHome();"><img src="/images/home/nav-bottom_enlarge.jpg" alt="Enlarge Text" title="Enlarge Text" border="0" /></a>';
	document.getElementById('bottom_callout1_hd').innerHTML = '<img src="/images/home/callout_hdr_get_through.gif" alt="How Do I Get Through a Gout Attack?" title="How Do I Get Through a Gout Attack?" border="0" />';
	document.getElementById('bottom_callout2_hd').innerHTML = '<img src="/images/home/callout_hdr_program.gif" alt="Gout.com Information Program" title="Gout.com Information Program" border="0" />';
	document.getElementById('bottom_callout3_hd').innerHTML = '<img src="/images/home/callout_hdr_quick_poll.gif" alt="Quick Poll" title="Quick Poll" border="0" />';
}

function sizeToggle(){
	var cookie = readCookie('fontSize');
	if(cookie == '1' || cookie == null) {
		makeSmaller();
	}
	else {
		makeLarger();
	}
}

function sizeToggleHome(){
	var cookie = readCookie('fontSize');
	if(cookie == '1' || cookie == null) {
		makeSmallerHome();
	}
	else {
		makeLargerHome();
	}
}

function createCookie(name,value,days){
	if (days)
	{
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	var ck = name+"="+value+expires+"; path=/";
//	if (days != -1) alert('Cookie\n' + ck + '\ncreated');
	document.cookie = ck;
}

function readCookie(name){
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i<ca.length;i++)
	{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name){
	createCookie(name,"",-1);
}

function searchSubmit() {
    searchText = document.search.searchText.value;
    window.location = "http://search.atomz.com/search/?sp-q=" + searchText + "&sp-a=sp100340f9&sp-p=all&sp-f=ISO-8859-1";
}
function PTP(){
   pageTracker._trackPageview('/ptp/'+pageName);
}
/***********************************************************************
   Author: Luis Tello  
   Date: 01/26/09
   
   Version 0.1   
   
   Description: This AJAX app grabs the pageName from the "path" in the URL.
   
   example:/utilities/etp_response.aspx?path=/what_is_gout/what_is_gout.aspx
   
   Parameters:none
   
   Example:Rosetta.SiteCatalyst.Ajax();
   
***********************************************************************/
   var Rosetta = Rosetta || {};
   Rosetta.SiteCatalyst = {
       Ajax: function(){      
          $(document).ready(function() {
              $(function(){
                  $.ajax({
                      url: '/includes/xml/pagedata.xml',
                      type: 'GET',
                      dataType: 'xml',
                      timeout: 3000,
                      error: function(){
                        //alert('Error loading XML document');
                      },
                      success: function(xml){
                          $(xml).find('page').each(function(){
                            //grab the data from xml
                            var XMLpathname = $(this).attr('pathname');
                            var Pagename = $(this).attr('pagename');
                            
                            //grab the path
                            var queryString = location.search;
                            var temp = queryString.split('=');
                            var currentPathname = temp[1];
                            
                            //compare pathnames and if so get
                            if(XMLpathname == currentPathname){
                                this.pageName = $(this).attr('pagename');
                                pageTracker._trackPageview('/professional/etp/'+this.pageName);
                            }
                          });
                          
                      }
                  });
              })              
          }) 
       }
       
   };
   
   Rosetta.GoogleTracking = {
       PercentageView: function(videoType, percentage, videoPath){
         pageTracker._trackEvent(''+videoType,''+percentage,''+videoPath);
       },
       Track: function(value){      
         pageTracker._trackPageview(''+value);
       }
   };
   Rosetta.SiteCatalyst.Ajax();