/*
 * Copyright (c) 2008 AKEEBO CORPORATION. All Rights Reserved.
 *
 * This software is the confidential and proprietary information ("Confidential Information") 
 * of AKEEBO CORPORATION ("AKEEBO CORP"). Any disclosure or use of such Confidential Information other 
 * than in accordance with the terms of the license under which it was received is strictly 
 * prohibited.
 *
 * AKEEBO CORP MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF 
 * THE SOFTWARE, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
 * OR NON-INFRINGEMENT. AKEEBO CORP SHALL NOT BE LIABLE FOR ANY DAMAGES
 * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
 * THIS SOFTWARE OR ITS DERIVATIVES.
 */

//var toHideFlag = 1;
//var intervalVal = 0;
//var count = 0;
//var callbackFlag = 1;
//var callback1Flag = 1;
/*
function loadingBefore(id) {
	getMessages(id);
}
*/
/*
function loadingMain1(id) {
//	forInitialFailure(id);
	var sURL = [
//			"./view/online/script/tab.js",
			"./view/online/script/live.js",
			"./view/online/script/login.js"
//			"./view/online/script/layout.js"
	];
	var transactionObj = YAHOO.util.Get.script(sURL, { 
		onSuccess: function() {
			
			loadingMain(id);
			
//			window.setTimeout("loadingMain(" + id + ");", 2000);
		},   
		onFailure: function() {
			failureInfoMsg("Network Failure!");
		},   
		scope    : this  
	});
	return false;
}
*/
//var Event = YAHOO.util.Event,
//	Dom   = YAHOO.util.Dom;
//var wait = "";
//var searchActive = false;

/*
function loadingMain(id) {
 	if(id != null || id != "") {
		var idMain = id;
		var id1 = id.substring(5, id.length);
		id = id.substring(0, 5);
		if(id == "login") {
			loginAuto(id1);
							
		} else {
//			document.getElementById("startDiv").innerHTML = "";
// 			document.getElementById("loadImag").style.visibility = "visible";
//			document.getElementById("loadImag").innerHTML = '<table><tr><td style="width:200px;padding-left:124px;padding-right:7px;padding-top:20px;font-size:14px;"><b>'+ (records != null ? records.BALOON_LOGIN : "" ) +'</b></td></tr><tr><td style="padding-left:120px;padding-right:0px;font-size:14px;width:200px;"><b>'+ (records != null ? records.BALOON_WAIT : "" ) +'...</b></td></tr></table>';
//			Dom.setStyle('startDiv', 'padding-left', 0 + 'px');
//			Dom.setStyle('startDiv', 'padding-top', 0 + 'px');
		}
	}
//	return;
	//YAHOO.util.Get.script("./yui/script/cookie-beta-min.js");
	
//	YAHOO.util.Get.script("./view/online/script/ajaxCom.js");
	
//	YAHOO.util.Get.script("./view/online/script/layout.js");
	//commented by harish (16/march/09)
//	forNetworkFailure(id);
//	YAHOO.util.Get.css("./view/sms/yui/css/container.css");
//	YAHOO.util.Get.css("./view/sms/yui/css/datatable.css");
//	YAHOO.util.Get.css("./view/sms/yui/css/datatable-skin.css");
	var sURL = [
//				"./view/online/script/layout.js",
				"./view/online/script/layout.js",
				"./view/sms/yui/script/animation-min.js",
	//			"./view/online/script/tab.js",
//				"./view/online/script/prototype-min.js",
	//			"./view/online/script/yuiPanel.js",
				"./view/sms/yui/script/element-beta-min.js",
				
//				"./view/sms/yui/script/container-min.js",


//				"./view/sms/yui/script/utilities.js",
//				 "./view/sms/script/datatable-beta.js",
//				"http://yui.yahooapis.com/2.7.0/build/datatable/datatable-min.js",
//				"./view/online/yui/script/datatable-beta-min.js",
//				"./view/online/yui/script/animation-min.js",
//				"./view/online/script/akeeboPanel-min.js",
//				"./view/online/script/akeeboPanel.js",
//				"./view/online/script/js-core-min.js",
//				"./view/online/script/dropdown-min.js",
//				"./view/online/script/alert-min.js",
	//			"./view/online/yui/script/calendar-min.js",
	//			"./view/online/script/validation.js",
				"./view/online/script/yuiPanel.js",
				"./view/online/script/alert.js",
				"./view/online/script/md5.js",
				"./view/online/script/sha1.js",
//				"./view/online/script/widgets.js",
//				"./view/online/script/scroll.js"
	//			"./view/online/script/login.js",
	//			"./view/online/script/alert.js",
	//			"./view/online/script/weather.js",
	//			"./view/online/script/dropdown.js",
	//			"./view/online/script/email.js",
	//			"./view/online/script/widgets.js",
	//			"./view/online/script/js-core-min.js"
		];
		
	var transactionObj = YAHOO.util.Get.script(sURL, { 
		onSuccess: function() {
			//alert("onsuccess!!!");
			clearInterval(intervalVal);
			
			var username = getCookie("username");
			var password = getCookie("password");
			var customerId = getCookie("customerId");
			
//			var username = YAHOO.util.Cookie.get("username");
//			var password = YAHOO.util.Cookie.get("password");
//			var customerId = YAHOO.util.Cookie.get("customerId");
			if(username != null && username != '' && password != null && password != '') {
				loginRemember(username, password, id);
			} else {
				loadContent("main", id, customerId);
			}
		},   
		onFailure: function() {
			failureInfoMsg("Network Failure!");
		},   
		scope    : this  
	});
	return false;
}
*/
/*
 * It loads the content with the help of paint method.
 */
