<!-- Hide script from older browsers

var user;
var domain;
var suffix;

function jemail(user, domain, suffix){
document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '?SUBJECT=Message Sent Through DigitalDioramas' + '">' + user + '@' + domain + '.' + suffix + '</a>');

}

/* example call for above: 

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
jemail("webmaster", "digitaldioramas", "com");
//  End -->
</script>

END EXAMPLE */

/* function to clear default text from form elements */

function clearText(thefield)
    {
    if (thefield.defaultValue == thefield.value)
    thefield.value = ""
    }

/* function to place focus in first form field on page load */

function placeFocus() {
if (document.forms.length > 0) {
var field = document.forms[0];
for (i = 0; i < field.length; i++) {
if ((field.elements[i].type == "text") || (field.elements[i].type == "textarea") || (field.elements[i].type.toString().charAt(0) == "s")) {
document.forms[0].elements[i].focus();
break;
         }
      }
   }
}
	
	
/* popup new url window for buy & about data */

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=0,width=400,height=350,left = 312,top = 209');");
}

/*	function MM_reloadpage
	Fix for that piece of shit Netscape window resize bug! */

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

/*	rolloverNav.js
	Function to change the background color on a rolled-over cell  
	in the gold nav bar.
	Found on all pages.                                          */

function rolloverNav (eventSource) {if (navigator.appName == "Microsoft Internet Explorer") eventSource.style.backgroundColor = "#556688";}

function rolloutNav (eventSource) {if (navigator.appName == "Microsoft Internet Explorer") eventSource.style.backgroundColor = "#CC9933";}


/*  Image Viewer Opo-up Window
	Function to allow new graphics window to popup.
	All values passed from HTML Page */

function OpenNewWindow(WindowPicture,WindowParameters)	{
	NewWindow=window.open("","NewOne", WindowParameters);
	NewWindow.document.write ("<HTML><HEAD><TITLE>");
	NewWindow.document.write ("digitaldioramas.com image viewer from default.js");
	NewWindow.document.write ("</TITLE></HEAD>");
	NewWindow.document.write ("<BODY BGCOLOR='#FFFFFF' vlink='333333' alink='000000' link='666666' background='http://www.digitaldioramas.com/images/common/backgrounds/popup/popup_bg.gif' link='#ffffff'>");
	
	NewWindow.document.write ("<P ALIGN=CENTER>");
	NewWindow.document.write ("<IMG SRC=");
	NewWindow.document.write (WindowPicture);
	NewWindow.document.write ("></A>");
	NewWindow.document.write ("</P>");
	
	NewWindow.document.write ("<P ALIGN=CENTER>");
	NewWindow.document.write ("<FONT FACE='verdana, arial, sans-serif' SIZE='-2' COLOR='#000066'>");
	NewWindow.document.write ("<A HREF='JavaScript:this.close()'>");
	NewWindow.document.write ("<IMG SRC=http://www.digitaldioramas.com/images/common/navigation/button_closewindow.gif border=0");
	NewWindow.document.write ("</A>");
	NewWindow.document.write ("</FONT></P>");
	
	NewWindow.document.write ("</BODY></HTML>");
	NewWindow.document.close();
	return false;
	}
	
/*	Function randon_imglink
	Rotate image from array located within this script.
	No link information accompanies array.  Links will be same
	for each image in array. */

/*comment out until used --
function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="images/banners_ads/banner_cuff_black.gif"
myimages[2]="images/banners_ads/banner_rebs1.jpg"
myimages[3]="images/banners_ads/banner_cuff_goldtext.gif"
myimages[4]="images/banners_ads/banner_cuff_sutterlin.gif"
myimages[5]="images/banners_ads/banner_wontsurvive.jpg"

var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<img src="'+myimages[ry]+'" border=0 hspace=0 vspace=0 alt="Jagdgeschwader Rebells Banner">')
}
random_imglink()	
-- */

/*	Function NavRollOver
	System used on police site.  This example has provisions
	for two different menus each with its own color variables.
	Initial color must be set within the script 
	#556688 is nice blue rollover state
	#cc9933 is gold default state */
	
function NavRollOver(oTd) {if (!oTd.contains(event.fromElement)) {oTd.bgColor="#fffff2";}} 
function NavRollOut(oTd) {if (!oTd.contains(event.toElement)) {oTd.bgColor="#f3f3eb";}}
//for secondary left side menu
function NavRollOver2(oTd) {if (!oTd.contains(event.fromElement)) {oTd.bgColor="#fffff2";}} 
function NavRollOut2(oTd) {if (!oTd.contains(event.toElement)) {oTd.bgColor="#ffffff";}}


/*	function getDateStr
	Return data as set on users computer.
	Compliant with Y2K */

// Returns today's date in a string with full day and month names

MonthName = new Array(12)
MonthName[0] = "January "
MonthName[1] = "February "
MonthName[2] = "March "
MonthName[3] = "April "
MonthName[4] = "May "
MonthName[5] = "June "
MonthName[6] = "July "
MonthName[7] = "August "
MonthName[8] = "September "
MonthName[9] = "October "
MonthName[10] = "November "
MonthName[11] = "December "

function getDateStr(){
    var Today = new Date()
    var Month = Today.getMonth()
    var Day = Today.getDate()
    var Year = Today.getYear()
	
    if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >=3))
//  Year <= 99)
    Year += 1900

    return /*DayName[WeekDay] +*/ MonthName[Month] + Day + ", " + Year
}

function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}



/*	function random_imglink
	Randomly posts an image from an array you populate 

function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="images/ads/banner/dd_banner-468x60_3.gif"
myimages[2]="images/ads/banner/dd_banner-468x60_3.gif"
myimages[3]="images/ads/banner/dd_banner-468x60_3.gif"
myimages[4]="images/ads/banner/dd_banner-468x60_3.gif"
myimages[5]="images/ads/banner/dd_banner-468x60_3.gif"

var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<img src="'+myimages[ry]+'" border=0 hspace=0 vspace=0 alt="Jagdgeschwader Rebells Cuff Title">')
}
random_imglink()

*/


// End hiding script -->
