function WizardParamSBd4e3555a416a4fc68c5865d0a02305ce()
{
this.SB_Url='http://wizard.liveperson.com';
this.SB_kasambaUrl='http://www.liveperson.com';
this.SB_imageUrl='http://www.liveperson.com';
this.SB_Version='1.00';
this.SB_textBoxLength= WizardParam.SB_textBoxLength;
if (typeof(WizardParam.SB_params) == 'undefined') this.SB_params=''; else this.SB_params= WizardParam.SB_params;
this.SB_UniqeKey = "WizardParamSBd4e3555a416a4fc68c5865d0a02305ce";
this.SB_ShortCodeUniqeKey = "SBd4e3555a416a4fc68c5865d0a02305ce" ;
this.SB_Search_btnID = "Search_btnID_SBd4e3555a416a4fc68c5865d0a02305ce" ;
this.SB_Search_txtID = "Search_txtID_SBd4e3555a416a4fc68c5865d0a02305ce" ;
this.SB_PID='0';
this.SB_AID='0';
this.SB_AffliateID='';
if (typeof(WizardParam.SB_header) == 'undefined') this.SB_header='Find expert advice in:';else this.SB_header= WizardParam.SB_header;
if (typeof(WizardParam.SB_buttonColor) == 'undefined') this.SB_buttonColor='normal';else this.SB_buttonColor= WizardParam.SB_buttonColor;
if (typeof(WizardParam.SB_headerFontFamily) == 'undefined') this.SB_headerFontFamily='Verdana';else this.SB_headerFontFamily= WizardParam.SB_headerFontFamily;
if (typeof(WizardParam.SB_backgroundColor) == 'undefined') this.SB_backgroundColor='FFF4E9';else this.SB_backgroundColor= WizardParam.SB_backgroundColor;
if (typeof(WizardParam.SB_headerBold) == 'undefined') this.SB_headerBold='bold';else this.SB_headerBold= WizardParam.SB_headerBold;
if (typeof(WizardParam.SB_textColor) == 'undefined') this.SB_textColor='000000';else this.SB_textColor= WizardParam.SB_textColor;
if (typeof(WizardParam.SB_headerFontSize) == 'undefined') this.SB_headerFontSize='9pt';else this.SB_headerFontSize= WizardParam.SB_headerFontSize;
if (typeof(WizardParam.SB_headerUnderline) == 'undefined') this.SB_headerUnderline='none';else this.SB_headerUnderline= WizardParam.SB_headerUnderline;
if (typeof(WizardParam.SB_headerItalic) == 'undefined') this.SB_headerItalic='normal';else this.SB_headerItalic= WizardParam.SB_headerItalic;
if (typeof(WizardParam.SB_borderColor) == 'undefined') this.SB_borderColor='F29837';else this.SB_borderColor= WizardParam.SB_borderColor;
}

