function _noselect()
	{
		return event.srcElement.id=='mainbody' ? true : false;
	}

d=document; d._rst=[];
function preload_img(){ var a=preload_img.arguments; if (!d._pr) {d._pr=[]}; var t=d._pr.length, a=preload_img.arguments;  for (i=0;i<a.length;i+=2) {d._pr[t+i+1]=new Image;d._pr[t+i+1].src=a[i];d._pr[t+i]=a[i+1]}}
function swap_img(obj, name){var i=0;if (!d._rst) d._rst=[];while (i<d._pr.length&&(d._pr[i]!=name)) i+=2;if (d._pr[i]==name){d._rst[i]=name;d._rst[i+1]=new Image;d._rst[i+1].src=d._pr[i+1].src;d._pr[i+1].src=obj.src;obj.src=d._rst[i+1].src}}

function change(o1, o2)
	{
		var st=o2.style, v = o1.value;
		switch(o1.tagName)
			{
				case 'SELECT':
						st.visibility=((o1.selectedIndex==0)?'visible':'hidden')
					break;
				case 'TEXTAREA':
						st.visibility=((v==''||v==' ')?'visible':'hidden')
					break;
				default:
					switch(o1.type)
						{
							case 'checkbox':
								break;
							case 'radio':
								break;
							default:
								st.visibility=((v==''||v==' ')?'visible':'hidden')
						}
			}
		st=v=undefined;
	}

function numchn(o){var K=event.keyCode;if(K==13){o.blur();return true}if(K==39||K==37||K==8||K==9||K==46||K>47&&K<58||K>95&&K<106)return true;return false}

function cartOpen(sUrl)
	{
		cart_win=open(sUrl, 'cart_win', 'channelmode=0,directories=0,fullscreen=0, location=0, menubar=0, resizable=1, scrollbars=1, status=0, width=510, height=300', true);
		cart_win.focus();
	}

function fullview(url, width, height)
	{
		width+=46;
		height+=80;
		w=window.screen.availWidth;
		h=window.screen.availHeight;
		if (width >= w-40)
			width=w-60;
		if (height >= h-40)
			height=h-60;

		x=open(url, 'fullview', 'channelmode=no, directories=no, fullscreen=no, location=no, menubar=no, resizable=yes, scrollbars=yes, status =no, toolbar=no, width='+(width)+', height='+(height));
		if (width && height)
			x.resizeTo(width, height);
		x.focus();
	}

function cat_over(obj, f)
	{
		if (f)
			{
				obj.style.color="#ffffff";
				obj.style.backgroundColor="#445975";
				if (obj.previousSibling)
					obj.previousSibling.src='/i/bookmark_.png';
			}
		else
			{
				obj.style.color="#cee2da";
				obj.style.backgroundColor="#475d7a";
				if (obj.previousSibling)
					obj.previousSibling.src='/i/bookmark2.png';
			}
	}
