<% dim strURL as string dim currPath as string dim cutURL as string dim cutPath as string dim topLev as string dim slashcount dim findChar as string dim fileE as string Dim chkCurrPath dim ovrrd dim edChk dim backone %>
Home | <% strURL= "/Analytics/kss_visualizer" if instr(lcase(strURL),".aspx") = 0 then strURL = strURL + "/default.aspx" end if currPath = Request.ServerVariables("URL") cutURL = left(strURL,instrrev(strURL,"/")) backone = left(cutURL,instrrev(cutURL,"/",len(cutURL)-1)) cutPath = left(currPath,instrrev(currPath,"/")) topLev = left(cutURL,instr(2,cutURL,"/")) slashcount = ubound(split(cutURL,"/")) chkCurrPath = split(currPath,"/") edChk = ubound(split(currPath,"/")) if edChk > 2 then if len(chkCurrPath(3)) <> 0 then findChar = "/" + chkCurrPath(1) + "/" + chkCurrPath(2) + "/" + chkCurrPath(3) + "/" elseif len(chkCurrPath(2)) <> 0 then findChar = "/" + chkCurrPath(1) + "/" + chkCurrPath(2) + "/" else findChar = "/" + chkCurrPath(1) + "/" end if end if fileE = mid(strURL,instrrev(strURL,"/")+1) select case slashcount case 2 if lcase(fileE) <> "default.aspx" then %> KSS Visualizer <% end if case 3 if lcase(strURL) = lcase(currPath) and lcase(fileE) = "default.aspx" then %> KSS Visualizer <% else if instr(lcase(cutPath),lcase(cutURL)) <> 0 and lcase(fileE) = "default.aspx" then %> KSS Visualizer <% else if lcase(strURL) = lcase(currPath) and lcase(fileE) <> "default.aspx" then %> KSS Visualizer <% else if lcase(fileE) <> "default.aspx" and lcase(left(strURL,len(findChar))) = lcase(findChar) and lcase(cutPath) <> lcase(topLev) then %> KSS Visualizer <% else if lcase(fileE) <> "default.aspx" then %> <% else %> KSS Visualizer <% end if end if end if end if end if case 4 if lcase(fileE) = "default.aspx" then if lcase(cutPath) <> lcase(topLev) then if lcase(strURL) = lcase(currPath) then %> KSS Visualizer <% elseif instr(lcase(findChar),lcase(backone)) <> 0 then %> KSS Visualizer <% else if instr(lcase(cutURL),lcase(cutPath)) <> 0 then %> KSS Visualizer <% end if end if else end if end if case 5 if lcase(fileE) = "default.aspx" then if lcase(cutPath) <> lcase(topLev) then if lcase(strURL) = lcase(currPath) then %> KSS Visualizer <% else %> KSS Visualizer <% end if else if lcase(strURL) = lcase(currPath) and lcase(fileE) = "default.aspx" then %> KSS Visualizer <% end if end if end if end select %> | <% strURL= "/Analytics/kss_mapping" if instr(lcase(strURL),".aspx") = 0 then strURL = strURL + "/default.aspx" end if currPath = Request.ServerVariables("URL") cutURL = left(strURL,instrrev(strURL,"/")) backone = left(cutURL,instrrev(cutURL,"/",len(cutURL)-1)) cutPath = left(currPath,instrrev(currPath,"/")) topLev = left(cutURL,instr(2,cutURL,"/")) slashcount = ubound(split(cutURL,"/")) chkCurrPath = split(currPath,"/") edChk = ubound(split(currPath,"/")) if edChk > 2 then if len(chkCurrPath(3)) <> 0 then findChar = "/" + chkCurrPath(1) + "/" + chkCurrPath(2) + "/" + chkCurrPath(3) + "/" elseif len(chkCurrPath(2)) <> 0 then findChar = "/" + chkCurrPath(1) + "/" + chkCurrPath(2) + "/" else findChar = "/" + chkCurrPath(1) + "/" end if end if fileE = mid(strURL,instrrev(strURL,"/")+1) select case slashcount case 2 if lcase(fileE) <> "default.aspx" then %> KSS Mapping <% end if case 3 if lcase(strURL) = lcase(currPath) and lcase(fileE) = "default.aspx" then %> KSS Mapping <% else if instr(lcase(cutPath),lcase(cutURL)) <> 0 and lcase(fileE) = "default.aspx" then %> KSS Mapping <% else if lcase(strURL) = lcase(currPath) and lcase(fileE) <> "default.aspx" then %> KSS Mapping <% else if lcase(fileE) <> "default.aspx" and lcase(left(strURL,len(findChar))) = lcase(findChar) and lcase(cutPath) <> lcase(topLev) then %> KSS Mapping <% else if lcase(fileE) <> "default.aspx" then %> <% else %> KSS Mapping <% end if end if end if end if end if case 4 if lcase(fileE) = "default.aspx" then if lcase(cutPath) <> lcase(topLev) then if lcase(strURL) = lcase(currPath) then %> KSS Mapping <% elseif instr(lcase(findChar),lcase(backone)) <> 0 then %> KSS Mapping <% else if instr(lcase(cutURL),lcase(cutPath)) <> 0 then %> KSS Mapping <% end if end if else end if end if case 5 if lcase(fileE) = "default.aspx" then if lcase(cutPath) <> lcase(topLev) then if lcase(strURL) = lcase(currPath) then %> KSS Mapping <% else %> KSS Mapping <% end if else if lcase(strURL) = lcase(currPath) and lcase(fileE) = "default.aspx" then %> KSS Mapping <% end if end if end if end select %> | <% strURL= "/Analytics/business_intelligence" if instr(lcase(strURL),".aspx") = 0 then strURL = strURL + "/default.aspx" end if currPath = Request.ServerVariables("URL") cutURL = left(strURL,instrrev(strURL,"/")) backone = left(cutURL,instrrev(cutURL,"/",len(cutURL)-1)) cutPath = left(currPath,instrrev(currPath,"/")) topLev = left(cutURL,instr(2,cutURL,"/")) slashcount = ubound(split(cutURL,"/")) chkCurrPath = split(currPath,"/") edChk = ubound(split(currPath,"/")) if edChk > 2 then if len(chkCurrPath(3)) <> 0 then findChar = "/" + chkCurrPath(1) + "/" + chkCurrPath(2) + "/" + chkCurrPath(3) + "/" elseif len(chkCurrPath(2)) <> 0 then findChar = "/" + chkCurrPath(1) + "/" + chkCurrPath(2) + "/" else findChar = "/" + chkCurrPath(1) + "/" end if end if fileE = mid(strURL,instrrev(strURL,"/")+1) select case slashcount case 2 if lcase(fileE) <> "default.aspx" then %> Business Intelligence <% end if case 3 if lcase(strURL) = lcase(currPath) and lcase(fileE) = "default.aspx" then %> Business Intelligence <% else if instr(lcase(cutPath),lcase(cutURL)) <> 0 and lcase(fileE) = "default.aspx" then %> Business Intelligence <% else if lcase(strURL) = lcase(currPath) and lcase(fileE) <> "default.aspx" then %> Business Intelligence <% else if lcase(fileE) <> "default.aspx" and lcase(left(strURL,len(findChar))) = lcase(findChar) and lcase(cutPath) <> lcase(topLev) then %> Business Intelligence <% else if lcase(fileE) <> "default.aspx" then %> <% else %> Business Intelligence <% end if end if end if end if end if case 4 if lcase(fileE) = "default.aspx" then if lcase(cutPath) <> lcase(topLev) then if lcase(strURL) = lcase(currPath) then %> Business Intelligence <% elseif instr(lcase(findChar),lcase(backone)) <> 0 then %> Business Intelligence <% else if instr(lcase(cutURL),lcase(cutPath)) <> 0 then %> Business Intelligence <% end if end if else end if end if case 5 if lcase(fileE) = "default.aspx" then if lcase(cutPath) <> lcase(topLev) then if lcase(strURL) = lcase(currPath) then %> Business Intelligence <% else %> Business Intelligence <% end if else if lcase(strURL) = lcase(currPath) and lcase(fileE) = "default.aspx" then %> Business Intelligence <% end if end if end if end select %> | <% strURL= "/Analytics/kss_analytics" if instr(lcase(strURL),".aspx") = 0 then strURL = strURL + "/default.aspx" end if currPath = Request.ServerVariables("URL") cutURL = left(strURL,instrrev(strURL,"/")) backone = left(cutURL,instrrev(cutURL,"/",len(cutURL)-1)) cutPath = left(currPath,instrrev(currPath,"/")) topLev = left(cutURL,instr(2,cutURL,"/")) slashcount = ubound(split(cutURL,"/")) chkCurrPath = split(currPath,"/") edChk = ubound(split(currPath,"/")) if edChk > 2 then if len(chkCurrPath(3)) <> 0 then findChar = "/" + chkCurrPath(1) + "/" + chkCurrPath(2) + "/" + chkCurrPath(3) + "/" elseif len(chkCurrPath(2)) <> 0 then findChar = "/" + chkCurrPath(1) + "/" + chkCurrPath(2) + "/" else findChar = "/" + chkCurrPath(1) + "/" end if end if fileE = mid(strURL,instrrev(strURL,"/")+1) select case slashcount case 2 if lcase(fileE) <> "default.aspx" then %> KSS Analytics <% end if case 3 if lcase(strURL) = lcase(currPath) and lcase(fileE) = "default.aspx" then %> KSS Analytics <% else if instr(lcase(cutPath),lcase(cutURL)) <> 0 and lcase(fileE) = "default.aspx" then %> KSS Analytics <% else if lcase(strURL) = lcase(currPath) and lcase(fileE) <> "default.aspx" then %> KSS Analytics <% else if lcase(fileE) <> "default.aspx" and lcase(left(strURL,len(findChar))) = lcase(findChar) and lcase(cutPath) <> lcase(topLev) then %> KSS Analytics <% else if lcase(fileE) <> "default.aspx" then %> <% else %> KSS Analytics <% end if end if end if end if end if case 4 if lcase(fileE) = "default.aspx" then if lcase(cutPath) <> lcase(topLev) then if lcase(strURL) = lcase(currPath) then %> KSS Analytics <% elseif instr(lcase(findChar),lcase(backone)) <> 0 then %> KSS Analytics <% else if instr(lcase(cutURL),lcase(cutPath)) <> 0 then %> KSS Analytics <% end if end if else end if end if case 5 if lcase(fileE) = "default.aspx" then if lcase(cutPath) <> lcase(topLev) then if lcase(strURL) = lcase(currPath) then %> KSS Analytics <% else %> KSS Analytics <% end if else if lcase(strURL) = lcase(currPath) and lcase(fileE) = "default.aspx" then %> KSS Analytics <% end if end if end if end select %>