﻿<!-- Idea by:  Nic Wolfe (Nic@TimelapseProductions.com) -->
<!-- Web URL:  http://fineline.xs.mw -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=550,left = 340,top = 287');");
}
function popUp(URL, title, parameters) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id  + "', 'toolbar=0,location=0,statusbar=0,menubar=0,resizable=1,' + parameters + ',left = 340,top = 287');");
}
function getcontentpage(targ,selObj,restore){ //v3.0
  eval(targ+".location='/content/"+selObj.options[selObj.selectedIndex].value+".aspx'");
  if (restore) selObj.selectedIndex=0;
}
function getpackagepage(targ,selObj,restore){ //v3.0
  eval(targ+".location='/package/"+selObj.options[selObj.selectedIndex].value+".aspx'");
  if (restore) selObj.selectedIndex=0;
}

// End -->
//hide selects on page - copy code below
function showloadingscreen() {
hideSelects();
       document.getElementById('loadingscreen').style.visibility = 'visible';
}

function hideSelects(action) {
//documentation for this script at http://www.shawnolson.net/a/1198/
//possible values for action are 'hidden' and 'visible'
if (action!='visible'){action='hidden';}
if (navigator.appName.indexOf("MSIE")) {
for (var S = 0; S < document.forms.length; S++){
for (var R = 0; R < document.forms[S].length; R++) {
if (document.forms[S].elements[R].options) {
document.forms[S].elements[R].style.visibility = action;
}
}
} 
}
}

//end code