// JScript source code
var most_bgcolor = "ffffff";
//var most_bgcolor1 = "f1f1f1"; 
var most_bgcolor1 = "#f4fd80";
var most_border1 ="#ff630e solid 1px";
var m ="#1c8a05 solid 1px";

function checkday()
{
	var d, day;
	d = new Date();
	day = d.getDay();
	
	switch (day)
	{
		case 1: changeCategory("3","Industry"); break;
		case 2: changeCategory("4","Apparel"); break;
		case 3: changeCategory("1","Textile"); break;
		case 4: changeCategory("6","Fashion"); break;
		case 5: changeCategory("12","Dyes & Chemicals"); break;
		case 6: changeCategory("8","Retail"); break;
		default : changeCategory("1","Textile"); break;
	}
}
function changeCategory(ccode,catname)
{
	try
	{
		
	str = 'link' + ccode
	getPosition(str);
	glideMenu('pointer');
	
	document.getElementById("quickview_categoryname").value = catname;
	
	var curlink = document.getElementById("quickview_morearticlelink");
	
	
	if(ccode == "1")
	{
	curlink.href = ("http://www.fibre2fashion.com/industry-article/textile-industry-articles/");
	curlink.target = "";
	}
	else if(ccode == "2")
	{
	curlink.href = ("http://www.fibre2fashion.com/industry-article/technology-industry-article/");
	curlink.target = "";
	}
	else if(ccode == "3")
	{
	curlink.href = ("http://www.fibre2fashion.com/industry-article/market-research-industry-reports/");
	curlink.target = "";
	}
	else if(ccode == "4")
	{
	curlink.href = ("http://www.fibre2fashion.com/industry-article/free-apparel-industry-article/");
	curlink.target = "";
	}
	else if(ccode == "6")
	{
	curlink.href = ("http://www.fibre2fashion.com/industry-article/business-management-articles-reports/");
	curlink.target = "";
	}
	else if(ccode == "7")
	{
	curlink.href = ("http://www.fibre2fashion.com/industry-article/free-fashion-industry-article/");
	curlink.target = "";
	
	}
	else if(ccode == "8")
	{
	curlink.href = ("http://www.fibre2fashion.com/industry-article/free-retail-industry-article/");
	curlink.target = "";
	}

	else if(ccode == "10")
	{
	curlink.href = ("http://www.fibre2fashion.com/industry-article/leather-footwear-jewellery/");
	}
	else if(ccode == "11")
	{
	curlink.href = ("http://www.fibre2fashion.com/industry-article/computer-software-technology/");
	}
	else if(ccode == "12")
	{
	curlink.href = ("http://www.fibre2fashion.com/industry-article/textile-dyes-chemicals/");
	}
	else if(ccode == "13")
	{
	curlink.href = ("http://www.fibre2fashion.com/industry-article/industrial-apparel-textile-machines/");
	}
	else if(ccode == "14")
	{
	curlink.href = ("http://www.fibre2fashion.com/industry-article/handloom-handicraft/");
	}



		var str, filename, sectioncode, url;
		var xmlHttp = null

		if (typeof window.ActiveXObject != 'undefined' ) 
		{ 
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); 
		} 
		else 
		{ 
			xmlHttp = new XMLHttpRequest(); 
		}
		
		catname = escape(catname);
		
		filename = 'getquickviewarticles.asp';
		var url="/home2010/"+filename+"?ccode="+ccode+"&sid="+Math.random();				
		
		xmlHttp.open("GET", url, false);
		xmlHttp.send(null);

		if (xmlHttp.readyState == 1) 
		{	
			document.getElementById("quickviewarticles").innerHTML="<table width=100% height=100 align=center border=0 cellpadding=0 cellspacing=0 bgcolor='#ffffff'><tr><td align=center><font face=arial color=#1B52AA size=2><b>Please wait...</b></font><br><br><img src='/home2010/images/loading.gif' border=0></td></tr></table>";
		}

		if (xmlHttp.readyState == 4 || xmlHttp.readyState=="complete") 
		{
			document.getElementById("quickviewarticles").innerHTML=xmlHttp.responseText;
		}
		
	}
	catch(e)
	{
		//do nothing
	}
	return false;
}