/* 
function loadContent(page, id, customerId) {
	//var serverUrl="./view/online/jsp/" + page + ".jsp";
	var serverUrl="/view/online/jsp/"+ page +".jsp";
	createRequest();	
	if(ajaxRequest == null)
		return;
	var params = "customerId=" + customerId;
	ajaxRequest.onreadystatechange = function() {
	//	document.getElementById("holder").innerHTML=ajaxRequest.responseText;
		paintContent(page, id, customerId);
		//resetPasswordPage();
	};
//	alert(customerId);
	ajaxRequest.open("POST", serverUrl, true);
	ajaxRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	ajaxRequest.send(params);
	return false;
}
*/
/*
 * It paints to the browser whatever content is passed to this method.
 */
/* 
function paintContent(page, id, customerId) {
	if(ajaxRequest.readyState == 4) {
		if(ajaxRequest.status == 0 || ajaxRequest.status == 12029 || ajaxRequest.status == 500 ) {
		  	failureInfoMsg("Network Failure!");
		}
		try{
			if(ajaxRequest.status == 200){
				if (document.getElementById("failureInfoPanel")) {
					document.getElementById("failureInfoPanel").style.display = "none";
				}
				if(document.getElementById("holder")) {
//					alert(ajaxRequest.responseText);
					document.getElementById("holder").innerHTML = ajaxRequest.responseText;
					layoutOnload(id);
					if(id != null && id != '') {
						var idMain = id;
						var id1 = id.substring(5, id.length);
						id = id.substring(0, 5);
						if(id == "login") {
							loginAuto(id1);
						} else {
							resetPasswordPage(idMain);	
						}
					}
//					var username = YAHOO.util.Cookie.get("username");
//					var password = YAHOO.util.Cookie.get("password");
//					var cusID = YAHOO.util.Cookie.get('customerId');
					
					var username = getCookie("username");
					var password = getCookie("password");
					var cusID = getCookie("customerId");
					
					if(username != null && username != '' && password != null && password != '')
						layoutOnload();	
				} else {
					paintContent(page, id, customerId);
				}
			}
		}catch(x){
			failureInfoMsg("Network Failure!");
		}
		
	} 
	return false;
}
*/
/*
 * Whenever is the browser refreshing or shutting down the browser
 * is done, this method is called and updates the login status with 
 * the help of update method.
 */
 /*
function handleClose() {
//	var customerId =  YAHOO.util.Cookie.get('customerId');
	var customerId = getCookie("customerId");
	
		if (customerId) {
			updateUserStatus (0);
		}
}
*/
/*
 * This method is used to update the method of customer 
 * whenever it is called with the customer status as parameter.
 */
 /*
function updateUserStatus (usrStatus) {
//	cameraDetection();
//	var customerId =  YAHOO.util.Cookie.get('customerId');
	var customerId = getCookie("customerId");
	
	if (customerId == null){
		usrStatus = 0;
	}
	var params = "method=updateLoginStatus&usrStatus=" + usrStatus + "&customerId="+ customerId + "&detectWebcam="+ detectWebcam; 
	var callbacks = { 
			    success : function (o) {
		        try {
//		        	alert(detectWebcam);
		        } catch (x) {
		    		return; 
	      		}   
			}, 
			ailure: function(o) {
				failureInfoMsg("Network Failure!");
	    	}
		};			
	YAHOO.util.Connect.asyncRequest('POST',"/OnlineAdmin", callbacks, params);
	return false;
}
*/
/*
 * This method is used to get FMS server ip and port
 */
