var prot1 = self.location.protocol;
var hostname1 = self.location.hostname;
var port1 = self.location.port;
if (port1 == "") {port1 = "80"};
//var base1 = prot1+"//"+hostname1+":"+port1;

if (hostname1 == "fintst2.us.oracle.com") {
    dynamic_base = prot1+"//"+hostname1+":"+port1;
    cms_base = "http://www-stage.us.oracle.com";
	dad_pathname = "/pls/webprod"
} 
else if (hostname1 == "education.oracle.com") {
	dynamic_base = prot1+"//"+hostname1;
    cms_base = "http://www.oracle.com";
	dad_pathname = "/pls/web_prod-plq-dad"
}
else if (hostname1 == "education.oracle.co.uk") {
  	cms_base = "http://www.oracle.com";
	var ptitle = document.title;
	var selfurl = self.location.href; 
	if (prot1 == "http") {
		var urlstring = selfurl.substring(7); //  => http://
	} else {
		var urlstring = selfurl.substring(8); //  => https://
	}
	var url_arr = urlstring.split("/");
	var arr_length = url_arr.length;
	var page1 = url_arr[arr_length-1];
}
else {
	dynamic_base = "https://education.oracle.com";
  	cms_base = "http://www.oracle.com";
	dad_pathname = "/pls/web_prod-plq-dad"
 }

function getfooter() {
document.write('<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="100%" summary="">  ');
document.write('<TR><TD COLSPAN="2" BACKGROUND="/images/footer2.gif" WIDTH="100%" HEIGHT="6">      ');
document.write('<IMG SRC="/images/footer2.gif" BORDER=0 HEIGHT="6" ALT=""></TD></TR>  '); 
document.write('<TR><TD ALIGN="left"><SPAN CLASS="legalese">'+templateconfig.copyright+'</SPAN></TD>   ');
document.write('<TD ALIGN="right">');
document.write('<A href="'+cms_base+templateconfig.aboutoracleurl+'" class="legalese" target="_top">'+templateconfig.aboutoracle+'</A>');
document.write('<SPAN CLASS="legalese"> | </SPAN>');
document.write('<A href="'+cms_base+templateconfig.headercontacturl+'" class="legalese" target="_top">'+templateconfig.footercontact+'</A>');
document.write('<SPAN CLASS="legalese"> | </SPAN>');
document.write('<A href="'+cms_base+templateconfig.legalurl+'" class="legalese" target="_top">'+templateconfig.legal+'</A>      ');
document.write('<SPAN CLASS="legalese"> | </SPAN>      ');
document.write('<A href="'+cms_base+templateconfig.privacyurl+'" class="legalese" target="_top">'+templateconfig.privacy+'</A>');
document.write('</TD></TR></TABLE>');
document.write('');
}

function get_rd_footer() {
document.write('<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="100%" summary="">  ');
document.write('<TR><TD COLSPAN="2" BACKGROUND="/images/footer2.gif" WIDTH="100%" HEIGHT="6">      ');
document.write('<IMG SRC="/images/footer2.gif" BORDER=0 HEIGHT="6" ALT=""></TD></TR>  '); 
document.write('<TR><TD ALIGN="left"><SPAN CLASS="legalese">'+rd_temp_config.rd_copyright+'</SPAN></TD>   ');
document.write('<TD ALIGN="right">');
document.write('<A href="'+cms_base+rd_temp_config.rd_aboutoracleurl+'" class="legalese" target="_blank">'+rd_temp_config.rd_aboutoracle+'</A>');
document.write('<SPAN CLASS="legalese"> | </SPAN>');
document.write('<A href="'+rd_temp_config.ic_icon_contact_us_url+'" class="legalese" target="_blank">'+rd_temp_config.rd_footercontact+'</A>');
document.write('<SPAN CLASS="legalese"> | </SPAN>');
document.write('<A href="'+cms_base+rd_temp_config.rd_legalurl+'" class="legalese" target="_blank">'+rd_temp_config.rd_legal+'</A>      ');
document.write('<SPAN CLASS="legalese"> | </SPAN>      ');
if (orgid==70){
 document.write('<A href="'+rd_temp_config.rd_privacyurl+'" class="legalese" target="_blank">'+rd_temp_config.rd_privacy+'</A>');
} else {
 document.write('<A href="'+cms_base+rd_temp_config.rd_privacyurl+'" class="legalese" target="_blank">'+rd_temp_config.rd_privacy+'</A>');
}
document.write('</TD></TR></TABLE>');
if (hostname1 == "education.oracle.co.uk") {
	document.write ('<script language="JavaScript">s_pageName="OUP: "+orgid+": "+lang+": "+ptitle+" ("+page1+")";</script>');
	document.write ('<script language="JavaScript">s_channel="iCatalog";</script>');
	document.write ('<script language="JavaScript" src="http://education.oracle.com/education/jscripts/s_code_remote.js"></script>');
}
}

