ns = (document.layers)? true:false
ie = (document.all)? true:false
mz = (document.getElementById && !document.all)? true:false

/* Browser Detect & Redirect */

/*if (!document.getElementById) { 
	window.location = "http://www.debbietravisfacelift.com/browser.php";
}*/

/* PopUp */

function Popup(page,width,height,scroll,location,statusbar,menubar,resizable) {
	var now = new Date();
	var hour        = now.getHours();
	var minute      = now.getMinutes();
	var second      = now.getSeconds();
	
	if (!scroll) { scroll = 'no'; }
	if (!location) { location = 'no'; }
	if (!statusbar) { statusbar = 'no'; }
	if (!menubar) { menubar = 'no'; }
	if (!resizable) { resizable = 'no'; }
	if (page.match('http')) var name = hour +''+ minute +''+ second; // For issues arising from using a full url as a name...
	else var name = hour +''+ minute +''+ second +''+ page.substring(0,(page.length - 4));
	window.open(''+ page +'',name,'toolbar=0,scrollbars='+ scroll +',location='+ location +',statusbar='+ statusbar +',menubar='+ menubar +',resizable='+ resizable +',width='+ width +',height='+ height);
}

/* Image Swap */

var tempimg = '';
var tempext = '';

function Img(img) {
	if (img) {
		var ext = document[img].src.substring(eval(document[img].src.length-4),document[img].src.length);
		document[img].src = 'images/home/'+ img +'_on'+ ext;
		tempimg = img;
		tempext = ext;
	}
	else {
		document[tempimg].src = 'images/home/'+ tempimg + tempext;
	}
}