var fmsServerIp = "";
var fmsServerPort = "";
function getFmsServer() {
//	alert(2);
	var params = "method=getFmsServer"; 
	var callbacks = { 
			    success : function (o) {
			    	
		        try {
//		        	alert("o.responseText = " + o.responseText);
		        	var response = YAHOO.lang.JSON.parse(o.responseText);
//		        	alert("response = " + response);
		        	if(response.length > 0) {
		        		fmsServerIp = response[0].fmsIp;
		        		fmsServerPort = response[0].fmsPort;
//		        		alert("fmsServerIp = " + fmsServerIp + ", fmsServerPort = " + fmsServerPort);
//		        		for(var i = 0; i < response.length; i++) {
//		        			fmsServerIp[i] = response[i].displayName;
//		        			clId[i] = response[i].customerId;
////		        			alert(clName[0]+ ", " + clName[1]);
//		        		}
		        	}
		        } catch (x) {
		    		return; 
	      		}   
			}, 
			failure: function(o) {
				failureInfoMsg("Network Failure!");
	    	}
		};			
	YAHOO.util.Connect.asyncRequest('POST',"/OnlineAdmin", callbacks, params);
	return false;
}

var id1;
/*
 * This method is used to moniter the network status when the files are loading 
 * to the browser.
 */
function forNetworkFailure(id) {
	id1 = id;
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/script/layout.js", callback, null);
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/script/ajaxCom.js", callback, null);
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/css/alert.css", callback, null);
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/yui/css/fonts-min.css", callback, null);
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/yui/css/datatable.css", callback, null);
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/yui/css/datatable-skin.css", callback, null);
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/yui/css/tabview.css", callback, null);
	
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/script/tab.js", callback, null);
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/script/prototype.js", callback, null);	
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/script/dropdown.js", callback, null);	
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/script/yuiPanel.js", callback, null);	
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/yui/script/datasource-beta-min.js", callback, null);	
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/yui/script/element-beta-min.js", callback, null);	
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/yui/script/datatable-beta-min.js", callback, null);	
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/yui/script/json-min.js", callback, null);	
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/yui/script/tabview-min.js", callback, null);	
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/script/validation.js", callback, null);	
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/script/md5.js", callback, null);	
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/script/sha1.js", callback, null);	
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/script/login.js", callback, null);	
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/script/alert.js", callback, null);
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/script/weather.js", callback, null);	
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/script/js-core-min.js", callback, null);
}

/*
 * This is the callback function of the network failure method. 
 * To check the status and if failed appropriate message is raised.
 */
