function getCatId() {
	// For Testing
	testURL1 = 'http://kstp.com/';
	testURL1 = testURL1.toLowerCase();
	testURL2 = 'http://kstp.com/article/118/';
	testURL2 = testURL2.toLowerCase();
	testURL3 = 'http://kstp.com/article/stories/S1450602.shtml?cat=154';
	testURL3 = testURL3.toLowerCase();
	testURL4 = 'http://kstp.com/article/stories/S1450602.shtml';
	testURL4 = testURL4.toLowerCase();
	
	urlString = document.URL;
	
	locationOfProblemString = urlString.search(/#/);
	
	if (locationOfProblemString != -1) {
		urlString = urlString.split('#')[0];	
	}
	
	// For Testing
	// urlString = testURL3;
	//alert(urlString);
	
	locationOfString1 = urlString.search(/article/);
	locationOfString2 = urlString.search(/cat=/);
	
	// Assign a default value to catid
	catid = 16353;
	
	if (locationOfString1 != -1) {
		stringSplit = urlString.split('article/')[1];
		// alert(stringSplit);
		stringSplit = stringSplit.split('/')[0];
		// alert(stringSplit);
		catid = stringSplit;
	}
	if (locationOfString2 != -1) {
		if (urlString.split('cat=').length > 1) {
			stringSplit = urlString.split('cat=')[1];
			// alert(stringSplit);
			
			locationOfString3 = stringSplit.search(/&/);
			
			if (locationOfString3 != -1) {
				stringSplit = stringSplit.split('&')[0];
				// alert(stringSplit);
			}
			
			catid = stringSplit;
		}
	}
	return catid;
}

catid = getCatId();
// alert(catid);
syndTags = 'default';
syndAutoPlay = 1;
syndAutoNext = 1;
syndWindows = 2;
syndPageCount = 4;
var syndWidth = 610;
var syndHeight = 250;
var syndWpID = 8736;
var syndWMode = 'Opaque';
var syndShowTitle = 0;
var syndAllowfullscreen = 'true';
var syndShowLogo = 0;
var syndAspectRatio = '16x9';
var syndBGColor = '#C2D2D2';

var doc = document.URL;
