// SCRIPT TO SET DEFAULTS FOR SITE AND SITE STANDARD ARTICLE

//********************************************************************************************
var WebSiteSettings = "Solo Christo";   // Default;
var whois = location + " ";
if (whois.indexOf("solochristo.com") != -1)       {var WebSiteSettings = "Solo Christo";}
if (whois.indexOf("www.solochristo.com") != -1)   {var WebSiteSettings = "Solo Christo";}
if (whois.indexOf("liftedveil.org") != -1)       {var WebSiteSettings = "Lifted Veil";}
if (whois.indexOf("www.liftedveil.org") != -1)   {var WebSiteSettings = "Lifted Veil";}
if (whois.indexOf("treasuringchrist.com") != -1)  {var WebSiteSettings = "Treasuring Christ";}
if (whois.indexOf("www.treasuringchrist.com")!=-1){var WebSiteSettings= "Treasuring Christ";}
if (whois.indexOf("beckerfamily.ws") != -1)       {var WebSiteSettings = "Becker Family";}
if (whois.indexOf("www.beckerfamily.ws") != -1)   {var WebSiteSettings = "Becker Family";}
//********************************************************************************************


function OpenTable()
	{
	document.write('<table width="750" border="0" align="center"><tr>');
	}

function CloseTable()
	{
	document.write('</tr></table>');
	}

// ESTABLISH SITE SPECIFIC SETTINGS 

// SoloChristo.com
if (WebSiteSettings == "Solo Christo") 
  {
  var CommonKeywords ="Calvinism, Calivinistic, Calvinist, New Covenant Theology, NCT, New Covenant, Solo Christo, SoloChristo, treasuring Christ, treasuringChrist, sermons, articles, Christian, Reformed, Baptist, Tulip, Jesus, Christ, Jesus Christ, doctrines grace, sovereignty God, Semper Reformata, Always Reforming, Dale LaVoie, Shane Becker";
  var rootdir= "http://solochristo.com";
  var policies = rootdir + "/_SC/Policies.htm";
  var articles = rootdir + "/_SC/theologymain.htm";
  var background = rootdir + "/graphics/bg4.jpg"; 
  var homepage = rootdir + "/SoloChristo.htm";
  var site = "www.SoloChristo.com";
  var logo = rootdir + "/graphics/logos/SC.jpg";
  var logowidth = "197";  // 197
  var logoheight = "36"; // 36
  var titlecol = "#887050";  //add font and all!
  var titleface = "Lucida Handwriting, Gorgia, Comic Sans MS, Arial";  
  var MessageT = ""; //"Editor Temporary Test Line Only - Please ignore! (Message A)";//"Welcome to "+ WebSiteSettings + ".  We will soon be back on the internet having been away for a while!  If you find any article or site errors we would appreciate you letting us know by " +"<a href=mailto:corrections at solochristo.com><u>emailing us</u></a>" + " if you are happy to do so.  Thank you!  We hope you find this article beneficial.<center>--- / ---</center>"; 
  var MessageB = ""; //"Editor Temporary Test Line Only - Please ignore! (Message B)"; //"Please visit again some time or check out more of our site!  Remember, if you came across any article or site errors we would appreciate you letting us know by " +"<a href=mailto:corrections at solochristo.com><u>emailing us</u></a>" + " if you are happy to do this.  Thank you!";
  function Policies() {parent.location.href = policies}
  function Articles() {parent.location.href = articles}
  }


