	
	
	/* ******************************************* */   
	/* PRIMARY NAVIGATION SCRIPTS                  */                 
	/* ******************************************* */
	
	function pNavAnim(id,newClass){
		document.getElementById(id).className=newClass;
	}
	
	function goURL(url,target)
	{
		if(target == '_self'){
			window.location = url;
		}
		else if(target == '_blank'){
			window.open(url,target)
		}
		else if(target == '_parent'){
			top.location = url;
		}
		else if(target == '_top'){
			top.location = url;
		}
		else{
			window.location = url;
		}
	}
	
	/* ******************************************* */   
	/* ELEMENT OPENING SCRIPTS                     */                 
	/* ******************************************* */

	function art_print(artid)
	{
		w = 480
		h = 500
		features="scrollbars=yes"
		var myLeft = (screen.width-w)/2;
		var myTop = (screen.height-h)/2;
		features+=(features!='')?',':'';
		features+=',left='+myLeft+',top='+myTop;
		window.open("print_art.asp?ArtID="+artid,"PrintPage",features+((features!='')?',':'')+'width='+w+',height='+h);
	}
	
	function art_enquiry(artid)
	{
		w = 450
		h = 430
		features="scrollbars=yes"
		var myLeft = (screen.width-w)/2;
		var myTop = (screen.height-h)/2;
		features+=(features!='')?',':'';
		features+=',left='+myLeft+',top='+myTop;
		window.open("art_enquiry.asp?ArtID="+artid,"ArtEnquire",features+((features!='')?',':'')+'width='+w+',height='+h);
	}
	
	function cat_print(CatID)
	{
		w = 350
		h = 380
		features="scrollbars=yes"
		var myLeft = (screen.width-w)/2;
		var myTop = (screen.height-h)/2;
		features+=(features!='')?',':'';
		features+=',left='+myLeft+',top='+myTop;
		window.open("print_cat.asp?CatID="+CatID,"PrintPage",features+((features!='')?',':'')+'width='+w+',height='+h);
	}	
	
	function site_print(SiteID)
	{
		w = 350
		h = 380
		features="scrollbars=yes"
		var myLeft = (screen.width-w)/2;
		var myTop = (screen.height-h)/2;
		features+=(features!='')?',':'';
		features+=',left='+myLeft+',top='+myTop;
		window.open("print_site.asp?SiteID="+SiteID,"PrintPage",features+((features!='')?',':'')+'width='+w+',height='+h);
	}
	
	function cat_enquiry(CatID)
	{
		w = 450
		h = 430
		features="scrollbars=yes"
		var myLeft = (screen.width-w)/2;
		var myTop = (screen.height-h)/2;
		features+=(features!='')?',':'';
		features+=',left='+myLeft+',top='+myTop;
		window.open("cat_enquiry.asp?CatID="+CatID,"cat_enquiry",features+((features!='')?',':'')+'width='+w+',height='+h);
	}

	function open_legal()
	{
		w = 500
		h = 500
		features="scrollbars=yes"
		var myLeft = (screen.width-w)/2;
		var myTop = (screen.height-h)/2;
		features+=(features!='')?',':'';
		features+=',left='+myLeft+',top='+myTop;
		window.open("Legal.asp","Legal",features+((features!='')?',':'')+'width='+w+',height='+h);
	}

	function open_terms()
	{
		id = 50
		w = 500
		h = 500
		features="scrollbars=yes"
		var myLeft = (screen.width-w)/2;
		var myTop = (screen.height-h)/2;
		features+=(features!='')?',':'';
		features+=',left='+myLeft+',top='+myTop;
		window.open("Terms.asp?id="+id,"Terms",features+((features!='')?',':'')+'width='+w+',height='+h);
	}

	/* ******************************************* */   
	/* MISC FUNCTIONS                              */                 
	/* ******************************************* */
	
	function SendField(field,URL,error)
	{
		var str = document.getElementById(field).value
		if(str == ''){
			alert(error);
		}
		else{
			window.location = URL + "?" + field + "=" + str
		}
	}
	
	
	
	
	
	
	
	
	
	
