/*
// Script for SL Designs webpage
// Copyright (c) 2004 by SL Designs.
//
// Language : Javascript
// Orig Date: June 7, 2004
// Last Mod: Feb. 27, 2008
*/

function copyright()
/* Displays copyright year for page footer */
{
	var startYear = "2004";                                        //Enter the year your copyright starts
	var d = new Date(); var endYear = d.getFullYear();             //Get current year
	if (startYear == endYear) var copyStmnt = "&copy; " + endYear;
	else var copyStmnt = "&copy; " + startYear + " - " + endYear;  //Assemble Copyright Statement
	document.write(copyStmnt);                                     //Print copyright statement
}

function showimage(path, wintitle, width, height)
/* Shows image in a pop up window according to href location and other properties */
{
	//width = parseInt(width) + 20;                                  //Prepares window width
	//height = parseInt(height) + 20;                                //Prepares window height
	
	path = '/showimage.php?path='+path+'&title='+wintitle+'&width='+width+'&height='+height+'';  //php version
	
	x = (screen.width - width) / 2;                                //Positions at center of screen
	y = (screen.height - height) / 2;
	
	winprop = 'left='+x+',top='+y+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,width='+width+',height='+height+',';
	
	imagewindow = window.open(path, 'imagewindow', winprop);            //initialize window
}

function counter()
/* Tracking counter for SL Designs */
{
	EXw = screen.width;
	
	if (navigator.appName != "Netscape") {
		EXb = screen.colorDepth;
	} else {
		EXb = screen.pixelDepth;
	}
	
	if (EXw == "") {
		EXw = "na";
	}
	if (EXb == "") {
		EXb = "na";
	}

	document.write("<img src=\"http://t0.extreme-dm.com","/c.g?tag=sldesigs&j=y&srw="+EXw+"&srb="+EXb+"&","l="+escape(parent.document.referrer)+"\" height=1 width=1>");
}

function mainimage()
/* Displays the image on the main page */
{
	var random = Math.round(100*Math.random())%9+1
	document.write("<img src=\"http://www.sldesigns.ca/images/main"+random+".jpg\" width=\"500\" height=\"261\">")
}

_uacct = "UA-105093-1";
urchinTracker();