// LiftedVeil.org
if (WebSiteSettings == "Lifted Veil") 
  {
  var CommonKeywords ="Calvinism, Calivinistic, Calvinist, New Covenant Theology, NCT, New Covenant, Solo Christo, SoloChristo, treasuring Christ, treasuringChrist, sermons, articles, Christian, Reformed, Baptist, Tulip, Jesus, Christ, Jesus Christ, doctrines grace, sovereignty God, Semper Reformata, Always Reforming, Dale LaVoie, Shane Becker";
  var rootdir= "http://liftedveil.org";
  var policies = rootdir + "/_SC/Policies.htm";
  var articles = rootdir + "/_SC/theologymain.htm";
  var background = rootdir + "/graphics/bg4.jpg"; 
  var homepage = rootdir // + "/SoloChristo.htm";
  var site = "www.LiftedVeil.org";
  var logo = rootdir + "/graphics/logos/SC.jpg";
  var logowidth = "197";  // 197
  var logoheight = "36"; // 36
  var titlecol = "#887050";  //add font and all!
  var titleface = "Lucida Handwriting, Gorgia, Comic Sans MS, Arial";  
  var MessageT = ""; //"Editor Temporary Test Line Only - Please ignore! (Message A)";//"Welcome to "+ WebSiteSettings + ".  We will soon be back on the internet having been away for a while!  If you find any article or site errors we would appreciate you letting us know by " +"<a href=mailto:corrections at solochristo.com><u>emailing us</u></a>" + " if you are happy to do so.  Thank you!  We hope you find this article beneficial.<center>--- / ---</center>"; 
  var MessageB = ""; //"Editor Temporary Test Line Only - Please ignore! (Message B)"; //"Please visit again some time or check out more of our site!  Remember, if you came across any article or site errors we would appreciate you letting us know by " +"<a href=mailto:corrections at solochristo.com><u>emailing us</u></a>" + " if you are happy to do this.  Thank you!";
  function Policies() {parent.location.href = policies}
  function Articles() {parent.location.href = articles}
  }


// BeckerFamily.ws  (test only)
if (WebSiteSettings == "Becker Family")
  {
  var background = "/graphics/tulip1.jpg";  // for testing only
  var home ="/BeckerFamily.htm"; // for testing only
  var site = "www.BeckerFamily.ws";
  var MessageT = ""; //"Welcome to "+ WebSiteSettings + ".  If you find any article or site errors we would appreciate you letting us know by " +"<a href=mailto:corrections solochristo.com><u>emailing us</u></a>" + " if you are happy to do this.  Thank you!  We hope you find this article beneficial.<center>--- / ---</center>"; 
  var MessageB = ""; //"Please visit again some time or check out more of our site!  Remember, if you came across any article or site errors we would appreciate you letting us know by " +"<a href=mailto:correctionssolochristo.com><u>emailing us</u></a>" + " if you are happy to do so.  Thank you!";
  }

// TreasuringChrist.com
if (WebSiteSettings == "Treasuring Christ") 
  {
  var CommonKeywords ="Treasuring Christ Fellowship, TCF, Treasuring Christ Community Church, TCCC, Brisbane, Queensland, Australia, Christ-treasuring, God-honoring, joy-pursuing, revival-requesting, prayer-powered, expository-exulting, Scripture-saturated, Bible, Bible Church, gospel-proclaiming, gospel-sanctified, gospel-sanctification, needs-nurturing, family-strengthening, community-loving, community, missions-promoting, disciple-producing, Calvinism, Calivinistic, Calvinist, New Covenant Theology, NCT, New Covenant, Solo Christo, SoloChristo, treasuring Christ, treasuringChrist, sermons, articles, Christian, Reformed, Baptist, Reformed Baptist, church, Tulip, Jesus, Christ, Jesus Christ, doctrines grace, grace, sovereignty God, Semper Reformata, Always Reforming, Elijah Layfield, Trevor Hunt, Shane Becker, community, John Piper, expository sermons, desiring God, poetry, quotes, reformed quotes, reformed articles, Bible, New Testament, Old Testament, desiring god ministries, god-centered, theology, jonathan edwards, sovereignty, desiring god, hedonism, pleasure, doctrines grace, justification";
  var rootdir= "http://www.treasuringChrist.com";
  var homepage = rootdir + "/TCCC.html";
  var policies = rootdir + "/_TCCC/TCCC_Policies.html";
  var articles = rootdir + "/_TC/Articles.htm";
  var background = rootdir + "/graphics/bg5.jpg"; 
  var site = "www.treasuringChrist.com";
  var logo = rootdir + "/graphics/logos/litmatch3.jpg";
  var logowidth = "80";
  var logoheight = "60";
  var titlecol = "#CC6666";  //add font and all!
  var titleface = "Lucida Handwriting, Gorgia, Comic Sans MS, Arial";  
  var MessageT = ""; //Welcome to "+ WebSiteSettings + ".  We will soon be back on the internet having been away for a while!  If you find any article or site errors we would appreciate you letting us know by " +"<a href=mailto:correctionssolochristo.com><u>emailing us</u></a>" + " if you are happy to do so.  Thank you!  We hope you find this article beneficial.<center>--- / ---</center>"; 
  var MessageB = ""; //"Please visit again some time or check out more of our site!  Remember, if you came across any article or site errors we would appreciate you letting us know by " +"<a href=mailto:correctionssolochristo.com><u>emailing us</u></a>" + " if you are happy to do this.  Thank you!";
  function Policies() {self.location.href = policies}
  function Articles() {self.location.href = articles}
  }

