// JavaScript Document

$(document).ready(function(){
                          
    var $mainText = $('#wrapper');          
    var currentSize = $mainText.css('font-size');
   
    var myCookie = readCookie('aclastaFontSize');
   
    if(myCookie)
    {
        $('#wrapper').css('font-size',myCookie);
    }
                          
    // changer links when clicked
    $("#fontsize a").click(function(){
       
        currentSize = $mainText.css('font-size');       
       
        var num = parseFloat(currentSize, 10);
        var unit = currentSize.slice(-2);
       
        if (this.id == 'sizeUp')
        {
            num = num * 1.15;
        }
        else if (this.id == 'sizeDown')
        {
            num = num / 1.05;
        }
        $mainText.css('font-size', num + unit);
        createCookie('aclastaFontSize',(num + unit),100);
        return false;
       
    });           
});

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 = "";
    document.cookie = name+"="+value+expires+"; path=/";
}

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 navigateExternal(link){
	
	var text = "Pharmaceutical or health information provided on external sites may not comply with Australian regulations. Australian readers should refer to the relevant Consumer Medicine Information for products. The material provided by other sites is for information purposes only and not intended as advice. Information provided by other sites should be discussed with your health care professional and should not replace their advice. Novartis Australia makes no representations concerning any effort to review the content of sites to which it is linked and has no control over information submitted to other sites. Users should consult the other sites privacy notices prior to submitting any information, as we have no control over information that is submitted to, or collected by third parties. Your use of third-party sites is at your own risk and subject to the terms and conditions of use for such sites. You are now leaving the Site."
		
	alert(text);
		
	window.location=link;
}

<!-- Start DI Tracking Code for HEAD section-->
var refr=escape(document.referrer); /* get the http referer and encode it */
var dom=location.hostname; /* get the host domain */
var stURL="http://au.track.decideinteractive.com/n/73715/73718/www.formybones.com.au/1fb989u;11;3;;6;;btbxmo;;;;;1;/i/c?0&1pixgif&referer="+ refr;
if ( (refr && refr.search(dom) == -1) && (location.href.toUpperCase().indexOf("247SEO=N") == -1) ) /* if the referrer is external preload the image request and does not contain 247SEO argument = "N" */
{
	imageTR = new Image();
	imageTR.src = stURL;
}
<!-- End DI Tracking Code -->=