var callback = { 
	success: function(o) {
		clearInterval(intervalVal);
		/*success handler code*/
		count++;
		//alert("success handler code count = " + count);
	},failure: function(o) {
		count++;
//		wait.hide();
		//alert("success handler code count = " + count);
		/*failure handler code*/
		if (callbackFlag == 1) {
			alert("Network Failure! Please check your network connection.");
			toHideFlag++;
			//alert("toHideFlag** =  " + toHideFlag);
			intervalVal = setInterval ("loadingBefore(id1)", 10000);
			callbackFlag++;
		}
		return false;
	},argument: {}
}

function forInitialFailure(id) {
	id1 = id;
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/yui/script/cookie-beta-min.js", callback1, null);
	YAHOO.util.Connect.asyncRequest('GET', "./view/online/yui/script/container-min.js", callback1, null);
}

var callback1 = {
	success: function(o) {
		clearInterval ( intervalVal );
	},failure: function(o) {
		count++;
		document.getElementById("startDiv").style.visibility = "hidden";
		if (callback1Flag == 1) {
			failureInfoMsg("Network Failure!");
			toHideFlag++;
			intervalVal = setInterval ( "loadingBefore(id1)", 10000);
			callback1Flag++;
		}
		return false;
	},argument: {}
}
/*
function forTv() {
//	window.open('http://www.akeebo.tv');
	window.location = 'http://www.akeebo.tv';
}
*/
/*
function forMobi() {
//	window.open('http://www.akeebo.mobi');
	window.location = 'http://www.akeebo.mobi';
}
*/
/*
function forSms() {
//	window.open('http://sms.akeebo.com');
	window.location = 'http://sms.akeebo.com';
}
*/
function forRnD() {
	window.open('http://labs.akeebo.com');
	window.location = 'http://labs.akeebo.com';
}
/*
function forCom() {
	window.location = 'http://online.akeebo.com';
}
*/
/*
 * This function is used to get the current time.
 */
/* 
function getCurrentTime() {
	var nowTime = new Date();

	var nDay = nowTime.getDay();
	if (nDay==0)
		nDay="Sun";
	else if (nDay==1)
		nDay="Mon";
	else if (nDay==2)
		nDay="Tue";
	else if (nDay==3)
		nDay="Wed";
	else if (nDay==4)
		nDay="Thu";
	else if (nDay==5)
		nDay="Fri";
	else if (nDay==6)
		nDay="Sat";
	var nMonth = nowTime.getMonth();
	var nDate = nowTime.getDate(); 
	var nHours = nowTime.getHours();
	var nMinutes = nowTime.getMinutes();
	var nSecond = nowTime.getSeconds();
	nSecond = nSecond < 10 ? '0'+nSecond : nSecond;
	nDate = nDate < 10 ? '0'+nDate : nDate; 
// hr = nHours;
	var hr = (nHours > 12) ? nHours - 12 : nHours;         
	hr = hr == 0 ? '12' : hr;
	var p = new String(":");
//	document.getElementById("time").innerHTML = hr + ((nMinutes < 10) ? ":0" : ":") + nMinutes + ":"+ nSecond;
	var dayNdate = nDay + ", " + getMonthText(nMonth) + " " + nDate;
	document.getElementById("sTrayTime").innerHTML = dayNdate + "&nbsp;|&nbsp;"+hr + ((nMinutes < 10) ? ":0" : ":") + nMinutes + ":"+ nSecond + ((nHours >= 12) ? " PM" : " AM");  
}
*/
/*
function getMonthText(index) {
 //alert(index);
	return index == 0 ? "Jan" : (index == 1 ? "Feb" : (index == 2 ? "Mar" : (index == 3 ? "Apr" : (index == 4 ? "May" : (index == 5 ? "June" : (index == 6 ? "Jul" : (index == 7 ? "Aug" : (index == 8 ? "Sep" : (index == 9 ? "Oct" : (index == 10 ? "Nov" : (index == 11 ? "Dec" : "")))))))))));  
}
*/
function forServices() {
//	window.open("http://services.akeebo.com");
	window.location = 'http://marketplace.akeebo.com';
	return false;
}

