var	P_HOME=1,
	P_ABOUT=2,
	P_DOWNLOADS=3,
	P_PURCHASE=4,
	P_CONTACTS=5,
	P_FAQ=6,
	P_FORUM=7,
	P_OTHER=8;

function DW(a) {document.write(a);}
function TR_() {DW('<TR>');}
function TD_() {DW('<TD>');}
function _TR() {DW('</TR>');}
function _TD() {DW('</TD>');}

function BlendPart(Color1,Color2,Step) {
 Color=Math.round(Color1+(Color2-Color1)/255*Step);
 S=Color.toString(16);
 while (S.length<2) S='0'+S;
 return S;
}

function Blend(Color1,Color2,Step) {
 if (Step==0) return Color1;
 if (Step==255) return Color2;
 return (BlendPart(parseInt('0x'+Color1.substr(0,2)),parseInt('0x'+Color2.substr(0,2)),Step)+
	BlendPart(parseInt('0x'+Color1.substr(2,2)),parseInt('0x'+Color2.substr(2,2)),Step)+
	BlendPart(parseInt('0x'+Color1.substr(4,2)),parseInt('0x'+Color2.substr(4,2)),Step));
}
