/**
 * @author Michael
 */

var iTimerInterval=200;

var timedEventId=0;

var timedLang="";
var timedImg_name=""
var timedPara_id=0;

var timedTabId=0;
var maxId = 9;

function timedParaMouseOver(lang, img_name, para_id, max_id)
{
    timedLang=lang;
    timedImg_name=img_name;
    timedPara_id=para_id;
    timedEventId=1;
	maxId = max_id;

    window.setTimeout(paraMouseOver, iTimerInterval);
}

function paraMouseOver()
{
    if ((timedPara_id != 0) && (timedEventId == 1))
    {
    
        timedEventId = 0;

        document.getElementById("cs_" + timedLang + "_img").src = "./loading.gif";
        document.getElementById("cs_" + timedLang + "_img").src = "./tabs/products-codesmart-" + timedLang + "/img-quick-tour/" + timedImg_name + ".gif";

        for (j = 1; j<=maxId; j++)
        {
			if (j == timedPara_id) document.getElementById("p_cs_" + timedLang + "_" + j).className = "quicktour quicktour_bk_sel"
			else document.getElementById("p_cs_" + timedLang + "_" + j).className = "quicktour quicktour_bk_std";
        }
        
        switch(timedPara_id)
        {
            case 1:
                document.getElementById("cs_" + timedLang + "_img").useMap = "#m_integration_" + timedLang;
                break;
            default:
                document.getElementById("cs_" + timedLang + "_img").useMap = "#m_null";
        }
        
    }
    
}
