Switched Frameworks