function management() {
//	window.open("http://management.akeebo.com");
	window.location = 'http://management.akeebo.com';
	return false;
}
/*
function forAnalytics() {
//	window.open("http://analytics.akeebo.com");
	window.location = 'http://analytics.akeebo.com';
	return false;
}
*/
/*
function forAds() {
//	window.open("http://ads.akeebo.com");
	window.location = 'http://ads.akeebo.com';
	return false;
}
*/
function forAwt() {
//	window.open("http://awt.akeebo.com");
	window.location = 'http://awt.akeebo.com';
	return false;
}

function forSeo() {
//	window.open("http://www.akeeboseo.com");
	window.location = 'http://www.akeeboseo.com';
	return false;
}

function forDtv() {
//	window.open("http://dtv.akeebo.com");
	window.location = 'http://dtv.akeebo.com';
	return false;
}

function forIptv() {
//	window.open("http://iptv.akeebo.com");
	window.location = 'http://iptv.akeebo.com';
	return false;
}

function forWidgets() {
//	window.open("http://widgets.akeebo.com");
	window.location = 'http://widgets.akeebo.com';
	return false;
}

function forCustom() {
//	window.open("http://custom.akeebo.com");
	window.location = 'http://custom.akeebo.com';
	return false;
}

function forIntegration() {
//	window.open("http://integration.akeebo.com");
	window.location = 'http://integration.akeebo.com';
	return false;
}

function forInvestments() {
//	window.open("http://investments.akeebo.com");
	window.location = 'http://investments.akeebo.com';
	return false;
}

function forPayment() {
//	window.open("http://payment.akeebo.com");
	window.location = 'http://payment.akeebo.com';
	return false;
}

function forSignage() {
//	window.open("http://signage.akeebo.com");
	window.location = 'http://signage.akeebo.com';
	return false;
}




/*
function getFullCurrentTime() {
//	return; // Harish
	var nowTime = new Date();

	var nDay = nowTime.getDay();
	if (nDay==0)
		nDay="Sunday";
	else if (nDay==1)
		nDay="Monday";
	else if (nDay==2)
		nDay="Tuesday";
	else if (nDay==3)
		nDay="Wednesday";
	else if (nDay==4)
		nDay="Thursday";
	else if (nDay==5)
		nDay="Friday";
	else if (nDay==6)
		nDay="Saturday";
	var nMonth = nowTime.getMonth();
	var nDate = nowTime.getDate(); 
	var nHours = nowTime.getHours();
	var nMinutes = nowTime.getMinutes();
	var nYear = nowTime.getFullYear();
	var nSecond = nowTime.getSeconds();
	
	nDate = nDate < 10 ? '0'+nDate : nDate; 
// hr = nHours;
	var hr = (nHours > 12) ? nHours - 12 : nHours;         
	hr = hr == 0 ? '12' : hr;
	var p = new String(":");

	var dayNdate = nDay + ", " + getFullMonthText(nMonth) + " " + nDate;
	document.getElementById("year").innerHTML = getFullMonthText(nMonth) + "&nbsp;" + nYear;
	document.getElementById("dateCurrent").innerHTML = nDate;
	document.getElementById("day").innerHTML = nDay;
	document.getElementById("sTrayTime").innerHTML = dayNdate + "&nbsp;|&nbsp;"+hr + ((nMinutes < 10) ? ":0" : ":") + nMinutes + ((nHours >= 12) ? " PM" : " AM");  
}

function getFullMonthText(index) {
 //alert(index);
	return index == 0 ? "January" : (index == 1 ? "February" : (index == 2 ? "March" : (index == 3 ? "April" : (index == 4 ? "May" : (index == 5 ? "June" : (index == 6 ? "July" : (index == 7 ? "August" : (index == 8 ? "September" : (index == 9 ? "October" : (index == 10 ? "November" : (index == 11 ? "December" : "")))))))))));  
}

function getWeather() {
	return; // By Harish
	document.getElementById("imgWidget").innerHTML = imgURL;
	document.getElementById("temperature").innerHTML = temp;
	document.getElementById("condition").innerHTML = c1;
	document.getElementById("city").innerHTML = city;
	return false;		
}

*/

