/**************************************************************************************************************************
* MODIFICATION HISTORY
* CODE		DATE		GROUP	LAST MODIFIED BY		REMEDY CASE ID	DESCRIPTION
* MOD-001	02/12/2009	ACN		Christian Dale Patacsil	HD05133442 		Orencia.com and Orencia.com HCP Tags
* MOD-002	02/23/2009	ACN		Alelie Orcine			HD05174360		Orencia.com News Pages and Job Code/Date Update
* MOD-003   3/20/2009   ACN     Alelie Orcine           HD05257619      Orencia.com Changes Needed from BMS.com Transition to Sharepoint

 ***************************************************************************************************************************/
 
var cookie;

function LoadPage()
{
	var v_index_pathname =  "../startHere.html";
	var v_with_promise = false;
	// document.getElementById('topnavcontainer_2008_11').innerHTML = "<div id='topnavcontainer'><ul id='topnavlist'><li><img src='images/spacer.gif' border='0' width='57' height='1' alt='' title='' /></li><li><a href='index.html'><img src='images/top_menu_home.gif' border='0' alt='Home' title='Home' /><span class='hide'>Home</span></a></li><li><a href='pdfs/ORENCIA_PPI.pdf' onClick='javascript:urchinTracker(\"/orencia/patientinfo_home_topnav\");'><img src='images/top_menu_patient_info.gif' border='0' alt='Patient Information' title='Patient Information' /><span class='hide'>Patient Information</span></a></li><li><a href='pdfs/fpi.pdf' onClick='javascript:urchinTracker(\"/orencia/fullprescribinginfo_home_topnav\");'><img src='images/top_menu_full_prescribing_info.gif' alt='Full Prescribing Information' border='0' title='Full Prescribing Information' /><span class='hide'>Full Prescribing Information</span></a></li><li><a href='pdfs/orenciaPPI_SP.pdf' onClick='javascript:urchinTracker(\"/orencia/patientinfospanish_home_topnav\");'><img src='images/top_menu_recursos.gif' alt='Recursos para el Paciente en Espaņol' border='0' title='Recursos para el Paciente en Espaņol' /><span class='hide'>Recursos para el Paciente en Espaņol</span></a></li><li><a href='http://www.orencia.com/orencia/channels/hcp_content.jsp' onClick='javascript:urchinTracker(\"/orencia/homelinks/infoforhcps_topnav\");'><img src='images/top_menu_info_for_healthcare.gif' alt='Information for Healthcare Professionals' border='0' title='Information for Healthcare Professionals' /><span class='hide'>Information for Healthcare Professionals</span></a></li></ul></div>";

	if (null!=document.getElementById('copyright_txt'))
	{
		//ORIGINAL CODE
		//document.getElementById('copyright_txt').innerHTML = "&#169; 2008 Bristol-Myers Squibb Company. All Rights Reserved.<br>ORENCIA is a registered trademark of Bristol-Myers Squibb Company. All other trademarks are properties of their respective companies.";
		//WITH PROMISE
		//document.getElementById('copyright_txt').innerHTML = "&#169; 2009 Bristol-Myers Squibb Company. All Rights Reserved.<br>ORENCIA is a registered trademark, and The Circle, The Satisfaction RAter, and The ORENCIA Promise Program are trademarks of Bristol-Myers Squibb Company. All other trademarks are property of their respective companies.";
		if (location.pathname == v_index_pathname)
			v_with_promise = true;

		if (v_with_promise == true)
		{ //WITH PROMISE PROGRAM
			//START MOD-008
			//document.getElementById('copyright_txt').innerHTML = "&#169; 2009 Bristol-Myers Squibb Company. All Rights Reserved.<br>ORENCIA&reg; is a registered trademark, and Oh, yes I can!, The Circle, The Satisfaction RAter, and The ORENCIA Promise Program are trademarks of Bristol-Myers Squibb Company.<br>All other trademarks are property of their respective companies.";
			document.getElementById('copyright_txt').innerHTML = "&#169; 2009 Bristol-Myers Squibb. All Rights Reserved.<br>ORENCIA&reg; is a registered trademark, and Oh, yes I can!, The Circle, The Satisfaction RAter, and The ORENCIA Promise Program are trademarks of Bristol-Myers Squibb.<br>All other trademarks are property of their respective companies.";
			//END MOD-008
		}
		else
		{ //WITHOUT PROMISE PROGRAM
			//START MOD-008
			//document.getElementById('copyright_txt').innerHTML = "&#169; 2009 Bristol-Myers Squibb Company. All Rights Reserved.<br>ORENCIA&reg; is a registered trademark, and Oh, yes I can!, The Circle and The Satisfaction RAter are trademarks of Bristol-Myers Squibb Company.<br>All other trademarks are property of their respective companies.";
			document.getElementById('copyright_txt').innerHTML = "&#169; 2009 Bristol-Myers Squibb. All Rights Reserved.<br>ORENCIA&reg; is a registered trademark, and Oh, yes I can!, The Circle and The Satisfaction RAter are trademarks of Bristol-Myers Squibb.<br>All other trademarks are property of their respective companies.";
			//END MOD-008
		}
	}

	if (null!=document.getElementById('footer_links'))
	//START MOD-001
	//document.getElementById('footer_links').innerHTML = "<a class='footer_link' href='javascript:redirectURL(\"/home/index.jsp\", false);'>Home</a>&nbsp;|&nbsp;<a class='footer_link' href='javascript:redirectURL(\"/channels/content.jsp\", false, \"channelName=Misc/200@Privacy_policy\");'>Privacy Policy</a>  |  <a class='footer_link' href='http://www.bms.com/legal/data/' onClick=\"javascript:urchinTracker('/orencia/outgoing/bmslegalnotice');\" >Legal Notice</a>  |  <a class='footer_link' href='javascript:redirectURL(\"/apps/optout.jsp\", false)'>Unsubscribe</a>  |  <a class='footer_link' href='http://www.bms.com/feedback/data/' onClick=\"javascript:urchinTracker('/orencia/outgoing/bmscontactus');\">Contact Us</a>  |  <a class='footer_link' href='javascript:redirectURL(\"/channels/content.jsp\", false, \"channelName=Misc/100@News\")'>News about ORENCIA</a>  |  <a class='footer_link' href='javascript:redirectURL(\"/channels/content.jsp\", false, \"channelName=Misc/300@Glossary\")'>Glossary</a>  |  <a class='footer_link' href='javascript:redirectURL(\"/channels/content.jsp\", false, \"channelName=Misc/400@Sitemap\")'>Sitemap</a>";
// START MOD-003 
//	document.getElementById('footer_links').innerHTML = "<a class='footer_link' href='javascript:redirectURL(\"/home/index.jsp\", false);'>Home</a>&nbsp;|&nbsp;<a class='footer_link' href='javascript:redirectURL(\"/channels/content.jsp\", false, \"channelName=Misc/200@Privacy_policy\");'>Privacy Policy</a>  |  <a class='footer_link' href='http://www.bms.com/legal/data/' onClick=\"javascript:urchinTracker('/orencia/outgoing/bmslegalnotice');\" >Legal Notice</a>  |  <a class='footer_link' href='javascript:redirectURL(\"/apps/optout.jsp\", false)'>Unsubscribe</a>  |  <a class='footer_link' href='http://www.bms.com/feedback/data/' onClick=\"javascript:urchinTracker('/orencia/outgoing/bmscontactus');\">Contact Us</a>  |  <a class='footer_link' href='javascript:redirectURL(\"/channels/content.jsp\", false, \"channelName=Misc/100@News\")'>News about ORENCIA</a>  |  <a class='footer_link' href='javascript:redirectURL(\"/channels/content.jsp\", false, \"channelName=Misc/300@Glossary\")'>Glossary</a>  |  <a class='footer_link' href='javascript:redirectURL(\"/channels/content.jsp\", false, \"channelName=Misc/400@Sitemap\")' onClick=\"javascript:urchinTracker('/orencia/homelinks/sitemap_footer');\">Sitemap</a>";
	
		document.getElementById('footer_links').innerHTML = "<a class='footer_link' href='javascript:redirectURL(\"/home/index.jsp\", false);'>Home</a>&nbsp;|&nbsp;<a class='footer_link' href='javascript:redirectURL(\"/channels/content.jsp\", false, \"channelName=Misc/200@Privacy_policy\");'>Privacy Policy</a>  |  <a class='footer_link' href='http://bms.com/legal/Pages/notice.aspx' onClick=\"javascript:urchinTracker('/orencia/outgoing/bmslegalnotice');\" >Legal Notice</a>  |  <a class='footer_link' href='javascript:redirectURL(\"/apps/optout.jsp\", false)'>Unsubscribe</a>  |  <a class='footer_link' href='http://bms.com/contact/Pages/home.aspx' onClick=\"javascript:urchinTracker('/orencia/outgoing/bmscontactus');\">Contact Us</a>  |  <a class='footer_link' href='javascript:redirectURL(\"/channels/content.jsp\", false, \"channelName=Misc/100@News\")'>News about ORENCIA</a>  |  <a class='footer_link' href='javascript:redirectURL(\"/channels/content.jsp\", false, \"channelName=Misc/300@Glossary\")'>Glossary</a>  |  <a class='footer_link' href='javascript:redirectURL(\"/channels/content.jsp\", false, \"channelName=Misc/400@Sitemap\")' onClick=\"javascript:urchinTracker('/orencia/homelinks/sitemap_footer');\">Sitemap</a>";
		
// END MOD-003

	//END MOD-001
	if (null!=document.getElementById('bottomtext'))
		//document.getElementById('bottomtext').innerHTML = "427US07WA38011 Dec/08";
		//document.getElementById('bottomtext').innerHTML = "427US07WA38027 Dec/08";
		
		//Start MOD-002
		//START MOD-008
		//document.getElementById('bottomtext').innerHTML = "427US07WA38028 Dec/08";
		document.getElementById('bottomtext').innerHTML = "427US07WA38031 Dec/08";
		//END MOD-008
		//End MOD-002
		
    //alert(document.cookie);
    if (document.cookie == "") {
        var win;
        win = window.open("18yo_popup.html","newWindow","width=500,height=274,left=0,top=100");
    }
    
}

