// JavaScript Document

function loadjscssfile(filename, filetype){
 if (filetype=="js"){ //if filename is a external JavaScript file
  var fileref=document.createElement('script')
  fileref.setAttribute("type","text/javascript")
  fileref.setAttribute("src", filename)
 }
 else if (filetype=="css"){ //if filename is an external CSS file
  var fileref=document.createElement("link")
  fileref.setAttribute("rel", "stylesheet")
  fileref.setAttribute("type", "text/css")
  fileref.setAttribute("href", filename)
 }
 if (typeof fileref!="undefined")
  document.getElementsByTagName("head")[0].appendChild(fileref)
}
if (window.location=="http://www.rs2.com/core.php" || window.location=="http://www.rs2.com/core.php#" || window.location=="http://rs2.com/core.php" || window.location=="http://rs2.com/core.php#" || window.location=="http://rs2.com.mt/core.php" || window.location=="http://rs2.com.mt/core.php#"){
loadjscssfile("/templates/rs2/styles/rs2core.css", "css");
loadjscssfile("/templates/rs2/styles/SpryTabbedPanels.css", "css"); ////dynamically load and add this .css file
}
if (window.location=="http://www.rs2.com/acquiring.php" || window.location=="http://www.rs2.com/acquiring.php#" || window.location=="http://rs2.com/acquiring.php" || window.location=="http://rs2.com/acquiring.php#" || window.location=="http://rs2.com.mt/acquiring.php" || window.location=="http://rs2.com.mt/acquiring.php#"){
loadjscssfile("/templates/rs2/styles/rs2aquiring.css", "css");
loadjscssfile("/templates/rs2/styles/SpryTabbedPanels.css", "css"); ////dynamically load and add this .css file
}
if (window.location=="http://www.rs2.com/issuing.php" || window.location=="http://www.rs2.com/issuing.php#" || window.location=="http://rs2.com/issuing.php" || window.location=="http://rs2.com/issuing.php#" || window.location=="http://rs2.com.mt/issuing.php" || window.location=="http://rs2.com.mt/issuing.php#"){
loadjscssfile("/templates/rs2/styles/rs2issuing.css", "css");
loadjscssfile("/templates/rs2/styles/SpryTabbedPanels.css", "css"); ////dynamically load and add this .css file
}
if (window.location=="http://www.rs2.com/schemes.php" || window.location=="http://www.rs2.com/schemes.php#" || window.location=="http://rs2.com/schemes.php" || window.location=="http://rs2.com/schemes.php#" || window.location=="http://rs2.com.mt/schemes.php" || window.location=="http://rs2.com.mt/schemes.php#"){
loadjscssfile("/templates/rs2/styles/rs2schemes.css", "css");
loadjscssfile("/templates/rs2/styles/SpryTabbedPanels.css", "css"); ////dynamically load and add this .css file
}
if (window.location=="http://www.rs2.com/switch.php" || window.location=="http://www.rs2.com/switch.php#" || window.location=="http://rs2.com/switch.php" || window.location=="http://rs2.com/switch.php#" || window.location=="http://rs2.com.mt/switch.php" || window.location=="http://rs2.com.mt/switch.php#"){
loadjscssfile("/templates/rs2/styles/rs2switch.css", "css");
loadjscssfile("/templates/rs2/styles/SpryTabbedPanels.css", "css"); ////dynamically load and add this .css file
}
if (window.location=="http://www.rs2.com/disputes.php" || window.location=="http://www.rs2.com/disputes.php#" || window.location=="http://rs2.com/disputes.php" || window.location=="http://rs2.com/disputes.php#" || window.location=="http://rs2.com.mt/disputes.php" || window.location=="http://rs2.com.mt/disputes.php#"){
loadjscssfile("/templates/rs2/styles/rs2disputes.css", "css");
loadjscssfile("/templates/rs2/styles/SpryTabbedPanels.css", "css"); ////dynamically load and add this .css file
}
if (window.location=="http://www.rs2.com/new-product.html" || window.location=="http://www.rs2.com/new-product.html#" || window.location=="http://rs2.com/new-product.html" || window.location=="http://rs2.com/new-product.html#" || window.location=="http://rs2.com.mt/new-product.html" || window.location=="http://rs2.com.mt/new-product.html#"){
loadjscssfile("/templates/rs2/styles/rs2core.css", "css");
loadjscssfile("/templates/rs2/styles/SpryTabbedPanels.css", "css"); ////dynamically load and add this .css file
}