var WizardParam =  new SBd4e3555a416a4fc68c5865d0a02305ce();
var ExpertGridObject_WizardParamSBd4e3555a416a4fc68c5865d0a02305ce=  new WizardParamSBd4e3555a416a4fc68c5865d0a02305ce();
function Start_WizardParamSBd4e3555a416a4fc68c5865d0a02305ce(){if (typeof(ExpertGridObject_WizardParamSBd4e3555a416a4fc68c5865d0a02305ce.SB_Disable_Render)== 'undefined') { document.write(kasamba_SB_Render(ExpertGridObject_WizardParamSBd4e3555a416a4fc68c5865d0a02305ce));}}
 Start_WizardParamSBd4e3555a416a4fc68c5865d0a02305ce();


    function kasamba_SB_Render(SBObject)
    {

        var kasamba_SB_SearchBox="";
        var UniqeKey = SBObject.SB_UniqeKey;
        var SB_ShortCodeUniqeKey =  SBObject.SB_ShortCodeUniqeKey;
        var SB_Search_btn = SBObject.SB_Search_btnID
        var SB_Search_txt = SBObject.SB_Search_txtID
        var url = SBObject.SB_kasambaUrl + "/?" + SBObject.SB_params;
        
        try
        {
            kasamba_SB_SearchBox = "<table style='border:1px #" + SBObject.SB_borderColor + " solid; background-color:#" + SBObject.SB_backgroundColor +"; width:234px; height:60px;'>\n\r";
            kasamba_SB_SearchBox+="<tr> <td colspan='2'  align='left'>\n\r";
            kasamba_SB_SearchBox+="<div style='font:" + SBObject.SB_headerItalic +" normal " + SBObject.SB_headerBold + " " + SBObject.SB_headerFontSize + " " + SBObject.SB_headerFontFamily + "; text-decoration:" + SBObject.SB_headerUnderline + "; color:#" + SBObject.SB_textColor + "; line-height:12px;'>" + SBObject.SB_header.replace("’","&#8217;") + "</div></td></tr>";
            kasamba_SB_SearchBox+="<tr><td align='left'><input type='text' id=" + SB_Search_txt + " name='SB_Search_txt' onkeydown='javascript:kasamba_SB_CheckPressedSubmit(" + UniqeKey + "," + SB_ShortCodeUniqeKey + ",event, " + SB_Search_btn + ", " + SB_Search_txt + ");'  maxlength=' "+ SBObject.SB_textBoxLength + "' size='" + SBObject.SB_textBoxLength + "' style='border:1px #" + SBObject.SB_borderColor +" solid;' /></td>";
            kasamba_SB_SearchBox+="<td><input type='button' id=" + SB_Search_btn + " name='SB_Search_btn' onclick='javascript:kasamba_SB_SearchClickSubmit(" + UniqeKey + "," + SB_ShortCodeUniqeKey + ")'  style='background-color:#" + SBObject.SB_buttonColor + "';  value='GO!' /></td> </tr>";                        
            kasamba_SB_SearchBox+="<tr><td colspan='2' align='right'><a title='LivePerson - Expert Advice, Live!' style='text-decoration:none;font-family:Arial;color:#000000;font-size:7pt;line-height:8px;display:inline;' href='javascript:setHref(\"" + UniqeKey + "\",\"" + SB_ShortCodeUniqeKey + "\",\"" + url +"\")'>Powered by<span style='text-decoration:none;font-family:Arial Black;font-size:7pt;color:#000000;line-height:8px;display:inline;'> LivePerson</span></a></td></tr></table>";    
        }
        catch(e)
        {
            kasamba_SB_SearchBox="This code is either outside available parameters or has an error. Please verify the code and try again.";
        } 
        return kasamba_SB_SearchBox;        
    }
    
    function kasamba_SB_SearchClickSubmit(UniqeKey,SB_ShortCodeUniqeKey)
    {
      
        var strSBObject = "var SBObject = " + "new "+UniqeKey+"()";    
        var strWizardParam = "var WizardParam =  new " + SB_ShortCodeUniqeKey + "();\n"

        if (typeof(SBObject) == 'undefined')
        {
            eval (strWizardParam);       
            eval (strSBObject);  
        }
    
        var URL = SBObject.SB_kasambaUrl;
        var PARAMS = SBObject.SB_params;
        var SB_Search_txt = SBObject.SB_Search_txtID;
        var destinationURL = "";
        try
        {
            var SB_Search_txt = document.getElementById(SB_Search_txt);
            if ((typeof(PARAMS)=='undefined') || (PARAMS==""))
            {
                destinationURL = URL + "/expert-match/" + escape(SB_Search_txt.value) + "/"+"?twid=4";
                window.open(destinationURL);               
            }
            else
            {
                destinationURL = URL + "/newsearch.aspx?twid=4&searchtxt=" + escape(SB_Search_txt.value) + "&" + PARAMS;
                
                if (SBObject.SB_AffliateID == 'CJ')
                {
                    destinationURL = "http://www.jdoqocy.com/click-" + SBObject.SB_PID + "-" 
                         + SBObject.SB_AID + "?URL=" + escape(destinationURL + "&accountRef=liveperson");
                }                                   
                window.open(destinationURL);                                               
            }                        
        }
        catch(e)
        {            
        } 
    }			
 
	function kasamba_SB_CheckPressedSubmit(UniqeKey,SB_ShortCodeUniqeKey,event, buttonName)
    {						
	    var cancelEvent =false
	    cancelEvent = kasamba_SB_CancelEventExplorer();
	    
	    var strSBObject = "var SBObject = " + "new "+UniqeKey+"()";    
        var strWizardParam = "var WizardParam =  new " + SB_ShortCodeUniqeKey + "();\n"

        if (typeof(SBObject) == 'undefined')
        {
            eval (strWizardParam);       
            eval (strSBObject);  
        }
    
    	
	    if (cancelEvent==false)
	    {		
		    cancelEvent = kasamba_SB_CancelEventMozilla(UniqeKey,SB_ShortCodeUniqeKey,event)
			    if (cancelEvent == false)
			    {
			    return false;
			    }				
		    createAClickEvent(UniqeKey,SB_ShortCodeUniqeKey)				
	    }								
	    kasamba_SB_SearchClickSubmit(UniqeKey,SB_ShortCodeUniqeKey);	    	
    }
    	
    function kasamba_SB_CancelEventExplorer()
    {
	    if (document.all)
	    {	
		    if (event.keyCode == 13)
		    {
			    event.returnValue=false;
			    event.cancel = true;		
			    return true;
		    }						
	    }	
    	
	    return false
    }

    function kasamba_SB_CancelEventMozilla(UniqeKey,SB_ShortCodeUniqeKey,theEvent)
    {
	    if (document.getElementById)
	    {		
		    if (theEvent.which == 13)
		    {				
			    if (theEvent && theEvent.preventDefault)
			    {									
				    theEvent.preventDefault(); 
			    }	
			    return true;								
		    }	
	    }	
	    return false
    }

    function createAClickEvent(UniqeKey,SB_ShortCodeUniqeKey)
    {
	    try 
		    {
		    // create a element so that HTMLAnchorElement is accessible
		    document.createElement('a');
  			    HTMLElement.prototype.click = function () 
			    {
   				    if (typeof this.onclick == 'function') 
				    {
     					    if (this.onclick({type: 'click'}) && this.href) 
       					    window.open(this.href, this.target ? this.target : '_self');
  				    }
    				    else if (this.href)
      				    window.open(this.href, this.target ? this.target : '_self');
 			    };
		    }
		    catch (e)
		    {
		    
		    }
    }
    
    function setHref(UniqeKey,SB_ShortCodeUniqeKey,url)
    {     
        var strSBObject = "var SBObject = " + "new "+UniqeKey+"()";    
        var strWizardParam = "var WizardParam =  new " + SB_ShortCodeUniqeKey + "();\n"
        
        if (typeof(SBObject) == 'undefined')
        {
            eval (strWizardParam);       
            eval (strSBObject);  
        }
          
        if (SBObject.SB_AffliateID == 'CJ')
        {
            url = "http://www.jdoqocy.com/click-" + SBObject.SB_PID + "-" 
                  + SBObject.SB_AID + "?URL=" + escape(url + "&accountRef=liveperson");
        }
                 
        window.open(url);  
    }
	