function newImage(arg) {
 if (document.images) {
        rslt = new Image();
        rslt.src = arg;
        return rslt;
    }
}
var preloadFlag = true;
function changeImages() {
    if (document.images && (preloadFlag == true)) {
        for (var i=0; i<changeImages.arguments.length; i+=2) {
            document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
        }
    }
}


function preloadImages() {
    if (document.images) {
        home_health_over = newImage("/PublishingImages/Patient/home_health_over.html");
        preloadFlag = true;
    }
}

function close_popup(){
    document.cookie = "age=18";
    window.close();
    return(cookie);
}

function close_leaving_popup(){
    window.close();
}

function popup_window(popup_url,popup_width,popup_height){
    var pwin;
    pwin = window.open(popup_url,"newWindow","width="+popup_width+",height="+popup_height+",left=0,top=100");
}

function popup_window2(popup_url,popup_width,popup_height){
    var pwin2;
    window.resizeTo(popup_width,popup_height);
    pwin2 = window.open(popup_url,"newWindow","scrollbars=yes,scrolling=yes,resizable=yes,width="+popup_width+",height="+popup_height+",left=0,top=100");

}
function leaving_popup(popup_url,popup_width,popup_height){
    var pwin3;
    pwin3 = window.open(popup_url,"newWindow","width="+popup_width+",height="+popup_height+",left=0,top=100");
}


// addded on 11.01.2007 for new rollover //
window.onload = pageInit;

function pageInit() {
    rolloversInit();
}

function rolloversInit() {
    if (!document.getElementById) return;
    
    var arrPreload = new Array();
    var strSrcTmp;
    var arrImages = document.getElementsByTagName('img');
    
    for (var i=0; i<arrImages.length; i++) {
        if (arrImages[i].className == "rollover") {
            var src = arrImages[i].src;
            var imgtype = src.substring(src.lastIndexOf("."), src.length);
            var altsrc = src.replace(imgtype, "_on" + imgtype);

            arrImages[i].setAttribute('altsrc', altsrc);
            arrPreload[i] = new Image();
            arrPreload[i].src = altsrc;
            
            arrImages[i].onmouseover = function() {
                strSrcTmp = this.getAttribute('src');
                this.setAttribute('src', this.getAttribute('altsrc'));
            }

            arrImages[i].onmouseout = function() {
                if (!strSrcTmp) strSrcTmp = this.getAttribute('src').replace("_off" + imgtype, imgtype);
                this.setAttribute('src', strSrcTmp);
            }

        }
    }
}

