
/************************************************************/
var isCookie = false;
var cookieList = "";

function isCookieImVerExist(){
	cookieList = document.cookie.toLowerCase();
	if(cookieList.indexOf("imver") != -1){
		isCookie = true;
	}
	return isCookie;
}
/************************************************************/



/************************************************************/
var cookieItem = "";
var cookieValueImVer = 0;

function getImVer(){
	//alert("isCookieImVerExist() " + isCookieImVerExist());
	if(isCookieImVerExist()){
		for(i=0; i<cookieList.split(";").length; i++){
			cookieItem = cookieList.split(";")[i];
			if(cookieItem.indexOf('imver') != -1){
				break;
			}
			
		}
		if(cookieItem.indexOf("=") != -1){
			cookieValueImVer = cookieItem.split("=")[1];
			
		}
	}
	else{
		cookieValueImVer = 0;
	}

	
	return cookieValueImVer;
}
/************************************************************/



/************************************************************/
var textInstallion = "";

function setInstallText(pageName){
	//alert(getImVer());
	switch (pageName)
	{
		case "aol_account_lower_than_1482.html":
		/*
		Article Details
		ArticleId: 177
		Path: english/help/im/send_receive/aol_account_lower_than_1482.html
		*/
		if(getImVer == 0 || getImVer() <= 3001482){
			textInstallion = '<a href="http://www.incredimail.com/down_lang.asp" target="_blank" title="Download the latest IncrediMail version">click here</a>, download the latest IncrediMail version, then';
		}
			break;

		case "add_backgroundSound_lower_than_1107.html":
		/*
		Article Details
		ArticleId: 31
		Path: /english/help/im/add_backgroundSound_lower_than_1107.html
		*/	
		if(getImVer == 0 || getImVer() <= 2001107){
			textInstallion = '<a href="http://www.incredimail.com/down_lang.asp" target="_blank">click here</a>, download and install the latest IncrediMail version and ';
		}
			break;	
			
		case "block_images_app_lower_than_1284.html":
		/*
		Article Details
		ArticleId: 151
		Path: /english/help/im/block_images_app_lower_than_1284.html.html	
		*/
		if(getImVer == 0 || getImVer() <= 2501284){
			textInstallion = '<a href="http://www.incredimail.com/down_lang.asp" target="_blank" title="Download IncrediMail">click here</a>, download and install the latest IncrediMail version and ';
		}
			break;	
	
		case "gmail_lower_than_1787.html":
		/*
		Article Details
		ArticleId: 185
		Path: english/help/im/send_receive/gmail_lower_than_1787.html
		*/
		if(getImVer == 0 || getImVer() <= 3501787){
			textInstallion = '<a href="http://www.incredimail.com/down_lang.asp" target="_blank" title="Click here to download IncrediMail">click here</a> to upgrade to the latest IncrediMail version, then ';
		}
			break;

		case "import_data_lower_than_1482.html":
		/*
		Article Details
		ArticleId: 2
		Path: english/help/im/import_data_lower_than_1482.html
		*/
		if(getImVer == 0 || getImVer() <= 3001482){
			textInstallion = '<a href="http://www.incredimail.com/down_lang.asp" target="_blank" title="Download IncrediMail">click here</a>, download and install the latest version of IncrediMail and ';
		}
			break;

		case "signature_lower_than_1313.html":
		/*
		Article Details
		ArticleId: 33
		Path: english/help/im/signature_lower_than_1313.html
		*/
		if(getImVer == 0 || getImVer() <= 2501313){
			textInstallion = 'To use this feature, please <a href="http://www.incredimail.com/down_lang.asp" target="_blank" title="Download IncrediMail">click here</a>, download and install the latest IncrediMail version.<br><br>';
		}
			break;

		case "transfer_incredimail_lower_than_1107.html":
		/*
		Article Details
		ArticleId: 4
		Path: english/help/im/transfer_incredimail_lower_than_1107.html
		*/
		if(getImVer == 0 || getImVer() <= 2001107){
			textInstallion = 'Please <a href="http://www.incredimail.com/down_lang.asp" target="_blank" title="Download IncrediMail">click here</a>, download and install the latest IncrediMail version so that you may be able to enjoy this feauture.';
		}
			break;

			case "check_spelling.html":
		/*
		Article Details
		ArticleId: 36
		Path: english/help/im/check_spelling.html	
		*/
		if(getImVer == 0 || getImVer() <= 5002154){
			textInstallion = '<a href="http://www.incredimail.com/down_lang.asp" target="_blank" title="Download the latest IncrediMail version">click here</a>, download the latest IncrediMail version, then';
		}
			break;

			case "anim_stylbox_lower_than_ver_5.0.html":
		/*
		Article Details
		ArticleId: 149
		Path: english/help/im/anim_stylbox_lower_than_ver_5.0.html
		*/
		if(getImVer == 0 || getImVer() <= 5000000){
			textInstallion = '<li>In the IncrediMail main window, click the <span class="userAction">"Tools"</span> menu and select <span class="userAction">"Options..."</span>. Select the <span class="userAction">"Advanced"</span> tab and check the <span class="userSelection">"Enable addition of external animations to the Style Box"</span> checkbox.<br><br></li><P class="articleImage"><IMG src="http://www2.incredimail.com/english/images/help_center_new/anim_stylbox_0.gif" border="0" class="borderedImage" alt=""></P>';
		}
			break;
		
			case "add_animation_lower_than_ver_5.0.html":
		/*
		Article Details
		ArticleId: 147
		Path: english/help/im/add_animation_lower_than_ver_5.0.html
		*/
		if(getImVer == 0 || getImVer() <= 5000000){
			textInstallion = '<li>In the IncrediMail main window, click the <span class="userAction">"Tools"</span> menu and select <span class="userAction">"Options..."</span>. Select the <span class="userAction">"Advanced"</span> tab and check the <span class="userSelection">"Enable addition of external animations to the Style Box"</span> checkbox.<br><br></li><P class="articleImage"><IMG src="http://www2.incredimail.com/english/images/help_center_new/anim_stylbox_0.gif" border="0" class="borderedImage" alt=""></P>';
		}
			break;
	
	}

	//alert(textInstallion);
	document.write(textInstallion);
}
/************************************************************/