<!--
var objectDef = false;

var isIMG, isCSS, isW3C, isIE4, isIE6CSS, isNN4, isMac, isOPERA;
	
function sniffIt(){

	isIMG = (document.images) ? true : false;
	
	if (isIMG){
		
        isCSS = (document.body && document.body.style) ? true : false;
        isW3C = (isCSS && document.getElementById) ? true : false;
        isIE4 = (isCSS && document.all) ? true : false;
        isNN4 = (document.layers) ? true : false;
		isOPERA = (navigator.userAgent.indexOf("Opera")>-1) ? true : false;
        isIE6CSS = (document.compatMode && document.compatMode.indexOf("CSS1") >= 0) ? true : false;
		isMac = (navigator.userAgent.indexOf("Mac")>-1) ? true : false;

			if (isNN4 || !isCSS){
				wrongBrowserAlert();
			}
		
		
	}else{
		wrongBrowserAlert();
	}
}

window.onload = sniffIt; 

function ieQuickCheck(){
	var browserVer=navigator.appVersion;
	var browserAgent=navigator.userAgent;
	//alert (browserVer+", "+browserAgent);
	
	if (browserAgent.indexOf("Opera")>-1 || browserAgent.indexOf("Mac")>-1){return false;}
	
	if (browserVer.indexOf("MSIE 5")>-1 || browserVer.indexOf("MSIE 6")>-1 || browserVer.indexOf("MSIE 7")>-1 || browserVer.indexOf("MSIE 8")>-1){
	return true;
	} else {
	return false;
	}
}

function iePageTools(){

	if (ieQuickCheck){
		var thisObj = getRawObject("ieOnlyContent");
		thisObj.innerHTML = '<a href="javascript:makeFavourite()"><img src="../images/tool-bookmark.gif" width="27" height="32" border="0" align="absmiddle" alt="Bookmark this page" />Bookmark this page</a><br />';
	}

}

function doAlert(){
	alert("isCSS="+isCSS+", isW3C="+isW3C+", isIE4="+isIE4+", isNN4="+isNN4+", isIE6CSS="+isIE6CSS+", isMac="+isMac);
}

function wrongBrowserAlert(){
alert("This is best viewed on one of these browsers\R\N IE5+,Netscape7+,Opera7+,Mozilla Firefox1+\R\NGo to our downloads page in the about us section\R\N to download the latest versions.");
	}

function getRawObject(obj){
	var theObj;
	if (typeof obj == "string"){

		if (isW3C){
			theObj = document.getElementById(obj);
		} else if (isIE4) {
			theObj = document.all(obj);
		}
	
	} else {
	
		theObj = obj;
		
	}
	
	return theObj;
	
	
}

function printPage(){
	top.print();
	}

function makeHome(){
	
		if (bw.ie){
			oHomePage.setHomePage('http://www.mandershifi.co.uk');
			returnValue = false;
		}
	}
	
function makeFavourite(){
if (document.all){
	window.external.addfavorite('http://www.mandershifi.co.uk/','Manders Hifi - Providing you with the very best in entertainment technology, backed by outstanding after sales care and service.')
}
	}
	


function changeFrame(url){
	if (url != "*" && url != "#" && url != ""){
		window.tourFrame.location.href = url;}
}

var newwin;

function extraWins(uRL,windowName,windowWidth,windowHeight,reSizeable,scroll,fullscreen){
	var addMe;
	newwin = window.open(uRL, windowName ,'toolbar=no, scrollbars='+scroll+',location=no,directories=no,status=yes,menubar=yes,resizable='+reSizeable+',width='+windowWidth+',height='+windowHeight+',fullscreen='+fullscreen);
	if (newwin) {newwin.focus()};
	}	
	
function closeDown(){
	self.close()
	}

	
	function maxWindow(){

		window.moveTo(0,0);

		if (document.all){
		
			top.window.resizeTo(screen.availWidth,screen.availHeight);
			
		}else if (document.layers||document.getElementById){

			if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
			
				top.window.outerHeight = screen.availHeight;
				top.window.outerWidth = screen.availWidth;
			}
		}
	}
	
function isEmailAddr(elem){
		
			var str = elem.value;
			var re = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/;
			
			if (!str.match(re)){
				return false;
				} else {
				return true;
				}
		
		}
		
function validateNewsLetterForm(theForm){
		
			//alert("Validating!");
			
			if (isEmailAddr(theForm.receivingAddress) == false && theForm.receivingAddress.value!=""){
				//alert("FALSE!, form value = "+theForm.emailAddress.value);
				alert("Please enter a valid email address\n\r to receive our newsletter"); 
				return false;
			} else {
				//alert("TRUE!, form value = "+theForm.emailAddress.value);
				theForm.subject.value = "Send Newsletter to " + theForm.receivingAddress.value;
				return true;
			}
		
}
	
//-->