//  END SITE SPECIFIC SETTINGS


//  SET FINAL VARIABLES AND FUNCTIONS

//Mail To Variables
  var subject = "Interesting item from " + site;
  var mailbody = "I thought you'd like this item from " + site + "\n\nRefer Link:  " + location + "\n\n";
  // BUILD MAIL MESSAGE COMPONENTS
  var message = "mailto:" + "?subject=" + escape(subject) + "&body=" + escape(mailbody);


// SET REMAINING MENU FUNCTIONS 
  function Home() {top.location.href = homepage;} 
  function TellaMate() {top.location.href = message;}  // Email
 
  //Originating Site - Article Variable must enter originating site as text from article
  function ArticleOrigin(OrginalSite) {window.open(OrginalSite); }


// SET META TAGS and TITLE

  function SetTags()
  {
  // General Tags
  document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');
  document.write('<meta name="ROBOTS" content="INDEX,FOLLOW">');
  document.write('<meta name="revisit-after" content="2 Days">');

  // Article Specific Tags
  document.write('<title>' + ArticleTitle + " by " + ArticleAuthor + ", " + site +'</title>');
  document.write('<meta name="description" content="' + ArticleTitle + " by " + ArticleAuthor + '">');
  document.write('<meta name="keywords" content="' + ArticleTitle + ", " + ArticleAuthor + ", " + ArticleKeywords + ", " + CommonKeywords + '">');
  document.write('<meta name="author" content="' + ArticleAuthor + '">');
  }


// SET STYLES
  function SetStyles()
  {  
  var style = '<style type="text/css">\n'+
  'a:link {text-decoration: none; color:' + titlecol +'; } \n' +
  'a:visited {text-decoration: none; } \n' +
  'a:hover {text-decoration: underline; font-size: 9pt;} \n' +
  'a:active {text-decoration: none;} \n' +
  '.MenuStyle { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; color:' + titlecol +'; } \n' +
  '.TitleStyle { font-size: 17pt; color:' + titlecol +'; font-family:'+titleface+'; } \n' +
  '.AuthorStyle { font-size: 8pt; color:#000000; font-family: verdana, arial, helvetica} \n' +
  '.BodyStyle { font-size: 11pt; color:#000000; font-family: verdana, arial, helvetica} \n' +
  '</style>'
  document.write(style)
  }

// SET BACKGROUND
  function SetBackground() 
  { 
  document.write('<BODY BACKGROUND=' + background + '>'); 
  }


// SET MENU
	function InsertMenu()
	{
	document.write(' <a href="javascript:Home()">Home</a> | ');
	document.write('<a href="javascript:Articles()">Articles</a> | ');	
	document.write('<a href="javascript:window.print()">Print Page</a> | ');
	document.write('<a href="javascript:TellaMate()">Email Page</a> | ');	
	document.write('<a href="javascript:Policies()">Policies</a> | ');
	}

	function InsertMenu2()
	{//document.write('<br>_______________________________________________________');
	}




// PARKING BAY FOR ITEMS NOT CURRENTLY IN USE 
   
 // SET MENU
//  function SetMenu() {  }  

