var affInterfaceOptions = 'aff=z3w&skin=22&cols=3&rows=4&shop=n3-blue&currency=0&locale=en';

function IncludeAffInterface(options,file){
	if(!file) file = 'interface';
	options = affInterfaceOptions + (options ? '&'+options : '');
	document.write('<SCRIPT type="text/javascript" language="JavaScript" src="http://www.mytemplatestorage.com/codes/'+file+'.php?'+options+'"><'+'/SCRIPT>');
}

function Popup(url){
	window.open(
		url,
		'window',
		'width=600, height=600, resizable=yes, scrollbars=yes, location=no,  toolbar=no, menubar=no, status=no'
	);
}
// Hide "www.mytemplatestorage.com" from status bar
function HideStatus(){
	window.status = document.readyState!="complete" ?
		"Loading..." : window.defaultStatus;
}
document.onreadystatechange = HideStatus;

function DrawCategoryItem(catID,catName){
 document.write(
  bullet +
  '<A href="'+url+'?category='+catID+'" '+
  lnkParams+' target="'+target+'">'+
  catName+'</A><BR>'
 );
}

function DrawCategories() {
 document.write(
  bullet +
  '<A href="'+url+'?category='+catID+'" '+
  lnkParams+' target="'+target+'">3 colors</A><BR>'
 );
	DrawCategoryItem(69,'3 colors');
	DrawCategoryItem(62,'3D style');
	DrawCategoryItem(33,'Agriculture');
	DrawCategoryItem(47,'Animals & Pets');
	DrawCategoryItem(26,'Architecture');
	DrawCategoryItem(40,'Art & Photography');
	DrawCategoryItem(54,'ArtWorks');
	DrawCategoryItem(1,'Beauty');
	DrawCategoryItem(39,'Books');
	DrawCategoryItem(2,'Business');
	DrawCategoryItem(76,'Cafe and Restaurant');
	DrawCategoryItem(11,'Cars');
	DrawCategoryItem(63,'Clean style');
	DrawCategoryItem(22,'Communications');
	DrawCategoryItem(3,'Computers');
	DrawCategoryItem(79,'CSS');
	DrawCategoryItem(35,'Dating');
	DrawCategoryItem(80,'Dynamic Flash');
	DrawCategoryItem(46,'Education');
	DrawCategoryItem(50,'Electronics');
	DrawCategoryItem(9,'Entertainment');
	DrawCategoryItem(25,'Exterior design');
	DrawCategoryItem(7,'Family');
	DrawCategoryItem(49,'Fashion');
	DrawCategoryItem(61,'Fireworks');
	DrawCategoryItem(53,'Flash animated');
	DrawCategoryItem(55,'Flash intro header');
	DrawCategoryItem(68,'Flash Site');
	DrawCategoryItem(36,'Flowers');
	DrawCategoryItem(29,'Food & Drink');
	DrawCategoryItem(64,'Forums');
	DrawCategoryItem(72,'Full package');
	DrawCategoryItem(60,'Full site');
	DrawCategoryItem(67,'Games');
	DrawCategoryItem(48,'Gifts');
	DrawCategoryItem(21,'Hosting');
	DrawCategoryItem(74,'Hotels');
	DrawCategoryItem(16,'Industrial');
	DrawCategoryItem(24,'Interior & Furniture');
	DrawCategoryItem(6,'Internet');
	DrawCategoryItem(51,'Jewelry');
	DrawCategoryItem(57,'Last added');
	DrawCategoryItem(34,'Law');
	DrawCategoryItem(56,'Low budget');
	DrawCategoryItem(18,'Media');
	DrawCategoryItem(10,'Medical');
	DrawCategoryItem(44,'Military');
	DrawCategoryItem(19,'Music');
	DrawCategoryItem(13,'Neutral');
	DrawCategoryItem(77,'Night Club');
	DrawCategoryItem(42,'Online store/shop');
	DrawCategoryItem(66,'Personal pages');
	DrawCategoryItem(71,'PHP-Nuke Themes');
	DrawCategoryItem(65,'Politics');
	DrawCategoryItem(5,'Portal');
	DrawCategoryItem(4,'Real Estate');
	DrawCategoryItem(17,'Religious');
	DrawCategoryItem(45,'Science');
	DrawCategoryItem(41,'Security');
	DrawCategoryItem(32,'Society & Culture');
	DrawCategoryItem(23,'Software');
	DrawCategoryItem(14,'Sport');
	DrawCategoryItem(43,'Transportation');
	DrawCategoryItem(27,'Travel');
	DrawCategoryItem(8,'Web design');
	DrawCategoryItem(75,'Wedding');
	DrawCategoryItem(78,'Zero Downloads');
}