
	jQuery( document ).ready( function ( $ ) {
		$('li:first-child').addClass( 'first_item' );
		$('li:last-child').addClass( 'last_item' );
		});
		
	jQuery(document).ready(function() {
		jQuery("#dropmenu ul").css({display: "none"}); // Opera Fix
		jQuery("#dropmenu li").hover(function(){
		jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).show(268);
		},function(){
		jQuery(this).find('ul:first').css({visibility: "hidden"});
		});
	});
	
	
	$(document).ready(function(){
    var $mainText = $('#wrapper');          
	var currentSize = $mainText.css('font-size');
	var myCookie = readCookie('aclastaFontSize');
    if(myCookie)
    {
        $('#wrapper').css('font-size',myCookie);
	   // $('#wrapper').css('font-size',12);
    }
    $("#sizeDown").click(function(){
        currentSize = $mainText.css('font-size');       
        var num = parseFloat(currentSize, 10);
        var unit = currentSize.slice(-2);
        num = num / 1.15;
        $mainText.css('font-size', num + unit);
        createCookie('aclastaFontSize',(num + unit),100);
        return false;
    });     
	
	 $("#sizeUp").click(function(){
        currentSize = $mainText.css('font-size');       
        var num = parseFloat(currentSize, 10);
        var unit = currentSize.slice(-2);
        num = num * 1.15;
        $mainText.css('font-size', num + unit);
        createCookie('formybones',(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 Product Information. 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 Novartis has 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. The information a reader is about to be referred to may not comply with Australian regulatory requirements. Further information relevant to the Australian environment is available from the company or via the Product Information."
		
	alert(text);
		
	window.location=link;
}


	jQuery(document).ready(function($) {
		$(".slider").hide();
		$('.toggle').live('click',function(){
		$(this).parent().next('.slider').slideToggle("fast");
 	return false;
	});

	});



