if (self == parent) {
    loc = self.location.href;
    location.href = '../default.asp?section=services&page=' + loc.substring(loc.lastIndexOf('/')+1) ;
} else {
    if (parent.frames[0].location.href.indexOf('services') == -1 ) {
	loc = self.location.href;
	location.href = '../default.asp?section=services&page=' + loc.substring(loc.lastIndexOf('/')+1) ;
    }
}

