Hi
I hope i have understood your question correct. If you are talking about running a switch-case statement on the variable "type" passed with the URL then I would think its the same you would do when "type" is a variable.
eg :
switch($type) {
case "green" :
// do something
case "blue" :
// do something
// etc......
}
If your question is still unanswered, mail me the specifics of your question.