
// check we're in the frameset
function checkFrames(){

	// check for 'frameset' in url
	if( top.location.href.indexOf('frameset') < 0 ){

		// remove http://
		currentLocation = top.location.href.slice(7);

		// redirect
		top.location.href = '/frameset.php?frame=' + currentLocation.slice(currentLocation.indexOf('/'));
	}
}