//var countLeft = 0;
//var countRight = 0;
//
//var downFlag = 1;
//
//function toScrollLeft() {
////	alert(YAHOO.util.Dom.get('resume'));
//	
//	var downVal = YAHOO.util.Dom.get('linkMove').scrollLeft + 100;
//	alert(downVal);
//	countLeft = downVal;
//	var attributes = {
//	      scroll: { to: [YAHOO.util.Dom.get('linkMove').scrollTop, 23] }
//	};
//	var anim = new YAHOO.util.Scroll('linkMove', attributes);
//	anim.animate();
//	anim.onComplete.subscribe(function() { 
//		
//	}); 
//}
//
//function toScrollRight() {
//	alert(YAHOO.util.Dom.get('linkMove').scrollLeft);
//	if (YAHOO.util.Dom.get('linkMove').scrollLeft <= 0 || YAHOO.util.Dom.get('linkMove').scrollLeft < 100) {
//		countRight = -100;
//	} else {
//		countRight = YAHOO.util.Dom.get('linkMove').scrollLeft - 100;
//		countLeft = YAHOO.util.Dom.get('linkMove').scrollLeft;
//	}
////	alert("hi = " + YAHOO.util.Dom.get('content').scrollTop);
//	//alert(YAHOO.util.Dom.get('content').scrollLeft);
//	//alert("countUp = " + countUp + ", countDown = " + countDown);
//	var objDiv = YAHOO.util.Dom.get('linkMove').scrollHeight;
//	
//	var attributes = {
//	      scroll: { to: [YAHOO.util.Dom.get('linkMove').scrollTop, countRight] }
//	};
//	
//	var anim = new YAHOO.util.Scroll('linkMove', attributes);
//	
//	anim.animate();
//	//YAHOO.util.Event.on('demo-run', 'click', anim.animate, anim, true);
//}



var navigateIndex = 0;
function moveHeader(index) {
	if(index == 1) {
		++navigateIndex;
		navigateIndex = (navigateIndex > 8 ? 0 : navigateIndex);
	} else if(index == 2) {
		--navigateIndex;
		navigateIndex = (navigateIndex < 0 ? 8 : navigateIndex);	
	}
	printNavigateValue();
}

function returnIndexValue(index) {
	var returnString = "";
	switch(index) {
		case 0:
			returnString = ".com";
			break;
		case 1:
			returnString = ".tv";
			break;
		case 2:
			returnString = ".mobi";
			break;
		case 3:
			returnString = "sms";
			break;
		case 4:
			returnString = "labs";
			break;
		case 5:
			returnString = "services";
			break;
		case 6:
			returnString = "blog";
			break;
		case 7:
			returnString = "ads";
			break;
		case 8:
			returnString = "analytics";
			break;
	}
	return returnString;
}

function printNavigateValue() {
	for(var i = 0; i < 5; i++) {
		var curIndex  = i + navigateIndex;
		curIndex = (curIndex > 8 ? curIndex - 9 : curIndex);
		document.getElementById("move" + i).innerHTML = returnIndexValue(curIndex);
	}
} 

function callLinkPage(index) {
	var curIndex = navigateIndex+index; 
	curIndex = (curIndex > 8 ? curIndex - 9 : curIndex);
	switch(curIndex) {
		case 0:
			forCom();
			break;
		case 1:
			forTv();
			break;
		case 2:
			forMobi();
			break;
		case 3:
			forSms();
			break;
		case 4:
			forRnD();
			break;
		case 5:
		 	forServices();
			break;
		case 6:
			bloger();
			break;
		case 7:
			forAds();
			break;
		case 8:
			forAnalytics();
			break;
	}
}